blob: a59c1b59b44950b1328574cbc3ef81dcbe732466 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyee742642011-02-26 02:49:59 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 6.6.8.
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'
576PACKAGE_TARNAME='ImageMagick'
cristyee742642011-02-26 02:49:59 +0000577PACKAGE_VERSION='6.6.8'
578PACKAGE_STRING='ImageMagick 6.6.8'
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
724SHARE_CONFIGURE_PATH
725SHARE_PATH
726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
729CONFIGURE_PATH
730LIBRARY_PATH
731EXECUTABLE_PATH
732PERLMAINCC
733XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000734XML_DELEGATE_FALSE
735XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000736xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000737WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000738WMF_DELEGATE_FALSE
739WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000740WEBP_LIBS
741WEBP_DELEGATE_FALSE
742WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000743TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000744TIFF_DELEGATE_FALSE
745TIFF_DELEGATE_TRUE
746CAIRO_DELEGATE_FALSE
747CAIRO_DELEGATE_TRUE
748RSVG_DELEGATE_FALSE
749RSVG_DELEGATE_TRUE
750CAIRO_SVG_LIBS
751CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000752RSVG_LIBS
753RSVG_CFLAGS
754PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755PNG_DELEGATE_FALSE
756PNG_DELEGATE_TRUE
757OPENEXR_DELEGATE_FALSE
758OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000759OPENEXR_LIBS
760OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000761LZMA_LIBS
762LZMA_DELEGATE_FALSE
763LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000764LQR_DELEGATE_FALSE
765LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766LQR_LIBS
767LQR_CFLAGS
768LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000769LCMS_DELEGATE_FALSE
770LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772JP2_DELEGATE_FALSE
773JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775JPEG_DELEGATE_FALSE
776JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778JBIG_DELEGATE_FALSE
779JBIG_DELEGATE_TRUE
780GVC_DELEGATE_FALSE
781GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782GVC_LIBS
783GVC_CFLAGS
784GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785GS_DELEGATE_FALSE
786GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000788FREETYPE_DELEGATE_FALSE
789FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000791FONTCONFIG_DELEGATE_FALSE
792FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793FONTCONFIG_LIBS
794FONTCONFIG_CFLAGS
795FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000796FPX_DELEGATE_FALSE
797FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000799FFTW_DELEGATE_FALSE
800FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802DJVU_DELEGATE_FALSE
803DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805DPS_DELEGATE_FALSE
806DPS_DELEGATE_TRUE
807AUTOTRACE_DELEGATE_FALSE
808AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809AUTOTRACE_LIBS
810AUTOTRACE_CFLAGS
811LIB_DL
812ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813ZLIB_DELEGATE_FALSE
814ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815XEXT_LIBS
816X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817X11_DELEGATE_FALSE
818X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819X_EXTRA_LIBS
820X_LIBS
821X_PRE_LIBS
822X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000823XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000824BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825BZLIB_DELEGATE_FALSE
826BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827CCMALLOCDelegate
828UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829HasUMEM_FALSE
830HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831THREAD_LIBS
832GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833WITH_MAGICK_PLUS_PLUS_FALSE
834WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000836MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000837POW_LIB
838LIBOBJS
839UINTPTR_T
840UINTMAX_T
841UINT64_T
842INT64_T
843UINT32_T
844INT32_T
845UINT16_T
846INT16_T
847UINT8_T
848INT8_T
849LIBRARY_EXTRA_CPPFLAGS
850MODULE_EXTRA_CPPFLAGS
851LIBSTDCLDFLAGS
852PERL_MAKE_OPTIONS
853QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000854MAINT
855MAINTAINER_MODE_FALSE
856MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000857MAGICK_HDRI
858DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000859WITH_LTDL_FALSE
860WITH_LTDL_TRUE
861WITH_MODULES_FALSE
862WITH_MODULES_TRUE
863WITH_SHARED_LIBS_FALSE
864WITH_SHARED_LIBS_TRUE
865LTDLOPEN
866LT_CONFIG_H
867CONVENIENCE_LTDL_FALSE
868CONVENIENCE_LTDL_TRUE
869INSTALL_LTDL_FALSE
870INSTALL_LTDL_TRUE
871ARGZ_H
872sys_symbol_underscore
873LIBADD_DL
874LT_DLPREOPEN
875LIBADD_DLD_LINK
876LIBADD_SHL_LOAD
877LIBADD_DLOPEN
878LT_DLLOADERS
879INCLTDL
880LTDLINCL
881LTDLDEPS
882LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000883LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000884CXXCPP
885OTOOL64
886OTOOL
887LIPO
888NMEDIT
889DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000890MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000891RANLIB
cristyda16f162011-02-19 23:52:17 +0000892ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000893AR
894NM
895ac_ct_DUMPBIN
896DUMPBIN
897LIBTOOL
898OBJDUMP
899DLLTOOL
900AS
cristy3ed852e2009-09-05 21:47:34 +0000901LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000902CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000903CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000904OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000905PTHREAD_CFLAGS
906PTHREAD_LIBS
907PTHREAD_CC
908ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000909WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000910USING_CL_FALSE
911USING_CL_TRUE
912CYGWIN_BUILD_FALSE
913CYGWIN_BUILD_TRUE
914WIN32_NATIVE_BUILD_FALSE
915WIN32_NATIVE_BUILD_TRUE
916WINGDI32_DELEGATE_FALSE
917WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000919PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000920LN_S
cristy3ed852e2009-09-05 21:47:34 +0000921LD
cristy73bd4a52010-10-05 11:24:23 +0000922FGREP
923SED
924am__fastdepCXX_FALSE
925am__fastdepCXX_TRUE
926CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000927ac_ct_CXX
928CXXFLAGS
929CXX
cristya0b81c32010-01-22 02:54:33 +0000930EGREP
931GREP
932CPP
cristy73bd4a52010-10-05 11:24:23 +0000933am__fastdepCC_FALSE
934am__fastdepCC_TRUE
935CCDEPMODE
936AMDEPBACKSLASH
937AMDEP_FALSE
938AMDEP_TRUE
939am__quote
940am__include
941DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000942OBJEXT
943EXEEXT
944ac_ct_CC
945CPPFLAGS
946LDFLAGS
947CFLAGS
948CC
949DIRSEP
950MAGICK_FILTER_MODULE_PATH
951MAGICK_CONFIGURE_BUILD_PATH
952MAGICK_CONFIGURE_SRC_PATH
953MAGICK_CODER_MODULE_PATH
954MAN_DIR
955INFO_DIR
956PERSISTINCLUDE_DIR
957INCLUDE_DIR
958LIB_DIR
959LOCALSTATE_DIR
960SHAREDSTATE_DIR
961SYSCONF_DIR
962DATA_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
cristybab87c32010-02-09 20:54:22 +00001003MAGICK_LIBRARY_VERSION_INFO
1004MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001005MAGICK_LIBRARY_AGE
1006MAGICK_LIBRARY_REVISION
1007MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001008MAGICK_TARGET_OS
1009MAGICK_TARGET_VENDOR
1010MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001011target_os
1012target_vendor
1013target_cpu
1014target
1015host_os
1016host_vendor
1017host_cpu
1018host
1019build_os
1020build_vendor
1021build_cpu
1022build
1023CONFIGURE_ARGS
1024DISTCHECK_CONFIG_FLAGS
1025target_alias
1026host_alias
1027build_alias
1028LIBS
1029ECHO_T
1030ECHO_N
1031ECHO_C
1032DEFS
1033mandir
1034localedir
1035libdir
1036psdir
1037pdfdir
1038dvidir
1039htmldir
1040infodir
1041docdir
1042oldincludedir
1043includedir
1044localstatedir
1045sharedstatedir
1046sysconfdir
1047datadir
1048datarootdir
1049libexecdir
1050sbindir
1051bindir
1052program_transform_name
1053prefix
1054exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001055PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001056PACKAGE_BUGREPORT
1057PACKAGE_STRING
1058PACKAGE_VERSION
1059PACKAGE_TARNAME
1060PACKAGE_NAME
1061PATH_SEPARATOR
1062SHELL'
1063ac_subst_files=''
1064ac_user_opts='
1065enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001066enable_silent_rules
1067enable_dependency_tracking
1068with_gnu_ld
1069with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001070enable_bounds_checking
1071enable_osx_universal_binary
1072with_threads
1073enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001074enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001075enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001076enable_shared
1077enable_static
1078with_pic
1079enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001080with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001081enable_libtool_lock
1082with_included_ltdl
1083with_ltdl_include
1084with_ltdl_lib
1085enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001086with_modules
1087enable_delegate_build
1088enable_deprecated
1089enable_installed
1090enable_cipher
1091enable_embeddable
1092enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001093enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001094enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001095enable_ccmalloc
1096enable_efence
1097enable_prof
1098enable_gprof
1099enable_gcov
1100with_method_prefix
1101with_quantum_depth
1102with_cache
1103with_frozenpaths
1104with_magick_plus_plus
1105with_perl
1106with_perl_options
1107with_umem
1108with_libstdc
1109with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001110with_x
cristy3ed852e2009-09-05 21:47:34 +00001111with_zlib
1112with_autotrace
1113with_dps
1114with_djvu
cristy430a7312010-01-21 20:44:04 +00001115with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001116with_fftw
1117with_fpx
1118with_fontconfig
1119with_freetype
1120with_gslib
1121with_fontpath
1122with_gs_font_dir
1123with_gvc
1124with_jbig
1125with_jpeg
1126with_jp2
1127with_lcms
cristy71203402010-06-18 13:12:03 +00001128with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001129with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001130with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001131with_openexr
1132with_png
1133with_rsvg
1134with_tiff
cristyb1860752011-03-14 00:27:46 +00001135with_webp
cristy3ed852e2009-09-05 21:47:34 +00001136with_windows_font_dir
1137with_wmf
1138with_xml
1139'
1140 ac_precious_vars='build_alias
1141host_alias
1142target_alias
1143CC
1144CFLAGS
1145LDFLAGS
1146LIBS
1147CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001148CPP
cristy3ed852e2009-09-05 21:47:34 +00001149CXX
1150CXXFLAGS
1151CCC
cristy73bd4a52010-10-05 11:24:23 +00001152PKG_CONFIG
1153CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001154XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001155AUTOTRACE_CFLAGS
1156AUTOTRACE_LIBS
1157FONTCONFIG_CFLAGS
1158FONTCONFIG_LIBS
1159GVC_CFLAGS
1160GVC_LIBS
1161LQR_CFLAGS
1162LQR_LIBS
1163OPENEXR_CFLAGS
1164OPENEXR_LIBS
1165RSVG_CFLAGS
1166RSVG_LIBS
1167CAIRO_SVG_CFLAGS
1168CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001169
1170
1171# Initialize some variables set by options.
1172ac_init_help=
1173ac_init_version=false
1174ac_unrecognized_opts=
1175ac_unrecognized_sep=
1176# The variables have the same names as the options, with
1177# dashes changed to underlines.
1178cache_file=/dev/null
1179exec_prefix=NONE
1180no_create=
1181no_recursion=
1182prefix=NONE
1183program_prefix=NONE
1184program_suffix=NONE
1185program_transform_name=s,x,x,
1186silent=
1187site=
1188srcdir=
1189verbose=
1190x_includes=NONE
1191x_libraries=NONE
1192
1193# Installation directory options.
1194# These are left unexpanded so users can "make install exec_prefix=/foo"
1195# and all the variables that are supposed to be based on exec_prefix
1196# by default will actually change.
1197# Use braces instead of parens because sh, perl, etc. also accept them.
1198# (The list follows the same order as the GNU Coding Standards.)
1199bindir='${exec_prefix}/bin'
1200sbindir='${exec_prefix}/sbin'
1201libexecdir='${exec_prefix}/libexec'
1202datarootdir='${prefix}/share'
1203datadir='${datarootdir}'
1204sysconfdir='${prefix}/etc'
1205sharedstatedir='${prefix}/com'
1206localstatedir='${prefix}/var'
1207includedir='${prefix}/include'
1208oldincludedir='/usr/include'
1209docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1210infodir='${datarootdir}/info'
1211htmldir='${docdir}'
1212dvidir='${docdir}'
1213pdfdir='${docdir}'
1214psdir='${docdir}'
1215libdir='${exec_prefix}/lib'
1216localedir='${datarootdir}/locale'
1217mandir='${datarootdir}/man'
1218
1219ac_prev=
1220ac_dashdash=
1221for ac_option
1222do
1223 # If the previous option needs an argument, assign it.
1224 if test -n "$ac_prev"; then
1225 eval $ac_prev=\$ac_option
1226 ac_prev=
1227 continue
1228 fi
1229
1230 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001231 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1232 *=) ac_optarg= ;;
1233 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001234 esac
1235
1236 # Accept the important Cygnus configure options, so we can diagnose typos.
1237
1238 case $ac_dashdash$ac_option in
1239 --)
1240 ac_dashdash=yes ;;
1241
1242 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1243 ac_prev=bindir ;;
1244 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1245 bindir=$ac_optarg ;;
1246
1247 -build | --build | --buil | --bui | --bu)
1248 ac_prev=build_alias ;;
1249 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1250 build_alias=$ac_optarg ;;
1251
1252 -cache-file | --cache-file | --cache-fil | --cache-fi \
1253 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1254 ac_prev=cache_file ;;
1255 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1256 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1257 cache_file=$ac_optarg ;;
1258
1259 --config-cache | -C)
1260 cache_file=config.cache ;;
1261
1262 -datadir | --datadir | --datadi | --datad)
1263 ac_prev=datadir ;;
1264 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1265 datadir=$ac_optarg ;;
1266
1267 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1268 | --dataroo | --dataro | --datar)
1269 ac_prev=datarootdir ;;
1270 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1271 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1272 datarootdir=$ac_optarg ;;
1273
1274 -disable-* | --disable-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001278 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283"enable_$ac_useropt"
1284"*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval enable_$ac_useropt=no ;;
1289
1290 -docdir | --docdir | --docdi | --doc | --do)
1291 ac_prev=docdir ;;
1292 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1293 docdir=$ac_optarg ;;
1294
1295 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1296 ac_prev=dvidir ;;
1297 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1298 dvidir=$ac_optarg ;;
1299
1300 -enable-* | --enable-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001304 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1308 *"
1309"enable_$ac_useropt"
1310"*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval enable_$ac_useropt=\$ac_optarg ;;
1315
1316 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1317 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1318 | --exec | --exe | --ex)
1319 ac_prev=exec_prefix ;;
1320 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1321 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1322 | --exec=* | --exe=* | --ex=*)
1323 exec_prefix=$ac_optarg ;;
1324
1325 -gas | --gas | --ga | --g)
1326 # Obsolete; use --with-gas.
1327 with_gas=yes ;;
1328
1329 -help | --help | --hel | --he | -h)
1330 ac_init_help=long ;;
1331 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1332 ac_init_help=recursive ;;
1333 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1334 ac_init_help=short ;;
1335
1336 -host | --host | --hos | --ho)
1337 ac_prev=host_alias ;;
1338 -host=* | --host=* | --hos=* | --ho=*)
1339 host_alias=$ac_optarg ;;
1340
1341 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1342 ac_prev=htmldir ;;
1343 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1344 | --ht=*)
1345 htmldir=$ac_optarg ;;
1346
1347 -includedir | --includedir | --includedi | --included | --include \
1348 | --includ | --inclu | --incl | --inc)
1349 ac_prev=includedir ;;
1350 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1351 | --includ=* | --inclu=* | --incl=* | --inc=*)
1352 includedir=$ac_optarg ;;
1353
1354 -infodir | --infodir | --infodi | --infod | --info | --inf)
1355 ac_prev=infodir ;;
1356 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1357 infodir=$ac_optarg ;;
1358
1359 -libdir | --libdir | --libdi | --libd)
1360 ac_prev=libdir ;;
1361 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1362 libdir=$ac_optarg ;;
1363
1364 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1365 | --libexe | --libex | --libe)
1366 ac_prev=libexecdir ;;
1367 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1368 | --libexe=* | --libex=* | --libe=*)
1369 libexecdir=$ac_optarg ;;
1370
1371 -localedir | --localedir | --localedi | --localed | --locale)
1372 ac_prev=localedir ;;
1373 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1374 localedir=$ac_optarg ;;
1375
1376 -localstatedir | --localstatedir | --localstatedi | --localstated \
1377 | --localstate | --localstat | --localsta | --localst | --locals)
1378 ac_prev=localstatedir ;;
1379 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1380 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1381 localstatedir=$ac_optarg ;;
1382
1383 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1384 ac_prev=mandir ;;
1385 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1386 mandir=$ac_optarg ;;
1387
1388 -nfp | --nfp | --nf)
1389 # Obsolete; use --without-fp.
1390 with_fp=no ;;
1391
1392 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1393 | --no-cr | --no-c | -n)
1394 no_create=yes ;;
1395
1396 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1397 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1398 no_recursion=yes ;;
1399
1400 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1401 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1402 | --oldin | --oldi | --old | --ol | --o)
1403 ac_prev=oldincludedir ;;
1404 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1405 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1406 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1407 oldincludedir=$ac_optarg ;;
1408
1409 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1410 ac_prev=prefix ;;
1411 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1412 prefix=$ac_optarg ;;
1413
1414 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1415 | --program-pre | --program-pr | --program-p)
1416 ac_prev=program_prefix ;;
1417 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1418 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1419 program_prefix=$ac_optarg ;;
1420
1421 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1422 | --program-suf | --program-su | --program-s)
1423 ac_prev=program_suffix ;;
1424 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1425 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1426 program_suffix=$ac_optarg ;;
1427
1428 -program-transform-name | --program-transform-name \
1429 | --program-transform-nam | --program-transform-na \
1430 | --program-transform-n | --program-transform- \
1431 | --program-transform | --program-transfor \
1432 | --program-transfo | --program-transf \
1433 | --program-trans | --program-tran \
1434 | --progr-tra | --program-tr | --program-t)
1435 ac_prev=program_transform_name ;;
1436 -program-transform-name=* | --program-transform-name=* \
1437 | --program-transform-nam=* | --program-transform-na=* \
1438 | --program-transform-n=* | --program-transform-=* \
1439 | --program-transform=* | --program-transfor=* \
1440 | --program-transfo=* | --program-transf=* \
1441 | --program-trans=* | --program-tran=* \
1442 | --progr-tra=* | --program-tr=* | --program-t=*)
1443 program_transform_name=$ac_optarg ;;
1444
1445 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1446 ac_prev=pdfdir ;;
1447 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1448 pdfdir=$ac_optarg ;;
1449
1450 -psdir | --psdir | --psdi | --psd | --ps)
1451 ac_prev=psdir ;;
1452 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1453 psdir=$ac_optarg ;;
1454
1455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1456 | -silent | --silent | --silen | --sile | --sil)
1457 silent=yes ;;
1458
1459 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1460 ac_prev=sbindir ;;
1461 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1462 | --sbi=* | --sb=*)
1463 sbindir=$ac_optarg ;;
1464
1465 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1466 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1467 | --sharedst | --shareds | --shared | --share | --shar \
1468 | --sha | --sh)
1469 ac_prev=sharedstatedir ;;
1470 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1471 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1472 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1473 | --sha=* | --sh=*)
1474 sharedstatedir=$ac_optarg ;;
1475
1476 -site | --site | --sit)
1477 ac_prev=site ;;
1478 -site=* | --site=* | --sit=*)
1479 site=$ac_optarg ;;
1480
1481 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1482 ac_prev=srcdir ;;
1483 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1484 srcdir=$ac_optarg ;;
1485
1486 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1487 | --syscon | --sysco | --sysc | --sys | --sy)
1488 ac_prev=sysconfdir ;;
1489 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1490 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1491 sysconfdir=$ac_optarg ;;
1492
1493 -target | --target | --targe | --targ | --tar | --ta | --t)
1494 ac_prev=target_alias ;;
1495 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1496 target_alias=$ac_optarg ;;
1497
1498 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1499 verbose=yes ;;
1500
1501 -version | --version | --versio | --versi | --vers | -V)
1502 ac_init_version=: ;;
1503
1504 -with-* | --with-*)
1505 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1506 # Reject names that are not valid shell variable names.
1507 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001508 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001509 ac_useropt_orig=$ac_useropt
1510 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1511 case $ac_user_opts in
1512 *"
1513"with_$ac_useropt"
1514"*) ;;
1515 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1516 ac_unrecognized_sep=', ';;
1517 esac
1518 eval with_$ac_useropt=\$ac_optarg ;;
1519
1520 -without-* | --without-*)
1521 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001524 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001525 ac_useropt_orig=$ac_useropt
1526 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1528 *"
1529"with_$ac_useropt"
1530"*) ;;
1531 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1532 ac_unrecognized_sep=', ';;
1533 esac
1534 eval with_$ac_useropt=no ;;
1535
1536 --x)
1537 # Obsolete; use --with-x.
1538 with_x=yes ;;
1539
1540 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1541 | --x-incl | --x-inc | --x-in | --x-i)
1542 ac_prev=x_includes ;;
1543 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1544 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1545 x_includes=$ac_optarg ;;
1546
1547 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1548 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1549 ac_prev=x_libraries ;;
1550 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1551 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1552 x_libraries=$ac_optarg ;;
1553
cristy98dddb52010-11-04 00:30:15 +00001554 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1555Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001556 ;;
1557
1558 *=*)
1559 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1560 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001561 case $ac_envvar in #(
1562 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001563 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001564 esac
cristy3ed852e2009-09-05 21:47:34 +00001565 eval $ac_envvar=\$ac_optarg
1566 export $ac_envvar ;;
1567
1568 *)
1569 # FIXME: should be removed in autoconf 3.0.
1570 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1571 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1572 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001573 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001574 ;;
1575
1576 esac
1577done
1578
1579if test -n "$ac_prev"; then
1580 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001581 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001582fi
1583
1584if test -n "$ac_unrecognized_opts"; then
1585 case $enable_option_checking in
1586 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001587 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001588 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1589 esac
1590fi
1591
1592# Check all directory arguments for consistency.
1593for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1594 datadir sysconfdir sharedstatedir localstatedir includedir \
1595 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1596 libdir localedir mandir
1597do
1598 eval ac_val=\$$ac_var
1599 # Remove trailing slashes.
1600 case $ac_val in
1601 */ )
1602 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1603 eval $ac_var=\$ac_val;;
1604 esac
1605 # Be sure to have absolute directory names.
1606 case $ac_val in
1607 [\\/$]* | ?:[\\/]* ) continue;;
1608 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1609 esac
cristy98dddb52010-11-04 00:30:15 +00001610 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001611done
1612
1613# There might be people who depend on the old broken behavior: `$host'
1614# used to hold the argument of --host etc.
1615# FIXME: To remove some day.
1616build=$build_alias
1617host=$host_alias
1618target=$target_alias
1619
1620# FIXME: To remove some day.
1621if test "x$host_alias" != x; then
1622 if test "x$build_alias" = x; then
1623 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001624 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1625 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001626 elif test "x$build_alias" != "x$host_alias"; then
1627 cross_compiling=yes
1628 fi
1629fi
1630
1631ac_tool_prefix=
1632test -n "$host_alias" && ac_tool_prefix=$host_alias-
1633
1634test "$silent" = yes && exec 6>/dev/null
1635
1636
1637ac_pwd=`pwd` && test -n "$ac_pwd" &&
1638ac_ls_di=`ls -di .` &&
1639ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001640 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001641test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001642 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001643
1644
1645# Find the source files, if location was not specified.
1646if test -z "$srcdir"; then
1647 ac_srcdir_defaulted=yes
1648 # Try the directory containing this script, then the parent directory.
1649 ac_confdir=`$as_dirname -- "$as_myself" ||
1650$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1651 X"$as_myself" : 'X\(//\)[^/]' \| \
1652 X"$as_myself" : 'X\(//\)$' \| \
1653 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1654$as_echo X"$as_myself" |
1655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1656 s//\1/
1657 q
1658 }
1659 /^X\(\/\/\)[^/].*/{
1660 s//\1/
1661 q
1662 }
1663 /^X\(\/\/\)$/{
1664 s//\1/
1665 q
1666 }
1667 /^X\(\/\).*/{
1668 s//\1/
1669 q
1670 }
1671 s/.*/./; q'`
1672 srcdir=$ac_confdir
1673 if test ! -r "$srcdir/$ac_unique_file"; then
1674 srcdir=..
1675 fi
1676else
1677 ac_srcdir_defaulted=no
1678fi
1679if test ! -r "$srcdir/$ac_unique_file"; then
1680 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001681 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001682fi
1683ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1684ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001685 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001686 pwd)`
1687# When building in place, set srcdir=.
1688if test "$ac_abs_confdir" = "$ac_pwd"; then
1689 srcdir=.
1690fi
1691# Remove unnecessary trailing slashes from srcdir.
1692# Double slashes in file names in object file debugging info
1693# mess up M-x gdb in Emacs.
1694case $srcdir in
1695*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1696esac
1697for ac_var in $ac_precious_vars; do
1698 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1699 eval ac_env_${ac_var}_value=\$${ac_var}
1700 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1701 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1702done
1703
1704#
1705# Report the --help message.
1706#
1707if test "$ac_init_help" = "long"; then
1708 # Omit some internal or obsolete options to make the list less imposing.
1709 # This message is too long to be a string in the A/UX 3.1 sh.
1710 cat <<_ACEOF
cristyee742642011-02-26 02:49:59 +00001711\`configure' configures ImageMagick 6.6.8 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001712
1713Usage: $0 [OPTION]... [VAR=VALUE]...
1714
1715To assign environment variables (e.g., CC, CFLAGS...), specify them as
1716VAR=VALUE. See below for descriptions of some of the useful variables.
1717
1718Defaults for the options are specified in brackets.
1719
1720Configuration:
1721 -h, --help display this help and exit
1722 --help=short display options specific to this package
1723 --help=recursive display the short help of all the included packages
1724 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001725 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001726 --cache-file=FILE cache test results in FILE [disabled]
1727 -C, --config-cache alias for \`--cache-file=config.cache'
1728 -n, --no-create do not create output files
1729 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1730
1731Installation directories:
1732 --prefix=PREFIX install architecture-independent files in PREFIX
1733 [$ac_default_prefix]
1734 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1735 [PREFIX]
1736
1737By default, \`make install' will install all the files in
1738\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1739an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1740for instance \`--prefix=\$HOME'.
1741
1742For better control, use the options below.
1743
1744Fine tuning of the installation directories:
1745 --bindir=DIR user executables [EPREFIX/bin]
1746 --sbindir=DIR system admin executables [EPREFIX/sbin]
1747 --libexecdir=DIR program executables [EPREFIX/libexec]
1748 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1749 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1750 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1751 --libdir=DIR object code libraries [EPREFIX/lib]
1752 --includedir=DIR C header files [PREFIX/include]
1753 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1754 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1755 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1756 --infodir=DIR info documentation [DATAROOTDIR/info]
1757 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1758 --mandir=DIR man documentation [DATAROOTDIR/man]
1759 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1760 --htmldir=DIR html documentation [DOCDIR]
1761 --dvidir=DIR dvi documentation [DOCDIR]
1762 --pdfdir=DIR pdf documentation [DOCDIR]
1763 --psdir=DIR ps documentation [DOCDIR]
1764_ACEOF
1765
1766 cat <<\_ACEOF
1767
cristy73bd4a52010-10-05 11:24:23 +00001768Program names:
1769 --program-prefix=PREFIX prepend PREFIX to installed program names
1770 --program-suffix=SUFFIX append SUFFIX to installed program names
1771 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1772
cristy3ed852e2009-09-05 21:47:34 +00001773X features:
1774 --x-includes=DIR X include files are in DIR
1775 --x-libraries=DIR X library files are in DIR
1776
1777System types:
1778 --build=BUILD configure for building on BUILD [guessed]
1779 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1780 --target=TARGET configure for building compilers for TARGET [HOST]
1781_ACEOF
1782fi
1783
1784if test -n "$ac_init_help"; then
1785 case $ac_init_help in
cristyee742642011-02-26 02:49:59 +00001786 short | recursive ) echo "Configuration of ImageMagick 6.6.8:";;
cristy3ed852e2009-09-05 21:47:34 +00001787 esac
1788 cat <<\_ACEOF
1789
1790Optional Features:
1791 --disable-option-checking ignore unrecognized --enable/--with options
1792 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1793 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001794 --enable-silent-rules less verbose build output (undo: `make V=1')
1795 --disable-silent-rules verbose build output (undo: `make V=0')
1796 --disable-dependency-tracking speeds up one-time build
1797 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001798 --bounds-checking enable run-time bounds-checking
1799 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001800 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001802 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001803 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001804 --enable-shared[=PKGS] build shared libraries [default=yes]
1805 --enable-static[=PKGS] build static libraries [default=yes]
1806 --enable-fast-install[=PKGS]
1807 optimize for fast installation [default=yes]
1808 --disable-libtool-lock avoid locking (might break parallel builds)
1809 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001810 --enable-delegate-build look for delegate libraries in build directory
1811 --disable-deprecated exclude deprecated methods in MagickCore and
1812 MagickWand API's
1813 --disable-installed Formally install ImageMagick under PREFIX
1814 --disable-cipher disable enciphering and deciphering image pixels
1815 --enable-embeddable enable self-contained, embeddable,
1816 zero-configuration ImageMagick
1817 --enable-hdri accurately represent the wide range of intensity
1818 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001819 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001820 --enable-maintainer-mode enable make rules and dependencies not useful
1821 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001822 --enable-ccmalloc enable 'ccmalloc' memory debug support
1823 --enable-efence enable 'efence' memory debug support
1824 --enable-prof enable 'prof' profiling support
1825 --enable-gprof enable 'gprof' profiling support
1826 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001827 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001828
1829Optional Packages:
1830 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1831 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001832 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1833 --with-dmalloc use dmalloc, as in
1834 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001835 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001836 --with-pic try to use only PIC/non-PIC objects [default=use
1837 both]
cristyda16f162011-02-19 23:52:17 +00001838 --with-sysroot=DIR Search for dependent libraries within DIR
1839 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001840 --with-included-ltdl use the GNU ltdl sources included here
1841 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1842 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001843 --with-modules enable building dynamically loadable modules
1844 --with-method-prefix=PREFIX
1845 prefix MagickCore API methods
1846 --with-quantum-depth=DEPTH
1847 number of bits in a pixel quantum (default 16)
1848 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1849 memory)
1850 --with-frozenpaths freeze delegate paths
1851 --without-magick-plus-plus
1852 disable build/install of Magick++
1853 --with-perl enable build/install of PerlMagick
1854 --with-perl-options=OPTIONS
1855 options to pass on command-line when generating
1856 PerlMagick's build file
1857 --with-umem enable umem memory allocation library support
1858 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1859 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001860 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001861 --without-zlib disable ZLIB support
1862 --with-autotrace enable autotrace support
1863 --without-dps disable Display Postscript support
1864 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001865 --with-dejavu-font-dir=DIR
1866 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001867 --without-fftw disable FFTW support
1868 --without-fpx disable FlashPIX support
1869 --without-fontconfig disable fontconfig support
1870 --without-freetype disable Freetype support
1871 --without-gslib enable Ghostscript library support
1872 --with-fontpath=DIR prepend to default font search path
1873 --with-gs-font-dir=DIR Ghostscript font directory
1874 --without-gvc disable GVC support
1875 --without-jbig disable JBIG support
1876 --without-jpeg disable JPEG support
1877 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001878 --without-lcms disable lcms (v1.1X) support
1879 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001880 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001881 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001882 --without-openexr disable OpenEXR support
1883 --without-png disable PNG support
1884 --without-rsvg disable RSVG support
1885 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001886 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001887 --with-windows-font-dir=DIR
1888 directory containing MS-Windows fonts
1889 --without-wmf disable WMF support
1890 --without-xml disable XML support
1891
1892Some influential environment variables:
1893 CC C compiler command
1894 CFLAGS C compiler flags
1895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1896 nonstandard directory <lib dir>
1897 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001898 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001899 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001900 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001901 CXX C++ compiler command
1902 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001903 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001904 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001905 XMKMF Path to xmkmf, Makefile generator for X Window System
1906 AUTOTRACE_CFLAGS
1907 C compiler flags for AUTOTRACE, overriding pkg-config
1908 AUTOTRACE_LIBS
1909 linker flags for AUTOTRACE, overriding pkg-config
1910 FONTCONFIG_CFLAGS
1911 C compiler flags for FONTCONFIG, overriding pkg-config
1912 FONTCONFIG_LIBS
1913 linker flags for FONTCONFIG, overriding pkg-config
1914 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1915 GVC_LIBS linker flags for GVC, overriding pkg-config
1916 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1917 LQR_LIBS linker flags for LQR, overriding pkg-config
1918 OPENEXR_CFLAGS
1919 C compiler flags for OPENEXR, overriding pkg-config
1920 OPENEXR_LIBS
1921 linker flags for OPENEXR, overriding pkg-config
1922 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1923 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1924 CAIRO_SVG_CFLAGS
1925 C compiler flags for CAIRO_SVG, overriding pkg-config
1926 CAIRO_SVG_LIBS
1927 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001928
1929Use these variables to override the choices made by `configure' or to help
1930it to find libraries and programs with nonstandard names/locations.
1931
1932Report bugs to <http://www.imagemagick.org>.
1933_ACEOF
1934ac_status=$?
1935fi
1936
1937if test "$ac_init_help" = "recursive"; then
1938 # If there are subdirs, report their specific --help.
1939 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1940 test -d "$ac_dir" ||
1941 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1942 continue
1943 ac_builddir=.
1944
1945case "$ac_dir" in
1946.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1947*)
1948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1949 # A ".." for each directory in $ac_dir_suffix.
1950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1951 case $ac_top_builddir_sub in
1952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1954 esac ;;
1955esac
1956ac_abs_top_builddir=$ac_pwd
1957ac_abs_builddir=$ac_pwd$ac_dir_suffix
1958# for backward compatibility:
1959ac_top_builddir=$ac_top_build_prefix
1960
1961case $srcdir in
1962 .) # We are building in place.
1963 ac_srcdir=.
1964 ac_top_srcdir=$ac_top_builddir_sub
1965 ac_abs_top_srcdir=$ac_pwd ;;
1966 [\\/]* | ?:[\\/]* ) # Absolute name.
1967 ac_srcdir=$srcdir$ac_dir_suffix;
1968 ac_top_srcdir=$srcdir
1969 ac_abs_top_srcdir=$srcdir ;;
1970 *) # Relative name.
1971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1972 ac_top_srcdir=$ac_top_build_prefix$srcdir
1973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1974esac
1975ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1976
1977 cd "$ac_dir" || { ac_status=$?; continue; }
1978 # Check for guested configure.
1979 if test -f "$ac_srcdir/configure.gnu"; then
1980 echo &&
1981 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1982 elif test -f "$ac_srcdir/configure"; then
1983 echo &&
1984 $SHELL "$ac_srcdir/configure" --help=recursive
1985 else
1986 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1987 fi || ac_status=$?
1988 cd "$ac_pwd" || { ac_status=$?; break; }
1989 done
1990fi
1991
1992test -n "$ac_init_help" && exit $ac_status
1993if $ac_init_version; then
1994 cat <<\_ACEOF
cristyee742642011-02-26 02:49:59 +00001995ImageMagick configure 6.6.8
cristyda16f162011-02-19 23:52:17 +00001996generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00001997
cristy98dddb52010-11-04 00:30:15 +00001998Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001999This configure script is free software; the Free Software Foundation
2000gives unlimited permission to copy, distribute and modify it.
2001_ACEOF
2002 exit
2003fi
cristy8b350f62009-11-15 23:12:43 +00002004
2005## ------------------------ ##
2006## Autoconf initialization. ##
2007## ------------------------ ##
2008
2009# ac_fn_c_try_compile LINENO
2010# --------------------------
2011# Try to compile conftest.$ac_ext, and return whether this succeeded.
2012ac_fn_c_try_compile ()
2013{
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 rm -f conftest.$ac_objext
2016 if { { ac_try="$ac_compile"
2017case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020esac
2021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022$as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_compile") 2>conftest.err
2024 ac_status=$?
2025 if test -s conftest.err; then
2026 grep -v '^ *+' conftest.err >conftest.er1
2027 cat conftest.er1 >&5
2028 mv -f conftest.er1 conftest.err
2029 fi
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; } && {
2032 test -z "$ac_c_werror_flag" ||
2033 test ! -s conftest.err
2034 } && test -s conftest.$ac_objext; then :
2035 ac_retval=0
2036else
2037 $as_echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040 ac_retval=1
2041fi
cristyda16f162011-02-19 23:52:17 +00002042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002043 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002044
2045} # ac_fn_c_try_compile
2046
cristy95646052009-11-28 23:05:30 +00002047# ac_fn_c_try_cpp LINENO
2048# ----------------------
2049# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2050ac_fn_c_try_cpp ()
2051{
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if { { ac_try="$ac_cpp conftest.$ac_ext"
2054case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057esac
2058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059$as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2061 ac_status=$?
2062 if test -s conftest.err; then
2063 grep -v '^ *+' conftest.err >conftest.er1
2064 cat conftest.er1 >&5
2065 mv -f conftest.er1 conftest.err
2066 fi
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002068 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2070 test ! -s conftest.err
2071 }; then :
2072 ac_retval=0
2073else
2074 $as_echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 ac_retval=1
2078fi
cristyda16f162011-02-19 23:52:17 +00002079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002080 as_fn_set_status $ac_retval
2081
2082} # ac_fn_c_try_cpp
2083
cristy8b350f62009-11-15 23:12:43 +00002084# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2085# -------------------------------------------------------
2086# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2087# the include files in INCLUDES and setting the cache variable VAR
2088# accordingly.
2089ac_fn_c_check_header_mongrel ()
2090{
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002092 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002095if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002096 $as_echo_n "(cached) " >&6
2097fi
2098eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
2101else
2102 # Is the header compilable?
2103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2104$as_echo_n "checking $2 usability... " >&6; }
2105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h. */
2107$4
2108#include <$2>
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_header_compiler=yes
2112else
2113 ac_header_compiler=no
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2117$as_echo "$ac_header_compiler" >&6; }
2118
2119# Is the header present?
2120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2121$as_echo_n "checking $2 presence... " >&6; }
2122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h. */
2124#include <$2>
2125_ACEOF
2126if ac_fn_c_try_cpp "$LINENO"; then :
2127 ac_header_preproc=yes
2128else
2129 ac_header_preproc=no
2130fi
cristyda16f162011-02-19 23:52:17 +00002131rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2133$as_echo "$ac_header_preproc" >&6; }
2134
2135# So? What about this header?
2136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2137 yes:no: )
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2139$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2141$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142 ;;
2143 no:yes:* )
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2145$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2147$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2149$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2151$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2153$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002154( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002155## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002156## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002157 ) | sed "s/^/$as_me: WARNING: /" >&2
2158 ;;
2159esac
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002162if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002163 $as_echo_n "(cached) " >&6
2164else
2165 eval "$3=\$ac_header_compiler"
2166fi
2167eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169$as_echo "$ac_res" >&6; }
2170fi
cristyda16f162011-02-19 23:52:17 +00002171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002172
2173} # ac_fn_c_check_header_mongrel
2174
2175# ac_fn_c_try_run LINENO
2176# ----------------------
2177# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2178# that executables *can* be run.
2179ac_fn_c_try_run ()
2180{
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if { { ac_try="$ac_link"
2183case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186esac
2187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188$as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_link") 2>&5
2190 ac_status=$?
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2193 { { case "(($ac_try" in
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2196esac
2197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198$as_echo "$ac_try_echo"; } >&5
2199 (eval "$ac_try") 2>&5
2200 ac_status=$?
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; }; }; then :
2203 ac_retval=0
2204else
2205 $as_echo "$as_me: program exited with status $ac_status" >&5
2206 $as_echo "$as_me: failed program was:" >&5
2207sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 ac_retval=$ac_status
2210fi
2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002213 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002214
2215} # ac_fn_c_try_run
2216
2217# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2218# -------------------------------------------------------
2219# Tests whether HEADER exists and can be compiled using the include files in
2220# INCLUDES, setting the cache variable VAR accordingly.
2221ac_fn_c_check_header_compile ()
2222{
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002226if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002227 $as_echo_n "(cached) " >&6
2228else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231$4
2232#include <$2>
2233_ACEOF
2234if ac_fn_c_try_compile "$LINENO"; then :
2235 eval "$3=yes"
2236else
2237 eval "$3=no"
2238fi
2239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240fi
2241eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002245
2246} # ac_fn_c_check_header_compile
2247
cristya0b81c32010-01-22 02:54:33 +00002248# ac_fn_cxx_try_compile LINENO
2249# ----------------------------
2250# Try to compile conftest.$ac_ext, and return whether this succeeded.
2251ac_fn_cxx_try_compile ()
2252{
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 rm -f conftest.$ac_objext
2255 if { { ac_try="$ac_compile"
2256case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259esac
2260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261$as_echo "$ac_try_echo"; } >&5
2262 (eval "$ac_compile") 2>conftest.err
2263 ac_status=$?
2264 if test -s conftest.err; then
2265 grep -v '^ *+' conftest.err >conftest.er1
2266 cat conftest.er1 >&5
2267 mv -f conftest.er1 conftest.err
2268 fi
2269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270 test $ac_status = 0; } && {
2271 test -z "$ac_cxx_werror_flag" ||
2272 test ! -s conftest.err
2273 } && test -s conftest.$ac_objext; then :
2274 ac_retval=0
2275else
2276 $as_echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=1
2280fi
cristyda16f162011-02-19 23:52:17 +00002281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002282 as_fn_set_status $ac_retval
2283
2284} # ac_fn_cxx_try_compile
2285
cristy8b350f62009-11-15 23:12:43 +00002286# ac_fn_c_try_link LINENO
2287# -----------------------
2288# Try to link conftest.$ac_ext, and return whether this succeeded.
2289ac_fn_c_try_link ()
2290{
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 rm -f conftest.$ac_objext conftest$ac_exeext
2293 if { { ac_try="$ac_link"
2294case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2297esac
2298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299$as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_link") 2>conftest.err
2301 ac_status=$?
2302 if test -s conftest.err; then
2303 grep -v '^ *+' conftest.err >conftest.er1
2304 cat conftest.er1 >&5
2305 mv -f conftest.er1 conftest.err
2306 fi
2307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308 test $ac_status = 0; } && {
2309 test -z "$ac_c_werror_flag" ||
2310 test ! -s conftest.err
2311 } && test -s conftest$ac_exeext && {
2312 test "$cross_compiling" = yes ||
2313 $as_test_x conftest$ac_exeext
2314 }; then :
2315 ac_retval=0
2316else
2317 $as_echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 ac_retval=1
2321fi
2322 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2323 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2324 # interfere with the next link command; also delete a directory that is
2325 # left behind by Apple's compiler. We do this before executing the actions.
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002328 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002329
2330} # ac_fn_c_try_link
2331
cristy73bd4a52010-10-05 11:24:23 +00002332# ac_fn_c_check_func LINENO FUNC VAR
2333# ----------------------------------
2334# Tests whether FUNC exists, setting the cache variable VAR accordingly
2335ac_fn_c_check_func ()
2336{
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002340if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002341 $as_echo_n "(cached) " >&6
2342else
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344/* end confdefs.h. */
2345/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2347#define $2 innocuous_$2
2348
2349/* System header to define __stub macros and hopefully few prototypes,
2350 which can conflict with char $2 (); below.
2351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2352 <limits.h> exists even on freestanding compilers. */
2353
2354#ifdef __STDC__
2355# include <limits.h>
2356#else
2357# include <assert.h>
2358#endif
2359
2360#undef $2
2361
2362/* Override any GCC internal prototype to avoid an error.
2363 Use char because int might match the return type of a GCC
2364 builtin and then its argument prototype would still apply. */
2365#ifdef __cplusplus
2366extern "C"
2367#endif
2368char $2 ();
2369/* The GNU C library defines this for functions which it implements
2370 to always fail with ENOSYS. Some functions are actually named
2371 something starting with __ and the normal name is an alias. */
2372#if defined __stub_$2 || defined __stub___$2
2373choke me
2374#endif
2375
2376int
2377main ()
2378{
2379return $2 ();
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384if ac_fn_c_try_link "$LINENO"; then :
2385 eval "$3=yes"
2386else
2387 eval "$3=no"
2388fi
2389rm -f core conftest.err conftest.$ac_objext \
2390 conftest$ac_exeext conftest.$ac_ext
2391fi
2392eval ac_res=\$$3
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002395 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002396
2397} # ac_fn_c_check_func
2398
2399# ac_fn_cxx_try_cpp LINENO
2400# ------------------------
2401# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2402ac_fn_cxx_try_cpp ()
2403{
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 if { { ac_try="$ac_cpp conftest.$ac_ext"
2406case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409esac
2410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411$as_echo "$ac_try_echo"; } >&5
2412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2413 ac_status=$?
2414 if test -s conftest.err; then
2415 grep -v '^ *+' conftest.err >conftest.er1
2416 cat conftest.er1 >&5
2417 mv -f conftest.er1 conftest.err
2418 fi
2419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002420 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002421 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2422 test ! -s conftest.err
2423 }; then :
2424 ac_retval=0
2425else
2426 $as_echo "$as_me: failed program was:" >&5
2427sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 ac_retval=1
2430fi
cristyda16f162011-02-19 23:52:17 +00002431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002432 as_fn_set_status $ac_retval
2433
2434} # ac_fn_cxx_try_cpp
2435
2436# ac_fn_cxx_try_link LINENO
2437# -------------------------
2438# Try to link conftest.$ac_ext, and return whether this succeeded.
2439ac_fn_cxx_try_link ()
2440{
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 rm -f conftest.$ac_objext conftest$ac_exeext
2443 if { { ac_try="$ac_link"
2444case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447esac
2448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449$as_echo "$ac_try_echo"; } >&5
2450 (eval "$ac_link") 2>conftest.err
2451 ac_status=$?
2452 if test -s conftest.err; then
2453 grep -v '^ *+' conftest.err >conftest.er1
2454 cat conftest.er1 >&5
2455 mv -f conftest.er1 conftest.err
2456 fi
2457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2458 test $ac_status = 0; } && {
2459 test -z "$ac_cxx_werror_flag" ||
2460 test ! -s conftest.err
2461 } && test -s conftest$ac_exeext && {
2462 test "$cross_compiling" = yes ||
2463 $as_test_x conftest$ac_exeext
2464 }; then :
2465 ac_retval=0
2466else
2467 $as_echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 ac_retval=1
2471fi
2472 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2473 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2474 # interfere with the next link command; also delete a directory that is
2475 # left behind by Apple's compiler. We do this before executing the actions.
2476 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002478 as_fn_set_status $ac_retval
2479
2480} # ac_fn_cxx_try_link
2481
cristy98dddb52010-11-04 00:30:15 +00002482# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2483# ---------------------------------------------
2484# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2485# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002486ac_fn_c_check_decl ()
2487{
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002489 as_decl_name=`echo $2|sed 's/ *(.*//'`
2490 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2492$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002493if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002494 $as_echo_n "(cached) " >&6
2495else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497/* end confdefs.h. */
2498$4
2499int
2500main ()
2501{
cristy98dddb52010-11-04 00:30:15 +00002502#ifndef $as_decl_name
2503#ifdef __cplusplus
2504 (void) $as_decl_use;
2505#else
2506 (void) $as_decl_name;
2507#endif
cristy73bd4a52010-10-05 11:24:23 +00002508#endif
2509
2510 ;
2511 return 0;
2512}
2513_ACEOF
2514if ac_fn_c_try_compile "$LINENO"; then :
2515 eval "$3=yes"
2516else
2517 eval "$3=no"
2518fi
2519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520fi
2521eval ac_res=\$$3
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2523$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002525
2526} # ac_fn_c_check_decl
2527
cristy8b350f62009-11-15 23:12:43 +00002528# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2529# -------------------------------------------
2530# Tests whether TYPE exists after having included INCLUDES, setting cache
2531# variable VAR accordingly.
2532ac_fn_c_check_type ()
2533{
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002537if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002538 $as_echo_n "(cached) " >&6
2539else
2540 eval "$3=no"
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542/* end confdefs.h. */
2543$4
2544int
2545main ()
2546{
2547if (sizeof ($2))
2548 return 0;
2549 ;
2550 return 0;
2551}
2552_ACEOF
2553if ac_fn_c_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555/* end confdefs.h. */
2556$4
2557int
2558main ()
2559{
2560if (sizeof (($2)))
2561 return 0;
2562 ;
2563 return 0;
2564}
2565_ACEOF
2566if ac_fn_c_try_compile "$LINENO"; then :
2567
2568else
2569 eval "$3=yes"
2570fi
2571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575eval ac_res=\$$3
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002579
2580} # ac_fn_c_check_type
2581
cristy92703d82010-04-26 00:18:18 +00002582# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2583# ----------------------------------------------------
2584# Tries to find if the field MEMBER exists in type AGGR, after including
2585# INCLUDES, setting cache variable VAR accordingly.
2586ac_fn_c_check_member ()
2587{
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2590$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002591if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002592 $as_echo_n "(cached) " >&6
2593else
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595/* end confdefs.h. */
2596$5
2597int
2598main ()
2599{
2600static $2 ac_aggr;
2601if (ac_aggr.$3)
2602return 0;
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607if ac_fn_c_try_compile "$LINENO"; then :
2608 eval "$4=yes"
2609else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h. */
2612$5
2613int
2614main ()
2615{
2616static $2 ac_aggr;
2617if (sizeof ac_aggr.$3)
2618return 0;
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623if ac_fn_c_try_compile "$LINENO"; then :
2624 eval "$4=yes"
2625else
2626 eval "$4=no"
2627fi
2628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632eval ac_res=\$$4
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002636
2637} # ac_fn_c_check_member
2638
cristy8b350f62009-11-15 23:12:43 +00002639# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2640# --------------------------------------------
2641# Tries to find the compile-time value of EXPR in a program that includes
2642# INCLUDES, setting VAR accordingly. Returns whether the value could be
2643# computed
2644ac_fn_c_compute_int ()
2645{
2646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647 if test "$cross_compiling" = yes; then
2648 # Depending upon the size, compute the lo and hi bounds.
2649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h. */
2651$4
2652int
2653main ()
2654{
2655static int test_array [1 - 2 * !(($2) >= 0)];
2656test_array [0] = 0
2657
2658 ;
2659 return 0;
2660}
2661_ACEOF
2662if ac_fn_c_try_compile "$LINENO"; then :
2663 ac_lo=0 ac_mid=0
2664 while :; do
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$4
2668int
2669main ()
2670{
2671static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2672test_array [0] = 0
2673
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679 ac_hi=$ac_mid; break
2680else
2681 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2682 if test $ac_lo -le $ac_mid; then
2683 ac_lo= ac_hi=
2684 break
2685 fi
2686 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2687fi
2688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 done
2690else
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692/* end confdefs.h. */
2693$4
2694int
2695main ()
2696{
2697static int test_array [1 - 2 * !(($2) < 0)];
2698test_array [0] = 0
2699
2700 ;
2701 return 0;
2702}
2703_ACEOF
2704if ac_fn_c_try_compile "$LINENO"; then :
2705 ac_hi=-1 ac_mid=-1
2706 while :; do
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708/* end confdefs.h. */
2709$4
2710int
2711main ()
2712{
2713static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2714test_array [0] = 0
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720if ac_fn_c_try_compile "$LINENO"; then :
2721 ac_lo=$ac_mid; break
2722else
2723 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2724 if test $ac_mid -le $ac_hi; then
2725 ac_lo= ac_hi=
2726 break
2727 fi
2728 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2729fi
2730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 done
2732else
2733 ac_lo= ac_hi=
2734fi
2735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738# Binary search between lo and hi bounds.
2739while test "x$ac_lo" != "x$ac_hi"; do
2740 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742/* end confdefs.h. */
2743$4
2744int
2745main ()
2746{
2747static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2748test_array [0] = 0
2749
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754if ac_fn_c_try_compile "$LINENO"; then :
2755 ac_hi=$ac_mid
2756else
2757 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2758fi
2759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760done
2761case $ac_lo in #((
2762?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2763'') ac_retval=1 ;;
2764esac
2765 else
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767/* end confdefs.h. */
2768$4
2769static long int longval () { return $2; }
2770static unsigned long int ulongval () { return $2; }
2771#include <stdio.h>
2772#include <stdlib.h>
2773int
2774main ()
2775{
2776
2777 FILE *f = fopen ("conftest.val", "w");
2778 if (! f)
2779 return 1;
2780 if (($2) < 0)
2781 {
2782 long int i = longval ();
2783 if (i != ($2))
2784 return 1;
2785 fprintf (f, "%ld", i);
2786 }
2787 else
2788 {
2789 unsigned long int i = ulongval ();
2790 if (i != ($2))
2791 return 1;
2792 fprintf (f, "%lu", i);
2793 }
2794 /* Do not output a trailing newline, as this causes \r\n confusion
2795 on some platforms. */
2796 return ferror (f) || fclose (f) != 0;
2797
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802if ac_fn_c_try_run "$LINENO"; then :
2803 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2804else
2805 ac_retval=1
2806fi
2807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2808 conftest.$ac_objext conftest.beam conftest.$ac_ext
2809rm -f conftest.val
2810
2811 fi
cristyda16f162011-02-19 23:52:17 +00002812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002813 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002814
2815} # ac_fn_c_compute_int
2816
2817# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2818# ---------------------------------------------------------
2819# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2820# the include files in INCLUDES and setting the cache variable VAR
2821# accordingly.
2822ac_fn_cxx_check_header_mongrel ()
2823{
2824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002825 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2827$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002828if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002829 $as_echo_n "(cached) " >&6
2830fi
2831eval ac_res=\$$3
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2833$as_echo "$ac_res" >&6; }
2834else
2835 # Is the header compilable?
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2837$as_echo_n "checking $2 usability... " >&6; }
2838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840$4
2841#include <$2>
2842_ACEOF
2843if ac_fn_cxx_try_compile "$LINENO"; then :
2844 ac_header_compiler=yes
2845else
2846 ac_header_compiler=no
2847fi
2848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2850$as_echo "$ac_header_compiler" >&6; }
2851
2852# Is the header present?
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2854$as_echo_n "checking $2 presence... " >&6; }
2855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856/* end confdefs.h. */
2857#include <$2>
2858_ACEOF
2859if ac_fn_cxx_try_cpp "$LINENO"; then :
2860 ac_header_preproc=yes
2861else
2862 ac_header_preproc=no
2863fi
cristyda16f162011-02-19 23:52:17 +00002864rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2866$as_echo "$ac_header_preproc" >&6; }
2867
2868# So? What about this header?
2869case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2870 yes:no: )
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2872$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2875 ;;
2876 no:yes:* )
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2878$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2880$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2882$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2884$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2886$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002887( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002888## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002889## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002890 ) | sed "s/^/$as_me: WARNING: /" >&2
2891 ;;
2892esac
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2894$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002895if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002896 $as_echo_n "(cached) " >&6
2897else
2898 eval "$3=\$ac_header_compiler"
2899fi
2900eval ac_res=\$$3
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2902$as_echo "$ac_res" >&6; }
2903fi
cristyda16f162011-02-19 23:52:17 +00002904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002905
2906} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002907cat >config.log <<_ACEOF
2908This file contains any messages produced by compilers while
2909running configure, to aid debugging if configure makes a mistake.
2910
cristyee742642011-02-26 02:49:59 +00002911It was created by ImageMagick $as_me 6.6.8, which was
cristyda16f162011-02-19 23:52:17 +00002912generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002913
2914 $ $0 $@
2915
2916_ACEOF
2917exec 5>>config.log
2918{
2919cat <<_ASUNAME
2920## --------- ##
2921## Platform. ##
2922## --------- ##
2923
2924hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2925uname -m = `(uname -m) 2>/dev/null || echo unknown`
2926uname -r = `(uname -r) 2>/dev/null || echo unknown`
2927uname -s = `(uname -s) 2>/dev/null || echo unknown`
2928uname -v = `(uname -v) 2>/dev/null || echo unknown`
2929
2930/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2931/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2932
2933/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2934/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2935/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2936/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2937/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2938/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2939/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2940
2941_ASUNAME
2942
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002948 $as_echo "PATH: $as_dir"
2949 done
cristy3ed852e2009-09-05 21:47:34 +00002950IFS=$as_save_IFS
2951
2952} >&5
2953
2954cat >&5 <<_ACEOF
2955
2956
2957## ----------- ##
2958## Core tests. ##
2959## ----------- ##
2960
2961_ACEOF
2962
2963
2964# Keep a trace of the command line.
2965# Strip out --no-create and --no-recursion so they do not pile up.
2966# Strip out --silent because we don't want to record it for future runs.
2967# Also quote any args containing shell meta-characters.
2968# Make two passes to allow for proper duplicate-argument suppression.
2969ac_configure_args=
2970ac_configure_args0=
2971ac_configure_args1=
2972ac_must_keep_next=false
2973for ac_pass in 1 2
2974do
2975 for ac_arg
2976 do
2977 case $ac_arg in
2978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2980 | -silent | --silent | --silen | --sile | --sil)
2981 continue ;;
2982 *\'*)
2983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2984 esac
2985 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002987 2)
cristy8b350f62009-11-15 23:12:43 +00002988 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002989 if test $ac_must_keep_next = true; then
2990 ac_must_keep_next=false # Got value, back to normal.
2991 else
2992 case $ac_arg in
2993 *=* | --config-cache | -C | -disable-* | --disable-* \
2994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2996 | -with-* | --with-* | -without-* | --without-* | --x)
2997 case "$ac_configure_args0 " in
2998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2999 esac
3000 ;;
3001 -* ) ac_must_keep_next=true ;;
3002 esac
3003 fi
cristy8b350f62009-11-15 23:12:43 +00003004 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003005 ;;
3006 esac
3007 done
3008done
cristy8b350f62009-11-15 23:12:43 +00003009{ ac_configure_args0=; unset ac_configure_args0;}
3010{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003011
3012# When interrupted or exit'd, cleanup temporary files, and complete
3013# config.log. We remove comments because anyway the quotes in there
3014# would cause problems or look ugly.
3015# WARNING: Use '\'' to represent an apostrophe within the trap.
3016# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3017trap 'exit_status=$?
3018 # Save into config.log some information that might help in debugging.
3019 {
3020 echo
3021
cristy98dddb52010-11-04 00:30:15 +00003022 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003023## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003024## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003025 echo
3026 # The following way of writing the cache mishandles newlines in values,
3027(
3028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3029 eval ac_val=\$$ac_var
3030 case $ac_val in #(
3031 *${as_nl}*)
3032 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003034$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3035 esac
3036 case $ac_var in #(
3037 _ | IFS | as_nl) ;; #(
3038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003039 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003040 esac ;;
3041 esac
3042 done
3043 (set) 2>&1 |
3044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3045 *${as_nl}ac_space=\ *)
3046 sed -n \
3047 "s/'\''/'\''\\\\'\'''\''/g;
3048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3049 ;; #(
3050 *)
3051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3052 ;;
3053 esac |
3054 sort
3055)
3056 echo
3057
cristy98dddb52010-11-04 00:30:15 +00003058 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003059## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003060## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003061 echo
3062 for ac_var in $ac_subst_vars
3063 do
3064 eval ac_val=\$$ac_var
3065 case $ac_val in
3066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3067 esac
3068 $as_echo "$ac_var='\''$ac_val'\''"
3069 done | sort
3070 echo
3071
3072 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003073 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003074## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003075## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003076 echo
3077 for ac_var in $ac_subst_files
3078 do
3079 eval ac_val=\$$ac_var
3080 case $ac_val in
3081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3082 esac
3083 $as_echo "$ac_var='\''$ac_val'\''"
3084 done | sort
3085 echo
3086 fi
3087
3088 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003089 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003090## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003091## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003092 echo
3093 cat confdefs.h
3094 echo
3095 fi
3096 test "$ac_signal" != 0 &&
3097 $as_echo "$as_me: caught signal $ac_signal"
3098 $as_echo "$as_me: exit $exit_status"
3099 } >&5
3100 rm -f core *.core core.conftest.* &&
3101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3102 exit $exit_status
3103' 0
3104for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003106done
3107ac_signal=0
3108
3109# confdefs.h avoids OS command line length limits that DEFS can exceed.
3110rm -f -r conftest* confdefs.h
3111
cristy8b350f62009-11-15 23:12:43 +00003112$as_echo "/* confdefs.h */" > confdefs.h
3113
cristy3ed852e2009-09-05 21:47:34 +00003114# Predefined preprocessor variables.
3115
3116cat >>confdefs.h <<_ACEOF
3117#define PACKAGE_NAME "$PACKAGE_NAME"
3118_ACEOF
3119
cristy3ed852e2009-09-05 21:47:34 +00003120cat >>confdefs.h <<_ACEOF
3121#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3122_ACEOF
3123
cristy3ed852e2009-09-05 21:47:34 +00003124cat >>confdefs.h <<_ACEOF
3125#define PACKAGE_VERSION "$PACKAGE_VERSION"
3126_ACEOF
3127
cristy3ed852e2009-09-05 21:47:34 +00003128cat >>confdefs.h <<_ACEOF
3129#define PACKAGE_STRING "$PACKAGE_STRING"
3130_ACEOF
3131
cristy3ed852e2009-09-05 21:47:34 +00003132cat >>confdefs.h <<_ACEOF
3133#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3134_ACEOF
3135
cristy8b350f62009-11-15 23:12:43 +00003136cat >>confdefs.h <<_ACEOF
3137#define PACKAGE_URL "$PACKAGE_URL"
3138_ACEOF
3139
cristy3ed852e2009-09-05 21:47:34 +00003140
3141# Let the site file select an alternate cache file if it wants to.
3142# Prefer an explicitly selected file to automatically selected ones.
3143ac_site_file1=NONE
3144ac_site_file2=NONE
3145if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003146 # We do not want a PATH search for config.site.
3147 case $CONFIG_SITE in #((
3148 -*) ac_site_file1=./$CONFIG_SITE;;
3149 */*) ac_site_file1=$CONFIG_SITE;;
3150 *) ac_site_file1=./$CONFIG_SITE;;
3151 esac
cristy3ed852e2009-09-05 21:47:34 +00003152elif test "x$prefix" != xNONE; then
3153 ac_site_file1=$prefix/share/config.site
3154 ac_site_file2=$prefix/etc/config.site
3155else
3156 ac_site_file1=$ac_default_prefix/share/config.site
3157 ac_site_file2=$ac_default_prefix/etc/config.site
3158fi
3159for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3160do
3161 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003164$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3165 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003166 . "$ac_site_file" \
3167 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169as_fn_error $? "failed to load site script $ac_site_file
3170See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003171 fi
3172done
3173
3174if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003175 # Some versions of bash will fail to source /dev/null (special files
3176 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003179$as_echo "$as_me: loading cache $cache_file" >&6;}
3180 case $cache_file in
3181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3182 *) . "./$cache_file";;
3183 esac
3184 fi
3185else
cristy8b350f62009-11-15 23:12:43 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: creating cache $cache_file" >&6;}
3188 >$cache_file
3189fi
3190
cristycd4c5312009-11-22 01:19:08 +00003191as_fn_append ac_header_list " stdlib.h"
3192as_fn_append ac_header_list " unistd.h"
3193as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003194# Check that the precious variables saved in the cache have kept the same
3195# value.
3196ac_cache_corrupted=false
3197for ac_var in $ac_precious_vars; do
3198 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3199 eval ac_new_set=\$ac_env_${ac_var}_set
3200 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3201 eval ac_new_val=\$ac_env_${ac_var}_value
3202 case $ac_old_set,$ac_new_set in
3203 set,)
cristy8b350f62009-11-15 23:12:43 +00003204 { $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 +00003205$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3206 ac_cache_corrupted=: ;;
3207 ,set)
cristy8b350f62009-11-15 23:12:43 +00003208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003209$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3210 ac_cache_corrupted=: ;;
3211 ,);;
3212 *)
3213 if test "x$ac_old_val" != "x$ac_new_val"; then
3214 # differences in whitespace do not lead to failure.
3215 ac_old_val_w=`echo x $ac_old_val`
3216 ac_new_val_w=`echo x $ac_new_val`
3217 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003219$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3220 ac_cache_corrupted=:
3221 else
cristy8b350f62009-11-15 23:12:43 +00003222 { $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 +00003223$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3224 eval $ac_var=\$ac_old_val
3225 fi
cristy8b350f62009-11-15 23:12:43 +00003226 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003227$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003228 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003229$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3230 fi;;
3231 esac
3232 # Pass precious variables to config.status.
3233 if test "$ac_new_set" = set; then
3234 case $ac_new_val in
3235 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3236 *) ac_arg=$ac_var=$ac_new_val ;;
3237 esac
3238 case " $ac_configure_args " in
3239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003240 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003241 esac
3242 fi
3243done
3244if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003248$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003249 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003250fi
cristy8b350f62009-11-15 23:12:43 +00003251## -------------------- ##
3252## Main body of script. ##
3253## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003254
3255ac_ext=c
3256ac_cpp='$CPP $CPPFLAGS'
3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260
3261
3262
3263ac_aux_dir=
3264for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003265 if test -f "$ac_dir/install-sh"; then
3266 ac_aux_dir=$ac_dir
3267 ac_install_sh="$ac_aux_dir/install-sh -c"
3268 break
3269 elif test -f "$ac_dir/install.sh"; then
3270 ac_aux_dir=$ac_dir
3271 ac_install_sh="$ac_aux_dir/install.sh -c"
3272 break
3273 elif test -f "$ac_dir/shtool"; then
3274 ac_aux_dir=$ac_dir
3275 ac_install_sh="$ac_aux_dir/shtool install -c"
3276 break
3277 fi
cristy3ed852e2009-09-05 21:47:34 +00003278done
3279if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003280 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003281fi
3282
3283# These three variables are undocumented and unsupported,
3284# and are intended to be withdrawn in a future Autoconf release.
3285# They can cause serious problems if a builder's source tree is in a directory
3286# whose full name contains unusual characters.
3287ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3288ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3289ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3290
3291
3292
3293
3294ac_config_headers="$ac_config_headers config/config.h"
3295
cristy24fc1fe2010-10-23 21:13:01 +00003296
cristy73bd4a52010-10-05 11:24:23 +00003297ac_config_commands="$ac_config_commands magick/magick-config.h"
3298
cristy430a7312010-01-21 20:44:04 +00003299ac_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 +00003300
3301
3302#
3303# Save initial user-tunable values
3304#
3305USER_LIBS=$LIBS
3306for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3307 eval isset=\${$var+set}
3308 if test "$isset" = 'set'; then
3309 eval val=$`echo $var`
3310 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3311 fi
3312done
3313
3314
3315CONFIGURE_ARGS="$0 ${ac_configure_args}"
3316
3317
3318# Source file containing package/library versioning information.
3319. ${srcdir}/version.sh
3320
cristy15a88782010-01-31 23:24:49 +00003321echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003322# Make sure we can run config.sub.
3323$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003324 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003325
cristy8b350f62009-11-15 23:12:43 +00003326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003327$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003328if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003329 $as_echo_n "(cached) " >&6
3330else
3331 ac_build_alias=$build_alias
3332test "x$ac_build_alias" = x &&
3333 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3334test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003335 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003336ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003337 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003338
3339fi
cristy8b350f62009-11-15 23:12:43 +00003340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003341$as_echo "$ac_cv_build" >&6; }
3342case $ac_cv_build in
3343*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003344*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003345esac
3346build=$ac_cv_build
3347ac_save_IFS=$IFS; IFS='-'
3348set x $ac_cv_build
3349shift
3350build_cpu=$1
3351build_vendor=$2
3352shift; shift
3353# Remember, the first character of IFS is used to create $*,
3354# except with old shells:
3355build_os=$*
3356IFS=$ac_save_IFS
3357case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3358
3359
cristy8b350f62009-11-15 23:12:43 +00003360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003362if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003363 $as_echo_n "(cached) " >&6
3364else
3365 if test "x$host_alias" = x; then
3366 ac_cv_host=$ac_cv_build
3367else
3368 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003370fi
3371
3372fi
cristy8b350f62009-11-15 23:12:43 +00003373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003374$as_echo "$ac_cv_host" >&6; }
3375case $ac_cv_host in
3376*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003377*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003378esac
3379host=$ac_cv_host
3380ac_save_IFS=$IFS; IFS='-'
3381set x $ac_cv_host
3382shift
3383host_cpu=$1
3384host_vendor=$2
3385shift; shift
3386# Remember, the first character of IFS is used to create $*,
3387# except with old shells:
3388host_os=$*
3389IFS=$ac_save_IFS
3390case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3391
3392
cristy8b350f62009-11-15 23:12:43 +00003393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003394$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003395if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003396 $as_echo_n "(cached) " >&6
3397else
3398 if test "x$target_alias" = x; then
3399 ac_cv_target=$ac_cv_host
3400else
3401 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003402 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003403fi
3404
3405fi
cristy8b350f62009-11-15 23:12:43 +00003406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003407$as_echo "$ac_cv_target" >&6; }
3408case $ac_cv_target in
3409*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003410*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003411esac
3412target=$ac_cv_target
3413ac_save_IFS=$IFS; IFS='-'
3414set x $ac_cv_target
3415shift
3416target_cpu=$1
3417target_vendor=$2
3418shift; shift
3419# Remember, the first character of IFS is used to create $*,
3420# except with old shells:
3421target_os=$*
3422IFS=$ac_save_IFS
3423case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3424
3425
3426# The aliases save the names the user supplied, while $host etc.
3427# will get canonicalized.
3428test -n "$target_alias" &&
3429 test "$program_prefix$program_suffix$program_transform_name" = \
3430 NONENONEs,x,x, &&
3431 program_prefix=${target_alias}-
3432
cristy837d6dc2010-02-27 01:16:57 +00003433
3434
3435
3436
cristy3225a072010-04-17 01:47:28 +00003437MAGICK_TARGET_CPU=$target_cpu
3438
3439
3440MAGICK_TARGET_VENDOR=$target_vendor
3441
3442
3443MAGICK_TARGET_OS=$target_os
3444
3445
cristy3ed852e2009-09-05 21:47:34 +00003446# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003447MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3448
3449MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3450
cristy3ed852e2009-09-05 21:47:34 +00003451
3452
3453# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3455$as_echo_n "checking whether build environment is sane... " >&6; }
3456# Just in case
3457sleep 1
3458echo timestamp > conftest.file
3459# Reject unsafe characters in $srcdir or the absolute working directory
3460# name. Accept space and tab only in the latter.
3461am_lf='
3462'
3463case `pwd` in
3464 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003465 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003466esac
3467case $srcdir in
3468 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003469 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003470esac
cristy3ed852e2009-09-05 21:47:34 +00003471
cristy73bd4a52010-10-05 11:24:23 +00003472# Do `set' in a subshell so we don't clobber the current shell's
3473# arguments. Must try -L first in case configure is actually a
3474# symlink; some systems play weird games with the mod time of symlinks
3475# (eg FreeBSD returns the mod time of the symlink's containing
3476# directory).
3477if (
3478 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3479 if test "$*" = "X"; then
3480 # -L didn't work.
3481 set X `ls -t "$srcdir/configure" conftest.file`
3482 fi
3483 rm -f conftest.file
3484 if test "$*" != "X $srcdir/configure conftest.file" \
3485 && test "$*" != "X conftest.file $srcdir/configure"; then
3486
3487 # If neither matched, then we have a broken ls. This can happen
3488 # if, for instance, CONFIG_SHELL is bash and it inherits a
3489 # broken ls alias from the environment. This has actually
3490 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003491 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003492alias in your environment" "$LINENO" 5
3493 fi
3494
3495 test "$2" = conftest.file
3496 )
3497then
3498 # Ok.
3499 :
3500else
cristy98dddb52010-11-04 00:30:15 +00003501 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003502Check your system clock" "$LINENO" 5
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3505$as_echo "yes" >&6; }
3506
3507am__api_version='1.11'
3508
3509# Find a good install program. We prefer a C program (faster),
3510# so one script is as good as another. But avoid the broken or
3511# incompatible versions:
3512# SysV /etc/install, /usr/sbin/install
3513# SunOS /usr/etc/install
3514# IRIX /sbin/install
3515# AIX /bin/install
3516# AmigaOS /C/install, which installs bootblocks on floppy discs
3517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3518# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3520# OS/2's system install, which has a completely different semantic
3521# ./install, which can be erroneously created by make from ./install.sh.
3522# Reject install programs that cannot install multiple files.
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3524$as_echo_n "checking for a BSD-compatible install... " >&6; }
3525if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003526if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003527 $as_echo_n "(cached) " >&6
3528else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 # Account for people who put trailing slashes in PATH elements.
3535case $as_dir/ in #((
3536 ./ | .// | /[cC]/* | \
3537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3538 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3539 /usr/ucb/* ) ;;
3540 *)
3541 # OSF1 and SCO ODT 3.0 have their own names for install.
3542 # Don't use installbsd from OSF since it installs stuff as root
3543 # by default.
3544 for ac_prog in ginstall scoinst install; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3547 if test $ac_prog = install &&
3548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3549 # AIX install. It has an incompatible calling convention.
3550 :
3551 elif test $ac_prog = install &&
3552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3553 # program-specific install script used by HP pwplus--don't use.
3554 :
3555 else
3556 rm -rf conftest.one conftest.two conftest.dir
3557 echo one > conftest.one
3558 echo two > conftest.two
3559 mkdir conftest.dir
3560 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3561 test -s conftest.one && test -s conftest.two &&
3562 test -s conftest.dir/conftest.one &&
3563 test -s conftest.dir/conftest.two
3564 then
3565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3566 break 3
3567 fi
3568 fi
3569 fi
3570 done
3571 done
3572 ;;
3573esac
3574
3575 done
3576IFS=$as_save_IFS
3577
3578rm -rf conftest.one conftest.two conftest.dir
3579
3580fi
3581 if test "${ac_cv_path_install+set}" = set; then
3582 INSTALL=$ac_cv_path_install
3583 else
3584 # As a last resort, use the slow shell script. Don't cache a
3585 # value for INSTALL within a source directory, because that will
3586 # break other packages using the cache if that directory is
3587 # removed, or if the value is a relative name.
3588 INSTALL=$ac_install_sh
3589 fi
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3592$as_echo "$INSTALL" >&6; }
3593
3594# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3595# It thinks the first close brace ends the variable substitution.
3596test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3597
3598test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3599
3600test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3601
3602test "$program_prefix" != NONE &&
3603 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3604# Use a double $ so make ignores it.
3605test "$program_suffix" != NONE &&
3606 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3607# Double any \ or $.
3608# By default was `s,x,x', remove it if useless.
3609ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3610program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3611
3612# expand $ac_aux_dir to an absolute path
3613am_aux_dir=`cd $ac_aux_dir && pwd`
3614
3615if test x"${MISSING+set}" != xset; then
3616 case $am_aux_dir in
3617 *\ * | *\ *)
3618 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3619 *)
3620 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3621 esac
3622fi
3623# Use eval to expand $SHELL
3624if eval "$MISSING --run true"; then
3625 am_missing_run="$MISSING --run "
3626else
3627 am_missing_run=
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3629$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3630fi
3631
3632if test x"${install_sh}" != xset; then
3633 case $am_aux_dir in
3634 *\ * | *\ *)
3635 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3636 *)
3637 install_sh="\${SHELL} $am_aux_dir/install-sh"
3638 esac
3639fi
3640
3641# Installed binaries are usually stripped using `strip' when the user
3642# run `make install-strip'. However `strip' might not be the right
3643# tool to use in cross-compilation environments, therefore Automake
3644# will honor the `STRIP' environment variable to overrule this program.
3645if test "$cross_compiling" != no; then
3646 if test -n "$ac_tool_prefix"; then
3647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3648set dummy ${ac_tool_prefix}strip; ac_word=$2
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003651if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003652 $as_echo_n "(cached) " >&6
3653else
3654 if test -n "$STRIP"; then
3655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3656else
3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH
3659do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668done
3669 done
3670IFS=$as_save_IFS
3671
3672fi
3673fi
3674STRIP=$ac_cv_prog_STRIP
3675if test -n "$STRIP"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3677$as_echo "$STRIP" >&6; }
3678else
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680$as_echo "no" >&6; }
3681fi
3682
3683
3684fi
3685if test -z "$ac_cv_prog_STRIP"; then
3686 ac_ct_STRIP=$STRIP
3687 # Extract the first word of "strip", so it can be a program name with args.
3688set dummy strip; ac_word=$2
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003691if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003692 $as_echo_n "(cached) " >&6
3693else
3694 if test -n "$ac_ct_STRIP"; then
3695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3696else
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_ac_ct_STRIP="strip"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708done
3709 done
3710IFS=$as_save_IFS
3711
3712fi
3713fi
3714ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3715if test -n "$ac_ct_STRIP"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3717$as_echo "$ac_ct_STRIP" >&6; }
3718else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720$as_echo "no" >&6; }
3721fi
3722
3723 if test "x$ac_ct_STRIP" = x; then
3724 STRIP=":"
3725 else
3726 case $cross_compiling:$ac_tool_warned in
3727yes:)
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3730ac_tool_warned=yes ;;
3731esac
3732 STRIP=$ac_ct_STRIP
3733 fi
3734else
3735 STRIP="$ac_cv_prog_STRIP"
3736fi
3737
3738fi
3739INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3740
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3742$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3743if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003744 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003745 $as_echo_n "(cached) " >&6
3746else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in mkdir gmkdir; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3755 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3756 'mkdir (GNU coreutils) '* | \
3757 'mkdir (coreutils) '* | \
3758 'mkdir (fileutils) '4.1*)
3759 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3760 break 3;;
3761 esac
3762 done
3763 done
3764 done
3765IFS=$as_save_IFS
3766
3767fi
3768
3769 test -d ./--version && rmdir ./--version
3770 if test "${ac_cv_path_mkdir+set}" = set; then
3771 MKDIR_P="$ac_cv_path_mkdir -p"
3772 else
3773 # As a last resort, use the slow shell script. Don't cache a
3774 # value for MKDIR_P within a source directory, because that will
3775 # break other packages using the cache if that directory is
3776 # removed, or if the value is a relative name.
3777 MKDIR_P="$ac_install_sh -d"
3778 fi
3779fi
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3781$as_echo "$MKDIR_P" >&6; }
3782
3783mkdir_p="$MKDIR_P"
3784case $mkdir_p in
3785 [\\/$]* | ?:[\\/]*) ;;
3786 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3787esac
3788
3789for ac_prog in gawk mawk nawk awk
3790do
3791 # Extract the first word of "$ac_prog", so it can be a program name with args.
3792set dummy $ac_prog; ac_word=$2
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003795if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003796 $as_echo_n "(cached) " >&6
3797else
3798 if test -n "$AWK"; then
3799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 ac_cv_prog_AWK="$ac_prog"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812done
3813 done
3814IFS=$as_save_IFS
3815
3816fi
3817fi
3818AWK=$ac_cv_prog_AWK
3819if test -n "$AWK"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3821$as_echo "$AWK" >&6; }
3822else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
3826
3827
3828 test -n "$AWK" && break
3829done
3830
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3833set x ${MAKE-make}
3834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003835if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003836 $as_echo_n "(cached) " >&6
3837else
3838 cat >conftest.make <<\_ACEOF
3839SHELL = /bin/sh
3840all:
3841 @echo '@@@%%%=$(MAKE)=@@@%%%'
3842_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003843# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003844case `${MAKE-make} -f conftest.make 2>/dev/null` in
3845 *@@@%%%=?*=@@@%%%*)
3846 eval ac_cv_prog_make_${ac_make}_set=yes;;
3847 *)
3848 eval ac_cv_prog_make_${ac_make}_set=no;;
3849esac
3850rm -f conftest.make
3851fi
3852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854$as_echo "yes" >&6; }
3855 SET_MAKE=
3856else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859 SET_MAKE="MAKE=${MAKE-make}"
3860fi
3861
3862rm -rf .tst 2>/dev/null
3863mkdir .tst 2>/dev/null
3864if test -d .tst; then
3865 am__leading_dot=.
3866else
3867 am__leading_dot=_
3868fi
3869rmdir .tst 2>/dev/null
3870
3871if test "`cd $srcdir && pwd`" != "`pwd`"; then
3872 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3873 # is not polluted with repeated "-I."
3874 am__isrc=' -I$(srcdir)'
3875 # test to see if srcdir already configured
3876 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003877 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003878 fi
3879fi
3880
3881# test whether we have cygpath
3882if test -z "$CYGPATH_W"; then
3883 if (cygpath --version) >/dev/null 2>/dev/null; then
3884 CYGPATH_W='cygpath -w'
3885 else
3886 CYGPATH_W=echo
3887 fi
3888fi
3889
3890
3891# Define the identity of the package.
3892 PACKAGE=$PACKAGE_NAME
3893 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3894
3895
3896# Some tools Automake needs.
3897
3898ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3899
3900
3901AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3902
3903
3904AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3905
3906
3907AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3908
3909
3910MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3911
3912# We need awk for the "check" target. The system "awk" is bad on
3913# some platforms.
3914# Always define AMTAR for backward compatibility.
3915
3916AMTAR=${AMTAR-"${am_missing_run}tar"}
3917
3918am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3919
3920
3921
3922
3923
cristy3ed852e2009-09-05 21:47:34 +00003924
3925# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003926# Check whether --enable-silent-rules was given.
3927if test "${enable_silent_rules+set}" = set; then :
3928 enableval=$enable_silent_rules;
3929fi
3930
3931case $enable_silent_rules in
3932yes) AM_DEFAULT_VERBOSITY=0;;
3933no) AM_DEFAULT_VERBOSITY=1;;
3934*) AM_DEFAULT_VERBOSITY=0;;
3935esac
3936AM_BACKSLASH='\'
3937
cristy3ed852e2009-09-05 21:47:34 +00003938
3939MAGICK_LIB_VERSION="0x"
3940if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3941 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3942fi
3943MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3944if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3945 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3946fi
3947MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3948if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3949 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3950fi
3951MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3952
3953
3954# Definition used to define MagickLibVersionText in version.h
3955MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3956
3957
3958# Definition used to define MagickLibVersionNumber in version.h
3959MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3960
3961
3962# Regenerate config.status if ChangeLog or version.sh is updated.
3963CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3964
3965
3966PERLMAINCC=$CC
3967
3968MAGICK_CFLAGS=''
3969MAGICK_CPPFLAGS=$CPPFLAGS_USER
3970MAGICK_PCFLAGS=$CPPFLAGS_USER
3971MAGICK_LDFLAGS=''
3972MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003973MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003974
3975#
3976# Evaluate shell variable equivalents to Makefile directory variables
3977#
3978if test "x$prefix" = xNONE; then
3979 prefix=$ac_default_prefix
3980fi
3981# Let make expand exec_prefix.
3982if test "x$exec_prefix" = xNONE; then
3983 exec_prefix='${prefix}'
3984fi
3985
3986#
3987eval "eval PREFIX_DIR=${prefix}"
3988
3989eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3990
3991eval "eval BIN_DIR=$bindir"
3992
3993eval "eval SBIN_DIR=$sbindir"
3994
3995eval "eval LIBEXEC_DIR=$libexecdir"
3996
3997eval "eval DATA_DIR=$datadir"
3998
3999eval "eval SYSCONF_DIR=$sysconfdir"
4000
4001eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4002
4003eval "eval LOCALSTATE_DIR=$localstatedir"
4004
4005eval "eval LIB_DIR=$libdir"
4006
4007eval "eval INCLUDE_DIR=$includedir"
4008
4009eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4010
4011eval "eval INFO_DIR=$infodir"
4012
4013eval "eval MAN_DIR=$mandir"
4014
4015
4016# Get full paths to source and build directories
4017srcdirfull="`cd $srcdir && pwd`"
4018builddir="`pwd`"
4019
4020#
4021# Compute variables useful for running uninstalled software.
4022#
4023MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4024MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4025MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4026MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4027DIRSEP=':'
4028case "${build_os}" in
4029 mingw* )
4030 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4031 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4032 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4033 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4034 DIRSEP=';'
4035 ;;
4036esac
4037case "${host_os}" in
4038 mingw* )
4039 DIRSEP=';'
4040 ;;
4041esac
4042
4043
4044
4045
4046
4047
cristya0b81c32010-01-22 02:54:33 +00004048
4049#
4050# Enable OS features.
4051#
cristy73bd4a52010-10-05 11:24:23 +00004052DEPDIR="${am__leading_dot}deps"
4053
4054ac_config_commands="$ac_config_commands depfiles"
4055
4056
4057am_make=${MAKE-make}
4058cat > confinc << 'END'
4059am__doit:
4060 @echo this is the am__doit target
4061.PHONY: am__doit
4062END
4063# If we don't find an include directive, just comment out the code.
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4065$as_echo_n "checking for style of include used by $am_make... " >&6; }
4066am__include="#"
4067am__quote=
4068_am_result=none
4069# First try GNU make style include.
4070echo "include confinc" > confmf
4071# Ignore all kinds of additional output from `make'.
4072case `$am_make -s -f confmf 2> /dev/null` in #(
4073*the\ am__doit\ target*)
4074 am__include=include
4075 am__quote=
4076 _am_result=GNU
4077 ;;
4078esac
4079# Now try BSD make style include.
4080if test "$am__include" = "#"; then
4081 echo '.include "confinc"' > confmf
4082 case `$am_make -s -f confmf 2> /dev/null` in #(
4083 *the\ am__doit\ target*)
4084 am__include=.include
4085 am__quote="\""
4086 _am_result=BSD
4087 ;;
4088 esac
4089fi
4090
4091
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4093$as_echo "$_am_result" >&6; }
4094rm -f confinc confmf
4095
4096# Check whether --enable-dependency-tracking was given.
4097if test "${enable_dependency_tracking+set}" = set; then :
4098 enableval=$enable_dependency_tracking;
4099fi
4100
4101if test "x$enable_dependency_tracking" != xno; then
4102 am_depcomp="$ac_aux_dir/depcomp"
4103 AMDEPBACKSLASH='\'
4104fi
4105 if test "x$enable_dependency_tracking" != xno; then
4106 AMDEP_TRUE=
4107 AMDEP_FALSE='#'
4108else
4109 AMDEP_TRUE='#'
4110 AMDEP_FALSE=
4111fi
4112
4113
cristy3ed852e2009-09-05 21:47:34 +00004114ac_ext=c
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4121set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004123$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004124if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004125 $as_echo_n "(cached) " >&6
4126else
4127 if test -n "$CC"; then
4128 ac_cv_prog_CC="$CC" # Let the user override the test.
4129else
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004139 break 2
4140 fi
4141done
cristy8b350f62009-11-15 23:12:43 +00004142 done
cristy3ed852e2009-09-05 21:47:34 +00004143IFS=$as_save_IFS
4144
4145fi
4146fi
4147CC=$ac_cv_prog_CC
4148if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004150$as_echo "$CC" >&6; }
4151else
cristy8b350f62009-11-15 23:12:43 +00004152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004153$as_echo "no" >&6; }
4154fi
4155
4156
4157fi
4158if test -z "$ac_cv_prog_CC"; then
4159 ac_ct_CC=$CC
4160 # Extract the first word of "gcc", so it can be a program name with args.
4161set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004163$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004164if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004165 $as_echo_n "(cached) " >&6
4166else
4167 if test -n "$ac_ct_CC"; then
4168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004179 break 2
4180 fi
4181done
cristy8b350f62009-11-15 23:12:43 +00004182 done
cristy3ed852e2009-09-05 21:47:34 +00004183IFS=$as_save_IFS
4184
4185fi
4186fi
4187ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004190$as_echo "$ac_ct_CC" >&6; }
4191else
cristy8b350f62009-11-15 23:12:43 +00004192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193$as_echo "no" >&6; }
4194fi
4195
4196 if test "x$ac_ct_CC" = x; then
4197 CC=""
4198 else
4199 case $cross_compiling:$ac_tool_warned in
4200yes:)
cristy8b350f62009-11-15 23:12:43 +00004201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203ac_tool_warned=yes ;;
4204esac
4205 CC=$ac_ct_CC
4206 fi
4207else
4208 CC="$ac_cv_prog_CC"
4209fi
4210
4211if test -z "$CC"; then
4212 if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4214set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004216$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004217if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004218 $as_echo_n "(cached) " >&6
4219else
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4222else
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004232 break 2
4233 fi
4234done
cristy8b350f62009-11-15 23:12:43 +00004235 done
cristy3ed852e2009-09-05 21:47:34 +00004236IFS=$as_save_IFS
4237
4238fi
4239fi
4240CC=$ac_cv_prog_CC
4241if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004243$as_echo "$CC" >&6; }
4244else
cristy8b350f62009-11-15 23:12:43 +00004245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004246$as_echo "no" >&6; }
4247fi
4248
4249
4250 fi
4251fi
4252if test -z "$CC"; then
4253 # Extract the first word of "cc", so it can be a program name with args.
4254set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004257if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004258 $as_echo_n "(cached) " >&6
4259else
4260 if test -n "$CC"; then
4261 ac_cv_prog_CC="$CC" # Let the user override the test.
4262else
4263 ac_prog_rejected=no
4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4272 ac_prog_rejected=yes
4273 continue
4274 fi
4275 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004277 break 2
4278 fi
4279done
cristy8b350f62009-11-15 23:12:43 +00004280 done
cristy3ed852e2009-09-05 21:47:34 +00004281IFS=$as_save_IFS
4282
4283if test $ac_prog_rejected = yes; then
4284 # We found a bogon in the path, so make sure we never use it.
4285 set dummy $ac_cv_prog_CC
4286 shift
4287 if test $# != 0; then
4288 # We chose a different compiler from the bogus one.
4289 # However, it has the same basename, so the bogon will be chosen
4290 # first if we set CC to just the basename; use the full file name.
4291 shift
4292 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4293 fi
4294fi
4295fi
4296fi
4297CC=$ac_cv_prog_CC
4298if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004300$as_echo "$CC" >&6; }
4301else
cristy8b350f62009-11-15 23:12:43 +00004302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004303$as_echo "no" >&6; }
4304fi
4305
4306
4307fi
4308if test -z "$CC"; then
4309 if test -n "$ac_tool_prefix"; then
4310 for ac_prog in cl.exe
4311 do
4312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004316if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004317 $as_echo_n "(cached) " >&6
4318else
4319 if test -n "$CC"; then
4320 ac_cv_prog_CC="$CC" # Let the user override the test.
4321else
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004331 break 2
4332 fi
4333done
cristy8b350f62009-11-15 23:12:43 +00004334 done
cristy3ed852e2009-09-05 21:47:34 +00004335IFS=$as_save_IFS
4336
4337fi
4338fi
4339CC=$ac_cv_prog_CC
4340if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004342$as_echo "$CC" >&6; }
4343else
cristy8b350f62009-11-15 23:12:43 +00004344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004345$as_echo "no" >&6; }
4346fi
4347
4348
4349 test -n "$CC" && break
4350 done
4351fi
4352if test -z "$CC"; then
4353 ac_ct_CC=$CC
4354 for ac_prog in cl.exe
4355do
4356 # Extract the first word of "$ac_prog", so it can be a program name with args.
4357set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004360if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004361 $as_echo_n "(cached) " >&6
4362else
4363 if test -n "$ac_ct_CC"; then
4364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4365else
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004375 break 2
4376 fi
4377done
cristy8b350f62009-11-15 23:12:43 +00004378 done
cristy3ed852e2009-09-05 21:47:34 +00004379IFS=$as_save_IFS
4380
4381fi
4382fi
4383ac_ct_CC=$ac_cv_prog_ac_ct_CC
4384if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004386$as_echo "$ac_ct_CC" >&6; }
4387else
cristy8b350f62009-11-15 23:12:43 +00004388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004389$as_echo "no" >&6; }
4390fi
4391
4392
4393 test -n "$ac_ct_CC" && break
4394done
4395
4396 if test "x$ac_ct_CC" = x; then
4397 CC=""
4398 else
4399 case $cross_compiling:$ac_tool_warned in
4400yes:)
cristy8b350f62009-11-15 23:12:43 +00004401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4403ac_tool_warned=yes ;;
4404esac
4405 CC=$ac_ct_CC
4406 fi
4407fi
4408
4409fi
4410
4411
cristy8b350f62009-11-15 23:12:43 +00004412test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004414as_fn_error $? "no acceptable C compiler found in \$PATH
4415See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004416
4417# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004418$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419set X $ac_compile
4420ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004421for ac_option in --version -v -V -qversion; do
4422 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004423case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426esac
cristy8b350f62009-11-15 23:12:43 +00004427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428$as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004430 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004431 if test -s conftest.err; then
4432 sed '10a\
4433... rest of stderr output deleted ...
4434 10q' conftest.err >conftest.er1
4435 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004436 fi
cristycd4c5312009-11-22 01:19:08 +00004437 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }
4440done
cristy3ed852e2009-09-05 21:47:34 +00004441
cristy8b350f62009-11-15 23:12:43 +00004442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004443/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004444
cristy3ed852e2009-09-05 21:47:34 +00004445int
4446main ()
4447{
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
4453ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004454ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004455# Try to create an executable without -o first, disregard a.out.
4456# It will help us diagnose broken compilers, and finding out an intuition
4457# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4459$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004460ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4461
4462# The possible output files:
4463ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4464
4465ac_rmfiles=
4466for ac_file in $ac_files
4467do
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4470 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4471 esac
4472done
4473rm -f $ac_rmfiles
4474
cristy8b350f62009-11-15 23:12:43 +00004475if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004476case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479esac
cristy8b350f62009-11-15 23:12:43 +00004480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004482 (eval "$ac_link_default") 2>&5
4483 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004486 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4487# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4488# in a Makefile. We should not override ac_cv_exeext if it was cached,
4489# so that the user can short-circuit this test for compilers unknown to
4490# Autoconf.
4491for ac_file in $ac_files ''
4492do
4493 test -f "$ac_file" || continue
4494 case $ac_file in
4495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4496 ;;
4497 [ab].out )
4498 # We found the default executable, but exeext='' is most
4499 # certainly right.
4500 break;;
4501 *.* )
cristy8b350f62009-11-15 23:12:43 +00004502 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004503 then :; else
4504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4505 fi
4506 # We set ac_cv_exeext here because the later test for it is not
4507 # safe: cross compilers may not add the suffix if given an `-o'
4508 # argument, so we may need to know it at that point already.
4509 # Even if this section looks crufty: it has the advantage of
4510 # actually working.
4511 break;;
4512 * )
4513 break;;
4514 esac
4515done
4516test "$ac_cv_exeext" = no && ac_cv_exeext=
4517
4518else
4519 ac_file=''
4520fi
cristy8b350f62009-11-15 23:12:43 +00004521if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523$as_echo "no" >&6; }
4524$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525sed 's/^/| /' conftest.$ac_ext >&5
4526
cristy8b350f62009-11-15 23:12:43 +00004527{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004529as_fn_error 77 "C compiler cannot create executables
4530See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004531else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4533$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004534fi
cristycd4c5312009-11-22 01:19:08 +00004535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4536$as_echo_n "checking for C compiler default output file name... " >&6; }
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4538$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004539ac_exeext=$ac_cv_exeext
4540
cristycd4c5312009-11-22 01:19:08 +00004541rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004542ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004544$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004545if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004546case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549esac
cristy8b350f62009-11-15 23:12:43 +00004550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004552 (eval "$ac_link") 2>&5
4553 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004556 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4557# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4558# work properly (i.e., refer to `conftest.exe'), while it won't with
4559# `rm'.
4560for ac_file in conftest.exe conftest conftest.*; do
4561 test -f "$ac_file" || continue
4562 case $ac_file in
4563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4564 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4565 break;;
4566 * ) break;;
4567 esac
4568done
4569else
cristy8b350f62009-11-15 23:12:43 +00004570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004572as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4573See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004574fi
cristycd4c5312009-11-22 01:19:08 +00004575rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004577$as_echo "$ac_cv_exeext" >&6; }
4578
4579rm -f conftest.$ac_ext
4580EXEEXT=$ac_cv_exeext
4581ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583/* end confdefs.h. */
4584#include <stdio.h>
4585int
4586main ()
4587{
4588FILE *f = fopen ("conftest.out", "w");
4589 return ferror (f) || fclose (f) != 0;
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595ac_clean_files="$ac_clean_files conftest.out"
4596# Check that the compiler produces executables we can run. If not, either
4597# the compiler is broken, or we cross compile.
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4599$as_echo_n "checking whether we are cross compiling... " >&6; }
4600if test "$cross_compiling" != yes; then
4601 { { ac_try="$ac_link"
4602case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605esac
4606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607$as_echo "$ac_try_echo"; } >&5
4608 (eval "$ac_link") 2>&5
4609 ac_status=$?
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612 if { ac_try='./conftest$ac_cv_exeext'
4613 { { case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616esac
4617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618$as_echo "$ac_try_echo"; } >&5
4619 (eval "$ac_try") 2>&5
4620 ac_status=$?
4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }; }; then
4623 cross_compiling=no
4624 else
4625 if test "$cross_compiling" = maybe; then
4626 cross_compiling=yes
4627 else
4628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004630as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004631If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004632See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004633 fi
4634 fi
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4637$as_echo "$cross_compiling" >&6; }
4638
4639rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4640ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004642$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004643if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004644 $as_echo_n "(cached) " >&6
4645else
cristy8b350f62009-11-15 23:12:43 +00004646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004647/* end confdefs.h. */
4648
4649int
4650main ()
4651{
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004658if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004659case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662esac
cristy8b350f62009-11-15 23:12:43 +00004663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004665 (eval "$ac_compile") 2>&5
4666 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004669 for ac_file in conftest.o conftest.obj conftest.*; do
4670 test -f "$ac_file" || continue;
4671 case $ac_file in
4672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4673 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4674 break;;
4675 esac
4676done
4677else
4678 $as_echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
cristy8b350f62009-11-15 23:12:43 +00004681{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004683as_fn_error $? "cannot compute suffix of object files: cannot compile
4684See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004685fi
cristy3ed852e2009-09-05 21:47:34 +00004686rm -f conftest.$ac_cv_objext conftest.$ac_ext
4687fi
cristy8b350f62009-11-15 23:12:43 +00004688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo "$ac_cv_objext" >&6; }
4690OBJEXT=$ac_cv_objext
4691ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004693$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004694if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004695 $as_echo_n "(cached) " >&6
4696else
cristy8b350f62009-11-15 23:12:43 +00004697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004698/* end confdefs.h. */
4699
4700int
4701main ()
4702{
4703#ifndef __GNUC__
4704 choke me
4705#endif
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004711if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004712 ac_compiler_gnu=yes
4713else
cristy8b350f62009-11-15 23:12:43 +00004714 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004715fi
cristy3ed852e2009-09-05 21:47:34 +00004716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717ac_cv_c_compiler_gnu=$ac_compiler_gnu
4718
4719fi
cristy8b350f62009-11-15 23:12:43 +00004720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004721$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4722if test $ac_compiler_gnu = yes; then
4723 GCC=yes
4724else
4725 GCC=
4726fi
4727ac_test_CFLAGS=${CFLAGS+set}
4728ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004730$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004731if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004732 $as_echo_n "(cached) " >&6
4733else
4734 ac_save_c_werror_flag=$ac_c_werror_flag
4735 ac_c_werror_flag=yes
4736 ac_cv_prog_cc_g=no
4737 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004739/* end confdefs.h. */
4740
4741int
4742main ()
4743{
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004749if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004750 ac_cv_prog_cc_g=yes
4751else
cristy8b350f62009-11-15 23:12:43 +00004752 CFLAGS=""
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004754/* end confdefs.h. */
4755
4756int
4757main ()
4758{
4759
4760 ;
4761 return 0;
4762}
4763_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004764if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004765
cristy8b350f62009-11-15 23:12:43 +00004766else
4767 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004768 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004770/* end confdefs.h. */
4771
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004781 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004782fi
cristy3ed852e2009-09-05 21:47:34 +00004783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784fi
cristy3ed852e2009-09-05 21:47:34 +00004785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786fi
cristy3ed852e2009-09-05 21:47:34 +00004787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4789fi
cristy8b350f62009-11-15 23:12:43 +00004790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004791$as_echo "$ac_cv_prog_cc_g" >&6; }
4792if test "$ac_test_CFLAGS" = set; then
4793 CFLAGS=$ac_save_CFLAGS
4794elif test $ac_cv_prog_cc_g = yes; then
4795 if test "$GCC" = yes; then
4796 CFLAGS="-g -O2"
4797 else
4798 CFLAGS="-g"
4799 fi
4800else
4801 if test "$GCC" = yes; then
4802 CFLAGS="-O2"
4803 else
4804 CFLAGS=
4805 fi
4806fi
cristy8b350f62009-11-15 23:12:43 +00004807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004808$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004809if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004810 $as_echo_n "(cached) " >&6
4811else
4812 ac_cv_prog_cc_c89=no
4813ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004815/* end confdefs.h. */
4816#include <stdarg.h>
4817#include <stdio.h>
4818#include <sys/types.h>
4819#include <sys/stat.h>
4820/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4821struct buf { int x; };
4822FILE * (*rcsopen) (struct buf *, struct stat *, int);
4823static char *e (p, i)
4824 char **p;
4825 int i;
4826{
4827 return p[i];
4828}
4829static char *f (char * (*g) (char **, int), char **p, ...)
4830{
4831 char *s;
4832 va_list v;
4833 va_start (v,p);
4834 s = g (p, va_arg (v,int));
4835 va_end (v);
4836 return s;
4837}
4838
4839/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4840 function prototypes and stuff, but not '\xHH' hex character constants.
4841 These don't provoke an error unfortunately, instead are silently treated
4842 as 'x'. The following induces an error, until -std is added to get
4843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4844 array size at least. It's necessary to write '\x00'==0 to get something
4845 that's true only with -std. */
4846int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4847
4848/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4849 inside strings and character constants. */
4850#define FOO(x) 'x'
4851int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4852
4853int test (int i, double x);
4854struct s1 {int (*f) (int a);};
4855struct s2 {int (*f) (double a);};
4856int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4857int argc;
4858char **argv;
4859int
4860main ()
4861{
4862return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4863 ;
4864 return 0;
4865}
4866_ACEOF
4867for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4868 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4869do
4870 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004871 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004872 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004873fi
cristy3ed852e2009-09-05 21:47:34 +00004874rm -f core conftest.err conftest.$ac_objext
4875 test "x$ac_cv_prog_cc_c89" != "xno" && break
4876done
4877rm -f conftest.$ac_ext
4878CC=$ac_save_CC
4879
4880fi
4881# AC_CACHE_VAL
4882case "x$ac_cv_prog_cc_c89" in
4883 x)
cristy8b350f62009-11-15 23:12:43 +00004884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo "none needed" >&6; } ;;
4886 xno)
cristy8b350f62009-11-15 23:12:43 +00004887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004888$as_echo "unsupported" >&6; } ;;
4889 *)
4890 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004892$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4893esac
cristy8b350f62009-11-15 23:12:43 +00004894if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004895
cristy8b350f62009-11-15 23:12:43 +00004896fi
cristy3ed852e2009-09-05 21:47:34 +00004897
4898ac_ext=c
4899ac_cpp='$CPP $CPPFLAGS'
4900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004903
cristy73bd4a52010-10-05 11:24:23 +00004904depcc="$CC" am_compiler_list=
4905
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4907$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004908if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004909 $as_echo_n "(cached) " >&6
4910else
4911 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4912 # We make a subdir and do the tests there. Otherwise we can end up
4913 # making bogus files that we don't know about and never remove. For
4914 # instance it was reported that on HP-UX the gcc test will end up
4915 # making a dummy file named `D' -- because `-MD' means `put the output
4916 # in D'.
4917 mkdir conftest.dir
4918 # Copy depcomp to subdir because otherwise we won't find it if we're
4919 # using a relative directory.
4920 cp "$am_depcomp" conftest.dir
4921 cd conftest.dir
4922 # We will build objects and dependencies in a subdirectory because
4923 # it helps to detect inapplicable dependency modes. For instance
4924 # both Tru64's cc and ICC support -MD to output dependencies as a
4925 # side effect of compilation, but ICC will put the dependencies in
4926 # the current directory while Tru64 will put them in the object
4927 # directory.
4928 mkdir sub
4929
4930 am_cv_CC_dependencies_compiler_type=none
4931 if test "$am_compiler_list" = ""; then
4932 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4933 fi
4934 am__universal=false
4935 case " $depcc " in #(
4936 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4937 esac
4938
4939 for depmode in $am_compiler_list; do
4940 # Setup a source with many dependencies, because some compilers
4941 # like to wrap large dependency lists on column 80 (with \), and
4942 # we should not choose a depcomp mode which is confused by this.
4943 #
4944 # We need to recreate these files for each test, as the compiler may
4945 # overwrite some of them when testing with obscure command lines.
4946 # This happens at least with the AIX C compiler.
4947 : > sub/conftest.c
4948 for i in 1 2 3 4 5 6; do
4949 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4950 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4951 # Solaris 8's {/usr,}/bin/sh.
4952 touch sub/conftst$i.h
4953 done
4954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4955
4956 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4957 # mode. It turns out that the SunPro C++ compiler does not properly
4958 # handle `-M -o', and we need to detect this. Also, some Intel
4959 # versions had trouble with output in subdirs
4960 am__obj=sub/conftest.${OBJEXT-o}
4961 am__minus_obj="-o $am__obj"
4962 case $depmode in
4963 gcc)
4964 # This depmode causes a compiler race in universal mode.
4965 test "$am__universal" = false || continue
4966 ;;
4967 nosideeffect)
4968 # after this tag, mechanisms are not by side-effect, so they'll
4969 # only be used when explicitly requested
4970 if test "x$enable_dependency_tracking" = xyes; then
4971 continue
4972 else
4973 break
4974 fi
4975 ;;
4976 msvisualcpp | msvcmsys)
4977 # This compiler won't grok `-c -o', but also, the minuso test has
4978 # not run yet. These depmodes are late enough in the game, and
4979 # so weak that their functioning should not be impacted.
4980 am__obj=conftest.${OBJEXT-o}
4981 am__minus_obj=
4982 ;;
4983 none) break ;;
4984 esac
4985 if depmode=$depmode \
4986 source=sub/conftest.c object=$am__obj \
4987 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4988 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4989 >/dev/null 2>conftest.err &&
4990 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4992 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4994 # icc doesn't choke on unknown options, it will just issue warnings
4995 # or remarks (even with -Werror). So we grep stderr for any message
4996 # that says an option was ignored or not supported.
4997 # When given -MP, icc 7.0 and 7.1 complain thusly:
4998 # icc: Command line warning: ignoring option '-M'; no argument required
4999 # The diagnosis changed in icc 8.0:
5000 # icc: Command line remark: option '-MP' not supported
5001 if (grep 'ignoring option' conftest.err ||
5002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5003 am_cv_CC_dependencies_compiler_type=$depmode
5004 break
5005 fi
5006 fi
5007 done
5008
5009 cd ..
5010 rm -rf conftest.dir
5011else
5012 am_cv_CC_dependencies_compiler_type=none
5013fi
5014
5015fi
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5017$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5018CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5019
5020 if
5021 test "x$enable_dependency_tracking" != xno \
5022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5023 am__fastdepCC_TRUE=
5024 am__fastdepCC_FALSE='#'
5025else
5026 am__fastdepCC_TRUE='#'
5027 am__fastdepCC_FALSE=
5028fi
5029
5030
cristy3ed852e2009-09-05 21:47:34 +00005031
cristya0b81c32010-01-22 02:54:33 +00005032ac_ext=c
5033ac_cpp='$CPP $CPPFLAGS'
5034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5038$as_echo_n "checking how to run the C preprocessor... " >&6; }
5039# On Suns, sometimes $CPP names a directory.
5040if test -n "$CPP" && test -d "$CPP"; then
5041 CPP=
5042fi
5043if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005044 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005045 $as_echo_n "(cached) " >&6
5046else
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5049 do
5050 ac_preproc_ok=false
5051for ac_c_preproc_warn_flag in '' yes
5052do
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060/* end confdefs.h. */
5061#ifdef __STDC__
5062# include <limits.h>
5063#else
5064# include <assert.h>
5065#endif
5066 Syntax error
5067_ACEOF
5068if ac_fn_c_try_cpp "$LINENO"; then :
5069
5070else
5071 # Broken: fails on valid input.
5072continue
5073fi
cristyda16f162011-02-19 23:52:17 +00005074rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005075
5076 # OK, works on sane cases. Now check whether nonexistent headers
5077 # can be detected and how.
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079/* end confdefs.h. */
5080#include <ac_nonexistent.h>
5081_ACEOF
5082if ac_fn_c_try_cpp "$LINENO"; then :
5083 # Broken: success on invalid input.
5084continue
5085else
5086 # Passes both tests.
5087ac_preproc_ok=:
5088break
5089fi
cristyda16f162011-02-19 23:52:17 +00005090rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005091
5092done
5093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005094rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005095if $ac_preproc_ok; then :
5096 break
5097fi
5098
5099 done
5100 ac_cv_prog_CPP=$CPP
5101
5102fi
5103 CPP=$ac_cv_prog_CPP
5104else
5105 ac_cv_prog_CPP=$CPP
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5108$as_echo "$CPP" >&6; }
5109ac_preproc_ok=false
5110for ac_c_preproc_warn_flag in '' yes
5111do
5112 # Use a header file that comes with gcc, so configuring glibc
5113 # with a fresh cross-compiler works.
5114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5115 # <limits.h> exists even on freestanding compilers.
5116 # On the NeXT, cc -E runs the code through the compiler's parser,
5117 # not just through cpp. "Syntax error" is here to catch this case.
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h. */
5120#ifdef __STDC__
5121# include <limits.h>
5122#else
5123# include <assert.h>
5124#endif
5125 Syntax error
5126_ACEOF
5127if ac_fn_c_try_cpp "$LINENO"; then :
5128
5129else
5130 # Broken: fails on valid input.
5131continue
5132fi
cristyda16f162011-02-19 23:52:17 +00005133rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005134
5135 # OK, works on sane cases. Now check whether nonexistent headers
5136 # can be detected and how.
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h. */
5139#include <ac_nonexistent.h>
5140_ACEOF
5141if ac_fn_c_try_cpp "$LINENO"; then :
5142 # Broken: success on invalid input.
5143continue
5144else
5145 # Passes both tests.
5146ac_preproc_ok=:
5147break
5148fi
cristyda16f162011-02-19 23:52:17 +00005149rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005150
5151done
5152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005153rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005154if $ac_preproc_ok; then :
5155
5156else
5157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005159as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5160See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005161fi
5162
5163ac_ext=c
5164ac_cpp='$CPP $CPPFLAGS'
5165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168
5169
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5171$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005172if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005173 $as_echo_n "(cached) " >&6
5174else
5175 if test -z "$GREP"; then
5176 ac_path_GREP_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in grep ggrep; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5186 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5187# Check for GNU ac_path_GREP and select it if it is found.
5188 # Check for GNU $ac_path_GREP
5189case `"$ac_path_GREP" --version 2>&1` in
5190*GNU*)
5191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5192*)
5193 ac_count=0
5194 $as_echo_n 0123456789 >"conftest.in"
5195 while :
5196 do
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo 'GREP' >> "conftest.nl"
5201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_GREP="$ac_path_GREP"
5207 ac_path_GREP_max=$ac_count
5208 fi
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5211 done
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213esac
5214
5215 $ac_path_GREP_found && break 3
5216 done
5217 done
5218 done
5219IFS=$as_save_IFS
5220 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005221 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005222 fi
5223else
5224 ac_cv_path_GREP=$GREP
5225fi
5226
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5229$as_echo "$ac_cv_path_GREP" >&6; }
5230 GREP="$ac_cv_path_GREP"
5231
5232
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5234$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005235if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005236 $as_echo_n "(cached) " >&6
5237else
5238 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5239 then ac_cv_path_EGREP="$GREP -E"
5240 else
5241 if test -z "$EGREP"; then
5242 ac_path_EGREP_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in egrep; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5252 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5253# Check for GNU ac_path_EGREP and select it if it is found.
5254 # Check for GNU $ac_path_EGREP
5255case `"$ac_path_EGREP" --version 2>&1` in
5256*GNU*)
5257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5258*)
5259 ac_count=0
5260 $as_echo_n 0123456789 >"conftest.in"
5261 while :
5262 do
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo 'EGREP' >> "conftest.nl"
5267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_EGREP="$ac_path_EGREP"
5273 ac_path_EGREP_max=$ac_count
5274 fi
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279esac
5280
5281 $ac_path_EGREP_found && break 3
5282 done
5283 done
5284 done
5285IFS=$as_save_IFS
5286 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005287 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005288 fi
5289else
5290 ac_cv_path_EGREP=$EGREP
5291fi
5292
5293 fi
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5296$as_echo "$ac_cv_path_EGREP" >&6; }
5297 EGREP="$ac_cv_path_EGREP"
5298
5299
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5301$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005302if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005303 $as_echo_n "(cached) " >&6
5304else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307#include <stdlib.h>
5308#include <stdarg.h>
5309#include <string.h>
5310#include <float.h>
5311
5312int
5313main ()
5314{
5315
5316 ;
5317 return 0;
5318}
5319_ACEOF
5320if ac_fn_c_try_compile "$LINENO"; then :
5321 ac_cv_header_stdc=yes
5322else
5323 ac_cv_header_stdc=no
5324fi
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326
5327if test $ac_cv_header_stdc = yes; then
5328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h. */
5331#include <string.h>
5332
5333_ACEOF
5334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335 $EGREP "memchr" >/dev/null 2>&1; then :
5336
5337else
5338 ac_cv_header_stdc=no
5339fi
5340rm -f conftest*
5341
5342fi
5343
5344if test $ac_cv_header_stdc = yes; then
5345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h. */
5348#include <stdlib.h>
5349
5350_ACEOF
5351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352 $EGREP "free" >/dev/null 2>&1; then :
5353
5354else
5355 ac_cv_header_stdc=no
5356fi
5357rm -f conftest*
5358
5359fi
5360
5361if test $ac_cv_header_stdc = yes; then
5362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5363 if test "$cross_compiling" = yes; then :
5364 :
5365else
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h. */
5368#include <ctype.h>
5369#include <stdlib.h>
5370#if ((' ' & 0x0FF) == 0x020)
5371# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5372# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5373#else
5374# define ISLOWER(c) \
5375 (('a' <= (c) && (c) <= 'i') \
5376 || ('j' <= (c) && (c) <= 'r') \
5377 || ('s' <= (c) && (c) <= 'z'))
5378# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5379#endif
5380
5381#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5382int
5383main ()
5384{
5385 int i;
5386 for (i = 0; i < 256; i++)
5387 if (XOR (islower (i), ISLOWER (i))
5388 || toupper (i) != TOUPPER (i))
5389 return 2;
5390 return 0;
5391}
5392_ACEOF
5393if ac_fn_c_try_run "$LINENO"; then :
5394
5395else
5396 ac_cv_header_stdc=no
5397fi
5398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5399 conftest.$ac_objext conftest.beam conftest.$ac_ext
5400fi
5401
5402fi
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5405$as_echo "$ac_cv_header_stdc" >&6; }
5406if test $ac_cv_header_stdc = yes; then
5407
5408$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5409
5410fi
5411
5412# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5413for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5414 inttypes.h stdint.h unistd.h
5415do :
5416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5418"
cristy98dddb52010-11-04 00:30:15 +00005419if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005420 cat >>confdefs.h <<_ACEOF
5421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5422_ACEOF
5423
5424fi
5425
5426done
5427
5428
5429
5430 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 +00005431if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005432 MINIX=yes
5433else
5434 MINIX=
5435fi
5436
5437
5438 if test "$MINIX" = yes; then
5439
5440$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5441
5442
5443$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5444
5445
5446$as_echo "#define _MINIX 1" >>confdefs.h
5447
5448 fi
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5452$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005453if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005454 $as_echo_n "(cached) " >&6
5455else
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h. */
5458
5459# define __EXTENSIONS__ 1
5460 $ac_includes_default
5461int
5462main ()
5463{
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469if ac_fn_c_try_compile "$LINENO"; then :
5470 ac_cv_safe_to_define___extensions__=yes
5471else
5472 ac_cv_safe_to_define___extensions__=no
5473fi
5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475fi
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5477$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5478 test $ac_cv_safe_to_define___extensions__ = yes &&
5479 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5480
5481 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5482
5483 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5484
5485 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5486
5487 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5488
5489
5490
5491# Check for programs
5492ac_ext=c
5493ac_cpp='$CPP $CPPFLAGS'
5494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5499set dummy ${ac_tool_prefix}gcc; ac_word=$2
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005502if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005503 $as_echo_n "(cached) " >&6
5504else
5505 if test -n "$CC"; then
5506 ac_cv_prog_CC="$CC" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519done
5520 done
5521IFS=$as_save_IFS
5522
5523fi
5524fi
5525CC=$ac_cv_prog_CC
5526if test -n "$CC"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5528$as_echo "$CC" >&6; }
5529else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531$as_echo "no" >&6; }
5532fi
5533
5534
5535fi
5536if test -z "$ac_cv_prog_CC"; then
5537 ac_ct_CC=$CC
5538 # Extract the first word of "gcc", so it can be a program name with args.
5539set dummy gcc; ac_word=$2
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005542if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005543 $as_echo_n "(cached) " >&6
5544else
5545 if test -n "$ac_ct_CC"; then
5546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5547else
5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_ac_ct_CC="gcc"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5558 fi
5559done
5560 done
5561IFS=$as_save_IFS
5562
5563fi
5564fi
5565ac_ct_CC=$ac_cv_prog_ac_ct_CC
5566if test -n "$ac_ct_CC"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5568$as_echo "$ac_ct_CC" >&6; }
5569else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }
5572fi
5573
5574 if test "x$ac_ct_CC" = x; then
5575 CC=""
5576 else
5577 case $cross_compiling:$ac_tool_warned in
5578yes:)
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581ac_tool_warned=yes ;;
5582esac
5583 CC=$ac_ct_CC
5584 fi
5585else
5586 CC="$ac_cv_prog_CC"
5587fi
5588
5589if test -z "$CC"; then
5590 if test -n "$ac_tool_prefix"; then
5591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5592set dummy ${ac_tool_prefix}cc; ac_word=$2
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005595if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005596 $as_echo_n "(cached) " >&6
5597else
5598 if test -n "$CC"; then
5599 ac_cv_prog_CC="$CC" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_CC="${ac_tool_prefix}cc"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612done
5613 done
5614IFS=$as_save_IFS
5615
5616fi
5617fi
5618CC=$ac_cv_prog_CC
5619if test -n "$CC"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5621$as_echo "$CC" >&6; }
5622else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; }
5625fi
5626
5627
5628 fi
5629fi
5630if test -z "$CC"; then
5631 # Extract the first word of "cc", so it can be a program name with args.
5632set dummy cc; ac_word=$2
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005635if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005636 $as_echo_n "(cached) " >&6
5637else
5638 if test -n "$CC"; then
5639 ac_cv_prog_CC="$CC" # Let the user override the test.
5640else
5641 ac_prog_rejected=no
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5650 ac_prog_rejected=yes
5651 continue
5652 fi
5653 ac_cv_prog_CC="cc"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657done
5658 done
5659IFS=$as_save_IFS
5660
5661if test $ac_prog_rejected = yes; then
5662 # We found a bogon in the path, so make sure we never use it.
5663 set dummy $ac_cv_prog_CC
5664 shift
5665 if test $# != 0; then
5666 # We chose a different compiler from the bogus one.
5667 # However, it has the same basename, so the bogon will be chosen
5668 # first if we set CC to just the basename; use the full file name.
5669 shift
5670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5671 fi
5672fi
5673fi
5674fi
5675CC=$ac_cv_prog_CC
5676if test -n "$CC"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5678$as_echo "$CC" >&6; }
5679else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681$as_echo "no" >&6; }
5682fi
5683
5684
5685fi
5686if test -z "$CC"; then
5687 if test -n "$ac_tool_prefix"; then
5688 for ac_prog in cl.exe
5689 do
5690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005694if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005695 $as_echo_n "(cached) " >&6
5696else
5697 if test -n "$CC"; then
5698 ac_cv_prog_CC="$CC" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711done
5712 done
5713IFS=$as_save_IFS
5714
5715fi
5716fi
5717CC=$ac_cv_prog_CC
5718if test -n "$CC"; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5720$as_echo "$CC" >&6; }
5721else
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723$as_echo "no" >&6; }
5724fi
5725
5726
5727 test -n "$CC" && break
5728 done
5729fi
5730if test -z "$CC"; then
5731 ac_ct_CC=$CC
5732 for ac_prog in cl.exe
5733do
5734 # Extract the first word of "$ac_prog", so it can be a program name with args.
5735set dummy $ac_prog; ac_word=$2
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005738if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005739 $as_echo_n "(cached) " >&6
5740else
5741 if test -n "$ac_ct_CC"; then
5742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751 ac_cv_prog_ac_ct_CC="$ac_prog"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755done
5756 done
5757IFS=$as_save_IFS
5758
5759fi
5760fi
5761ac_ct_CC=$ac_cv_prog_ac_ct_CC
5762if test -n "$ac_ct_CC"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5764$as_echo "$ac_ct_CC" >&6; }
5765else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
5768fi
5769
5770
5771 test -n "$ac_ct_CC" && break
5772done
5773
5774 if test "x$ac_ct_CC" = x; then
5775 CC=""
5776 else
5777 case $cross_compiling:$ac_tool_warned in
5778yes:)
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781ac_tool_warned=yes ;;
5782esac
5783 CC=$ac_ct_CC
5784 fi
5785fi
5786
5787fi
5788
5789
5790test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005792as_fn_error $? "no acceptable C compiler found in \$PATH
5793See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005794
5795# Provide some information about the compiler.
5796$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5797set X $ac_compile
5798ac_compiler=$2
5799for ac_option in --version -v -V -qversion; do
5800 { { ac_try="$ac_compiler $ac_option >&5"
5801case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5806$as_echo "$ac_try_echo"; } >&5
5807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5808 ac_status=$?
5809 if test -s conftest.err; then
5810 sed '10a\
5811... rest of stderr output deleted ...
5812 10q' conftest.err >conftest.er1
5813 cat conftest.er1 >&5
5814 fi
5815 rm -f conftest.er1 conftest.err
5816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5817 test $ac_status = 0; }
5818done
5819
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5821$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005822if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005823 $as_echo_n "(cached) " >&6
5824else
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h. */
5827
5828int
5829main ()
5830{
5831#ifndef __GNUC__
5832 choke me
5833#endif
5834
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839if ac_fn_c_try_compile "$LINENO"; then :
5840 ac_compiler_gnu=yes
5841else
5842 ac_compiler_gnu=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845ac_cv_c_compiler_gnu=$ac_compiler_gnu
5846
5847fi
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5849$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5850if test $ac_compiler_gnu = yes; then
5851 GCC=yes
5852else
5853 GCC=
5854fi
5855ac_test_CFLAGS=${CFLAGS+set}
5856ac_save_CFLAGS=$CFLAGS
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5858$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005859if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005860 $as_echo_n "(cached) " >&6
5861else
5862 ac_save_c_werror_flag=$ac_c_werror_flag
5863 ac_c_werror_flag=yes
5864 ac_cv_prog_cc_g=no
5865 CFLAGS="-g"
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h. */
5868
5869int
5870main ()
5871{
5872
5873 ;
5874 return 0;
5875}
5876_ACEOF
5877if ac_fn_c_try_compile "$LINENO"; then :
5878 ac_cv_prog_cc_g=yes
5879else
5880 CFLAGS=""
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882/* end confdefs.h. */
5883
5884int
5885main ()
5886{
5887
5888 ;
5889 return 0;
5890}
5891_ACEOF
5892if ac_fn_c_try_compile "$LINENO"; then :
5893
5894else
5895 ac_c_werror_flag=$ac_save_c_werror_flag
5896 CFLAGS="-g"
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h. */
5899
5900int
5901main ()
5902{
5903
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908if ac_fn_c_try_compile "$LINENO"; then :
5909 ac_cv_prog_cc_g=yes
5910fi
5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914fi
5915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 ac_c_werror_flag=$ac_save_c_werror_flag
5917fi
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5919$as_echo "$ac_cv_prog_cc_g" >&6; }
5920if test "$ac_test_CFLAGS" = set; then
5921 CFLAGS=$ac_save_CFLAGS
5922elif test $ac_cv_prog_cc_g = yes; then
5923 if test "$GCC" = yes; then
5924 CFLAGS="-g -O2"
5925 else
5926 CFLAGS="-g"
5927 fi
5928else
5929 if test "$GCC" = yes; then
5930 CFLAGS="-O2"
5931 else
5932 CFLAGS=
5933 fi
5934fi
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5936$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005937if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005938 $as_echo_n "(cached) " >&6
5939else
5940 ac_cv_prog_cc_c89=no
5941ac_save_CC=$CC
5942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h. */
5944#include <stdarg.h>
5945#include <stdio.h>
5946#include <sys/types.h>
5947#include <sys/stat.h>
5948/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5949struct buf { int x; };
5950FILE * (*rcsopen) (struct buf *, struct stat *, int);
5951static char *e (p, i)
5952 char **p;
5953 int i;
5954{
5955 return p[i];
5956}
5957static char *f (char * (*g) (char **, int), char **p, ...)
5958{
5959 char *s;
5960 va_list v;
5961 va_start (v,p);
5962 s = g (p, va_arg (v,int));
5963 va_end (v);
5964 return s;
5965}
5966
5967/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5968 function prototypes and stuff, but not '\xHH' hex character constants.
5969 These don't provoke an error unfortunately, instead are silently treated
5970 as 'x'. The following induces an error, until -std is added to get
5971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5972 array size at least. It's necessary to write '\x00'==0 to get something
5973 that's true only with -std. */
5974int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5975
5976/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5977 inside strings and character constants. */
5978#define FOO(x) 'x'
5979int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5980
5981int test (int i, double x);
5982struct s1 {int (*f) (int a);};
5983struct s2 {int (*f) (double a);};
5984int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5985int argc;
5986char **argv;
5987int
5988main ()
5989{
5990return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5991 ;
5992 return 0;
5993}
5994_ACEOF
5995for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5997do
5998 CC="$ac_save_CC $ac_arg"
5999 if ac_fn_c_try_compile "$LINENO"; then :
6000 ac_cv_prog_cc_c89=$ac_arg
6001fi
6002rm -f core conftest.err conftest.$ac_objext
6003 test "x$ac_cv_prog_cc_c89" != "xno" && break
6004done
6005rm -f conftest.$ac_ext
6006CC=$ac_save_CC
6007
6008fi
6009# AC_CACHE_VAL
6010case "x$ac_cv_prog_cc_c89" in
6011 x)
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6013$as_echo "none needed" >&6; } ;;
6014 xno)
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6016$as_echo "unsupported" >&6; } ;;
6017 *)
6018 CC="$CC $ac_cv_prog_cc_c89"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6020$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6021esac
6022if test "x$ac_cv_prog_cc_c89" != xno; then :
6023
6024fi
6025
6026ac_ext=c
6027ac_cpp='$CPP $CPPFLAGS'
6028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031
cristy73bd4a52010-10-05 11:24:23 +00006032depcc="$CC" am_compiler_list=
6033
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6035$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006036if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006037 $as_echo_n "(cached) " >&6
6038else
6039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6040 # We make a subdir and do the tests there. Otherwise we can end up
6041 # making bogus files that we don't know about and never remove. For
6042 # instance it was reported that on HP-UX the gcc test will end up
6043 # making a dummy file named `D' -- because `-MD' means `put the output
6044 # in D'.
6045 mkdir conftest.dir
6046 # Copy depcomp to subdir because otherwise we won't find it if we're
6047 # using a relative directory.
6048 cp "$am_depcomp" conftest.dir
6049 cd conftest.dir
6050 # We will build objects and dependencies in a subdirectory because
6051 # it helps to detect inapplicable dependency modes. For instance
6052 # both Tru64's cc and ICC support -MD to output dependencies as a
6053 # side effect of compilation, but ICC will put the dependencies in
6054 # the current directory while Tru64 will put them in the object
6055 # directory.
6056 mkdir sub
6057
6058 am_cv_CC_dependencies_compiler_type=none
6059 if test "$am_compiler_list" = ""; then
6060 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6061 fi
6062 am__universal=false
6063 case " $depcc " in #(
6064 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6065 esac
6066
6067 for depmode in $am_compiler_list; do
6068 # Setup a source with many dependencies, because some compilers
6069 # like to wrap large dependency lists on column 80 (with \), and
6070 # we should not choose a depcomp mode which is confused by this.
6071 #
6072 # We need to recreate these files for each test, as the compiler may
6073 # overwrite some of them when testing with obscure command lines.
6074 # This happens at least with the AIX C compiler.
6075 : > sub/conftest.c
6076 for i in 1 2 3 4 5 6; do
6077 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6078 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6079 # Solaris 8's {/usr,}/bin/sh.
6080 touch sub/conftst$i.h
6081 done
6082 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6083
6084 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6085 # mode. It turns out that the SunPro C++ compiler does not properly
6086 # handle `-M -o', and we need to detect this. Also, some Intel
6087 # versions had trouble with output in subdirs
6088 am__obj=sub/conftest.${OBJEXT-o}
6089 am__minus_obj="-o $am__obj"
6090 case $depmode in
6091 gcc)
6092 # This depmode causes a compiler race in universal mode.
6093 test "$am__universal" = false || continue
6094 ;;
6095 nosideeffect)
6096 # after this tag, mechanisms are not by side-effect, so they'll
6097 # only be used when explicitly requested
6098 if test "x$enable_dependency_tracking" = xyes; then
6099 continue
6100 else
6101 break
6102 fi
6103 ;;
6104 msvisualcpp | msvcmsys)
6105 # This compiler won't grok `-c -o', but also, the minuso test has
6106 # not run yet. These depmodes are late enough in the game, and
6107 # so weak that their functioning should not be impacted.
6108 am__obj=conftest.${OBJEXT-o}
6109 am__minus_obj=
6110 ;;
6111 none) break ;;
6112 esac
6113 if depmode=$depmode \
6114 source=sub/conftest.c object=$am__obj \
6115 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6116 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6117 >/dev/null 2>conftest.err &&
6118 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6119 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6120 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6121 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6122 # icc doesn't choke on unknown options, it will just issue warnings
6123 # or remarks (even with -Werror). So we grep stderr for any message
6124 # that says an option was ignored or not supported.
6125 # When given -MP, icc 7.0 and 7.1 complain thusly:
6126 # icc: Command line warning: ignoring option '-M'; no argument required
6127 # The diagnosis changed in icc 8.0:
6128 # icc: Command line remark: option '-MP' not supported
6129 if (grep 'ignoring option' conftest.err ||
6130 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6131 am_cv_CC_dependencies_compiler_type=$depmode
6132 break
6133 fi
6134 fi
6135 done
6136
6137 cd ..
6138 rm -rf conftest.dir
6139else
6140 am_cv_CC_dependencies_compiler_type=none
6141fi
6142
6143fi
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6145$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6146CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6147
6148 if
6149 test "x$enable_dependency_tracking" != xno \
6150 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6151 am__fastdepCC_TRUE=
6152 am__fastdepCC_FALSE='#'
6153else
6154 am__fastdepCC_TRUE='#'
6155 am__fastdepCC_FALSE=
6156fi
6157
6158
cristy95646052009-11-28 23:05:30 +00006159ac_ext=cpp
6160ac_cpp='$CXXCPP $CPPFLAGS'
6161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6164if test -z "$CXX"; then
6165 if test -n "$CCC"; then
6166 CXX=$CCC
6167 else
6168 if test -n "$ac_tool_prefix"; then
6169 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6170 do
6171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6172set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006175if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006176 $as_echo_n "(cached) " >&6
6177else
6178 if test -n "$CXX"; then
6179 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192done
6193 done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198CXX=$ac_cv_prog_CXX
6199if test -n "$CXX"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6201$as_echo "$CXX" >&6; }
6202else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204$as_echo "no" >&6; }
6205fi
6206
6207
6208 test -n "$CXX" && break
6209 done
6210fi
6211if test -z "$CXX"; then
6212 ac_ct_CXX=$CXX
6213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6214do
6215 # Extract the first word of "$ac_prog", so it can be a program name with args.
6216set dummy $ac_prog; ac_word=$2
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006219if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006220 $as_echo_n "(cached) " >&6
6221else
6222 if test -n "$ac_ct_CXX"; then
6223 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6224else
6225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6232 ac_cv_prog_ac_ct_CXX="$ac_prog"
6233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6235 fi
6236done
6237 done
6238IFS=$as_save_IFS
6239
6240fi
6241fi
6242ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6243if test -n "$ac_ct_CXX"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6245$as_echo "$ac_ct_CXX" >&6; }
6246else
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248$as_echo "no" >&6; }
6249fi
6250
6251
6252 test -n "$ac_ct_CXX" && break
6253done
6254
6255 if test "x$ac_ct_CXX" = x; then
6256 CXX="g++"
6257 else
6258 case $cross_compiling:$ac_tool_warned in
6259yes:)
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262ac_tool_warned=yes ;;
6263esac
6264 CXX=$ac_ct_CXX
6265 fi
6266fi
6267
6268 fi
6269fi
6270# Provide some information about the compiler.
6271$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6272set X $ac_compile
6273ac_compiler=$2
6274for ac_option in --version -v -V -qversion; do
6275 { { ac_try="$ac_compiler $ac_option >&5"
6276case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
6280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6281$as_echo "$ac_try_echo"; } >&5
6282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6283 ac_status=$?
6284 if test -s conftest.err; then
6285 sed '10a\
6286... rest of stderr output deleted ...
6287 10q' conftest.err >conftest.er1
6288 cat conftest.er1 >&5
6289 fi
6290 rm -f conftest.er1 conftest.err
6291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292 test $ac_status = 0; }
6293done
6294
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6296$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006297if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006298 $as_echo_n "(cached) " >&6
6299else
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h. */
6302
6303int
6304main ()
6305{
6306#ifndef __GNUC__
6307 choke me
6308#endif
6309
6310 ;
6311 return 0;
6312}
6313_ACEOF
6314if ac_fn_cxx_try_compile "$LINENO"; then :
6315 ac_compiler_gnu=yes
6316else
6317 ac_compiler_gnu=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6321
6322fi
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6324$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6325if test $ac_compiler_gnu = yes; then
6326 GXX=yes
6327else
6328 GXX=
6329fi
6330ac_test_CXXFLAGS=${CXXFLAGS+set}
6331ac_save_CXXFLAGS=$CXXFLAGS
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6333$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006334if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006335 $as_echo_n "(cached) " >&6
6336else
6337 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6338 ac_cxx_werror_flag=yes
6339 ac_cv_prog_cxx_g=no
6340 CXXFLAGS="-g"
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h. */
6343
6344int
6345main ()
6346{
6347
6348 ;
6349 return 0;
6350}
6351_ACEOF
6352if ac_fn_cxx_try_compile "$LINENO"; then :
6353 ac_cv_prog_cxx_g=yes
6354else
6355 CXXFLAGS=""
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357/* end confdefs.h. */
6358
6359int
6360main ()
6361{
6362
6363 ;
6364 return 0;
6365}
6366_ACEOF
6367if ac_fn_cxx_try_compile "$LINENO"; then :
6368
6369else
6370 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6371 CXXFLAGS="-g"
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h. */
6374
6375int
6376main ()
6377{
6378
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383if ac_fn_cxx_try_compile "$LINENO"; then :
6384 ac_cv_prog_cxx_g=yes
6385fi
6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387fi
6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389fi
6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6392fi
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6394$as_echo "$ac_cv_prog_cxx_g" >&6; }
6395if test "$ac_test_CXXFLAGS" = set; then
6396 CXXFLAGS=$ac_save_CXXFLAGS
6397elif test $ac_cv_prog_cxx_g = yes; then
6398 if test "$GXX" = yes; then
6399 CXXFLAGS="-g -O2"
6400 else
6401 CXXFLAGS="-g"
6402 fi
6403else
6404 if test "$GXX" = yes; then
6405 CXXFLAGS="-O2"
6406 else
6407 CXXFLAGS=
6408 fi
6409fi
6410ac_ext=c
6411ac_cpp='$CPP $CPPFLAGS'
6412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415
cristy73bd4a52010-10-05 11:24:23 +00006416depcc="$CXX" am_compiler_list=
6417
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6419$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006420if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006421 $as_echo_n "(cached) " >&6
6422else
6423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6424 # We make a subdir and do the tests there. Otherwise we can end up
6425 # making bogus files that we don't know about and never remove. For
6426 # instance it was reported that on HP-UX the gcc test will end up
6427 # making a dummy file named `D' -- because `-MD' means `put the output
6428 # in D'.
6429 mkdir conftest.dir
6430 # Copy depcomp to subdir because otherwise we won't find it if we're
6431 # using a relative directory.
6432 cp "$am_depcomp" conftest.dir
6433 cd conftest.dir
6434 # We will build objects and dependencies in a subdirectory because
6435 # it helps to detect inapplicable dependency modes. For instance
6436 # both Tru64's cc and ICC support -MD to output dependencies as a
6437 # side effect of compilation, but ICC will put the dependencies in
6438 # the current directory while Tru64 will put them in the object
6439 # directory.
6440 mkdir sub
6441
6442 am_cv_CXX_dependencies_compiler_type=none
6443 if test "$am_compiler_list" = ""; then
6444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6445 fi
6446 am__universal=false
6447 case " $depcc " in #(
6448 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6449 esac
6450
6451 for depmode in $am_compiler_list; do
6452 # Setup a source with many dependencies, because some compilers
6453 # like to wrap large dependency lists on column 80 (with \), and
6454 # we should not choose a depcomp mode which is confused by this.
6455 #
6456 # We need to recreate these files for each test, as the compiler may
6457 # overwrite some of them when testing with obscure command lines.
6458 # This happens at least with the AIX C compiler.
6459 : > sub/conftest.c
6460 for i in 1 2 3 4 5 6; do
6461 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6462 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6463 # Solaris 8's {/usr,}/bin/sh.
6464 touch sub/conftst$i.h
6465 done
6466 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6467
6468 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6469 # mode. It turns out that the SunPro C++ compiler does not properly
6470 # handle `-M -o', and we need to detect this. Also, some Intel
6471 # versions had trouble with output in subdirs
6472 am__obj=sub/conftest.${OBJEXT-o}
6473 am__minus_obj="-o $am__obj"
6474 case $depmode in
6475 gcc)
6476 # This depmode causes a compiler race in universal mode.
6477 test "$am__universal" = false || continue
6478 ;;
6479 nosideeffect)
6480 # after this tag, mechanisms are not by side-effect, so they'll
6481 # only be used when explicitly requested
6482 if test "x$enable_dependency_tracking" = xyes; then
6483 continue
6484 else
6485 break
6486 fi
6487 ;;
6488 msvisualcpp | msvcmsys)
6489 # This compiler won't grok `-c -o', but also, the minuso test has
6490 # not run yet. These depmodes are late enough in the game, and
6491 # so weak that their functioning should not be impacted.
6492 am__obj=conftest.${OBJEXT-o}
6493 am__minus_obj=
6494 ;;
6495 none) break ;;
6496 esac
6497 if depmode=$depmode \
6498 source=sub/conftest.c object=$am__obj \
6499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6500 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6501 >/dev/null 2>conftest.err &&
6502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6504 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6506 # icc doesn't choke on unknown options, it will just issue warnings
6507 # or remarks (even with -Werror). So we grep stderr for any message
6508 # that says an option was ignored or not supported.
6509 # When given -MP, icc 7.0 and 7.1 complain thusly:
6510 # icc: Command line warning: ignoring option '-M'; no argument required
6511 # The diagnosis changed in icc 8.0:
6512 # icc: Command line remark: option '-MP' not supported
6513 if (grep 'ignoring option' conftest.err ||
6514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6515 am_cv_CXX_dependencies_compiler_type=$depmode
6516 break
6517 fi
6518 fi
6519 done
6520
6521 cd ..
6522 rm -rf conftest.dir
6523else
6524 am_cv_CXX_dependencies_compiler_type=none
6525fi
6526
6527fi
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6529$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6530CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6531
6532 if
6533 test "x$enable_dependency_tracking" != xno \
6534 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6535 am__fastdepCXX_TRUE=
6536 am__fastdepCXX_FALSE='#'
6537else
6538 am__fastdepCXX_TRUE='#'
6539 am__fastdepCXX_FALSE=
6540fi
6541
6542
cristy8b350f62009-11-15 23:12:43 +00006543 case $ac_cv_prog_cc_stdc in #(
6544 no) :
6545 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6546 *) :
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006548$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006549if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006550 $as_echo_n "(cached) " >&6
6551else
6552 ac_cv_prog_cc_c99=no
6553ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006555/* end confdefs.h. */
6556#include <stdarg.h>
6557#include <stdbool.h>
6558#include <stdlib.h>
6559#include <wchar.h>
6560#include <stdio.h>
6561
6562// Check varargs macros. These examples are taken from C99 6.10.3.5.
6563#define debug(...) fprintf (stderr, __VA_ARGS__)
6564#define showlist(...) puts (#__VA_ARGS__)
6565#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6566static void
6567test_varargs_macros (void)
6568{
6569 int x = 1234;
6570 int y = 5678;
6571 debug ("Flag");
6572 debug ("X = %d\n", x);
6573 showlist (The first, second, and third items.);
6574 report (x>y, "x is %d but y is %d", x, y);
6575}
6576
6577// Check long long types.
6578#define BIG64 18446744073709551615ull
6579#define BIG32 4294967295ul
6580#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6581#if !BIG_OK
6582 your preprocessor is broken;
6583#endif
6584#if BIG_OK
6585#else
6586 your preprocessor is broken;
6587#endif
6588static long long int bignum = -9223372036854775807LL;
6589static unsigned long long int ubignum = BIG64;
6590
6591struct incomplete_array
6592{
6593 int datasize;
6594 double data[];
6595};
6596
6597struct named_init {
6598 int number;
6599 const wchar_t *name;
6600 double average;
6601};
6602
6603typedef const char *ccp;
6604
6605static inline int
6606test_restrict (ccp restrict text)
6607{
6608 // See if C++-style comments work.
6609 // Iterate through items via the restricted pointer.
6610 // Also check for declarations in for loops.
6611 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6612 continue;
6613 return 0;
6614}
6615
6616// Check varargs and va_copy.
6617static void
6618test_varargs (const char *format, ...)
6619{
6620 va_list args;
6621 va_start (args, format);
6622 va_list args_copy;
6623 va_copy (args_copy, args);
6624
6625 const char *str;
6626 int number;
6627 float fnumber;
6628
6629 while (*format)
6630 {
6631 switch (*format++)
6632 {
6633 case 's': // string
6634 str = va_arg (args_copy, const char *);
6635 break;
6636 case 'd': // int
6637 number = va_arg (args_copy, int);
6638 break;
6639 case 'f': // float
6640 fnumber = va_arg (args_copy, double);
6641 break;
6642 default:
6643 break;
6644 }
6645 }
6646 va_end (args_copy);
6647 va_end (args);
6648}
6649
6650int
6651main ()
6652{
6653
6654 // Check bool.
6655 _Bool success = false;
6656
6657 // Check restrict.
6658 if (test_restrict ("String literal") == 0)
6659 success = true;
6660 char *restrict newvar = "Another string";
6661
6662 // Check varargs.
6663 test_varargs ("s, d' f .", "string", 65, 34.234);
6664 test_varargs_macros ();
6665
6666 // Check flexible array members.
6667 struct incomplete_array *ia =
6668 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6669 ia->datasize = 10;
6670 for (int i = 0; i < ia->datasize; ++i)
6671 ia->data[i] = i * 1.234;
6672
6673 // Check named initializers.
6674 struct named_init ni = {
6675 .number = 34,
6676 .name = L"Test wide string",
6677 .average = 543.34343,
6678 };
6679
6680 ni.number = 58;
6681
6682 int dynamic_array[ni.number];
6683 dynamic_array[ni.number - 1] = 543;
6684
6685 // work around unused variable warnings
6686 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6687 || dynamic_array[ni.number - 1] != 543);
6688
6689 ;
6690 return 0;
6691}
6692_ACEOF
6693for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6694do
6695 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006696 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006697 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006698fi
cristy3ed852e2009-09-05 21:47:34 +00006699rm -f core conftest.err conftest.$ac_objext
6700 test "x$ac_cv_prog_cc_c99" != "xno" && break
6701done
6702rm -f conftest.$ac_ext
6703CC=$ac_save_CC
6704
6705fi
6706# AC_CACHE_VAL
6707case "x$ac_cv_prog_cc_c99" in
6708 x)
cristy8b350f62009-11-15 23:12:43 +00006709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006710$as_echo "none needed" >&6; } ;;
6711 xno)
cristy8b350f62009-11-15 23:12:43 +00006712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006713$as_echo "unsupported" >&6; } ;;
6714 *)
6715 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006717$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6718esac
cristy8b350f62009-11-15 23:12:43 +00006719if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006720 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6721else
cristy8b350f62009-11-15 23:12:43 +00006722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006723$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006724if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006725 $as_echo_n "(cached) " >&6
6726else
6727 ac_cv_prog_cc_c89=no
6728ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006730/* end confdefs.h. */
6731#include <stdarg.h>
6732#include <stdio.h>
6733#include <sys/types.h>
6734#include <sys/stat.h>
6735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6736struct buf { int x; };
6737FILE * (*rcsopen) (struct buf *, struct stat *, int);
6738static char *e (p, i)
6739 char **p;
6740 int i;
6741{
6742 return p[i];
6743}
6744static char *f (char * (*g) (char **, int), char **p, ...)
6745{
6746 char *s;
6747 va_list v;
6748 va_start (v,p);
6749 s = g (p, va_arg (v,int));
6750 va_end (v);
6751 return s;
6752}
6753
6754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6755 function prototypes and stuff, but not '\xHH' hex character constants.
6756 These don't provoke an error unfortunately, instead are silently treated
6757 as 'x'. The following induces an error, until -std is added to get
6758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6759 array size at least. It's necessary to write '\x00'==0 to get something
6760 that's true only with -std. */
6761int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6762
6763/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6764 inside strings and character constants. */
6765#define FOO(x) 'x'
6766int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6767
6768int test (int i, double x);
6769struct s1 {int (*f) (int a);};
6770struct s2 {int (*f) (double a);};
6771int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6772int argc;
6773char **argv;
6774int
6775main ()
6776{
6777return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6778 ;
6779 return 0;
6780}
6781_ACEOF
6782for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6783 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6784do
6785 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006786 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006787 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006788fi
cristy3ed852e2009-09-05 21:47:34 +00006789rm -f core conftest.err conftest.$ac_objext
6790 test "x$ac_cv_prog_cc_c89" != "xno" && break
6791done
6792rm -f conftest.$ac_ext
6793CC=$ac_save_CC
6794
6795fi
6796# AC_CACHE_VAL
6797case "x$ac_cv_prog_cc_c89" in
6798 x)
cristy8b350f62009-11-15 23:12:43 +00006799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006800$as_echo "none needed" >&6; } ;;
6801 xno)
cristy8b350f62009-11-15 23:12:43 +00006802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006803$as_echo "unsupported" >&6; } ;;
6804 *)
6805 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006807$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6808esac
cristy8b350f62009-11-15 23:12:43 +00006809if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006810 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6811else
6812 ac_cv_prog_cc_stdc=no
6813fi
6814
cristy3ed852e2009-09-05 21:47:34 +00006815fi
cristy3ed852e2009-09-05 21:47:34 +00006816 ;;
6817esac
cristy8b350f62009-11-15 23:12:43 +00006818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006819$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006820 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006821 $as_echo_n "(cached) " >&6
6822fi
6823
cristy8b350f62009-11-15 23:12:43 +00006824 case $ac_cv_prog_cc_stdc in #(
6825 no) :
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6827$as_echo "unsupported" >&6; } ;; #(
6828 '') :
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6830$as_echo "none needed" >&6; } ;; #(
6831 *) :
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006833$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6834esac
6835
cristy3ed852e2009-09-05 21:47:34 +00006836ac_ext=c
6837ac_cpp='$CPP $CPPFLAGS'
6838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006842$as_echo_n "checking how to run the C preprocessor... " >&6; }
6843# On Suns, sometimes $CPP names a directory.
6844if test -n "$CPP" && test -d "$CPP"; then
6845 CPP=
6846fi
6847if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006848 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006849 $as_echo_n "(cached) " >&6
6850else
6851 # Double quotes because CPP needs to be expanded
6852 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6853 do
6854 ac_preproc_ok=false
6855for ac_c_preproc_warn_flag in '' yes
6856do
6857 # Use a header file that comes with gcc, so configuring glibc
6858 # with a fresh cross-compiler works.
6859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6860 # <limits.h> exists even on freestanding compilers.
6861 # On the NeXT, cc -E runs the code through the compiler's parser,
6862 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006864/* end confdefs.h. */
6865#ifdef __STDC__
6866# include <limits.h>
6867#else
6868# include <assert.h>
6869#endif
6870 Syntax error
6871_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006872if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006873
cristy8b350f62009-11-15 23:12:43 +00006874else
cristy3ed852e2009-09-05 21:47:34 +00006875 # Broken: fails on valid input.
6876continue
6877fi
cristyda16f162011-02-19 23:52:17 +00006878rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006879
6880 # OK, works on sane cases. Now check whether nonexistent headers
6881 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006883/* end confdefs.h. */
6884#include <ac_nonexistent.h>
6885_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006886if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006887 # Broken: success on invalid input.
6888continue
6889else
cristy3ed852e2009-09-05 21:47:34 +00006890 # Passes both tests.
6891ac_preproc_ok=:
6892break
6893fi
cristyda16f162011-02-19 23:52:17 +00006894rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006895
6896done
6897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006898rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006899if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006900 break
6901fi
6902
6903 done
6904 ac_cv_prog_CPP=$CPP
6905
6906fi
6907 CPP=$ac_cv_prog_CPP
6908else
6909 ac_cv_prog_CPP=$CPP
6910fi
cristy8b350f62009-11-15 23:12:43 +00006911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006912$as_echo "$CPP" >&6; }
6913ac_preproc_ok=false
6914for ac_c_preproc_warn_flag in '' yes
6915do
6916 # Use a header file that comes with gcc, so configuring glibc
6917 # with a fresh cross-compiler works.
6918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6919 # <limits.h> exists even on freestanding compilers.
6920 # On the NeXT, cc -E runs the code through the compiler's parser,
6921 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006923/* end confdefs.h. */
6924#ifdef __STDC__
6925# include <limits.h>
6926#else
6927# include <assert.h>
6928#endif
6929 Syntax error
6930_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006931if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006932
cristy8b350f62009-11-15 23:12:43 +00006933else
cristy3ed852e2009-09-05 21:47:34 +00006934 # Broken: fails on valid input.
6935continue
6936fi
cristyda16f162011-02-19 23:52:17 +00006937rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006938
6939 # OK, works on sane cases. Now check whether nonexistent headers
6940 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006942/* end confdefs.h. */
6943#include <ac_nonexistent.h>
6944_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006945if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006946 # Broken: success on invalid input.
6947continue
6948else
cristy3ed852e2009-09-05 21:47:34 +00006949 # Passes both tests.
6950ac_preproc_ok=:
6951break
6952fi
cristyda16f162011-02-19 23:52:17 +00006953rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006954
6955done
6956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006957rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006958if $ac_preproc_ok; then :
6959
cristy3ed852e2009-09-05 21:47:34 +00006960else
cristy8b350f62009-11-15 23:12:43 +00006961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006963as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6964See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006965fi
6966
6967ac_ext=c
6968ac_cpp='$CPP $CPPFLAGS'
6969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972
cristy73bd4a52010-10-05 11:24:23 +00006973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6974$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006975if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006976 $as_echo_n "(cached) " >&6
6977else
6978 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6979 for ac_i in 1 2 3 4 5 6 7; do
6980 ac_script="$ac_script$as_nl$ac_script"
6981 done
6982 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6983 { ac_script=; unset ac_script;}
6984 if test -z "$SED"; then
6985 ac_path_SED_found=false
6986 # Loop through the user's path and test for each of PROGNAME-LIST
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_prog in sed gsed; do
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6995 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6996# Check for GNU ac_path_SED and select it if it is found.
6997 # Check for GNU $ac_path_SED
6998case `"$ac_path_SED" --version 2>&1` in
6999*GNU*)
7000 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7001*)
7002 ac_count=0
7003 $as_echo_n 0123456789 >"conftest.in"
7004 while :
7005 do
7006 cat "conftest.in" "conftest.in" >"conftest.tmp"
7007 mv "conftest.tmp" "conftest.in"
7008 cp "conftest.in" "conftest.nl"
7009 $as_echo '' >> "conftest.nl"
7010 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7012 as_fn_arith $ac_count + 1 && ac_count=$as_val
7013 if test $ac_count -gt ${ac_path_SED_max-0}; then
7014 # Best one so far, save it but keep looking for a better one
7015 ac_cv_path_SED="$ac_path_SED"
7016 ac_path_SED_max=$ac_count
7017 fi
7018 # 10*(2^10) chars as input seems more than enough
7019 test $ac_count -gt 10 && break
7020 done
7021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7022esac
7023
7024 $ac_path_SED_found && break 3
7025 done
7026 done
7027 done
7028IFS=$as_save_IFS
7029 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007030 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007031 fi
7032else
7033 ac_cv_path_SED=$SED
7034fi
7035
7036fi
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7038$as_echo "$ac_cv_path_SED" >&6; }
7039 SED="$ac_cv_path_SED"
7040 rm -f conftest.sed
7041
7042test -z "$SED" && SED=sed
7043Xsed="$SED -e 1s/^X//"
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7056$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007057if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007058 $as_echo_n "(cached) " >&6
7059else
7060 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7061 then ac_cv_path_FGREP="$GREP -F"
7062 else
7063 if test -z "$FGREP"; then
7064 ac_path_FGREP_found=false
7065 # Loop through the user's path and test for each of PROGNAME-LIST
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_prog in fgrep; do
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7074 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7075# Check for GNU ac_path_FGREP and select it if it is found.
7076 # Check for GNU $ac_path_FGREP
7077case `"$ac_path_FGREP" --version 2>&1` in
7078*GNU*)
7079 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7080*)
7081 ac_count=0
7082 $as_echo_n 0123456789 >"conftest.in"
7083 while :
7084 do
7085 cat "conftest.in" "conftest.in" >"conftest.tmp"
7086 mv "conftest.tmp" "conftest.in"
7087 cp "conftest.in" "conftest.nl"
7088 $as_echo 'FGREP' >> "conftest.nl"
7089 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7091 as_fn_arith $ac_count + 1 && ac_count=$as_val
7092 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7093 # Best one so far, save it but keep looking for a better one
7094 ac_cv_path_FGREP="$ac_path_FGREP"
7095 ac_path_FGREP_max=$ac_count
7096 fi
7097 # 10*(2^10) chars as input seems more than enough
7098 test $ac_count -gt 10 && break
7099 done
7100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7101esac
7102
7103 $ac_path_FGREP_found && break 3
7104 done
7105 done
7106 done
7107IFS=$as_save_IFS
7108 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007109 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007110 fi
7111else
7112 ac_cv_path_FGREP=$FGREP
7113fi
7114
7115 fi
7116fi
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7118$as_echo "$ac_cv_path_FGREP" >&6; }
7119 FGREP="$ac_cv_path_FGREP"
7120
7121
7122test -z "$GREP" && GREP=grep
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
cristy0c60a692010-11-04 01:09:47 +00007140ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7141ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7142ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7143
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7145$as_echo_n "checking how to print strings... " >&6; }
7146# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007147if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007148 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7149 ECHO='print -r --'
7150elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7151 ECHO='printf %s\n'
7152else
7153 # Use this function as a fallback that always works.
7154 func_fallback_echo ()
7155 {
7156 eval 'cat <<_LTECHO_EOF
7157$1
7158_LTECHO_EOF'
7159 }
7160 ECHO='func_fallback_echo'
7161fi
7162
7163# func_echo_all arg...
7164# Invoke $ECHO with all args, space-separated.
7165func_echo_all ()
7166{
7167 $ECHO ""
7168}
7169
7170case "$ECHO" in
7171 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7172$as_echo "printf" >&6; } ;;
7173 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7174$as_echo "print -r" >&6; } ;;
7175 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7176$as_echo "cat" >&6; } ;;
7177esac
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
cristy73bd4a52010-10-05 11:24:23 +00007192
7193
7194# Check whether --with-gnu-ld was given.
7195if test "${with_gnu_ld+set}" = set; then :
7196 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7197else
7198 with_gnu_ld=no
7199fi
7200
7201ac_prog=ld
7202if test "$GCC" = yes; then
7203 # Check if gcc -print-prog-name=ld gives a path.
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7205$as_echo_n "checking for ld used by $CC... " >&6; }
7206 case $host in
7207 *-*-mingw*)
7208 # gcc leaves a trailing carriage return which upsets mingw
7209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7210 *)
7211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7212 esac
7213 case $ac_prog in
7214 # Accept absolute paths.
7215 [\\/]* | ?:[\\/]*)
7216 re_direlt='/[^/][^/]*/\.\./'
7217 # Canonicalize the pathname of ld
7218 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7219 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7220 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7221 done
7222 test -z "$LD" && LD="$ac_prog"
7223 ;;
7224 "")
7225 # If it fails, then pretend we aren't using GCC.
7226 ac_prog=ld
7227 ;;
7228 *)
7229 # If it is relative, then search for the first ld in PATH.
7230 with_gnu_ld=unknown
7231 ;;
7232 esac
7233elif test "$with_gnu_ld" = yes; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7235$as_echo_n "checking for GNU ld... " >&6; }
7236else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7238$as_echo_n "checking for non-GNU ld... " >&6; }
7239fi
cristyda16f162011-02-19 23:52:17 +00007240if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007241 $as_echo_n "(cached) " >&6
7242else
7243 if test -z "$LD"; then
7244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7245 for ac_dir in $PATH; do
7246 IFS="$lt_save_ifs"
7247 test -z "$ac_dir" && ac_dir=.
7248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7249 lt_cv_path_LD="$ac_dir/$ac_prog"
7250 # Check to see if the program is GNU ld. I'd rather use --version,
7251 # but apparently some variants of GNU ld only accept -v.
7252 # Break only if it was the GNU/non-GNU ld that we prefer.
7253 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7254 *GNU* | *'with BFD'*)
7255 test "$with_gnu_ld" != no && break
7256 ;;
7257 *)
7258 test "$with_gnu_ld" != yes && break
7259 ;;
7260 esac
7261 fi
7262 done
7263 IFS="$lt_save_ifs"
7264else
7265 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7266fi
7267fi
7268
7269LD="$lt_cv_path_LD"
7270if test -n "$LD"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7272$as_echo "$LD" >&6; }
7273else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275$as_echo "no" >&6; }
7276fi
cristy98dddb52010-11-04 00:30:15 +00007277test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7279$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007280if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007281 $as_echo_n "(cached) " >&6
7282else
7283 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7284case `$LD -v 2>&1 </dev/null` in
7285*GNU* | *'with BFD'*)
7286 lt_cv_prog_gnu_ld=yes
7287 ;;
7288*)
7289 lt_cv_prog_gnu_ld=no
7290 ;;
7291esac
7292fi
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7294$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7295with_gnu_ld=$lt_cv_prog_gnu_ld
7296
7297
7298
7299
7300
7301
7302
7303
7304
cristy3ed852e2009-09-05 21:47:34 +00007305
cristy837d6dc2010-02-27 01:16:57 +00007306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7307$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007308if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007309 $as_echo_n "(cached) " >&6
7310else
7311 ac_cv_prog_cc_c99=no
7312ac_save_CC=$CC
7313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h. */
7315#include <stdarg.h>
7316#include <stdbool.h>
7317#include <stdlib.h>
7318#include <wchar.h>
7319#include <stdio.h>
7320
7321// Check varargs macros. These examples are taken from C99 6.10.3.5.
7322#define debug(...) fprintf (stderr, __VA_ARGS__)
7323#define showlist(...) puts (#__VA_ARGS__)
7324#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7325static void
7326test_varargs_macros (void)
7327{
7328 int x = 1234;
7329 int y = 5678;
7330 debug ("Flag");
7331 debug ("X = %d\n", x);
7332 showlist (The first, second, and third items.);
7333 report (x>y, "x is %d but y is %d", x, y);
7334}
7335
7336// Check long long types.
7337#define BIG64 18446744073709551615ull
7338#define BIG32 4294967295ul
7339#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7340#if !BIG_OK
7341 your preprocessor is broken;
7342#endif
7343#if BIG_OK
7344#else
7345 your preprocessor is broken;
7346#endif
7347static long long int bignum = -9223372036854775807LL;
7348static unsigned long long int ubignum = BIG64;
7349
7350struct incomplete_array
7351{
7352 int datasize;
7353 double data[];
7354};
7355
7356struct named_init {
7357 int number;
7358 const wchar_t *name;
7359 double average;
7360};
7361
7362typedef const char *ccp;
7363
7364static inline int
7365test_restrict (ccp restrict text)
7366{
7367 // See if C++-style comments work.
7368 // Iterate through items via the restricted pointer.
7369 // Also check for declarations in for loops.
7370 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7371 continue;
7372 return 0;
7373}
7374
7375// Check varargs and va_copy.
7376static void
7377test_varargs (const char *format, ...)
7378{
7379 va_list args;
7380 va_start (args, format);
7381 va_list args_copy;
7382 va_copy (args_copy, args);
7383
7384 const char *str;
7385 int number;
7386 float fnumber;
7387
7388 while (*format)
7389 {
7390 switch (*format++)
7391 {
7392 case 's': // string
7393 str = va_arg (args_copy, const char *);
7394 break;
7395 case 'd': // int
7396 number = va_arg (args_copy, int);
7397 break;
7398 case 'f': // float
7399 fnumber = va_arg (args_copy, double);
7400 break;
7401 default:
7402 break;
7403 }
7404 }
7405 va_end (args_copy);
7406 va_end (args);
7407}
7408
7409int
7410main ()
7411{
7412
7413 // Check bool.
7414 _Bool success = false;
7415
7416 // Check restrict.
7417 if (test_restrict ("String literal") == 0)
7418 success = true;
7419 char *restrict newvar = "Another string";
7420
7421 // Check varargs.
7422 test_varargs ("s, d' f .", "string", 65, 34.234);
7423 test_varargs_macros ();
7424
7425 // Check flexible array members.
7426 struct incomplete_array *ia =
7427 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7428 ia->datasize = 10;
7429 for (int i = 0; i < ia->datasize; ++i)
7430 ia->data[i] = i * 1.234;
7431
7432 // Check named initializers.
7433 struct named_init ni = {
7434 .number = 34,
7435 .name = L"Test wide string",
7436 .average = 543.34343,
7437 };
7438
7439 ni.number = 58;
7440
7441 int dynamic_array[ni.number];
7442 dynamic_array[ni.number - 1] = 543;
7443
7444 // work around unused variable warnings
7445 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7446 || dynamic_array[ni.number - 1] != 543);
7447
7448 ;
7449 return 0;
7450}
7451_ACEOF
7452for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7453do
7454 CC="$ac_save_CC $ac_arg"
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 ac_cv_prog_cc_c99=$ac_arg
7457fi
7458rm -f core conftest.err conftest.$ac_objext
7459 test "x$ac_cv_prog_cc_c99" != "xno" && break
7460done
7461rm -f conftest.$ac_ext
7462CC=$ac_save_CC
7463
7464fi
7465# AC_CACHE_VAL
7466case "x$ac_cv_prog_cc_c99" in
7467 x)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7469$as_echo "none needed" >&6; } ;;
7470 xno)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7472$as_echo "unsupported" >&6; } ;;
7473 *)
7474 CC="$CC $ac_cv_prog_cc_c99"
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7476$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7477esac
7478if test "x$ac_cv_prog_cc_c99" != xno; then :
7479
7480fi
7481
7482
cristy73bd4a52010-10-05 11:24:23 +00007483if test "x$CC" != xcc; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7485$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7486else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7488$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7489fi
7490set dummy $CC; ac_cc=`$as_echo "$2" |
7491 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007492if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007493 $as_echo_n "(cached) " >&6
7494else
cristy73bd4a52010-10-05 11:24:23 +00007495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h. */
7497
7498int
7499main ()
7500{
7501
7502 ;
7503 return 0;
7504}
7505_ACEOF
7506# Make sure it works both with $CC and with simple cc.
7507# We do the test twice because some compilers refuse to overwrite an
7508# existing .o file with -o, though they will create one.
7509ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7510rm -f conftest2.*
7511if { { case "(($ac_try" in
7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514esac
7515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7516$as_echo "$ac_try_echo"; } >&5
7517 (eval "$ac_try") 2>&5
7518 ac_status=$?
7519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7520 test $ac_status = 0; } &&
7521 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524esac
7525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7526$as_echo "$ac_try_echo"; } >&5
7527 (eval "$ac_try") 2>&5
7528 ac_status=$?
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; };
7531then
7532 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7533 if test "x$CC" != xcc; then
7534 # Test first that cc exists at all.
7535 if { ac_try='cc -c conftest.$ac_ext >&5'
7536 { { case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
7540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7541$as_echo "$ac_try_echo"; } >&5
7542 (eval "$ac_try") 2>&5
7543 ac_status=$?
7544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545 test $ac_status = 0; }; }; then
7546 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7547 rm -f conftest2.*
7548 if { { case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551esac
7552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7553$as_echo "$ac_try_echo"; } >&5
7554 (eval "$ac_try") 2>&5
7555 ac_status=$?
7556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; } &&
7558 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7561esac
7562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7563$as_echo "$ac_try_echo"; } >&5
7564 (eval "$ac_try") 2>&5
7565 ac_status=$?
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; };
7568 then
7569 # cc works too.
7570 :
7571 else
7572 # cc exists but doesn't like -o.
7573 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7574 fi
7575 fi
7576 fi
7577else
7578 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7579fi
7580rm -f core conftest*
7581
7582fi
7583if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7585$as_echo "yes" >&6; }
7586else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
7589
7590$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7591
7592fi
7593
7594# FIXME: we rely on the cache variable name because
7595# there is no other way.
7596set dummy $CC
7597am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7598eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7599if test "$am_t" != yes; then
7600 # Losing compiler, so override with the script.
7601 # FIXME: It is wrong to rewrite CC.
7602 # But if we don't then we get into trouble of one sort or another.
7603 # A longer-term fix would be to have automake use am__CC in this case,
7604 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7605 CC="$am_aux_dir/compile $CC"
7606fi
7607
7608
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7610$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007611if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007612 $as_echo_n "(cached) " >&6
7613else
7614 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007615 ac_ext=c
7616ac_cpp='$CPP $CPPFLAGS'
7617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619ac_compiler_gnu=$ac_cv_c_compiler_gnu
7620
7621 ac_save_CFLAGS="$CFLAGS"
7622for 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" #
7623do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h. */
7626
7627int
7628main ()
7629{
cristy24fc1fe2010-10-23 21:13:01 +00007630
cristy73bd4a52010-10-05 11:24:23 +00007631 ;
7632 return 0;
7633}
7634_ACEOF
7635if ac_fn_c_try_compile "$LINENO"; then :
7636 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7637fi
7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639done
7640 CFLAGS="$ac_save_CFLAGS"
7641 ac_ext=c
7642ac_cpp='$CPP $CPPFLAGS'
7643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647
7648fi
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7650$as_echo "$ac_cv_cflags_warn_all" >&6; }
7651case ".$ac_cv_cflags_warn_all" in
7652 .ok|.ok,*) ;;
7653 .|.no|.no,*)
7654 ;;
7655 *)
7656 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7657 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7658 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7659 ac_status=$?
7660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661 test $ac_status = 0; }
7662 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7663 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7664 ac_status=$?
7665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7666 test $ac_status = 0; }
7667 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7668 fi
7669 ;;
nicolas6237c462010-10-05 06:11:49 +00007670esac
cristy3ed852e2009-09-05 21:47:34 +00007671
cristya0b81c32010-01-22 02:54:33 +00007672
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7674$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7675set x ${MAKE-make}
7676ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007677if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007678 $as_echo_n "(cached) " >&6
7679else
7680 cat >conftest.make <<\_ACEOF
7681SHELL = /bin/sh
7682all:
7683 @echo '@@@%%%=$(MAKE)=@@@%%%'
7684_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007685# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007686case `${MAKE-make} -f conftest.make 2>/dev/null` in
7687 *@@@%%%=?*=@@@%%%*)
7688 eval ac_cv_prog_make_${ac_make}_set=yes;;
7689 *)
7690 eval ac_cv_prog_make_${ac_make}_set=no;;
7691esac
7692rm -f conftest.make
7693fi
7694if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7696$as_echo "yes" >&6; }
7697 SET_MAKE=
7698else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
7701 SET_MAKE="MAKE=${MAKE-make}"
7702fi
7703
cristy8b350f62009-11-15 23:12:43 +00007704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007705$as_echo_n "checking whether ln -s works... " >&6; }
7706LN_S=$as_ln_s
7707if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007709$as_echo "yes" >&6; }
7710else
cristy8b350f62009-11-15 23:12:43 +00007711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007712$as_echo "no, using $LN_S" >&6; }
7713fi
7714
cristy73bd4a52010-10-05 11:24:23 +00007715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7716$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7717
7718# Check whether --with-dmalloc was given.
7719if test "${with_dmalloc+set}" = set; then :
7720 withval=$with_dmalloc; if test "$withval" = yes; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7722$as_echo "yes" >&6; }
7723
7724$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7725
7726 LIBS="$LIBS -ldmalloc"
7727 LDFLAGS="$LDFLAGS -g"
7728else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
7736
7737
7738
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7740$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007741if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007742 $as_echo_n "(cached) " >&6
7743else
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h. */
7746#include <stdlib.h>
7747 static void foo(void) __attribute__ ((unused));
7748 static void
7749 foo(void) {
7750 exit(1);
7751 }
7752
7753int
7754main ()
7755{
7756
7757 ;
7758 return 0;
7759}
7760_ACEOF
7761if ac_fn_c_try_compile "$LINENO"; then :
7762 ax_cv___attribute__=yes
7763else
7764 ax_cv___attribute__=no
7765
7766fi
7767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768
7769fi
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7771$as_echo "$ax_cv___attribute__" >&6; }
7772 if test "$ax_cv___attribute__" = "yes"; then
7773
7774$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7775
7776 fi
7777
7778
7779
7780if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7781 if test -n "$ac_tool_prefix"; then
7782 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7783set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007786if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007787 $as_echo_n "(cached) " >&6
7788else
7789 case $PKG_CONFIG in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7792 ;;
7793 *)
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806 done
7807IFS=$as_save_IFS
7808
7809 ;;
7810esac
7811fi
7812PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7813if test -n "$PKG_CONFIG"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7815$as_echo "$PKG_CONFIG" >&6; }
7816else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
7819fi
7820
7821
7822fi
7823if test -z "$ac_cv_path_PKG_CONFIG"; then
7824 ac_pt_PKG_CONFIG=$PKG_CONFIG
7825 # Extract the first word of "pkg-config", so it can be a program name with args.
7826set dummy pkg-config; ac_word=$2
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007829if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007830 $as_echo_n "(cached) " >&6
7831else
7832 case $ac_pt_PKG_CONFIG in
7833 [\\/]* | ?:[\\/]*)
7834 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7835 ;;
7836 *)
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848done
7849 done
7850IFS=$as_save_IFS
7851
7852 ;;
7853esac
7854fi
7855ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7856if test -n "$ac_pt_PKG_CONFIG"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7858$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7859else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861$as_echo "no" >&6; }
7862fi
7863
7864 if test "x$ac_pt_PKG_CONFIG" = x; then
7865 PKG_CONFIG=""
7866 else
7867 case $cross_compiling:$ac_tool_warned in
7868yes:)
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871ac_tool_warned=yes ;;
7872esac
7873 PKG_CONFIG=$ac_pt_PKG_CONFIG
7874 fi
7875else
7876 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7877fi
7878
7879fi
7880if test -n "$PKG_CONFIG"; then
7881 _pkg_min_version=0.9.0
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7883$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7884 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7886$as_echo "yes" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
7890 PKG_CONFIG=""
7891 fi
7892
7893fi
cristy3ed852e2009-09-05 21:47:34 +00007894
7895#
cristy3ed852e2009-09-05 21:47:34 +00007896# Enable run-time checking.
7897#
7898# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007899if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007900 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7901else
7902 enable_bounds_checking='no'
7903fi
7904
7905
7906if test "$enable_bounds_checking" = yes; then
7907
cristy8b350f62009-11-15 23:12:43 +00007908$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007909
7910fi
7911
7912#
7913# Tests for Windows
7914#
7915
7916
cristy73bd4a52010-10-05 11:24:23 +00007917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7918$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007919if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007920 $as_echo_n "(cached) " >&6
7921else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h. */
7924
7925int
7926main ()
7927{
7928#ifndef _MSC_VER
7929 choke me
7930#endif
7931
7932 ;
7933 return 0;
7934}
7935_ACEOF
7936if ac_fn_c_try_compile "$LINENO"; then :
7937 ax_compiler_ms=yes
7938else
7939 ax_compiler_ms=no
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942ax_cv_c_compiler_ms=$ax_compiler_ms
7943
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7946$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007947
7948GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007949native_win32_build='no'
7950cygwin_build='no'
7951case "${host_os}" in
7952 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007953 cygwin_build='yes'
7954 GDI32_LIBS='-lgdi32'
7955 ;;
7956 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007957 native_win32_build='yes'
7958 GDI32_LIBS='-lgdi32'
7959 ;;
7960esac
7961if test "${GDI32_LIBS}x" != 'x'; then
7962
cristy8b350f62009-11-15 23:12:43 +00007963$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007964
7965fi
7966
cristy73bd4a52010-10-05 11:24:23 +00007967 if test "${GDI32_LIBS}x" != 'x' ; then
7968 WINGDI32_DELEGATE_TRUE=
7969 WINGDI32_DELEGATE_FALSE='#'
7970else
7971 WINGDI32_DELEGATE_TRUE='#'
7972 WINGDI32_DELEGATE_FALSE=
7973fi
7974
7975 if test "${native_win32_build}" = 'yes' ; then
7976 WIN32_NATIVE_BUILD_TRUE=
7977 WIN32_NATIVE_BUILD_FALSE='#'
7978else
7979 WIN32_NATIVE_BUILD_TRUE='#'
7980 WIN32_NATIVE_BUILD_FALSE=
7981fi
7982
7983 if test "${cygwin_build}" = 'yes' ; then
7984 CYGWIN_BUILD_TRUE=
7985 CYGWIN_BUILD_FALSE='#'
7986else
7987 CYGWIN_BUILD_TRUE='#'
7988 CYGWIN_BUILD_FALSE=
7989fi
7990
7991 if test "x${CC}" = 'xcl.exe' ; then
7992 USING_CL_TRUE=
7993 USING_CL_FALSE='#'
7994else
7995 USING_CL_TRUE='#'
7996 USING_CL_FALSE=
7997fi
7998
cristy3ed852e2009-09-05 21:47:34 +00007999
8000WinPathScript="${srcdirfull}/winpath.sh"
8001
8002
8003#
8004# Compiler flags tweaks
8005#
8006if test "${GCC}" != "yes"; then
8007 case "${host}" in
8008 *-*-hpux* )
8009 # aCC: HP ANSI C++ B3910B A.03.34
8010 CFLAGS="${CFLAGS} -Wp,-H30000"
8011 if test -n "${CXXFLAGS}"; then
8012 CXXFLAGS='-AA'
8013 else
8014 CXXFLAGS="${CXXFLAGS} -AA"
8015 fi
8016 ;;
8017 *-dec-osf5.* )
8018 # Compaq alphaev68-dec-osf5.1 compiler
8019 if test -n "${CXXFLAGS}"; then
8020 CXXFLAGS='-std strict_ansi -noimplicit_include'
8021 else
8022 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8023 fi
8024 esac
8025fi
8026
8027# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008029$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008030if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008031 $as_echo_n "(cached) " >&6
8032else
8033
8034im_cv_ld_lazyload='none'
8035case "${host}" in
8036 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8037 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8038 im_cv_ld_lazyload='-Wl,-zlazyload'
8039 fi
8040 ;;
8041esac
8042
8043fi
cristy8b350f62009-11-15 23:12:43 +00008044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008045$as_echo "$im_cv_ld_lazyload" >&6; }
8046if test "${im_cv_ld_lazyload}" != 'none' ; then
8047 if test -z "${LDFLAGS}" ; then
8048 LDFLAGS="${im_cv_ld_lazyload}"
8049 else
8050 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8051 fi
8052fi
8053
8054case "$host" in
8055*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008056 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008057if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008058 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8059else
8060 build_osxuniversal=no
8061fi
8062
8063
8064 if test "${build_osxuniversal}" != no ; then
8065 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008066 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008067Please re-run configure with these options:
8068 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008069 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008070 fi
8071 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8072 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8073 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8074 fi
8075 ;;
8076esac
8077
8078# Enable support for threads
8079
8080# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008081if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008082 withval=$with_threads; with_threads=$withval
8083else
8084 with_threads='yes'
8085fi
8086
8087
8088have_threads=no
8089if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008090
8091
8092
8093ac_ext=c
8094ac_cpp='$CPP $CPPFLAGS'
8095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
8099ax_pthread_ok=no
8100
8101# We used to check for pthread.h first, but this fails if pthread.h
8102# requires special compiler flags (e.g. on True64 or Sequent).
8103# It gets checked for in the link test anyway.
8104
8105# First of all, check if the user has set any of the PTHREAD_LIBS,
8106# etcetera environment variables, and if threads linking works using
8107# them:
8108if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8109 save_CFLAGS="$CFLAGS"
8110 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8111 save_LIBS="$LIBS"
8112 LIBS="$PTHREAD_LIBS $LIBS"
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8114$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116/* end confdefs.h. */
8117
8118/* Override any GCC internal prototype to avoid an error.
8119 Use char because int might match the return type of a GCC
8120 builtin and then its argument prototype would still apply. */
8121#ifdef __cplusplus
8122extern "C"
8123#endif
8124char pthread_join ();
8125int
8126main ()
8127{
8128return pthread_join ();
8129 ;
8130 return 0;
8131}
8132_ACEOF
8133if ac_fn_c_try_link "$LINENO"; then :
8134 ax_pthread_ok=yes
8135fi
8136rm -f core conftest.err conftest.$ac_objext \
8137 conftest$ac_exeext conftest.$ac_ext
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8139$as_echo "$ax_pthread_ok" >&6; }
8140 if test x"$ax_pthread_ok" = xno; then
8141 PTHREAD_LIBS=""
8142 PTHREAD_CFLAGS=""
8143 fi
8144 LIBS="$save_LIBS"
8145 CFLAGS="$save_CFLAGS"
8146fi
8147
8148# We must check for the threads library under a number of different
8149# names; the ordering is very important because some systems
8150# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8151# libraries is broken (non-POSIX).
8152
8153# Create a list of thread flags to try. Items starting with a "-" are
8154# C compiler flags, and other items are library names, except for "none"
8155# which indicates that we try without any flags at all, and "pthread-config"
8156# which is a program returning the flags for the Pth emulation library.
8157
8158ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8159
8160# The ordering *is* (sometimes) important. Some notes on the
8161# individual items follow:
8162
8163# pthreads: AIX (must check this before -lpthread)
8164# none: in case threads are in libc; should be tried before -Kthread and
8165# other compiler flags to prevent continual compiler warnings
8166# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8167# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8168# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8169# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8170# -pthreads: Solaris/gcc
8171# -mthreads: Mingw32/gcc, Lynx/gcc
8172# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8173# doesn't hurt to check since this sometimes defines pthreads too;
8174# also defines -D_REENTRANT)
8175# ... -mt is also the pthreads flag for HP/aCC
8176# pthread: Linux, etcetera
8177# --thread-safe: KAI C++
8178# pthread-config: use pthread-config program (for GNU Pth library)
8179
8180case "${host_cpu}-${host_os}" in
8181 *solaris*)
8182
8183 # On Solaris (at least, for some versions), libc contains stubbed
8184 # (non-functional) versions of the pthreads routines, so link-based
8185 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8186 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8187 # a function called by this macro, so we could check for that, but
8188 # who knows whether they'll stub that too in a future libc.) So,
8189 # we'll just look for -pthreads and -lpthread first:
8190
8191 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8192 ;;
8193
8194 *-darwin*)
8195 ax_pthread_flags="-pthread $ax_pthread_flags"
8196 ;;
8197esac
8198
8199if test x"$ax_pthread_ok" = xno; then
8200for flag in $ax_pthread_flags; do
8201
8202 case $flag in
8203 none)
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8205$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8206 ;;
8207
8208 -*)
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8210$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8211 PTHREAD_CFLAGS="$flag"
8212 ;;
8213
8214 pthread-config)
8215 # Extract the first word of "pthread-config", so it can be a program name with args.
8216set dummy pthread-config; ac_word=$2
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008219if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008220 $as_echo_n "(cached) " >&6
8221else
8222 if test -n "$ax_pthread_config"; then
8223 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_ax_pthread_config="yes"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236done
8237 done
8238IFS=$as_save_IFS
8239
8240 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8241fi
8242fi
8243ax_pthread_config=$ac_cv_prog_ax_pthread_config
8244if test -n "$ax_pthread_config"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8246$as_echo "$ax_pthread_config" >&6; }
8247else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249$as_echo "no" >&6; }
8250fi
8251
8252
8253 if test x"$ax_pthread_config" = xno; then continue; fi
8254 PTHREAD_CFLAGS="`pthread-config --cflags`"
8255 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8256 ;;
8257
8258 *)
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8260$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8261 PTHREAD_LIBS="-l$flag"
8262 ;;
8263 esac
8264
8265 save_LIBS="$LIBS"
8266 save_CFLAGS="$CFLAGS"
8267 LIBS="$PTHREAD_LIBS $LIBS"
8268 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8269
8270 # Check for various functions. We must include pthread.h,
8271 # since some functions may be macros. (On the Sequent, we
8272 # need a special flag -Kthread to make this header compile.)
8273 # We check for pthread_join because it is in -lpthread on IRIX
8274 # while pthread_create is in libc. We check for pthread_attr_init
8275 # due to DEC craziness with -lpthreads. We check for
8276 # pthread_cleanup_push because it is one of the few pthread
8277 # functions on Solaris that doesn't have a non-functional libc stub.
8278 # We try pthread_create on general principles.
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h. */
8281#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008282 static void routine(void* a) {a=0;}
8283 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008284int
8285main ()
8286{
8287pthread_t th; pthread_attr_t attr;
8288 pthread_create(&th,0,start_routine,0);
8289 pthread_join(th, 0);
8290 pthread_attr_init(&attr);
8291 pthread_cleanup_push(routine, 0);
8292 pthread_cleanup_pop(0);
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297if ac_fn_c_try_link "$LINENO"; then :
8298 ax_pthread_ok=yes
8299fi
8300rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8302
8303 LIBS="$save_LIBS"
8304 CFLAGS="$save_CFLAGS"
8305
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8307$as_echo "$ax_pthread_ok" >&6; }
8308 if test "x$ax_pthread_ok" = xyes; then
8309 break;
8310 fi
8311
8312 PTHREAD_LIBS=""
8313 PTHREAD_CFLAGS=""
8314done
8315fi
8316
8317# Various other checks:
8318if test "x$ax_pthread_ok" = xyes; then
8319 save_LIBS="$LIBS"
8320 LIBS="$PTHREAD_LIBS $LIBS"
8321 save_CFLAGS="$CFLAGS"
8322 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8323
8324 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8326$as_echo_n "checking for joinable pthread attribute... " >&6; }
8327 attr_name=unknown
8328 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330/* end confdefs.h. */
8331#include <pthread.h>
8332int
8333main ()
8334{
8335int attr=$attr; return attr;
8336 ;
8337 return 0;
8338}
8339_ACEOF
8340if ac_fn_c_try_link "$LINENO"; then :
8341 attr_name=$attr; break
8342fi
8343rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8345 done
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8347$as_echo "$attr_name" >&6; }
8348 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8349
8350cat >>confdefs.h <<_ACEOF
8351#define PTHREAD_CREATE_JOINABLE $attr_name
8352_ACEOF
8353
8354 fi
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8357$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8358 flag=no
8359 case "${host_cpu}-${host_os}" in
8360 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8361 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8362 esac
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8364$as_echo "${flag}" >&6; }
8365 if test "x$flag" != xno; then
8366 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8367 fi
8368
8369 LIBS="$save_LIBS"
8370 CFLAGS="$save_CFLAGS"
8371
8372 # More AIX lossage: must compile with xlc_r or cc_r
8373 if test x"$GCC" != xyes; then
8374 for ac_prog in xlc_r cc_r
8375do
8376 # Extract the first word of "$ac_prog", so it can be a program name with args.
8377set dummy $ac_prog; ac_word=$2
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008380if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008381 $as_echo_n "(cached) " >&6
8382else
8383 if test -n "$PTHREAD_CC"; then
8384 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8385else
8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_prog_PTHREAD_CC="$ac_prog"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8396 fi
8397done
8398 done
8399IFS=$as_save_IFS
8400
8401fi
8402fi
8403PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8404if test -n "$PTHREAD_CC"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8406$as_echo "$PTHREAD_CC" >&6; }
8407else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
8410fi
8411
8412
8413 test -n "$PTHREAD_CC" && break
8414done
8415test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8416
8417 else
8418 PTHREAD_CC=$CC
8419 fi
8420else
8421 PTHREAD_CC="$CC"
8422fi
8423
8424
8425
8426
8427
8428# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8429if test x"$ax_pthread_ok" = xyes; then
8430
8431$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8432
8433 :
8434else
8435 ax_pthread_ok=no
8436
8437fi
8438ac_ext=c
8439ac_cpp='$CPP $CPPFLAGS'
8440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8442ac_compiler_gnu=$ac_cv_c_compiler_gnu
8443
8444
cristy7acf8fb2010-09-23 19:58:53 +00008445 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008446 have_threads=yes
8447 DEF_THREAD="$PTHREAD_CFLAGS"
8448 CFLAGS="$CFLAGS $DEF_THREAD"
8449 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8450 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008451 { $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 +00008452$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8453 CC="$PTHREAD_CC"
8454 fi
cristy55bf91c2010-09-24 00:29:41 +00008455
8456$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8457
cristy3ed852e2009-09-05 21:47:34 +00008458 fi
8459fi
8460
8461# Enable support for OpenMP
8462if test "$have_threads" != 'yes'; then
8463 ac_cv_prog_c_openmp=unsupported
8464fi
8465
8466 OPENMP_CFLAGS=
8467 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008468if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008469 enableval=$enable_openmp;
8470fi
8471
8472 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008474$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008475if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008476 $as_echo_n "(cached) " >&6
8477else
cristy8b350f62009-11-15 23:12:43 +00008478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008480
8481#ifndef _OPENMP
8482 choke me
8483#endif
8484#include <omp.h>
8485int main () { return omp_get_num_threads (); }
8486
8487_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008489 ac_cv_prog_c_openmp='none needed'
8490else
cristy8b350f62009-11-15 23:12:43 +00008491 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008492 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8493 ac_save_CFLAGS=$CFLAGS
8494 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008497
8498#ifndef _OPENMP
8499 choke me
8500#endif
8501#include <omp.h>
8502int main () { return omp_get_num_threads (); }
8503
8504_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008505if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008506 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008507fi
cristy8b350f62009-11-15 23:12:43 +00008508rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008510 CFLAGS=$ac_save_CFLAGS
8511 if test "$ac_cv_prog_c_openmp" != unsupported; then
8512 break
8513 fi
8514 done
8515fi
cristy8b350f62009-11-15 23:12:43 +00008516rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008518fi
cristy8b350f62009-11-15 23:12:43 +00008519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008520$as_echo "$ac_cv_prog_c_openmp" >&6; }
8521 case $ac_cv_prog_c_openmp in #(
8522 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008523 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008524 *)
cristy8b350f62009-11-15 23:12:43 +00008525 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008526 esac
8527 fi
8528
8529
8530CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8531MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8532
cristy391f1ce2010-09-09 17:23:28 +00008533if test "$enable_openmp" != no; then
8534 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8535 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8536 fi
8537fi
cristy3ed852e2009-09-05 21:47:34 +00008538
cristy736173a2009-09-20 21:18:22 +00008539# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008540
8541
8542
8543ac_ext=c
8544ac_cpp='$CPP $CPPFLAGS'
8545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8547ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548
8549ax_pthread_ok=no
8550
8551# We used to check for pthread.h first, but this fails if pthread.h
8552# requires special compiler flags (e.g. on True64 or Sequent).
8553# It gets checked for in the link test anyway.
8554
8555# First of all, check if the user has set any of the PTHREAD_LIBS,
8556# etcetera environment variables, and if threads linking works using
8557# them:
8558if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8559 save_CFLAGS="$CFLAGS"
8560 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8561 save_LIBS="$LIBS"
8562 LIBS="$PTHREAD_LIBS $LIBS"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8564$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566/* end confdefs.h. */
8567
8568/* Override any GCC internal prototype to avoid an error.
8569 Use char because int might match the return type of a GCC
8570 builtin and then its argument prototype would still apply. */
8571#ifdef __cplusplus
8572extern "C"
8573#endif
8574char pthread_join ();
8575int
8576main ()
8577{
8578return pthread_join ();
8579 ;
8580 return 0;
8581}
8582_ACEOF
8583if ac_fn_c_try_link "$LINENO"; then :
8584 ax_pthread_ok=yes
8585fi
8586rm -f core conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8589$as_echo "$ax_pthread_ok" >&6; }
8590 if test x"$ax_pthread_ok" = xno; then
8591 PTHREAD_LIBS=""
8592 PTHREAD_CFLAGS=""
8593 fi
8594 LIBS="$save_LIBS"
8595 CFLAGS="$save_CFLAGS"
8596fi
8597
8598# We must check for the threads library under a number of different
8599# names; the ordering is very important because some systems
8600# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8601# libraries is broken (non-POSIX).
8602
8603# Create a list of thread flags to try. Items starting with a "-" are
8604# C compiler flags, and other items are library names, except for "none"
8605# which indicates that we try without any flags at all, and "pthread-config"
8606# which is a program returning the flags for the Pth emulation library.
8607
8608ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8609
8610# The ordering *is* (sometimes) important. Some notes on the
8611# individual items follow:
8612
8613# pthreads: AIX (must check this before -lpthread)
8614# none: in case threads are in libc; should be tried before -Kthread and
8615# other compiler flags to prevent continual compiler warnings
8616# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8617# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8618# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8619# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8620# -pthreads: Solaris/gcc
8621# -mthreads: Mingw32/gcc, Lynx/gcc
8622# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8623# doesn't hurt to check since this sometimes defines pthreads too;
8624# also defines -D_REENTRANT)
8625# ... -mt is also the pthreads flag for HP/aCC
8626# pthread: Linux, etcetera
8627# --thread-safe: KAI C++
8628# pthread-config: use pthread-config program (for GNU Pth library)
8629
8630case "${host_cpu}-${host_os}" in
8631 *solaris*)
8632
8633 # On Solaris (at least, for some versions), libc contains stubbed
8634 # (non-functional) versions of the pthreads routines, so link-based
8635 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8636 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8637 # a function called by this macro, so we could check for that, but
8638 # who knows whether they'll stub that too in a future libc.) So,
8639 # we'll just look for -pthreads and -lpthread first:
8640
8641 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8642 ;;
8643
8644 *-darwin*)
8645 ax_pthread_flags="-pthread $ax_pthread_flags"
8646 ;;
8647esac
8648
8649if test x"$ax_pthread_ok" = xno; then
8650for flag in $ax_pthread_flags; do
8651
8652 case $flag in
8653 none)
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8655$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8656 ;;
8657
8658 -*)
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8660$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8661 PTHREAD_CFLAGS="$flag"
8662 ;;
8663
8664 pthread-config)
8665 # Extract the first word of "pthread-config", so it can be a program name with args.
8666set dummy pthread-config; ac_word=$2
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008669if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008670 $as_echo_n "(cached) " >&6
8671else
8672 if test -n "$ax_pthread_config"; then
8673 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8674else
8675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676for as_dir in $PATH
8677do
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682 ac_cv_prog_ax_pthread_config="yes"
8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 break 2
8685 fi
8686done
8687 done
8688IFS=$as_save_IFS
8689
8690 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8691fi
8692fi
8693ax_pthread_config=$ac_cv_prog_ax_pthread_config
8694if test -n "$ax_pthread_config"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8696$as_echo "$ax_pthread_config" >&6; }
8697else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699$as_echo "no" >&6; }
8700fi
8701
8702
8703 if test x"$ax_pthread_config" = xno; then continue; fi
8704 PTHREAD_CFLAGS="`pthread-config --cflags`"
8705 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8706 ;;
8707
8708 *)
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8710$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8711 PTHREAD_LIBS="-l$flag"
8712 ;;
8713 esac
8714
8715 save_LIBS="$LIBS"
8716 save_CFLAGS="$CFLAGS"
8717 LIBS="$PTHREAD_LIBS $LIBS"
8718 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8719
8720 # Check for various functions. We must include pthread.h,
8721 # since some functions may be macros. (On the Sequent, we
8722 # need a special flag -Kthread to make this header compile.)
8723 # We check for pthread_join because it is in -lpthread on IRIX
8724 # while pthread_create is in libc. We check for pthread_attr_init
8725 # due to DEC craziness with -lpthreads. We check for
8726 # pthread_cleanup_push because it is one of the few pthread
8727 # functions on Solaris that doesn't have a non-functional libc stub.
8728 # We try pthread_create on general principles.
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h. */
8731#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008732 static void routine(void* a) {a=0;}
8733 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008734int
8735main ()
8736{
8737pthread_t th; pthread_attr_t attr;
8738 pthread_create(&th,0,start_routine,0);
8739 pthread_join(th, 0);
8740 pthread_attr_init(&attr);
8741 pthread_cleanup_push(routine, 0);
8742 pthread_cleanup_pop(0);
8743 ;
8744 return 0;
8745}
8746_ACEOF
8747if ac_fn_c_try_link "$LINENO"; then :
8748 ax_pthread_ok=yes
8749fi
8750rm -f core conftest.err conftest.$ac_objext \
8751 conftest$ac_exeext conftest.$ac_ext
8752
8753 LIBS="$save_LIBS"
8754 CFLAGS="$save_CFLAGS"
8755
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8757$as_echo "$ax_pthread_ok" >&6; }
8758 if test "x$ax_pthread_ok" = xyes; then
8759 break;
8760 fi
8761
8762 PTHREAD_LIBS=""
8763 PTHREAD_CFLAGS=""
8764done
8765fi
8766
8767# Various other checks:
8768if test "x$ax_pthread_ok" = xyes; then
8769 save_LIBS="$LIBS"
8770 LIBS="$PTHREAD_LIBS $LIBS"
8771 save_CFLAGS="$CFLAGS"
8772 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8773
8774 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8776$as_echo_n "checking for joinable pthread attribute... " >&6; }
8777 attr_name=unknown
8778 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780/* end confdefs.h. */
8781#include <pthread.h>
8782int
8783main ()
8784{
8785int attr=$attr; return attr;
8786 ;
8787 return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_link "$LINENO"; then :
8791 attr_name=$attr; break
8792fi
8793rm -f core conftest.err conftest.$ac_objext \
8794 conftest$ac_exeext conftest.$ac_ext
8795 done
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8797$as_echo "$attr_name" >&6; }
8798 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8799
8800cat >>confdefs.h <<_ACEOF
8801#define PTHREAD_CREATE_JOINABLE $attr_name
8802_ACEOF
8803
8804 fi
8805
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8807$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8808 flag=no
8809 case "${host_cpu}-${host_os}" in
8810 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8811 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8812 esac
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8814$as_echo "${flag}" >&6; }
8815 if test "x$flag" != xno; then
8816 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8817 fi
8818
8819 LIBS="$save_LIBS"
8820 CFLAGS="$save_CFLAGS"
8821
8822 # More AIX lossage: must compile with xlc_r or cc_r
8823 if test x"$GCC" != xyes; then
8824 for ac_prog in xlc_r cc_r
8825do
8826 # Extract the first word of "$ac_prog", so it can be a program name with args.
8827set dummy $ac_prog; ac_word=$2
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008830if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008831 $as_echo_n "(cached) " >&6
8832else
8833 if test -n "$PTHREAD_CC"; then
8834 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8835else
8836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837for as_dir in $PATH
8838do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_prog_PTHREAD_CC="$ac_prog"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847done
8848 done
8849IFS=$as_save_IFS
8850
8851fi
8852fi
8853PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8854if test -n "$PTHREAD_CC"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8856$as_echo "$PTHREAD_CC" >&6; }
8857else
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859$as_echo "no" >&6; }
8860fi
8861
8862
8863 test -n "$PTHREAD_CC" && break
8864done
8865test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8866
8867 else
8868 PTHREAD_CC=$CC
8869 fi
8870else
8871 PTHREAD_CC="$CC"
8872fi
8873
8874
8875
8876
8877
8878# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8879if test x"$ax_pthread_ok" = xyes; then
8880
8881$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8882
8883 :
8884else
8885 ax_pthread_ok=no
8886
8887fi
8888ac_ext=c
8889ac_cpp='$CPP $CPPFLAGS'
8890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892ac_compiler_gnu=$ac_cv_c_compiler_gnu
8893
8894
8895
8896# Check whether --enable-opencl was given.
8897if test "${enable_opencl+set}" = set; then :
8898 enableval=$enable_opencl; disable_opencl=$enableval
8899else
8900 disable_opencl='yes'
8901fi
8902
8903
8904if test "$disable_opencl" = 'yes'; then
8905 ac_ext=c
8906ac_cpp='$CPP $CPPFLAGS'
8907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8909ac_compiler_gnu=$ac_cv_c_compiler_gnu
8910
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8912$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008913if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008914 $as_echo_n "(cached) " >&6
8915else
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917/* end confdefs.h. */
8918
8919int
8920main ()
8921{
8922#ifndef _MSC_VER
8923 choke me
8924#endif
8925
8926 ;
8927 return 0;
8928}
8929_ACEOF
8930if ac_fn_c_try_compile "$LINENO"; then :
8931 ax_compiler_ms=yes
8932else
8933 ax_compiler_ms=no
8934fi
8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936ax_cv_c_compiler_ms=$ax_compiler_ms
8937
8938fi
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8940$as_echo "$ax_cv_c_compiler_ms" >&6; }
8941 if test X$ax_compiler_ms = Xno; then :
8942 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8943fi
8944
8945 ax_save_CPPFLAGS=$CPPFLAGS
8946 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8947 for ac_header in CL/cl.h OpenCL/cl.h
8948do :
8949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8950ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008951if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008952 cat >>confdefs.h <<_ACEOF
8953#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8954_ACEOF
8955
8956fi
8957
8958done
8959
8960 CPPFLAGS=$ax_save_CPPFLAGS
8961
8962 for ac_header in windows.h
8963do :
8964 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008965if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008966 cat >>confdefs.h <<_ACEOF
8967#define HAVE_WINDOWS_H 1
8968_ACEOF
8969
8970fi
8971
8972done
8973
8974
8975
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8978$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008979if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008980 $as_echo_n "(cached) " >&6
8981else
8982 ax_cv_check_cl_libcl=no
8983 case $host_cpu in
8984 x86_64) ax_check_cl_libdir=lib64 ;;
8985 *) ax_check_cl_libdir=lib ;;
8986 esac
8987 ax_save_CPPFLAGS=$CPPFLAGS
8988 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8989 ax_save_LIBS=$LIBS
8990 LIBS=""
8991 ax_check_libs="-lOpenCL -lCL -lclparser"
8992 for ax_lib in $ax_check_libs; do
8993 if test X$ax_compiler_ms = Xyes; then :
8994 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8995else
8996 ax_try_lib=$ax_lib
8997fi
8998 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000/* end confdefs.h. */
9001
9002 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9003 # include <windows.h>
9004 # endif
9005 # ifdef HAVE_CL_CL_H
9006 # include <CL/cl.h>
9007 # elif defined(HAVE_OPENCL_CL_H)
9008 # include <OpenCL/cl.h>
9009 # else
9010 # error no CL.h
9011 # endif
9012int
9013main ()
9014{
9015clCreateContextFromType(0,0,0,0,0)
9016 ;
9017 return 0;
9018}
9019_ACEOF
9020if ac_fn_c_try_link "$LINENO"; then :
9021 ax_cv_check_cl_libcl=$ax_try_lib; break
9022else
9023 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"
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h. */
9026
9027 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9028 # include <windows.h>
9029 # endif
9030 # ifdef HAVE_CL_CL_H
9031 # include <CL/cl.h>
9032 # elif defined(HAVE_OPENCL_CL_H)
9033 # include <OpenCL/cl.h>
9034 # else
9035 # error no CL.h
9036 # endif
9037int
9038main ()
9039{
9040clCreateContextFromType(0,0,0,0,0)
9041 ;
9042 return 0;
9043}
9044_ACEOF
9045if ac_fn_c_try_link "$LINENO"; then :
9046 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9047else
cristy78c5a0c2010-12-04 20:00:59 +00009048 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 +00009049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h. */
9051
9052 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9053 # include <windows.h>
9054 # endif
9055 # ifdef HAVE_CL_CL_H
9056 # include <CL/cl.h>
9057 # elif defined(HAVE_OPENCL_CL_H)
9058 # include <OpenCL/cl.h>
9059 # else
9060 # error no CL.h
9061 # endif
9062int
9063main ()
9064{
9065clCreateContextFromType(0,0,0,0,0)
9066 ;
9067 return 0;
9068}
9069_ACEOF
9070if ac_fn_c_try_link "$LINENO"; then :
9071 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9072fi
9073rm -f core conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075fi
9076rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078fi
9079rm -f core conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081 done
9082
9083 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009084 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h. */
9087
9088 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9089 # include <windows.h>
9090 # endif
9091 # ifdef HAVE_CL_CL_H
9092 # include <CL/cl.h>
9093 # elif defined(HAVE_OPENCL_CL_H)
9094 # include <OpenCL/cl.h>
9095 # else
9096 # error no CL.h
9097 # endif
9098int
9099main ()
9100{
9101clCreateContextFromType(0,0,0,0,0)
9102 ;
9103 return 0;
9104}
9105_ACEOF
9106if ac_fn_c_try_link "$LINENO"; then :
9107 ax_cv_check_cl_libcl=$LIBS
9108fi
9109rm -f core conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111fi
9112
9113 LIBS=$ax_save_LIBS
9114 CPPFLAGS=$ax_save_CPPFLAGS
9115fi
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9117$as_echo "$ax_cv_check_cl_libcl" >&6; }
9118
9119 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9120 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9121else
9122 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9123$as_echo "#define _OPENCL 1" >>confdefs.h
9124
9125fi
9126 ac_ext=c
9127ac_cpp='$CPP $CPPFLAGS'
9128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9130ac_compiler_gnu=$ac_cv_c_compiler_gnu
9131
9132fi
9133
9134
9135
9136
cristyc7083c12009-10-14 03:16:55 +00009137CFLAGS="$CL_CFLAGS $CFLAGS"
9138LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009139
cristy391f1ce2010-09-09 17:23:28 +00009140if test "$enable_opencl" != no; then
9141 if test "_OPENCL" = '1'; then
9142 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9143 fi
cristyfd9dcd42010-08-08 18:07:02 +00009144fi
cristy2e8b51d2009-10-17 18:26:15 +00009145
cristy3ed852e2009-09-05 21:47:34 +00009146########
9147#
9148# Check for large file support
9149#
9150########
9151# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009152if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009153 enableval=$enable_largefile;
9154fi
9155
9156if test "$enable_largefile" != no; then
9157
cristy8b350f62009-11-15 23:12:43 +00009158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009159$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009160if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009161 $as_echo_n "(cached) " >&6
9162else
9163 ac_cv_sys_largefile_CC=no
9164 if test "$GCC" != yes; then
9165 ac_save_CC=$CC
9166 while :; do
9167 # IRIX 6.2 and later do not support large files by default,
9168 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009170/* end confdefs.h. */
9171#include <sys/types.h>
9172 /* Check that off_t can represent 2**63 - 1 correctly.
9173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9174 since some C++ compilers masquerading as C compilers
9175 incorrectly reject 9223372036854775807. */
9176#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9178 && LARGE_OFF_T % 2147483647 == 1)
9179 ? 1 : -1];
9180int
9181main ()
9182{
9183
9184 ;
9185 return 0;
9186}
9187_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009188 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009189 break
cristy3ed852e2009-09-05 21:47:34 +00009190fi
cristy3ed852e2009-09-05 21:47:34 +00009191rm -f core conftest.err conftest.$ac_objext
9192 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009193 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009194 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009195fi
cristy3ed852e2009-09-05 21:47:34 +00009196rm -f core conftest.err conftest.$ac_objext
9197 break
9198 done
9199 CC=$ac_save_CC
9200 rm -f conftest.$ac_ext
9201 fi
9202fi
cristy8b350f62009-11-15 23:12:43 +00009203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009204$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9205 if test "$ac_cv_sys_largefile_CC" != no; then
9206 CC=$CC$ac_cv_sys_largefile_CC
9207 fi
9208
cristy8b350f62009-11-15 23:12:43 +00009209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009210$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009211if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009212 $as_echo_n "(cached) " >&6
9213else
9214 while :; do
cristy8b350f62009-11-15 23:12:43 +00009215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009216/* end confdefs.h. */
9217#include <sys/types.h>
9218 /* Check that off_t can represent 2**63 - 1 correctly.
9219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9220 since some C++ compilers masquerading as C compilers
9221 incorrectly reject 9223372036854775807. */
9222#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9224 && LARGE_OFF_T % 2147483647 == 1)
9225 ? 1 : -1];
9226int
9227main ()
9228{
9229
9230 ;
9231 return 0;
9232}
9233_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009234if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009235 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009236fi
cristy3ed852e2009-09-05 21:47:34 +00009237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009239/* end confdefs.h. */
9240#define _FILE_OFFSET_BITS 64
9241#include <sys/types.h>
9242 /* Check that off_t can represent 2**63 - 1 correctly.
9243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9244 since some C++ compilers masquerading as C compilers
9245 incorrectly reject 9223372036854775807. */
9246#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9248 && LARGE_OFF_T % 2147483647 == 1)
9249 ? 1 : -1];
9250int
9251main ()
9252{
9253
9254 ;
9255 return 0;
9256}
9257_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009258if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009259 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009260fi
cristy3ed852e2009-09-05 21:47:34 +00009261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262 ac_cv_sys_file_offset_bits=unknown
9263 break
9264done
9265fi
cristy8b350f62009-11-15 23:12:43 +00009266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009267$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9268case $ac_cv_sys_file_offset_bits in #(
9269 no | unknown) ;;
9270 *)
9271cat >>confdefs.h <<_ACEOF
9272#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9273_ACEOF
9274;;
9275esac
9276rm -rf conftest*
9277 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009279$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009280if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009281 $as_echo_n "(cached) " >&6
9282else
9283 while :; do
cristy8b350f62009-11-15 23:12:43 +00009284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009285/* end confdefs.h. */
9286#include <sys/types.h>
9287 /* Check that off_t can represent 2**63 - 1 correctly.
9288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9289 since some C++ compilers masquerading as C compilers
9290 incorrectly reject 9223372036854775807. */
9291#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9293 && LARGE_OFF_T % 2147483647 == 1)
9294 ? 1 : -1];
9295int
9296main ()
9297{
9298
9299 ;
9300 return 0;
9301}
9302_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009303if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009304 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009305fi
cristy3ed852e2009-09-05 21:47:34 +00009306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009308/* end confdefs.h. */
9309#define _LARGE_FILES 1
9310#include <sys/types.h>
9311 /* Check that off_t can represent 2**63 - 1 correctly.
9312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9313 since some C++ compilers masquerading as C compilers
9314 incorrectly reject 9223372036854775807. */
9315#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9317 && LARGE_OFF_T % 2147483647 == 1)
9318 ? 1 : -1];
9319int
9320main ()
9321{
9322
9323 ;
9324 return 0;
9325}
9326_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009327if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009328 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009329fi
cristy3ed852e2009-09-05 21:47:34 +00009330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 ac_cv_sys_large_files=unknown
9332 break
9333done
9334fi
cristy8b350f62009-11-15 23:12:43 +00009335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009336$as_echo "$ac_cv_sys_large_files" >&6; }
9337case $ac_cv_sys_large_files in #(
9338 no | unknown) ;;
9339 *)
9340cat >>confdefs.h <<_ACEOF
9341#define _LARGE_FILES $ac_cv_sys_large_files
9342_ACEOF
9343;;
9344esac
9345rm -rf conftest*
9346 fi
9347fi
9348
cristy8b350f62009-11-15 23:12:43 +00009349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009350$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009351if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 $as_echo_n "(cached) " >&6
9353else
9354 while :; do
cristy8b350f62009-11-15 23:12:43 +00009355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009356/* end confdefs.h. */
9357#include <sys/types.h> /* for off_t */
9358 #include <stdio.h>
9359int
9360main ()
9361{
9362int (*fp) (FILE *, off_t, int) = fseeko;
9363 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9364 ;
9365 return 0;
9366}
9367_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009369 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009370fi
cristy8b350f62009-11-15 23:12:43 +00009371rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009374/* end confdefs.h. */
9375#define _LARGEFILE_SOURCE 1
9376#include <sys/types.h> /* for off_t */
9377 #include <stdio.h>
9378int
9379main ()
9380{
9381int (*fp) (FILE *, off_t, int) = fseeko;
9382 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9383 ;
9384 return 0;
9385}
9386_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009388 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009389fi
cristy8b350f62009-11-15 23:12:43 +00009390rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009392 ac_cv_sys_largefile_source=unknown
9393 break
9394done
9395fi
cristy8b350f62009-11-15 23:12:43 +00009396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009397$as_echo "$ac_cv_sys_largefile_source" >&6; }
9398case $ac_cv_sys_largefile_source in #(
9399 no | unknown) ;;
9400 *)
9401cat >>confdefs.h <<_ACEOF
9402#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9403_ACEOF
9404;;
9405esac
9406rm -rf conftest*
9407
9408# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9409# in glibc 2.1.3, but that breaks too many other things.
9410# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9411if test $ac_cv_sys_largefile_source != unknown; then
9412
cristy8b350f62009-11-15 23:12:43 +00009413$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009414
9415fi
9416
9417LFS_CPPFLAGS=''
9418if test "$enable_largefile" != no; then
9419 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9420 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9421 else
cristy8b350f62009-11-15 23:12:43 +00009422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009423$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009424 if test "$cross_compiling" = yes; then :
9425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009427as_fn_error $? "cannot run test program while cross compiling
9428See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009429else
cristy8b350f62009-11-15 23:12:43 +00009430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009432#include <unistd.h>
9433 main () {
9434 exit(!(sizeof(off_t) == 8));
9435 }
cristyda16f162011-02-19 23:52:17 +00009436int
9437main ()
9438{
9439
9440 ;
9441 return 0;
9442}
cristy3ed852e2009-09-05 21:47:34 +00009443_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009444if ac_fn_c_try_run "$LINENO"; then :
9445 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009446
cristy8b350f62009-11-15 23:12:43 +00009447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009448$as_echo "yes" >&6; }
9449else
cristy8b350f62009-11-15 23:12:43 +00009450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009451$as_echo "no" >&6; }
9452fi
cristy8b350f62009-11-15 23:12:43 +00009453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9454 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009455fi
9456
cristy3ed852e2009-09-05 21:47:34 +00009457 fi
9458 if test "$ac_cv_sys_large_files" != 'no'; then
9459 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9460 fi
9461 if test "$ac_cv_sys_largefile_source" != 'no'; then
9462 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9463 fi
9464fi
9465
9466
9467#
9468# Configure libtool & libltdl
9469#
9470# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009471enable_dlopen=yes
9472
9473
9474
9475case `pwd` in
9476 *\ * | *\ *)
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9478$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9479esac
9480
9481
9482
cristyda16f162011-02-19 23:52:17 +00009483macro_version='2.4'
9484macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498ltmain="$ac_aux_dir/ltmain.sh"
9499
cristy0c60a692010-11-04 01:09:47 +00009500# Backslashify metacharacters that are still active within
9501# double-quoted strings.
9502sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9503
9504# Same as above, but do not quote variable references.
9505double_quote_subst='s/\(["`\\]\)/\\\1/g'
9506
9507# Sed substitution to delay expansion of an escaped shell variable in a
9508# double_quote_subst'ed string.
9509delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9510
9511# Sed substitution to delay expansion of an escaped single quote.
9512delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9513
9514# Sed substitution to avoid accidental globbing in evaled expressions
9515no_glob_subst='s/\*/\\\*/g'
9516
cristy73bd4a52010-10-05 11:24:23 +00009517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9518$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009519if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009520 $as_echo_n "(cached) " >&6
9521else
9522 if test -n "$NM"; then
9523 # Let the user override the test.
9524 lt_cv_path_NM="$NM"
9525else
9526 lt_nm_to_check="${ac_tool_prefix}nm"
9527 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9528 lt_nm_to_check="$lt_nm_to_check nm"
9529 fi
9530 for lt_tmp_nm in $lt_nm_to_check; do
9531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9532 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9533 IFS="$lt_save_ifs"
9534 test -z "$ac_dir" && ac_dir=.
9535 tmp_nm="$ac_dir/$lt_tmp_nm"
9536 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9537 # Check to see if the nm accepts a BSD-compat flag.
9538 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9539 # nm: unknown option "B" ignored
9540 # Tru64's nm complains that /dev/null is an invalid object file
9541 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9542 */dev/null* | *'Invalid file or object type'*)
9543 lt_cv_path_NM="$tmp_nm -B"
9544 break
9545 ;;
9546 *)
9547 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9548 */dev/null*)
9549 lt_cv_path_NM="$tmp_nm -p"
9550 break
9551 ;;
9552 *)
9553 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9554 continue # so that we can try to find one that supports BSD flags
9555 ;;
9556 esac
9557 ;;
9558 esac
9559 fi
9560 done
9561 IFS="$lt_save_ifs"
9562 done
9563 : ${lt_cv_path_NM=no}
9564fi
9565fi
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9567$as_echo "$lt_cv_path_NM" >&6; }
9568if test "$lt_cv_path_NM" != "no"; then
9569 NM="$lt_cv_path_NM"
9570else
9571 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009572 if test -n "$DUMPBIN"; then :
9573 # Let the user override the test.
9574 else
9575 if test -n "$ac_tool_prefix"; then
9576 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009577 do
9578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9579set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009582if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009583 $as_echo_n "(cached) " >&6
9584else
9585 if test -n "$DUMPBIN"; then
9586 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599done
9600 done
9601IFS=$as_save_IFS
9602
9603fi
9604fi
9605DUMPBIN=$ac_cv_prog_DUMPBIN
9606if test -n "$DUMPBIN"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9608$as_echo "$DUMPBIN" >&6; }
9609else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9612fi
9613
9614
9615 test -n "$DUMPBIN" && break
9616 done
9617fi
9618if test -z "$DUMPBIN"; then
9619 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009620 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009621do
9622 # Extract the first word of "$ac_prog", so it can be a program name with args.
9623set dummy $ac_prog; ac_word=$2
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009626if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009627 $as_echo_n "(cached) " >&6
9628else
9629 if test -n "$ac_ct_DUMPBIN"; then
9630 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9631else
9632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633for as_dir in $PATH
9634do
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9639 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9642 fi
9643done
9644 done
9645IFS=$as_save_IFS
9646
9647fi
9648fi
9649ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9650if test -n "$ac_ct_DUMPBIN"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9652$as_echo "$ac_ct_DUMPBIN" >&6; }
9653else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655$as_echo "no" >&6; }
9656fi
9657
9658
9659 test -n "$ac_ct_DUMPBIN" && break
9660done
9661
9662 if test "x$ac_ct_DUMPBIN" = x; then
9663 DUMPBIN=":"
9664 else
9665 case $cross_compiling:$ac_tool_warned in
9666yes:)
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9669ac_tool_warned=yes ;;
9670esac
9671 DUMPBIN=$ac_ct_DUMPBIN
9672 fi
9673fi
9674
cristy0c60a692010-11-04 01:09:47 +00009675 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9676 *COFF*)
9677 DUMPBIN="$DUMPBIN -symbols"
9678 ;;
9679 *)
9680 DUMPBIN=:
9681 ;;
9682 esac
9683 fi
cristy73bd4a52010-10-05 11:24:23 +00009684
9685 if test "$DUMPBIN" != ":"; then
9686 NM="$DUMPBIN"
9687 fi
9688fi
9689test -z "$NM" && NM=nm
9690
9691
9692
9693
9694
9695
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9697$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009698if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009699 $as_echo_n "(cached) " >&6
9700else
9701 lt_cv_nm_interface="BSD nm"
9702 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009703 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009704 (eval "$ac_compile" 2>conftest.err)
9705 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009706 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009707 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9708 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009709 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009710 cat conftest.out >&5
9711 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9712 lt_cv_nm_interface="MS dumpbin"
9713 fi
9714 rm -f conftest*
9715fi
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9717$as_echo "$lt_cv_nm_interface" >&6; }
9718
9719# find the maximum length of command line arguments
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9721$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009722if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009723 $as_echo_n "(cached) " >&6
9724else
9725 i=0
9726 teststring="ABCD"
9727
9728 case $build_os in
9729 msdosdjgpp*)
9730 # On DJGPP, this test can blow up pretty badly due to problems in libc
9731 # (any single argument exceeding 2000 bytes causes a buffer overrun
9732 # during glob expansion). Even if it were fixed, the result of this
9733 # check would be larger than it should be.
9734 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9735 ;;
9736
9737 gnu*)
9738 # Under GNU Hurd, this test is not required because there is
9739 # no limit to the length of command line arguments.
9740 # Libtool will interpret -1 as no limit whatsoever
9741 lt_cv_sys_max_cmd_len=-1;
9742 ;;
9743
9744 cygwin* | mingw* | cegcc*)
9745 # On Win9x/ME, this test blows up -- it succeeds, but takes
9746 # about 5 minutes as the teststring grows exponentially.
9747 # Worse, since 9x/ME are not pre-emptively multitasking,
9748 # you end up with a "frozen" computer, even though with patience
9749 # the test eventually succeeds (with a max line length of 256k).
9750 # Instead, let's just punt: use the minimum linelength reported by
9751 # all of the supported platforms: 8192 (on NT/2K/XP).
9752 lt_cv_sys_max_cmd_len=8192;
9753 ;;
9754
cristy0c60a692010-11-04 01:09:47 +00009755 mint*)
9756 # On MiNT this can take a long time and run out of memory.
9757 lt_cv_sys_max_cmd_len=8192;
9758 ;;
9759
cristy73bd4a52010-10-05 11:24:23 +00009760 amigaos*)
9761 # On AmigaOS with pdksh, this test takes hours, literally.
9762 # So we just punt and use a minimum line length of 8192.
9763 lt_cv_sys_max_cmd_len=8192;
9764 ;;
9765
9766 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9767 # This has been around since 386BSD, at least. Likely further.
9768 if test -x /sbin/sysctl; then
9769 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9770 elif test -x /usr/sbin/sysctl; then
9771 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9772 else
9773 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9774 fi
9775 # And add a safety zone
9776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9778 ;;
9779
9780 interix*)
9781 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9782 lt_cv_sys_max_cmd_len=196608
9783 ;;
9784
9785 osf*)
9786 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9787 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9788 # nice to cause kernel panics so lets avoid the loop below.
9789 # First set a reasonable default.
9790 lt_cv_sys_max_cmd_len=16384
9791 #
9792 if test -x /sbin/sysconfig; then
9793 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9794 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9795 esac
9796 fi
9797 ;;
9798 sco3.2v5*)
9799 lt_cv_sys_max_cmd_len=102400
9800 ;;
9801 sysv5* | sco5v6* | sysv4.2uw2*)
9802 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9803 if test -n "$kargmax"; then
9804 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9805 else
9806 lt_cv_sys_max_cmd_len=32768
9807 fi
9808 ;;
9809 *)
9810 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9811 if test -n "$lt_cv_sys_max_cmd_len"; then
9812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9814 else
9815 # Make teststring a little bigger before we do anything with it.
9816 # a 1K string should be a reasonable start.
9817 for i in 1 2 3 4 5 6 7 8 ; do
9818 teststring=$teststring$teststring
9819 done
9820 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9821 # If test is not a shell built-in, we'll probably end up computing a
9822 # maximum length that is only half of the actual maximum length, but
9823 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009824 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9825 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009826 test $i != 17 # 1/2 MB should be enough
9827 do
9828 i=`expr $i + 1`
9829 teststring=$teststring$teststring
9830 done
9831 # Only check the string length outside the loop.
9832 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9833 teststring=
9834 # Add a significant safety factor because C++ compilers can tack on
9835 # massive amounts of additional arguments before passing them to the
9836 # linker. It appears as though 1/2 is a usable value.
9837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9838 fi
9839 ;;
9840 esac
9841
9842fi
9843
9844if test -n $lt_cv_sys_max_cmd_len ; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9846$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9847else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9849$as_echo "none" >&6; }
9850fi
9851max_cmd_len=$lt_cv_sys_max_cmd_len
9852
9853
9854
9855
9856
9857
9858: ${CP="cp -f"}
9859: ${MV="mv -f"}
9860: ${RM="rm -f"}
9861
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9863$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9864# Try some XSI features
9865xsi_shell=no
9866( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009867 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9868 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009869 && eval 'test $(( 1 + 1 )) -eq 2 \
9870 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9871 && xsi_shell=yes
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9873$as_echo "$xsi_shell" >&6; }
9874
9875
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9877$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9878lt_shell_append=no
9879( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9880 >/dev/null 2>&1 \
9881 && lt_shell_append=yes
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9883$as_echo "$lt_shell_append" >&6; }
9884
9885
9886if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9887 lt_unset=unset
9888else
9889 lt_unset=false
9890fi
9891
9892
9893
9894
9895
9896# test EBCDIC or ASCII
9897case `echo X|tr X '\101'` in
9898 A) # ASCII based system
9899 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9900 lt_SP2NL='tr \040 \012'
9901 lt_NL2SP='tr \015\012 \040\040'
9902 ;;
9903 *) # EBCDIC based system
9904 lt_SP2NL='tr \100 \n'
9905 lt_NL2SP='tr \r\n \100\100'
9906 ;;
9907esac
9908
9909
9910
9911
9912
9913
9914
9915
9916
cristyda16f162011-02-19 23:52:17 +00009917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9918$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9919if ${lt_cv_to_host_file_cmd+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921else
9922 case $host in
9923 *-*-mingw* )
9924 case $build in
9925 *-*-mingw* ) # actually msys
9926 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9927 ;;
9928 *-*-cygwin* )
9929 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9930 ;;
9931 * ) # otherwise, assume *nix
9932 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9933 ;;
9934 esac
9935 ;;
9936 *-*-cygwin* )
9937 case $build in
9938 *-*-mingw* ) # actually msys
9939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9940 ;;
9941 *-*-cygwin* )
9942 lt_cv_to_host_file_cmd=func_convert_file_noop
9943 ;;
9944 * ) # otherwise, assume *nix
9945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9946 ;;
9947 esac
9948 ;;
9949 * ) # unhandled hosts (and "normal" native builds)
9950 lt_cv_to_host_file_cmd=func_convert_file_noop
9951 ;;
9952esac
9953
9954fi
9955
9956to_host_file_cmd=$lt_cv_to_host_file_cmd
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9958$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9959
9960
9961
9962
9963
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9965$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9966if ${lt_cv_to_tool_file_cmd+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968else
9969 #assume ordinary cross tools, or native build.
9970lt_cv_to_tool_file_cmd=func_convert_file_noop
9971case $host in
9972 *-*-mingw* )
9973 case $build in
9974 *-*-mingw* ) # actually msys
9975 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9976 ;;
9977 esac
9978 ;;
9979esac
9980
9981fi
9982
9983to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9985$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9986
9987
9988
9989
9990
cristy73bd4a52010-10-05 11:24:23 +00009991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9992$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009993if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009994 $as_echo_n "(cached) " >&6
9995else
9996 lt_cv_ld_reload_flag='-r'
9997fi
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9999$as_echo "$lt_cv_ld_reload_flag" >&6; }
10000reload_flag=$lt_cv_ld_reload_flag
10001case $reload_flag in
10002"" | " "*) ;;
10003*) reload_flag=" $reload_flag" ;;
10004esac
10005reload_cmds='$LD$reload_flag -o $output$reload_objs'
10006case $host_os in
cristyda16f162011-02-19 23:52:17 +000010007 cygwin* | mingw* | pw32* | cegcc*)
10008 if test "$GCC" != yes; then
10009 reload_cmds=false
10010 fi
10011 ;;
cristy73bd4a52010-10-05 11:24:23 +000010012 darwin*)
10013 if test "$GCC" = yes; then
10014 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10015 else
10016 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10017 fi
10018 ;;
10019esac
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029if test -n "$ac_tool_prefix"; then
10030 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10031set dummy ${ac_tool_prefix}objdump; ac_word=$2
10032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010034if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010035 $as_echo_n "(cached) " >&6
10036else
10037 if test -n "$OBJDUMP"; then
10038 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10039else
10040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10041for as_dir in $PATH
10042do
10043 IFS=$as_save_IFS
10044 test -z "$as_dir" && as_dir=.
10045 for ac_exec_ext in '' $ac_executable_extensions; do
10046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10047 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10049 break 2
10050 fi
10051done
10052 done
10053IFS=$as_save_IFS
10054
10055fi
10056fi
10057OBJDUMP=$ac_cv_prog_OBJDUMP
10058if test -n "$OBJDUMP"; then
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10060$as_echo "$OBJDUMP" >&6; }
10061else
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063$as_echo "no" >&6; }
10064fi
10065
10066
10067fi
10068if test -z "$ac_cv_prog_OBJDUMP"; then
10069 ac_ct_OBJDUMP=$OBJDUMP
10070 # Extract the first word of "objdump", so it can be a program name with args.
10071set dummy objdump; ac_word=$2
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010074if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010075 $as_echo_n "(cached) " >&6
10076else
10077 if test -n "$ac_ct_OBJDUMP"; then
10078 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10079else
10080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081for as_dir in $PATH
10082do
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10087 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10090 fi
10091done
10092 done
10093IFS=$as_save_IFS
10094
10095fi
10096fi
10097ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10098if test -n "$ac_ct_OBJDUMP"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10100$as_echo "$ac_ct_OBJDUMP" >&6; }
10101else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103$as_echo "no" >&6; }
10104fi
10105
10106 if test "x$ac_ct_OBJDUMP" = x; then
10107 OBJDUMP="false"
10108 else
10109 case $cross_compiling:$ac_tool_warned in
10110yes:)
10111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10113ac_tool_warned=yes ;;
10114esac
10115 OBJDUMP=$ac_ct_OBJDUMP
10116 fi
10117else
10118 OBJDUMP="$ac_cv_prog_OBJDUMP"
10119fi
10120
10121test -z "$OBJDUMP" && OBJDUMP=objdump
10122
10123
10124
10125
10126
10127
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10129$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010130if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010131 $as_echo_n "(cached) " >&6
10132else
10133 lt_cv_file_magic_cmd='$MAGIC_CMD'
10134lt_cv_file_magic_test_file=
10135lt_cv_deplibs_check_method='unknown'
10136# Need to set the preceding variable on all platforms that support
10137# interlibrary dependencies.
10138# 'none' -- dependencies not supported.
10139# `unknown' -- same as none, but documents that we really don't know.
10140# 'pass_all' -- all dependencies passed with no checks.
10141# 'test_compile' -- check by making test program.
10142# 'file_magic [[regex]]' -- check by looking for files in library path
10143# which responds to the $file_magic_cmd with a given extended regex.
10144# If you have `file' or equivalent on your system and you're not sure
10145# whether `pass_all' will *always* work, you probably want this one.
10146
10147case $host_os in
10148aix[4-9]*)
10149 lt_cv_deplibs_check_method=pass_all
10150 ;;
10151
10152beos*)
10153 lt_cv_deplibs_check_method=pass_all
10154 ;;
10155
10156bsdi[45]*)
10157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10158 lt_cv_file_magic_cmd='/usr/bin/file -L'
10159 lt_cv_file_magic_test_file=/shlib/libc.so
10160 ;;
10161
10162cygwin*)
10163 # func_win32_libid is a shell function defined in ltmain.sh
10164 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10165 lt_cv_file_magic_cmd='func_win32_libid'
10166 ;;
10167
10168mingw* | pw32*)
10169 # Base MSYS/MinGW do not provide the 'file' command needed by
10170 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10171 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010172 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10173 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010174 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10175 lt_cv_file_magic_cmd='func_win32_libid'
10176 else
cristy0c60a692010-11-04 01:09:47 +000010177 # Keep this pattern in sync with the one in func_win32_libid.
10178 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 +000010179 lt_cv_file_magic_cmd='$OBJDUMP -f'
10180 fi
10181 ;;
10182
cristy0c60a692010-11-04 01:09:47 +000010183cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010184 # use the weaker test based on 'objdump'. See mingw*.
10185 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10186 lt_cv_file_magic_cmd='$OBJDUMP -f'
10187 ;;
10188
10189darwin* | rhapsody*)
10190 lt_cv_deplibs_check_method=pass_all
10191 ;;
10192
10193freebsd* | dragonfly*)
10194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10195 case $host_cpu in
10196 i*86 )
10197 # Not sure whether the presence of OpenBSD here was a mistake.
10198 # Let's accept both of them until this is cleared up.
10199 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10200 lt_cv_file_magic_cmd=/usr/bin/file
10201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10202 ;;
10203 esac
10204 else
10205 lt_cv_deplibs_check_method=pass_all
10206 fi
10207 ;;
10208
10209gnu*)
10210 lt_cv_deplibs_check_method=pass_all
10211 ;;
10212
cristy0c60a692010-11-04 01:09:47 +000010213haiku*)
10214 lt_cv_deplibs_check_method=pass_all
10215 ;;
10216
cristy73bd4a52010-10-05 11:24:23 +000010217hpux10.20* | hpux11*)
10218 lt_cv_file_magic_cmd=/usr/bin/file
10219 case $host_cpu in
10220 ia64*)
10221 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10222 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10223 ;;
10224 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010225 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 +000010226 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10227 ;;
10228 *)
cristy0c60a692010-11-04 01:09:47 +000010229 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 +000010230 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10231 ;;
10232 esac
10233 ;;
10234
10235interix[3-9]*)
10236 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10238 ;;
10239
10240irix5* | irix6* | nonstopux*)
10241 case $LD in
10242 *-32|*"-32 ") libmagic=32-bit;;
10243 *-n32|*"-n32 ") libmagic=N32;;
10244 *-64|*"-64 ") libmagic=64-bit;;
10245 *) libmagic=never-match;;
10246 esac
10247 lt_cv_deplibs_check_method=pass_all
10248 ;;
10249
10250# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010251linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010252 lt_cv_deplibs_check_method=pass_all
10253 ;;
10254
10255netbsd*)
10256 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10258 else
10259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10260 fi
10261 ;;
10262
10263newos6*)
10264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10265 lt_cv_file_magic_cmd=/usr/bin/file
10266 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10267 ;;
10268
10269*nto* | *qnx*)
10270 lt_cv_deplibs_check_method=pass_all
10271 ;;
10272
10273openbsd*)
10274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10276 else
10277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10278 fi
10279 ;;
10280
10281osf3* | osf4* | osf5*)
10282 lt_cv_deplibs_check_method=pass_all
10283 ;;
10284
10285rdos*)
10286 lt_cv_deplibs_check_method=pass_all
10287 ;;
10288
10289solaris*)
10290 lt_cv_deplibs_check_method=pass_all
10291 ;;
10292
10293sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10294 lt_cv_deplibs_check_method=pass_all
10295 ;;
10296
10297sysv4 | sysv4.3*)
10298 case $host_vendor in
10299 motorola)
10300 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]'
10301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10302 ;;
10303 ncr)
10304 lt_cv_deplibs_check_method=pass_all
10305 ;;
10306 sequent)
10307 lt_cv_file_magic_cmd='/bin/file'
10308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10309 ;;
10310 sni)
10311 lt_cv_file_magic_cmd='/bin/file'
10312 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10313 lt_cv_file_magic_test_file=/lib/libc.so
10314 ;;
10315 siemens)
10316 lt_cv_deplibs_check_method=pass_all
10317 ;;
10318 pc)
10319 lt_cv_deplibs_check_method=pass_all
10320 ;;
10321 esac
10322 ;;
10323
10324tpf*)
10325 lt_cv_deplibs_check_method=pass_all
10326 ;;
10327esac
10328
10329fi
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10331$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010332
10333file_magic_glob=
10334want_nocaseglob=no
10335if test "$build" = "$host"; then
10336 case $host_os in
10337 mingw* | pw32*)
10338 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10339 want_nocaseglob=yes
10340 else
10341 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10342 fi
10343 ;;
10344 esac
10345fi
10346
cristy73bd4a52010-10-05 11:24:23 +000010347file_magic_cmd=$lt_cv_file_magic_cmd
10348deplibs_check_method=$lt_cv_deplibs_check_method
10349test -z "$deplibs_check_method" && deplibs_check_method=unknown
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
cristyda16f162011-02-19 23:52:17 +000010362
10363
10364
10365
10366
10367
10368
10369
10370
10371
cristy73bd4a52010-10-05 11:24:23 +000010372if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010373 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10374set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010377if ${ac_cv_prog_DLLTOOL+:} false; then :
10378 $as_echo_n "(cached) " >&6
10379else
10380 if test -n "$DLLTOOL"; then
10381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10382else
10383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384for as_dir in $PATH
10385do
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
10389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10390 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10393 fi
10394done
10395 done
10396IFS=$as_save_IFS
10397
10398fi
10399fi
10400DLLTOOL=$ac_cv_prog_DLLTOOL
10401if test -n "$DLLTOOL"; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10403$as_echo "$DLLTOOL" >&6; }
10404else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406$as_echo "no" >&6; }
10407fi
10408
10409
10410fi
10411if test -z "$ac_cv_prog_DLLTOOL"; then
10412 ac_ct_DLLTOOL=$DLLTOOL
10413 # Extract the first word of "dlltool", so it can be a program name with args.
10414set dummy dlltool; ac_word=$2
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416$as_echo_n "checking for $ac_word... " >&6; }
10417if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419else
10420 if test -n "$ac_ct_DLLTOOL"; then
10421 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10422else
10423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424for as_dir in $PATH
10425do
10426 IFS=$as_save_IFS
10427 test -z "$as_dir" && as_dir=.
10428 for ac_exec_ext in '' $ac_executable_extensions; do
10429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10430 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432 break 2
10433 fi
10434done
10435 done
10436IFS=$as_save_IFS
10437
10438fi
10439fi
10440ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10441if test -n "$ac_ct_DLLTOOL"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10443$as_echo "$ac_ct_DLLTOOL" >&6; }
10444else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446$as_echo "no" >&6; }
10447fi
10448
10449 if test "x$ac_ct_DLLTOOL" = x; then
10450 DLLTOOL="false"
10451 else
10452 case $cross_compiling:$ac_tool_warned in
10453yes:)
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10456ac_tool_warned=yes ;;
10457esac
10458 DLLTOOL=$ac_ct_DLLTOOL
10459 fi
10460else
10461 DLLTOOL="$ac_cv_prog_DLLTOOL"
10462fi
10463
10464test -z "$DLLTOOL" && DLLTOOL=dlltool
10465
10466
10467
10468
10469
10470
10471
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10473$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10474if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10475 $as_echo_n "(cached) " >&6
10476else
10477 lt_cv_sharedlib_from_linklib_cmd='unknown'
10478
10479case $host_os in
10480cygwin* | mingw* | pw32* | cegcc*)
10481 # two different shell functions defined in ltmain.sh
10482 # decide which to use based on capabilities of $DLLTOOL
10483 case `$DLLTOOL --help 2>&1` in
10484 *--identify-strict*)
10485 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10486 ;;
10487 *)
10488 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10489 ;;
10490 esac
10491 ;;
10492*)
10493 # fallback: assume linklib IS sharedlib
10494 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10495 ;;
10496esac
10497
10498fi
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10500$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10501sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10502test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10503
10504
10505
10506
10507
10508
10509
10510if test -n "$ac_tool_prefix"; then
10511 for ac_prog in ar
10512 do
10513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516$as_echo_n "checking for $ac_word... " >&6; }
10517if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010518 $as_echo_n "(cached) " >&6
10519else
10520 if test -n "$AR"; then
10521 ac_cv_prog_AR="$AR" # Let the user override the test.
10522else
10523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $PATH
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010530 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535 done
10536IFS=$as_save_IFS
10537
10538fi
10539fi
10540AR=$ac_cv_prog_AR
10541if test -n "$AR"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10543$as_echo "$AR" >&6; }
10544else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546$as_echo "no" >&6; }
10547fi
10548
10549
cristyda16f162011-02-19 23:52:17 +000010550 test -n "$AR" && break
10551 done
cristy73bd4a52010-10-05 11:24:23 +000010552fi
cristyda16f162011-02-19 23:52:17 +000010553if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010554 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010555 for ac_prog in ar
10556do
10557 # Extract the first word of "$ac_prog", so it can be a program name with args.
10558set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010561if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010562 $as_echo_n "(cached) " >&6
10563else
10564 if test -n "$ac_ct_AR"; then
10565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10566else
10567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568for as_dir in $PATH
10569do
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 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 +000010574 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 break 2
10577 fi
10578done
10579 done
10580IFS=$as_save_IFS
10581
10582fi
10583fi
10584ac_ct_AR=$ac_cv_prog_ac_ct_AR
10585if test -n "$ac_ct_AR"; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10587$as_echo "$ac_ct_AR" >&6; }
10588else
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590$as_echo "no" >&6; }
10591fi
10592
cristyda16f162011-02-19 23:52:17 +000010593
10594 test -n "$ac_ct_AR" && break
10595done
10596
cristy73bd4a52010-10-05 11:24:23 +000010597 if test "x$ac_ct_AR" = x; then
10598 AR="false"
10599 else
10600 case $cross_compiling:$ac_tool_warned in
10601yes:)
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10604ac_tool_warned=yes ;;
10605esac
10606 AR=$ac_ct_AR
10607 fi
cristy73bd4a52010-10-05 11:24:23 +000010608fi
10609
cristyda16f162011-02-19 23:52:17 +000010610: ${AR=ar}
10611: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
cristyda16f162011-02-19 23:52:17 +000010623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10624$as_echo_n "checking for archiver @FILE support... " >&6; }
10625if ${lt_cv_ar_at_file+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627else
10628 lt_cv_ar_at_file=no
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630/* end confdefs.h. */
10631
10632int
10633main ()
10634{
10635
10636 ;
10637 return 0;
10638}
10639_ACEOF
10640if ac_fn_c_try_compile "$LINENO"; then :
10641 echo conftest.$ac_objext > conftest.lst
10642 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10644 (eval $lt_ar_try) 2>&5
10645 ac_status=$?
10646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10647 test $ac_status = 0; }
10648 if test "$ac_status" -eq 0; then
10649 # Ensure the archiver fails upon bogus file names.
10650 rm -f conftest.$ac_objext libconftest.a
10651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10652 (eval $lt_ar_try) 2>&5
10653 ac_status=$?
10654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10655 test $ac_status = 0; }
10656 if test "$ac_status" -ne 0; then
10657 lt_cv_ar_at_file=@
10658 fi
10659 fi
10660 rm -f conftest.* libconftest.a
10661
10662fi
10663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664
10665fi
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10667$as_echo "$lt_cv_ar_at_file" >&6; }
10668
10669if test "x$lt_cv_ar_at_file" = xno; then
10670 archiver_list_spec=
10671else
10672 archiver_list_spec=$lt_cv_ar_at_file
10673fi
10674
10675
10676
10677
10678
10679
10680
cristy73bd4a52010-10-05 11:24:23 +000010681if test -n "$ac_tool_prefix"; then
10682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10683set dummy ${ac_tool_prefix}strip; ac_word=$2
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010686if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010687 $as_echo_n "(cached) " >&6
10688else
10689 if test -n "$STRIP"; then
10690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10691else
10692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $PATH
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10702 fi
10703done
10704 done
10705IFS=$as_save_IFS
10706
10707fi
10708fi
10709STRIP=$ac_cv_prog_STRIP
10710if test -n "$STRIP"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10712$as_echo "$STRIP" >&6; }
10713else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715$as_echo "no" >&6; }
10716fi
10717
10718
10719fi
10720if test -z "$ac_cv_prog_STRIP"; then
10721 ac_ct_STRIP=$STRIP
10722 # Extract the first word of "strip", so it can be a program name with args.
10723set dummy strip; ac_word=$2
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010726if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010727 $as_echo_n "(cached) " >&6
10728else
10729 if test -n "$ac_ct_STRIP"; then
10730 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10731else
10732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733for as_dir in $PATH
10734do
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10739 ac_cv_prog_ac_ct_STRIP="strip"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741 break 2
10742 fi
10743done
10744 done
10745IFS=$as_save_IFS
10746
10747fi
10748fi
10749ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10750if test -n "$ac_ct_STRIP"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10752$as_echo "$ac_ct_STRIP" >&6; }
10753else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755$as_echo "no" >&6; }
10756fi
10757
10758 if test "x$ac_ct_STRIP" = x; then
10759 STRIP=":"
10760 else
10761 case $cross_compiling:$ac_tool_warned in
10762yes:)
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10765ac_tool_warned=yes ;;
10766esac
10767 STRIP=$ac_ct_STRIP
10768 fi
10769else
10770 STRIP="$ac_cv_prog_STRIP"
10771fi
10772
10773test -z "$STRIP" && STRIP=:
10774
10775
10776
10777
10778
10779
10780if test -n "$ac_tool_prefix"; then
10781 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10782set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010785if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010786 $as_echo_n "(cached) " >&6
10787else
10788 if test -n "$RANLIB"; then
10789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10790else
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802done
10803 done
10804IFS=$as_save_IFS
10805
10806fi
10807fi
10808RANLIB=$ac_cv_prog_RANLIB
10809if test -n "$RANLIB"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10811$as_echo "$RANLIB" >&6; }
10812else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
10815fi
10816
10817
10818fi
10819if test -z "$ac_cv_prog_RANLIB"; then
10820 ac_ct_RANLIB=$RANLIB
10821 # Extract the first word of "ranlib", so it can be a program name with args.
10822set dummy ranlib; ac_word=$2
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010825if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010826 $as_echo_n "(cached) " >&6
10827else
10828 if test -n "$ac_ct_RANLIB"; then
10829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10830else
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838 ac_cv_prog_ac_ct_RANLIB="ranlib"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10841 fi
10842done
10843 done
10844IFS=$as_save_IFS
10845
10846fi
10847fi
10848ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10849if test -n "$ac_ct_RANLIB"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10851$as_echo "$ac_ct_RANLIB" >&6; }
10852else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
10855fi
10856
10857 if test "x$ac_ct_RANLIB" = x; then
10858 RANLIB=":"
10859 else
10860 case $cross_compiling:$ac_tool_warned in
10861yes:)
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10864ac_tool_warned=yes ;;
10865esac
10866 RANLIB=$ac_ct_RANLIB
10867 fi
10868else
10869 RANLIB="$ac_cv_prog_RANLIB"
10870fi
10871
10872test -z "$RANLIB" && RANLIB=:
10873
10874
10875
10876
10877
10878
10879# Determine commands to create old-style static archives.
10880old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10881old_postinstall_cmds='chmod 644 $oldlib'
10882old_postuninstall_cmds=
10883
10884if test -n "$RANLIB"; then
10885 case $host_os in
10886 openbsd*)
10887 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10888 ;;
10889 *)
10890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10891 ;;
10892 esac
10893 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10894fi
10895
cristy0c60a692010-11-04 01:09:47 +000010896case $host_os in
10897 darwin*)
10898 lock_old_archive_extraction=yes ;;
10899 *)
10900 lock_old_archive_extraction=no ;;
10901esac
10902
10903
10904
10905
10906
10907
cristy73bd4a52010-10-05 11:24:23 +000010908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941# If no C compiler was specified, use CC.
10942LTCC=${LTCC-"$CC"}
10943
10944# If no C compiler flags were specified, use CFLAGS.
10945LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10946
10947# Allow CC to be a program name with arguments.
10948compiler=$CC
10949
10950
10951# Check for command to grab the raw symbol name followed by C symbol from nm.
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10953$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010954if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010955 $as_echo_n "(cached) " >&6
10956else
10957
10958# These are sane defaults that work on at least a few old systems.
10959# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10960
10961# Character class describing NM global symbol codes.
10962symcode='[BCDEGRST]'
10963
10964# Regexp to match symbols that can be accessed directly from C.
10965sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10966
10967# Define system-specific variables.
10968case $host_os in
10969aix*)
10970 symcode='[BCDT]'
10971 ;;
10972cygwin* | mingw* | pw32* | cegcc*)
10973 symcode='[ABCDGISTW]'
10974 ;;
10975hpux*)
10976 if test "$host_cpu" = ia64; then
10977 symcode='[ABCDEGRST]'
10978 fi
10979 ;;
10980irix* | nonstopux*)
10981 symcode='[BCDEGRST]'
10982 ;;
10983osf*)
10984 symcode='[BCDEGQRST]'
10985 ;;
10986solaris*)
10987 symcode='[BDRT]'
10988 ;;
10989sco3.2v5*)
10990 symcode='[DT]'
10991 ;;
10992sysv4.2uw2*)
10993 symcode='[DT]'
10994 ;;
10995sysv5* | sco5v6* | unixware* | OpenUNIX*)
10996 symcode='[ABDT]'
10997 ;;
10998sysv4)
10999 symcode='[DFNSTU]'
11000 ;;
11001esac
11002
11003# If we're using GNU nm, then use its standard symbol codes.
11004case `$NM -V 2>&1` in
11005*GNU* | *'with BFD'*)
11006 symcode='[ABCDGIRSTW]' ;;
11007esac
11008
11009# Transform an extracted symbol line into a proper C declaration.
11010# Some systems (esp. on ia64) link data and code symbols differently,
11011# so use this general approach.
11012lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11013
11014# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011015lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11016lt_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 +000011017
11018# Handle CRLF in mingw tool chain
11019opt_cr=
11020case $build_os in
11021mingw*)
11022 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11023 ;;
11024esac
11025
11026# Try without a prefix underscore, then with it.
11027for ac_symprfx in "" "_"; do
11028
11029 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11030 symxfrm="\\1 $ac_symprfx\\2 \\2"
11031
11032 # Write the raw and C identifiers.
11033 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11034 # Fake it for dumpbin and say T for any non-static function
11035 # and D for any global variable.
11036 # Also find C++ and __fastcall symbols from MSVC++,
11037 # which start with @ or ?.
11038 lt_cv_sys_global_symbol_pipe="$AWK '"\
11039" {last_section=section; section=\$ 3};"\
11040" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11041" \$ 0!~/External *\|/{next};"\
11042" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11043" {if(hide[section]) next};"\
11044" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11045" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11046" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11047" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11048" ' prfx=^$ac_symprfx"
11049 else
11050 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11051 fi
cristyda16f162011-02-19 23:52:17 +000011052 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011053
11054 # Check to see that the pipe works correctly.
11055 pipe_works=no
11056
11057 rm -f conftest*
11058 cat > conftest.$ac_ext <<_LT_EOF
11059#ifdef __cplusplus
11060extern "C" {
11061#endif
11062char nm_test_var;
11063void nm_test_func(void);
11064void nm_test_func(void){}
11065#ifdef __cplusplus
11066}
11067#endif
11068int main(){nm_test_var='a';nm_test_func();return(0);}
11069_LT_EOF
11070
11071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11072 (eval $ac_compile) 2>&5
11073 ac_status=$?
11074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075 test $ac_status = 0; }; then
11076 # Now try to grab the symbols.
11077 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11079 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011080 ac_status=$?
11081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082 test $ac_status = 0; } && test -s "$nlist"; then
11083 # Try sorting and uniquifying the output.
11084 if sort "$nlist" | uniq > "$nlist"T; then
11085 mv -f "$nlist"T "$nlist"
11086 else
11087 rm -f "$nlist"T
11088 fi
11089
11090 # Make sure that we snagged all the symbols we need.
11091 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11092 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11093 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011094/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11095#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11096/* DATA imports from DLLs on WIN32 con't be const, because runtime
11097 relocations are performed -- see ld's documentation on pseudo-relocs. */
11098# define LT_DLSYM_CONST
11099#elif defined(__osf__)
11100/* This system does not cope well with relocations in const data. */
11101# define LT_DLSYM_CONST
11102#else
11103# define LT_DLSYM_CONST const
11104#endif
11105
cristy73bd4a52010-10-05 11:24:23 +000011106#ifdef __cplusplus
11107extern "C" {
11108#endif
11109
11110_LT_EOF
11111 # Now generate the symbol file.
11112 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11113
11114 cat <<_LT_EOF >> conftest.$ac_ext
11115
11116/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011117LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011118 const char *name;
11119 void *address;
11120}
11121lt__PROGRAM__LTX_preloaded_symbols[] =
11122{
11123 { "@PROGRAM@", (void *) 0 },
11124_LT_EOF
11125 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11126 cat <<\_LT_EOF >> conftest.$ac_ext
11127 {0, (void *) 0}
11128};
11129
11130/* This works around a problem in FreeBSD linker */
11131#ifdef FREEBSD_WORKAROUND
11132static const void *lt_preloaded_setup() {
11133 return lt__PROGRAM__LTX_preloaded_symbols;
11134}
11135#endif
11136
11137#ifdef __cplusplus
11138}
11139#endif
11140_LT_EOF
11141 # Now try linking the two files.
11142 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011143 lt_globsym_save_LIBS=$LIBS
11144 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011145 LIBS="conftstm.$ac_objext"
11146 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11148 (eval $ac_link) 2>&5
11149 ac_status=$?
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11152 pipe_works=yes
11153 fi
cristyda16f162011-02-19 23:52:17 +000011154 LIBS=$lt_globsym_save_LIBS
11155 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011156 else
11157 echo "cannot find nm_test_func in $nlist" >&5
11158 fi
11159 else
11160 echo "cannot find nm_test_var in $nlist" >&5
11161 fi
11162 else
11163 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11164 fi
11165 else
11166 echo "$progname: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 fi
11169 rm -rf conftest* conftst*
11170
11171 # Do not use the global_symbol_pipe unless it works.
11172 if test "$pipe_works" = yes; then
11173 break
11174 else
11175 lt_cv_sys_global_symbol_pipe=
11176 fi
11177done
11178
11179fi
11180
11181if test -z "$lt_cv_sys_global_symbol_pipe"; then
11182 lt_cv_sys_global_symbol_to_cdecl=
11183fi
11184if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11186$as_echo "failed" >&6; }
11187else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11189$as_echo "ok" >&6; }
11190fi
11191
cristyda16f162011-02-19 23:52:17 +000011192# Response file support.
11193if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11194 nm_file_list_spec='@'
11195elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11196 nm_file_list_spec='@'
11197fi
cristy73bd4a52010-10-05 11:24:23 +000011198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
cristyda16f162011-02-19 23:52:17 +000011219
11220
11221
11222
11223
11224
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11226$as_echo_n "checking for sysroot... " >&6; }
11227
11228# Check whether --with-sysroot was given.
11229if test "${with_sysroot+set}" = set; then :
11230 withval=$with_sysroot;
11231else
11232 with_sysroot=no
11233fi
11234
11235
11236lt_sysroot=
11237case ${with_sysroot} in #(
11238 yes)
11239 if test "$GCC" = yes; then
11240 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11241 fi
11242 ;; #(
11243 /*)
11244 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11245 ;; #(
11246 no|'')
11247 ;; #(
11248 *)
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11250$as_echo "${with_sysroot}" >&6; }
11251 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11252 ;;
11253esac
11254
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11256$as_echo "${lt_sysroot:-no}" >&6; }
11257
11258
11259
11260
11261
cristy73bd4a52010-10-05 11:24:23 +000011262# Check whether --enable-libtool-lock was given.
11263if test "${enable_libtool_lock+set}" = set; then :
11264 enableval=$enable_libtool_lock;
11265fi
11266
11267test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11268
11269# Some flags need to be propagated to the compiler or linker for good
11270# libtool support.
11271case $host in
11272ia64-*-hpux*)
11273 # Find out which ABI we are using.
11274 echo 'int i;' > conftest.$ac_ext
11275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11276 (eval $ac_compile) 2>&5
11277 ac_status=$?
11278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11279 test $ac_status = 0; }; then
11280 case `/usr/bin/file conftest.$ac_objext` in
11281 *ELF-32*)
11282 HPUX_IA64_MODE="32"
11283 ;;
11284 *ELF-64*)
11285 HPUX_IA64_MODE="64"
11286 ;;
11287 esac
11288 fi
11289 rm -rf conftest*
11290 ;;
11291*-*-irix6*)
11292 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011293 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11295 (eval $ac_compile) 2>&5
11296 ac_status=$?
11297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298 test $ac_status = 0; }; then
11299 if test "$lt_cv_prog_gnu_ld" = yes; then
11300 case `/usr/bin/file conftest.$ac_objext` in
11301 *32-bit*)
11302 LD="${LD-ld} -melf32bsmip"
11303 ;;
11304 *N32*)
11305 LD="${LD-ld} -melf32bmipn32"
11306 ;;
11307 *64-bit*)
11308 LD="${LD-ld} -melf64bmip"
11309 ;;
11310 esac
11311 else
11312 case `/usr/bin/file conftest.$ac_objext` in
11313 *32-bit*)
11314 LD="${LD-ld} -32"
11315 ;;
11316 *N32*)
11317 LD="${LD-ld} -n32"
11318 ;;
11319 *64-bit*)
11320 LD="${LD-ld} -64"
11321 ;;
11322 esac
11323 fi
11324 fi
11325 rm -rf conftest*
11326 ;;
11327
11328x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11329s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11330 # Find out which ABI we are using.
11331 echo 'int i;' > conftest.$ac_ext
11332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11333 (eval $ac_compile) 2>&5
11334 ac_status=$?
11335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11336 test $ac_status = 0; }; then
11337 case `/usr/bin/file conftest.o` in
11338 *32-bit*)
11339 case $host in
11340 x86_64-*kfreebsd*-gnu)
11341 LD="${LD-ld} -m elf_i386_fbsd"
11342 ;;
11343 x86_64-*linux*)
11344 LD="${LD-ld} -m elf_i386"
11345 ;;
11346 ppc64-*linux*|powerpc64-*linux*)
11347 LD="${LD-ld} -m elf32ppclinux"
11348 ;;
11349 s390x-*linux*)
11350 LD="${LD-ld} -m elf_s390"
11351 ;;
11352 sparc64-*linux*)
11353 LD="${LD-ld} -m elf32_sparc"
11354 ;;
11355 esac
11356 ;;
11357 *64-bit*)
11358 case $host in
11359 x86_64-*kfreebsd*-gnu)
11360 LD="${LD-ld} -m elf_x86_64_fbsd"
11361 ;;
11362 x86_64-*linux*)
11363 LD="${LD-ld} -m elf_x86_64"
11364 ;;
11365 ppc*-*linux*|powerpc*-*linux*)
11366 LD="${LD-ld} -m elf64ppc"
11367 ;;
11368 s390*-*linux*|s390*-*tpf*)
11369 LD="${LD-ld} -m elf64_s390"
11370 ;;
11371 sparc*-*linux*)
11372 LD="${LD-ld} -m elf64_sparc"
11373 ;;
11374 esac
11375 ;;
11376 esac
11377 fi
11378 rm -rf conftest*
11379 ;;
11380
11381*-*-sco3.2v5*)
11382 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11383 SAVE_CFLAGS="$CFLAGS"
11384 CFLAGS="$CFLAGS -belf"
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11386$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011387if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011388 $as_echo_n "(cached) " >&6
11389else
11390 ac_ext=c
11391ac_cpp='$CPP $CPPFLAGS'
11392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11394ac_compiler_gnu=$ac_cv_c_compiler_gnu
11395
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397/* end confdefs.h. */
11398
11399int
11400main ()
11401{
11402
11403 ;
11404 return 0;
11405}
11406_ACEOF
11407if ac_fn_c_try_link "$LINENO"; then :
11408 lt_cv_cc_needs_belf=yes
11409else
11410 lt_cv_cc_needs_belf=no
11411fi
11412rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 ac_ext=c
11415ac_cpp='$CPP $CPPFLAGS'
11416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11418ac_compiler_gnu=$ac_cv_c_compiler_gnu
11419
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11422$as_echo "$lt_cv_cc_needs_belf" >&6; }
11423 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11424 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11425 CFLAGS="$SAVE_CFLAGS"
11426 fi
11427 ;;
11428sparc*-*solaris*)
11429 # Find out which ABI we are using.
11430 echo 'int i;' > conftest.$ac_ext
11431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11432 (eval $ac_compile) 2>&5
11433 ac_status=$?
11434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11435 test $ac_status = 0; }; then
11436 case `/usr/bin/file conftest.o` in
11437 *64-bit*)
11438 case $lt_cv_prog_gnu_ld in
11439 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11440 *)
11441 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11442 LD="${LD-ld} -64"
11443 fi
11444 ;;
11445 esac
11446 ;;
11447 esac
11448 fi
11449 rm -rf conftest*
11450 ;;
11451esac
11452
11453need_locks="$enable_libtool_lock"
11454
cristyda16f162011-02-19 23:52:17 +000011455if test -n "$ac_tool_prefix"; then
11456 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11457set dummy ${ac_tool_prefix}mt; ac_word=$2
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459$as_echo_n "checking for $ac_word... " >&6; }
11460if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462else
11463 if test -n "$MANIFEST_TOOL"; then
11464 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11465else
11466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477done
11478 done
11479IFS=$as_save_IFS
11480
11481fi
11482fi
11483MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11484if test -n "$MANIFEST_TOOL"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11486$as_echo "$MANIFEST_TOOL" >&6; }
11487else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489$as_echo "no" >&6; }
11490fi
11491
11492
11493fi
11494if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11495 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11496 # Extract the first word of "mt", so it can be a program name with args.
11497set dummy mt; ac_word=$2
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499$as_echo_n "checking for $ac_word... " >&6; }
11500if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502else
11503 if test -n "$ac_ct_MANIFEST_TOOL"; then
11504 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11505else
11506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507for as_dir in $PATH
11508do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517done
11518 done
11519IFS=$as_save_IFS
11520
11521fi
11522fi
11523ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11524if test -n "$ac_ct_MANIFEST_TOOL"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11526$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11527else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
11530fi
11531
11532 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11533 MANIFEST_TOOL=":"
11534 else
11535 case $cross_compiling:$ac_tool_warned in
11536yes:)
11537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11539ac_tool_warned=yes ;;
11540esac
11541 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11542 fi
11543else
11544 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11545fi
11546
11547test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11549$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11550if ${lt_cv_path_mainfest_tool+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552else
11553 lt_cv_path_mainfest_tool=no
11554 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11555 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11556 cat conftest.err >&5
11557 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11558 lt_cv_path_mainfest_tool=yes
11559 fi
11560 rm -f conftest*
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11563$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11564if test "x$lt_cv_path_mainfest_tool" != xyes; then
11565 MANIFEST_TOOL=:
11566fi
11567
11568
11569
11570
11571
cristy73bd4a52010-10-05 11:24:23 +000011572
11573 case $host_os in
11574 rhapsody* | darwin*)
11575 if test -n "$ac_tool_prefix"; then
11576 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11577set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011580if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011581 $as_echo_n "(cached) " >&6
11582else
11583 if test -n "$DSYMUTIL"; then
11584 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11585else
11586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587for as_dir in $PATH
11588do
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
11591 for ac_exec_ext in '' $ac_executable_extensions; do
11592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11593 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 break 2
11596 fi
11597done
11598 done
11599IFS=$as_save_IFS
11600
11601fi
11602fi
11603DSYMUTIL=$ac_cv_prog_DSYMUTIL
11604if test -n "$DSYMUTIL"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11606$as_echo "$DSYMUTIL" >&6; }
11607else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
11610fi
11611
11612
11613fi
11614if test -z "$ac_cv_prog_DSYMUTIL"; then
11615 ac_ct_DSYMUTIL=$DSYMUTIL
11616 # Extract the first word of "dsymutil", so it can be a program name with args.
11617set dummy dsymutil; ac_word=$2
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011620if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011621 $as_echo_n "(cached) " >&6
11622else
11623 if test -n "$ac_ct_DSYMUTIL"; then
11624 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11625else
11626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627for as_dir in $PATH
11628do
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11636 fi
11637done
11638 done
11639IFS=$as_save_IFS
11640
11641fi
11642fi
11643ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11644if test -n "$ac_ct_DSYMUTIL"; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11646$as_echo "$ac_ct_DSYMUTIL" >&6; }
11647else
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649$as_echo "no" >&6; }
11650fi
11651
11652 if test "x$ac_ct_DSYMUTIL" = x; then
11653 DSYMUTIL=":"
11654 else
11655 case $cross_compiling:$ac_tool_warned in
11656yes:)
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11659ac_tool_warned=yes ;;
11660esac
11661 DSYMUTIL=$ac_ct_DSYMUTIL
11662 fi
11663else
11664 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11665fi
11666
11667 if test -n "$ac_tool_prefix"; then
11668 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11669set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011672if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011673 $as_echo_n "(cached) " >&6
11674else
11675 if test -n "$NMEDIT"; then
11676 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11677else
11678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679for as_dir in $PATH
11680do
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11685 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 break 2
11688 fi
11689done
11690 done
11691IFS=$as_save_IFS
11692
11693fi
11694fi
11695NMEDIT=$ac_cv_prog_NMEDIT
11696if test -n "$NMEDIT"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11698$as_echo "$NMEDIT" >&6; }
11699else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701$as_echo "no" >&6; }
11702fi
11703
11704
11705fi
11706if test -z "$ac_cv_prog_NMEDIT"; then
11707 ac_ct_NMEDIT=$NMEDIT
11708 # Extract the first word of "nmedit", so it can be a program name with args.
11709set dummy nmedit; ac_word=$2
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011712if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011713 $as_echo_n "(cached) " >&6
11714else
11715 if test -n "$ac_ct_NMEDIT"; then
11716 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11717else
11718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719for as_dir in $PATH
11720do
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
11723 for ac_exec_ext in '' $ac_executable_extensions; do
11724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11725 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11727 break 2
11728 fi
11729done
11730 done
11731IFS=$as_save_IFS
11732
11733fi
11734fi
11735ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11736if test -n "$ac_ct_NMEDIT"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11738$as_echo "$ac_ct_NMEDIT" >&6; }
11739else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741$as_echo "no" >&6; }
11742fi
11743
11744 if test "x$ac_ct_NMEDIT" = x; then
11745 NMEDIT=":"
11746 else
11747 case $cross_compiling:$ac_tool_warned in
11748yes:)
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11751ac_tool_warned=yes ;;
11752esac
11753 NMEDIT=$ac_ct_NMEDIT
11754 fi
11755else
11756 NMEDIT="$ac_cv_prog_NMEDIT"
11757fi
11758
11759 if test -n "$ac_tool_prefix"; then
11760 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11761set dummy ${ac_tool_prefix}lipo; ac_word=$2
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011764if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011765 $as_echo_n "(cached) " >&6
11766else
11767 if test -n "$LIPO"; then
11768 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11769else
11770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771for as_dir in $PATH
11772do
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11777 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 break 2
11780 fi
11781done
11782 done
11783IFS=$as_save_IFS
11784
11785fi
11786fi
11787LIPO=$ac_cv_prog_LIPO
11788if test -n "$LIPO"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11790$as_echo "$LIPO" >&6; }
11791else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793$as_echo "no" >&6; }
11794fi
11795
11796
11797fi
11798if test -z "$ac_cv_prog_LIPO"; then
11799 ac_ct_LIPO=$LIPO
11800 # Extract the first word of "lipo", so it can be a program name with args.
11801set dummy lipo; ac_word=$2
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011804if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011805 $as_echo_n "(cached) " >&6
11806else
11807 if test -n "$ac_ct_LIPO"; then
11808 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11809else
11810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811for as_dir in $PATH
11812do
11813 IFS=$as_save_IFS
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11817 ac_cv_prog_ac_ct_LIPO="lipo"
11818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11819 break 2
11820 fi
11821done
11822 done
11823IFS=$as_save_IFS
11824
11825fi
11826fi
11827ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11828if test -n "$ac_ct_LIPO"; then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11830$as_echo "$ac_ct_LIPO" >&6; }
11831else
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
11834fi
11835
11836 if test "x$ac_ct_LIPO" = x; then
11837 LIPO=":"
11838 else
11839 case $cross_compiling:$ac_tool_warned in
11840yes:)
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11843ac_tool_warned=yes ;;
11844esac
11845 LIPO=$ac_ct_LIPO
11846 fi
11847else
11848 LIPO="$ac_cv_prog_LIPO"
11849fi
11850
11851 if test -n "$ac_tool_prefix"; then
11852 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11853set dummy ${ac_tool_prefix}otool; ac_word=$2
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011856if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011857 $as_echo_n "(cached) " >&6
11858else
11859 if test -n "$OTOOL"; then
11860 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11861else
11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11872 fi
11873done
11874 done
11875IFS=$as_save_IFS
11876
11877fi
11878fi
11879OTOOL=$ac_cv_prog_OTOOL
11880if test -n "$OTOOL"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11882$as_echo "$OTOOL" >&6; }
11883else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
11886fi
11887
11888
11889fi
11890if test -z "$ac_cv_prog_OTOOL"; then
11891 ac_ct_OTOOL=$OTOOL
11892 # Extract the first word of "otool", so it can be a program name with args.
11893set dummy otool; ac_word=$2
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011896if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011897 $as_echo_n "(cached) " >&6
11898else
11899 if test -n "$ac_ct_OTOOL"; then
11900 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11901else
11902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903for as_dir in $PATH
11904do
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11909 ac_cv_prog_ac_ct_OTOOL="otool"
11910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11911 break 2
11912 fi
11913done
11914 done
11915IFS=$as_save_IFS
11916
11917fi
11918fi
11919ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11920if test -n "$ac_ct_OTOOL"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11922$as_echo "$ac_ct_OTOOL" >&6; }
11923else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925$as_echo "no" >&6; }
11926fi
11927
11928 if test "x$ac_ct_OTOOL" = x; then
11929 OTOOL=":"
11930 else
11931 case $cross_compiling:$ac_tool_warned in
11932yes:)
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11935ac_tool_warned=yes ;;
11936esac
11937 OTOOL=$ac_ct_OTOOL
11938 fi
11939else
11940 OTOOL="$ac_cv_prog_OTOOL"
11941fi
11942
11943 if test -n "$ac_tool_prefix"; then
11944 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11945set dummy ${ac_tool_prefix}otool64; ac_word=$2
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011948if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011949 $as_echo_n "(cached) " >&6
11950else
11951 if test -n "$OTOOL64"; then
11952 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11953else
11954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955for as_dir in $PATH
11956do
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11964 fi
11965done
11966 done
11967IFS=$as_save_IFS
11968
11969fi
11970fi
11971OTOOL64=$ac_cv_prog_OTOOL64
11972if test -n "$OTOOL64"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11974$as_echo "$OTOOL64" >&6; }
11975else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977$as_echo "no" >&6; }
11978fi
11979
11980
11981fi
11982if test -z "$ac_cv_prog_OTOOL64"; then
11983 ac_ct_OTOOL64=$OTOOL64
11984 # Extract the first word of "otool64", so it can be a program name with args.
11985set dummy otool64; ac_word=$2
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011988if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011989 $as_echo_n "(cached) " >&6
11990else
11991 if test -n "$ac_ct_OTOOL64"; then
11992 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11993else
11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001 ac_cv_prog_ac_ct_OTOOL64="otool64"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12004 fi
12005done
12006 done
12007IFS=$as_save_IFS
12008
12009fi
12010fi
12011ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12012if test -n "$ac_ct_OTOOL64"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12014$as_echo "$ac_ct_OTOOL64" >&6; }
12015else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
12018fi
12019
12020 if test "x$ac_ct_OTOOL64" = x; then
12021 OTOOL64=":"
12022 else
12023 case $cross_compiling:$ac_tool_warned in
12024yes:)
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12027ac_tool_warned=yes ;;
12028esac
12029 OTOOL64=$ac_ct_OTOOL64
12030 fi
12031else
12032 OTOOL64="$ac_cv_prog_OTOOL64"
12033fi
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12062$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012063if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012064 $as_echo_n "(cached) " >&6
12065else
12066 lt_cv_apple_cc_single_mod=no
12067 if test -z "${LT_MULTI_MODULE}"; then
12068 # By default we will add the -single_module flag. You can override
12069 # by either setting the environment variable LT_MULTI_MODULE
12070 # non-empty at configure time, or by adding -multi_module to the
12071 # link flags.
12072 rm -rf libconftest.dylib*
12073 echo "int foo(void){return 1;}" > conftest.c
12074 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12075-dynamiclib -Wl,-single_module conftest.c" >&5
12076 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12077 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12078 _lt_result=$?
12079 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12080 lt_cv_apple_cc_single_mod=yes
12081 else
12082 cat conftest.err >&5
12083 fi
12084 rm -rf libconftest.dylib*
12085 rm -f conftest.*
12086 fi
12087fi
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12089$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12091$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012092if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012093 $as_echo_n "(cached) " >&6
12094else
12095 lt_cv_ld_exported_symbols_list=no
12096 save_LDFLAGS=$LDFLAGS
12097 echo "_main" > conftest.sym
12098 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h. */
12101
12102int
12103main ()
12104{
12105
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110if ac_fn_c_try_link "$LINENO"; then :
12111 lt_cv_ld_exported_symbols_list=yes
12112else
12113 lt_cv_ld_exported_symbols_list=no
12114fi
12115rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12117 LDFLAGS="$save_LDFLAGS"
12118
12119fi
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12121$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12123$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012124if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012125 $as_echo_n "(cached) " >&6
12126else
12127 lt_cv_ld_force_load=no
12128 cat > conftest.c << _LT_EOF
12129int forced_loaded() { return 2;}
12130_LT_EOF
12131 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12132 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12133 echo "$AR cru libconftest.a conftest.o" >&5
12134 $AR cru libconftest.a conftest.o 2>&5
12135 echo "$RANLIB libconftest.a" >&5
12136 $RANLIB libconftest.a 2>&5
12137 cat > conftest.c << _LT_EOF
12138int main() { return 0;}
12139_LT_EOF
12140 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12141 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12142 _lt_result=$?
12143 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12144 lt_cv_ld_force_load=yes
12145 else
12146 cat conftest.err >&5
12147 fi
12148 rm -f conftest.err libconftest.a conftest conftest.c
12149 rm -rf conftest.dSYM
12150
12151fi
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12153$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012154 case $host_os in
12155 rhapsody* | darwin1.[012])
12156 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12157 darwin1.*)
12158 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12159 darwin*) # darwin 5.x on
12160 # if running on 10.5 or later, the deployment target defaults
12161 # to the OS version, if on x86, and 10.4, the deployment
12162 # target defaults to 10.4. Don't you love it?
12163 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12164 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12165 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12166 10.[012]*)
12167 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12168 10.*)
12169 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12170 esac
12171 ;;
12172 esac
12173 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12174 _lt_dar_single_mod='$single_module'
12175 fi
12176 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12177 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12178 else
12179 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12180 fi
cristy0c60a692010-11-04 01:09:47 +000012181 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012182 _lt_dsymutil='~$DSYMUTIL $lib || :'
12183 else
12184 _lt_dsymutil=
12185 fi
12186 ;;
12187 esac
12188
12189for ac_header in dlfcn.h
12190do :
12191 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12192"
cristyda16f162011-02-19 23:52:17 +000012193if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012194 cat >>confdefs.h <<_ACEOF
12195#define HAVE_DLFCN_H 1
12196_ACEOF
12197
12198fi
12199
12200done
12201
12202
12203
cristy73bd4a52010-10-05 11:24:23 +000012204
cristyda16f162011-02-19 23:52:17 +000012205func_stripname_cnf ()
12206{
12207 case ${2} in
12208 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12209 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12210 esac
12211} # func_stripname_cnf
12212
12213
12214
cristy73bd4a52010-10-05 11:24:23 +000012215
12216
12217# Set options
12218enable_win32_dll=yes
12219
12220case $host in
cristy0c60a692010-11-04 01:09:47 +000012221*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012222 if test -n "$ac_tool_prefix"; then
12223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12224set dummy ${ac_tool_prefix}as; ac_word=$2
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012227if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012228 $as_echo_n "(cached) " >&6
12229else
12230 if test -n "$AS"; then
12231 ac_cv_prog_AS="$AS" # Let the user override the test.
12232else
12233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $PATH
12235do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240 ac_cv_prog_AS="${ac_tool_prefix}as"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12243 fi
12244done
12245 done
12246IFS=$as_save_IFS
12247
12248fi
12249fi
12250AS=$ac_cv_prog_AS
12251if test -n "$AS"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12253$as_echo "$AS" >&6; }
12254else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
12257fi
12258
12259
12260fi
12261if test -z "$ac_cv_prog_AS"; then
12262 ac_ct_AS=$AS
12263 # Extract the first word of "as", so it can be a program name with args.
12264set dummy as; ac_word=$2
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012267if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012268 $as_echo_n "(cached) " >&6
12269else
12270 if test -n "$ac_ct_AS"; then
12271 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12272else
12273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274for as_dir in $PATH
12275do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_prog_ac_ct_AS="as"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12283 fi
12284done
12285 done
12286IFS=$as_save_IFS
12287
12288fi
12289fi
12290ac_ct_AS=$ac_cv_prog_ac_ct_AS
12291if test -n "$ac_ct_AS"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12293$as_echo "$ac_ct_AS" >&6; }
12294else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
12297fi
12298
12299 if test "x$ac_ct_AS" = x; then
12300 AS="false"
12301 else
12302 case $cross_compiling:$ac_tool_warned in
12303yes:)
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12306ac_tool_warned=yes ;;
12307esac
12308 AS=$ac_ct_AS
12309 fi
12310else
12311 AS="$ac_cv_prog_AS"
12312fi
12313
12314 if test -n "$ac_tool_prefix"; then
12315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12316set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012319if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012320 $as_echo_n "(cached) " >&6
12321else
12322 if test -n "$DLLTOOL"; then
12323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336done
12337 done
12338IFS=$as_save_IFS
12339
12340fi
12341fi
12342DLLTOOL=$ac_cv_prog_DLLTOOL
12343if test -n "$DLLTOOL"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12345$as_echo "$DLLTOOL" >&6; }
12346else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
12349fi
12350
12351
12352fi
12353if test -z "$ac_cv_prog_DLLTOOL"; then
12354 ac_ct_DLLTOOL=$DLLTOOL
12355 # Extract the first word of "dlltool", so it can be a program name with args.
12356set dummy dlltool; ac_word=$2
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012359if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012360 $as_echo_n "(cached) " >&6
12361else
12362 if test -n "$ac_ct_DLLTOOL"; then
12363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12364else
12365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366for as_dir in $PATH
12367do
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 break 2
12375 fi
12376done
12377 done
12378IFS=$as_save_IFS
12379
12380fi
12381fi
12382ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12383if test -n "$ac_ct_DLLTOOL"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12385$as_echo "$ac_ct_DLLTOOL" >&6; }
12386else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389fi
12390
12391 if test "x$ac_ct_DLLTOOL" = x; then
12392 DLLTOOL="false"
12393 else
12394 case $cross_compiling:$ac_tool_warned in
12395yes:)
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12398ac_tool_warned=yes ;;
12399esac
12400 DLLTOOL=$ac_ct_DLLTOOL
12401 fi
12402else
12403 DLLTOOL="$ac_cv_prog_DLLTOOL"
12404fi
12405
12406 if test -n "$ac_tool_prefix"; then
12407 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12408set dummy ${ac_tool_prefix}objdump; ac_word=$2
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012411if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012412 $as_echo_n "(cached) " >&6
12413else
12414 if test -n "$OBJDUMP"; then
12415 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12416else
12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12424 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426 break 2
12427 fi
12428done
12429 done
12430IFS=$as_save_IFS
12431
12432fi
12433fi
12434OBJDUMP=$ac_cv_prog_OBJDUMP
12435if test -n "$OBJDUMP"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12437$as_echo "$OBJDUMP" >&6; }
12438else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441fi
12442
12443
12444fi
12445if test -z "$ac_cv_prog_OBJDUMP"; then
12446 ac_ct_OBJDUMP=$OBJDUMP
12447 # Extract the first word of "objdump", so it can be a program name with args.
12448set dummy objdump; ac_word=$2
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012451if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012452 $as_echo_n "(cached) " >&6
12453else
12454 if test -n "$ac_ct_OBJDUMP"; then
12455 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12456else
12457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458for as_dir in $PATH
12459do
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12464 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 break 2
12467 fi
12468done
12469 done
12470IFS=$as_save_IFS
12471
12472fi
12473fi
12474ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12475if test -n "$ac_ct_OBJDUMP"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12477$as_echo "$ac_ct_OBJDUMP" >&6; }
12478else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
12481fi
12482
12483 if test "x$ac_ct_OBJDUMP" = x; then
12484 OBJDUMP="false"
12485 else
12486 case $cross_compiling:$ac_tool_warned in
12487yes:)
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12490ac_tool_warned=yes ;;
12491esac
12492 OBJDUMP=$ac_ct_OBJDUMP
12493 fi
12494else
12495 OBJDUMP="$ac_cv_prog_OBJDUMP"
12496fi
12497
12498 ;;
12499esac
12500
12501test -z "$AS" && AS=as
12502
12503
12504
12505
12506
12507test -z "$DLLTOOL" && DLLTOOL=dlltool
12508
12509
12510
12511
12512
12513test -z "$OBJDUMP" && OBJDUMP=objdump
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523 # Check whether --enable-shared was given.
12524if test "${enable_shared+set}" = set; then :
12525 enableval=$enable_shared; p=${PACKAGE-default}
12526 case $enableval in
12527 yes) enable_shared=yes ;;
12528 no) enable_shared=no ;;
12529 *)
12530 enable_shared=no
12531 # Look at the argument we got. We use all the common list separators.
12532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12533 for pkg in $enableval; do
12534 IFS="$lt_save_ifs"
12535 if test "X$pkg" = "X$p"; then
12536 enable_shared=yes
12537 fi
12538 done
12539 IFS="$lt_save_ifs"
12540 ;;
12541 esac
12542else
12543 enable_shared=yes
12544fi
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554 # Check whether --enable-static was given.
12555if test "${enable_static+set}" = set; then :
12556 enableval=$enable_static; p=${PACKAGE-default}
12557 case $enableval in
12558 yes) enable_static=yes ;;
12559 no) enable_static=no ;;
12560 *)
12561 enable_static=no
12562 # Look at the argument we got. We use all the common list separators.
12563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12564 for pkg in $enableval; do
12565 IFS="$lt_save_ifs"
12566 if test "X$pkg" = "X$p"; then
12567 enable_static=yes
12568 fi
12569 done
12570 IFS="$lt_save_ifs"
12571 ;;
12572 esac
12573else
12574 enable_static=yes
12575fi
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586# Check whether --with-pic was given.
12587if test "${with_pic+set}" = set; then :
12588 withval=$with_pic; pic_mode="$withval"
12589else
12590 pic_mode=default
12591fi
12592
12593
12594test -z "$pic_mode" && pic_mode=default
12595
12596
12597
12598
12599
12600
12601
12602 # Check whether --enable-fast-install was given.
12603if test "${enable_fast_install+set}" = set; then :
12604 enableval=$enable_fast_install; p=${PACKAGE-default}
12605 case $enableval in
12606 yes) enable_fast_install=yes ;;
12607 no) enable_fast_install=no ;;
12608 *)
12609 enable_fast_install=no
12610 # Look at the argument we got. We use all the common list separators.
12611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12612 for pkg in $enableval; do
12613 IFS="$lt_save_ifs"
12614 if test "X$pkg" = "X$p"; then
12615 enable_fast_install=yes
12616 fi
12617 done
12618 IFS="$lt_save_ifs"
12619 ;;
12620 esac
12621else
12622 enable_fast_install=yes
12623fi
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635# This can be used to rebuild libtool when needed
12636LIBTOOL_DEPS="$ltmain"
12637
12638# Always use our own libtool.
12639LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
cristy0c60a692010-11-04 01:09:47 +000012665
cristy73bd4a52010-10-05 11:24:23 +000012666test -z "$LN_S" && LN_S="ln -s"
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681if test -n "${ZSH_VERSION+set}" ; then
12682 setopt NO_GLOB_SUBST
12683fi
12684
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12686$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012687if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012688 $as_echo_n "(cached) " >&6
12689else
12690 rm -f .libs 2>/dev/null
12691mkdir .libs 2>/dev/null
12692if test -d .libs; then
12693 lt_cv_objdir=.libs
12694else
12695 # MS-DOS does not allow filenames that begin with a dot.
12696 lt_cv_objdir=_libs
12697fi
12698rmdir .libs 2>/dev/null
12699fi
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12701$as_echo "$lt_cv_objdir" >&6; }
12702objdir=$lt_cv_objdir
12703
12704
12705
12706
12707
12708cat >>confdefs.h <<_ACEOF
12709#define LT_OBJDIR "$lt_cv_objdir/"
12710_ACEOF
12711
12712
12713
12714
cristy73bd4a52010-10-05 11:24:23 +000012715case $host_os in
12716aix3*)
12717 # AIX sometimes has problems with the GCC collect2 program. For some
12718 # reason, if we set the COLLECT_NAMES environment variable, the problems
12719 # vanish in a puff of smoke.
12720 if test "X${COLLECT_NAMES+set}" != Xset; then
12721 COLLECT_NAMES=
12722 export COLLECT_NAMES
12723 fi
12724 ;;
12725esac
12726
cristy73bd4a52010-10-05 11:24:23 +000012727# Global variables:
12728ofile=libtool
12729can_build_shared=yes
12730
12731# All known linkers require a `.a' archive for static linking (except MSVC,
12732# which needs '.lib').
12733libext=a
12734
12735with_gnu_ld="$lt_cv_prog_gnu_ld"
12736
12737old_CC="$CC"
12738old_CFLAGS="$CFLAGS"
12739
12740# Set sane defaults for various variables
12741test -z "$CC" && CC=cc
12742test -z "$LTCC" && LTCC=$CC
12743test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12744test -z "$LD" && LD=ld
12745test -z "$ac_objext" && ac_objext=o
12746
12747for cc_temp in $compiler""; do
12748 case $cc_temp in
12749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12751 \-*) ;;
12752 *) break;;
12753 esac
12754done
cristy0c60a692010-11-04 01:09:47 +000012755cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012756
12757
12758# Only perform the check for file, if the check method requires it
12759test -z "$MAGIC_CMD" && MAGIC_CMD=file
12760case $deplibs_check_method in
12761file_magic*)
12762 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12764$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012765if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012766 $as_echo_n "(cached) " >&6
12767else
12768 case $MAGIC_CMD in
12769[\\/*] | ?:[\\/]*)
12770 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12771 ;;
12772*)
12773 lt_save_MAGIC_CMD="$MAGIC_CMD"
12774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12776 for ac_dir in $ac_dummy; do
12777 IFS="$lt_save_ifs"
12778 test -z "$ac_dir" && ac_dir=.
12779 if test -f $ac_dir/${ac_tool_prefix}file; then
12780 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12781 if test -n "$file_magic_test_file"; then
12782 case $deplibs_check_method in
12783 "file_magic "*)
12784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12787 $EGREP "$file_magic_regex" > /dev/null; then
12788 :
12789 else
12790 cat <<_LT_EOF 1>&2
12791
12792*** Warning: the command libtool uses to detect shared libraries,
12793*** $file_magic_cmd, produces output that libtool cannot recognize.
12794*** The result is that libtool may fail to recognize shared libraries
12795*** as such. This will affect the creation of libtool libraries that
12796*** depend on shared libraries, but programs linked with such libtool
12797*** libraries will work regardless of this problem. Nevertheless, you
12798*** may want to report the problem to your system manager and/or to
12799*** bug-libtool@gnu.org
12800
12801_LT_EOF
12802 fi ;;
12803 esac
12804 fi
12805 break
12806 fi
12807 done
12808 IFS="$lt_save_ifs"
12809 MAGIC_CMD="$lt_save_MAGIC_CMD"
12810 ;;
12811esac
12812fi
12813
12814MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12815if test -n "$MAGIC_CMD"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12817$as_echo "$MAGIC_CMD" >&6; }
12818else
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820$as_echo "no" >&6; }
12821fi
12822
12823
12824
12825
12826
12827if test -z "$lt_cv_path_MAGIC_CMD"; then
12828 if test -n "$ac_tool_prefix"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12830$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012831if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012832 $as_echo_n "(cached) " >&6
12833else
12834 case $MAGIC_CMD in
12835[\\/*] | ?:[\\/]*)
12836 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12837 ;;
12838*)
12839 lt_save_MAGIC_CMD="$MAGIC_CMD"
12840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12841 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12842 for ac_dir in $ac_dummy; do
12843 IFS="$lt_save_ifs"
12844 test -z "$ac_dir" && ac_dir=.
12845 if test -f $ac_dir/file; then
12846 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12847 if test -n "$file_magic_test_file"; then
12848 case $deplibs_check_method in
12849 "file_magic "*)
12850 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12852 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12853 $EGREP "$file_magic_regex" > /dev/null; then
12854 :
12855 else
12856 cat <<_LT_EOF 1>&2
12857
12858*** Warning: the command libtool uses to detect shared libraries,
12859*** $file_magic_cmd, produces output that libtool cannot recognize.
12860*** The result is that libtool may fail to recognize shared libraries
12861*** as such. This will affect the creation of libtool libraries that
12862*** depend on shared libraries, but programs linked with such libtool
12863*** libraries will work regardless of this problem. Nevertheless, you
12864*** may want to report the problem to your system manager and/or to
12865*** bug-libtool@gnu.org
12866
12867_LT_EOF
12868 fi ;;
12869 esac
12870 fi
12871 break
12872 fi
12873 done
12874 IFS="$lt_save_ifs"
12875 MAGIC_CMD="$lt_save_MAGIC_CMD"
12876 ;;
12877esac
12878fi
12879
12880MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12881if test -n "$MAGIC_CMD"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12883$as_echo "$MAGIC_CMD" >&6; }
12884else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886$as_echo "no" >&6; }
12887fi
12888
12889
12890 else
12891 MAGIC_CMD=:
12892 fi
12893fi
12894
12895 fi
12896 ;;
12897esac
12898
12899# Use C for the default configuration in the libtool script
12900
12901lt_save_CC="$CC"
12902ac_ext=c
12903ac_cpp='$CPP $CPPFLAGS'
12904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12906ac_compiler_gnu=$ac_cv_c_compiler_gnu
12907
12908
12909# Source file extension for C test sources.
12910ac_ext=c
12911
12912# Object file extension for compiled C test sources.
12913objext=o
12914objext=$objext
12915
12916# Code to be used in simple compile tests
12917lt_simple_compile_test_code="int some_variable = 0;"
12918
12919# Code to be used in simple link tests
12920lt_simple_link_test_code='int main(){return(0);}'
12921
12922
12923
12924
12925
12926
12927
12928# If no C compiler was specified, use CC.
12929LTCC=${LTCC-"$CC"}
12930
12931# If no C compiler flags were specified, use CFLAGS.
12932LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12933
12934# Allow CC to be a program name with arguments.
12935compiler=$CC
12936
12937# Save the default compiler, since it gets overwritten when the other
12938# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12939compiler_DEFAULT=$CC
12940
12941# save warnings/boilerplate of simple test code
12942ac_outfile=conftest.$ac_objext
12943echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12944eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12945_lt_compiler_boilerplate=`cat conftest.err`
12946$RM conftest*
12947
12948ac_outfile=conftest.$ac_objext
12949echo "$lt_simple_link_test_code" >conftest.$ac_ext
12950eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12951_lt_linker_boilerplate=`cat conftest.err`
12952$RM -r conftest*
12953
12954
12955## CAVEAT EMPTOR:
12956## There is no encapsulation within the following macros, do not change
12957## the running order or otherwise move them around unless you know exactly
12958## what you are doing...
12959if test -n "$compiler"; then
12960
12961lt_prog_compiler_no_builtin_flag=
12962
12963if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012964 case $cc_basename in
12965 nvcc*)
12966 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12967 *)
12968 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12969 esac
cristy73bd4a52010-10-05 11:24:23 +000012970
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12972$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012973if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012974 $as_echo_n "(cached) " >&6
12975else
12976 lt_cv_prog_compiler_rtti_exceptions=no
12977 ac_outfile=conftest.$ac_objext
12978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12979 lt_compiler_flag="-fno-rtti -fno-exceptions"
12980 # Insert the option either (1) after the last *FLAGS variable, or
12981 # (2) before a word containing "conftest.", or (3) at the end.
12982 # Note that $ac_compile itself does not contain backslashes and begins
12983 # with a dollar sign (not a hyphen), so the echo should work correctly.
12984 # The option is referenced via a variable to avoid confusing sed.
12985 lt_compile=`echo "$ac_compile" | $SED \
12986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12988 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012990 (eval "$lt_compile" 2>conftest.err)
12991 ac_status=$?
12992 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012994 if (exit $ac_status) && test -s "$ac_outfile"; then
12995 # The compiler can only warn and ignore the option if not recognized
12996 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13000 lt_cv_prog_compiler_rtti_exceptions=yes
13001 fi
13002 fi
13003 $RM conftest*
13004
13005fi
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13007$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13008
13009if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13010 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13011else
13012 :
13013fi
13014
13015fi
13016
13017
13018
13019
13020
13021
13022 lt_prog_compiler_wl=
13023lt_prog_compiler_pic=
13024lt_prog_compiler_static=
13025
cristy73bd4a52010-10-05 11:24:23 +000013026
13027 if test "$GCC" = yes; then
13028 lt_prog_compiler_wl='-Wl,'
13029 lt_prog_compiler_static='-static'
13030
13031 case $host_os in
13032 aix*)
13033 # All AIX code is PIC.
13034 if test "$host_cpu" = ia64; then
13035 # AIX 5 now supports IA64 processor
13036 lt_prog_compiler_static='-Bstatic'
13037 fi
13038 ;;
13039
13040 amigaos*)
13041 case $host_cpu in
13042 powerpc)
13043 # see comment about AmigaOS4 .so support
13044 lt_prog_compiler_pic='-fPIC'
13045 ;;
13046 m68k)
13047 # FIXME: we need at least 68020 code to build shared libraries, but
13048 # adding the `-m68020' flag to GCC prevents building anything better,
13049 # like `-m68040'.
13050 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13051 ;;
13052 esac
13053 ;;
13054
13055 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13056 # PIC is the default for these OSes.
13057 ;;
13058
13059 mingw* | cygwin* | pw32* | os2* | cegcc*)
13060 # This hack is so that the source file can tell whether it is being
13061 # built for inclusion in a dll (and should export symbols for example).
13062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13063 # (--disable-auto-import) libraries
13064 lt_prog_compiler_pic='-DDLL_EXPORT'
13065 ;;
13066
13067 darwin* | rhapsody*)
13068 # PIC is the default on this platform
13069 # Common symbols not allowed in MH_DYLIB files
13070 lt_prog_compiler_pic='-fno-common'
13071 ;;
13072
cristy0c60a692010-11-04 01:09:47 +000013073 haiku*)
13074 # PIC is the default for Haiku.
13075 # The "-static" flag exists, but is broken.
13076 lt_prog_compiler_static=
13077 ;;
13078
cristy73bd4a52010-10-05 11:24:23 +000013079 hpux*)
13080 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13081 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13082 # sets the default TLS model and affects inlining.
13083 case $host_cpu in
13084 hppa*64*)
13085 # +Z the default
13086 ;;
13087 *)
13088 lt_prog_compiler_pic='-fPIC'
13089 ;;
13090 esac
13091 ;;
13092
13093 interix[3-9]*)
13094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13095 # Instead, we relocate shared libraries at runtime.
13096 ;;
13097
13098 msdosdjgpp*)
13099 # Just because we use GCC doesn't mean we suddenly get shared libraries
13100 # on systems that don't support them.
13101 lt_prog_compiler_can_build_shared=no
13102 enable_shared=no
13103 ;;
13104
13105 *nto* | *qnx*)
13106 # QNX uses GNU C++, but need to define -shared option too, otherwise
13107 # it will coredump.
13108 lt_prog_compiler_pic='-fPIC -shared'
13109 ;;
13110
13111 sysv4*MP*)
13112 if test -d /usr/nec; then
13113 lt_prog_compiler_pic=-Kconform_pic
13114 fi
13115 ;;
13116
13117 *)
13118 lt_prog_compiler_pic='-fPIC'
13119 ;;
13120 esac
cristy0c60a692010-11-04 01:09:47 +000013121
13122 case $cc_basename in
13123 nvcc*) # Cuda Compiler Driver 2.2
13124 lt_prog_compiler_wl='-Xlinker '
13125 lt_prog_compiler_pic='-Xcompiler -fPIC'
13126 ;;
13127 esac
cristy73bd4a52010-10-05 11:24:23 +000013128 else
13129 # PORTME Check for flag to pass linker flags through the system compiler.
13130 case $host_os in
13131 aix*)
13132 lt_prog_compiler_wl='-Wl,'
13133 if test "$host_cpu" = ia64; then
13134 # AIX 5 now supports IA64 processor
13135 lt_prog_compiler_static='-Bstatic'
13136 else
13137 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13138 fi
13139 ;;
13140
13141 mingw* | cygwin* | pw32* | os2* | cegcc*)
13142 # This hack is so that the source file can tell whether it is being
13143 # built for inclusion in a dll (and should export symbols for example).
13144 lt_prog_compiler_pic='-DDLL_EXPORT'
13145 ;;
13146
13147 hpux9* | hpux10* | hpux11*)
13148 lt_prog_compiler_wl='-Wl,'
13149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13150 # not for PA HP-UX.
13151 case $host_cpu in
13152 hppa*64*|ia64*)
13153 # +Z the default
13154 ;;
13155 *)
13156 lt_prog_compiler_pic='+Z'
13157 ;;
13158 esac
13159 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13160 lt_prog_compiler_static='${wl}-a ${wl}archive'
13161 ;;
13162
13163 irix5* | irix6* | nonstopux*)
13164 lt_prog_compiler_wl='-Wl,'
13165 # PIC (with -KPIC) is the default.
13166 lt_prog_compiler_static='-non_shared'
13167 ;;
13168
cristy0c60a692010-11-04 01:09:47 +000013169 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013170 case $cc_basename in
13171 # old Intel for x86_64 which still supported -KPIC.
13172 ecc*)
13173 lt_prog_compiler_wl='-Wl,'
13174 lt_prog_compiler_pic='-KPIC'
13175 lt_prog_compiler_static='-static'
13176 ;;
13177 # icc used to be incompatible with GCC.
13178 # ICC 10 doesn't accept -KPIC any more.
13179 icc* | ifort*)
13180 lt_prog_compiler_wl='-Wl,'
13181 lt_prog_compiler_pic='-fPIC'
13182 lt_prog_compiler_static='-static'
13183 ;;
13184 # Lahey Fortran 8.1.
13185 lf95*)
13186 lt_prog_compiler_wl='-Wl,'
13187 lt_prog_compiler_pic='--shared'
13188 lt_prog_compiler_static='--static'
13189 ;;
cristyda16f162011-02-19 23:52:17 +000013190 nagfor*)
13191 # NAG Fortran compiler
13192 lt_prog_compiler_wl='-Wl,-Wl,,'
13193 lt_prog_compiler_pic='-PIC'
13194 lt_prog_compiler_static='-Bstatic'
13195 ;;
cristy0c60a692010-11-04 01:09:47 +000013196 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013197 # Portland Group compilers (*not* the Pentium gcc compiler,
13198 # which looks to be a dead project)
13199 lt_prog_compiler_wl='-Wl,'
13200 lt_prog_compiler_pic='-fpic'
13201 lt_prog_compiler_static='-Bstatic'
13202 ;;
13203 ccc*)
13204 lt_prog_compiler_wl='-Wl,'
13205 # All Alpha code is PIC.
13206 lt_prog_compiler_static='-non_shared'
13207 ;;
cristy0c60a692010-11-04 01:09:47 +000013208 xl* | bgxl* | bgf* | mpixl*)
13209 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013210 lt_prog_compiler_wl='-Wl,'
13211 lt_prog_compiler_pic='-qpic'
13212 lt_prog_compiler_static='-qstaticlink'
13213 ;;
13214 *)
13215 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013216 *Sun\ F* | *Sun*Fortran*)
13217 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13218 lt_prog_compiler_pic='-KPIC'
13219 lt_prog_compiler_static='-Bstatic'
13220 lt_prog_compiler_wl=''
13221 ;;
cristy73bd4a52010-10-05 11:24:23 +000013222 *Sun\ C*)
13223 # Sun C 5.9
13224 lt_prog_compiler_pic='-KPIC'
13225 lt_prog_compiler_static='-Bstatic'
13226 lt_prog_compiler_wl='-Wl,'
13227 ;;
cristy73bd4a52010-10-05 11:24:23 +000013228 esac
13229 ;;
13230 esac
13231 ;;
13232
13233 newsos6)
13234 lt_prog_compiler_pic='-KPIC'
13235 lt_prog_compiler_static='-Bstatic'
13236 ;;
13237
13238 *nto* | *qnx*)
13239 # QNX uses GNU C++, but need to define -shared option too, otherwise
13240 # it will coredump.
13241 lt_prog_compiler_pic='-fPIC -shared'
13242 ;;
13243
13244 osf3* | osf4* | osf5*)
13245 lt_prog_compiler_wl='-Wl,'
13246 # All OSF/1 code is PIC.
13247 lt_prog_compiler_static='-non_shared'
13248 ;;
13249
13250 rdos*)
13251 lt_prog_compiler_static='-non_shared'
13252 ;;
13253
13254 solaris*)
13255 lt_prog_compiler_pic='-KPIC'
13256 lt_prog_compiler_static='-Bstatic'
13257 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013258 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013259 lt_prog_compiler_wl='-Qoption ld ';;
13260 *)
13261 lt_prog_compiler_wl='-Wl,';;
13262 esac
13263 ;;
13264
13265 sunos4*)
13266 lt_prog_compiler_wl='-Qoption ld '
13267 lt_prog_compiler_pic='-PIC'
13268 lt_prog_compiler_static='-Bstatic'
13269 ;;
13270
13271 sysv4 | sysv4.2uw2* | sysv4.3*)
13272 lt_prog_compiler_wl='-Wl,'
13273 lt_prog_compiler_pic='-KPIC'
13274 lt_prog_compiler_static='-Bstatic'
13275 ;;
13276
13277 sysv4*MP*)
13278 if test -d /usr/nec ;then
13279 lt_prog_compiler_pic='-Kconform_pic'
13280 lt_prog_compiler_static='-Bstatic'
13281 fi
13282 ;;
13283
13284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13285 lt_prog_compiler_wl='-Wl,'
13286 lt_prog_compiler_pic='-KPIC'
13287 lt_prog_compiler_static='-Bstatic'
13288 ;;
13289
13290 unicos*)
13291 lt_prog_compiler_wl='-Wl,'
13292 lt_prog_compiler_can_build_shared=no
13293 ;;
13294
13295 uts4*)
13296 lt_prog_compiler_pic='-pic'
13297 lt_prog_compiler_static='-Bstatic'
13298 ;;
13299
13300 *)
13301 lt_prog_compiler_can_build_shared=no
13302 ;;
13303 esac
13304 fi
13305
13306case $host_os in
13307 # For platforms which do not support PIC, -DPIC is meaningless:
13308 *djgpp*)
13309 lt_prog_compiler_pic=
13310 ;;
13311 *)
13312 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13313 ;;
13314esac
cristy73bd4a52010-10-05 11:24:23 +000013315
cristyda16f162011-02-19 23:52:17 +000013316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13317$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13318if ${lt_cv_prog_compiler_pic+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320else
13321 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13322fi
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13324$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13325lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013326
13327#
13328# Check to make sure the PIC flag actually works.
13329#
13330if test -n "$lt_prog_compiler_pic"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13332$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013333if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013334 $as_echo_n "(cached) " >&6
13335else
13336 lt_cv_prog_compiler_pic_works=no
13337 ac_outfile=conftest.$ac_objext
13338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13339 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13340 # Insert the option either (1) after the last *FLAGS variable, or
13341 # (2) before a word containing "conftest.", or (3) at the end.
13342 # Note that $ac_compile itself does not contain backslashes and begins
13343 # with a dollar sign (not a hyphen), so the echo should work correctly.
13344 # The option is referenced via a variable to avoid confusing sed.
13345 lt_compile=`echo "$ac_compile" | $SED \
13346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13348 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013350 (eval "$lt_compile" 2>conftest.err)
13351 ac_status=$?
13352 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013354 if (exit $ac_status) && test -s "$ac_outfile"; then
13355 # The compiler can only warn and ignore the option if not recognized
13356 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13360 lt_cv_prog_compiler_pic_works=yes
13361 fi
13362 fi
13363 $RM conftest*
13364
13365fi
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13367$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13368
13369if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13370 case $lt_prog_compiler_pic in
13371 "" | " "*) ;;
13372 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13373 esac
13374else
13375 lt_prog_compiler_pic=
13376 lt_prog_compiler_can_build_shared=no
13377fi
13378
13379fi
13380
13381
13382
13383
13384
13385
cristyda16f162011-02-19 23:52:17 +000013386
13387
13388
13389
13390
cristy73bd4a52010-10-05 11:24:23 +000013391#
13392# Check to make sure the static flag actually works.
13393#
13394wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13396$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013397if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013398 $as_echo_n "(cached) " >&6
13399else
13400 lt_cv_prog_compiler_static_works=no
13401 save_LDFLAGS="$LDFLAGS"
13402 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13403 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13404 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13405 # The linker can only warn and ignore the option if not recognized
13406 # So say no if there are warnings
13407 if test -s conftest.err; then
13408 # Append any errors to the config.log.
13409 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013410 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13412 if diff conftest.exp conftest.er2 >/dev/null; then
13413 lt_cv_prog_compiler_static_works=yes
13414 fi
13415 else
13416 lt_cv_prog_compiler_static_works=yes
13417 fi
13418 fi
13419 $RM -r conftest*
13420 LDFLAGS="$save_LDFLAGS"
13421
13422fi
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13424$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13425
13426if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13427 :
13428else
13429 lt_prog_compiler_static=
13430fi
13431
13432
13433
13434
13435
13436
13437
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13439$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013440if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013441 $as_echo_n "(cached) " >&6
13442else
13443 lt_cv_prog_compiler_c_o=no
13444 $RM -r conftest 2>/dev/null
13445 mkdir conftest
13446 cd conftest
13447 mkdir out
13448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13449
13450 lt_compiler_flag="-o out/conftest2.$ac_objext"
13451 # Insert the option either (1) after the last *FLAGS variable, or
13452 # (2) before a word containing "conftest.", or (3) at the end.
13453 # Note that $ac_compile itself does not contain backslashes and begins
13454 # with a dollar sign (not a hyphen), so the echo should work correctly.
13455 lt_compile=`echo "$ac_compile" | $SED \
13456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13458 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013460 (eval "$lt_compile" 2>out/conftest.err)
13461 ac_status=$?
13462 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13465 then
13466 # The compiler can only warn and ignore the option if not recognized
13467 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13471 lt_cv_prog_compiler_c_o=yes
13472 fi
13473 fi
13474 chmod u+w . 2>&5
13475 $RM conftest*
13476 # SGI C++ compiler will create directory out/ii_files/ for
13477 # template instantiation
13478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13479 $RM out/* && rmdir out
13480 cd ..
13481 $RM -r conftest
13482 $RM conftest*
13483
13484fi
13485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13486$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13487
13488
13489
13490
13491
13492
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13494$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013495if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013496 $as_echo_n "(cached) " >&6
13497else
13498 lt_cv_prog_compiler_c_o=no
13499 $RM -r conftest 2>/dev/null
13500 mkdir conftest
13501 cd conftest
13502 mkdir out
13503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13504
13505 lt_compiler_flag="-o out/conftest2.$ac_objext"
13506 # Insert the option either (1) after the last *FLAGS variable, or
13507 # (2) before a word containing "conftest.", or (3) at the end.
13508 # Note that $ac_compile itself does not contain backslashes and begins
13509 # with a dollar sign (not a hyphen), so the echo should work correctly.
13510 lt_compile=`echo "$ac_compile" | $SED \
13511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13513 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013515 (eval "$lt_compile" 2>out/conftest.err)
13516 ac_status=$?
13517 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13520 then
13521 # The compiler can only warn and ignore the option if not recognized
13522 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13526 lt_cv_prog_compiler_c_o=yes
13527 fi
13528 fi
13529 chmod u+w . 2>&5
13530 $RM conftest*
13531 # SGI C++ compiler will create directory out/ii_files/ for
13532 # template instantiation
13533 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13534 $RM out/* && rmdir out
13535 cd ..
13536 $RM -r conftest
13537 $RM conftest*
13538
13539fi
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13541$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13542
13543
13544
13545
13546hard_links="nottested"
13547if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13548 # do not overwrite the value of need_locks provided by the user
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13550$as_echo_n "checking if we can lock with hard links... " >&6; }
13551 hard_links=yes
13552 $RM conftest*
13553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13554 touch conftest.a
13555 ln conftest.a conftest.b 2>&5 || hard_links=no
13556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13558$as_echo "$hard_links" >&6; }
13559 if test "$hard_links" = no; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13561$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13562 need_locks=warn
13563 fi
13564else
13565 need_locks=no
13566fi
13567
13568
13569
13570
13571
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13574$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13575
13576 runpath_var=
13577 allow_undefined_flag=
13578 always_export_symbols=no
13579 archive_cmds=
13580 archive_expsym_cmds=
13581 compiler_needs_object=no
13582 enable_shared_with_static_runtimes=no
13583 export_dynamic_flag_spec=
13584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13585 hardcode_automatic=no
13586 hardcode_direct=no
13587 hardcode_direct_absolute=no
13588 hardcode_libdir_flag_spec=
13589 hardcode_libdir_flag_spec_ld=
13590 hardcode_libdir_separator=
13591 hardcode_minus_L=no
13592 hardcode_shlibpath_var=unsupported
13593 inherit_rpath=no
13594 link_all_deplibs=unknown
13595 module_cmds=
13596 module_expsym_cmds=
13597 old_archive_from_new_cmds=
13598 old_archive_from_expsyms_cmds=
13599 thread_safe_flag_spec=
13600 whole_archive_flag_spec=
13601 # include_expsyms should be a list of space-separated symbols to be *always*
13602 # included in the symbol list
13603 include_expsyms=
13604 # exclude_expsyms can be an extended regexp of symbols to exclude
13605 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13606 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13607 # as well as any symbol that contains `d'.
13608 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13609 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13610 # platforms (ab)use it in PIC code, but their linkers get confused if
13611 # the symbol is explicitly referenced. Since portable code cannot
13612 # rely on this symbol name, it's probably fine to never include it in
13613 # preloaded symbol tables.
13614 # Exclude shared library initialization/finalization symbols.
13615 extract_expsyms_cmds=
13616
13617 case $host_os in
13618 cygwin* | mingw* | pw32* | cegcc*)
13619 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13620 # When not using gcc, we currently assume that we are using
13621 # Microsoft Visual C++.
13622 if test "$GCC" != yes; then
13623 with_gnu_ld=no
13624 fi
13625 ;;
13626 interix*)
13627 # we just hope/assume this is gcc and not c89 (= MSVC++)
13628 with_gnu_ld=yes
13629 ;;
13630 openbsd*)
13631 with_gnu_ld=no
13632 ;;
13633 esac
13634
13635 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013636
13637 # On some targets, GNU ld is compatible enough with the native linker
13638 # that we're better off using the native interface for both.
13639 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013640 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013641 case $host_os in
13642 aix*)
13643 # The AIX port of GNU ld has always aspired to compatibility
13644 # with the native linker. However, as the warning in the GNU ld
13645 # block says, versions before 2.19.5* couldn't really create working
13646 # shared libraries, regardless of the interface used.
13647 case `$LD -v 2>&1` in
13648 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13649 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13650 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13651 *)
13652 lt_use_gnu_ld_interface=yes
13653 ;;
13654 esac
13655 ;;
13656 *)
13657 lt_use_gnu_ld_interface=yes
13658 ;;
13659 esac
13660 fi
13661
13662 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013663 # If archive_cmds runs LD, not CC, wlarc should be empty
13664 wlarc='${wl}'
13665
13666 # Set some defaults for GNU ld with shared library support. These
13667 # are reset later if shared libraries are not supported. Putting them
13668 # here allows them to be overridden if necessary.
13669 runpath_var=LD_RUN_PATH
13670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13671 export_dynamic_flag_spec='${wl}--export-dynamic'
13672 # ancient GNU ld didn't support --whole-archive et. al.
13673 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13674 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13675 else
13676 whole_archive_flag_spec=
13677 fi
13678 supports_anon_versioning=no
13679 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013680 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013681 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13684 *\ 2.11.*) ;; # other 2.11 versions
13685 *) supports_anon_versioning=yes ;;
13686 esac
13687
13688 # See if GNU ld supports shared libraries.
13689 case $host_os in
13690 aix[3-9]*)
13691 # On AIX/PPC, the GNU linker is very broken
13692 if test "$host_cpu" != ia64; then
13693 ld_shlibs=no
13694 cat <<_LT_EOF 1>&2
13695
cristy0c60a692010-11-04 01:09:47 +000013696*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013697*** to be unable to reliably create shared libraries on AIX.
13698*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013699*** really care for shared libraries, you may want to install binutils
13700*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13701*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013702
13703_LT_EOF
13704 fi
13705 ;;
13706
13707 amigaos*)
13708 case $host_cpu in
13709 powerpc)
13710 # see comment about AmigaOS4 .so support
13711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13712 archive_expsym_cmds=''
13713 ;;
13714 m68k)
13715 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)'
13716 hardcode_libdir_flag_spec='-L$libdir'
13717 hardcode_minus_L=yes
13718 ;;
13719 esac
13720 ;;
13721
13722 beos*)
13723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13724 allow_undefined_flag=unsupported
13725 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13726 # support --undefined. This deserves some investigation. FIXME
13727 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13728 else
13729 ld_shlibs=no
13730 fi
13731 ;;
13732
13733 cygwin* | mingw* | pw32* | cegcc*)
13734 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13735 # as there is no search path for DLLs.
13736 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013737 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013738 allow_undefined_flag=unsupported
13739 always_export_symbols=no
13740 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013741 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'
13742 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 +000013743
13744 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13746 # If the export-symbols file already is a .def file (1st line
13747 # is EXPORTS), use it as is; otherwise, prepend...
13748 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13749 cp $export_symbols $output_objdir/$soname.def;
13750 else
13751 echo EXPORTS > $output_objdir/$soname.def;
13752 cat $export_symbols >> $output_objdir/$soname.def;
13753 fi~
13754 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13755 else
13756 ld_shlibs=no
13757 fi
13758 ;;
13759
cristy0c60a692010-11-04 01:09:47 +000013760 haiku*)
13761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13762 link_all_deplibs=yes
13763 ;;
13764
cristy73bd4a52010-10-05 11:24:23 +000013765 interix[3-9]*)
13766 hardcode_direct=no
13767 hardcode_shlibpath_var=no
13768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13769 export_dynamic_flag_spec='${wl}-E'
13770 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13771 # Instead, shared libraries are loaded at an image base (0x10000000 by
13772 # default) and relocated if they conflict, which is a slow very memory
13773 # consuming and fragmenting process. To avoid this, we pick a random,
13774 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13775 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13777 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'
13778 ;;
13779
cristy0c60a692010-11-04 01:09:47 +000013780 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013781 tmp_diet=no
13782 if test "$host_os" = linux-dietlibc; then
13783 case $cc_basename in
13784 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13785 esac
13786 fi
13787 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13788 && test "$tmp_diet" = no
13789 then
cristyda16f162011-02-19 23:52:17 +000013790 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013791 tmp_sharedflag='-shared'
13792 case $cc_basename,$host_cpu in
13793 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013794 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 +000013795 tmp_addflag=' $pic_flag'
13796 ;;
cristy0c60a692010-11-04 01:09:47 +000013797 pgf77* | pgf90* | pgf95* | pgfortran*)
13798 # Portland Group f77 and f90 compilers
13799 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 +000013800 tmp_addflag=' $pic_flag -Mnomain' ;;
13801 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13802 tmp_addflag=' -i_dynamic' ;;
13803 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13804 tmp_addflag=' -i_dynamic -nofor_main' ;;
13805 ifc* | ifort*) # Intel Fortran compiler
13806 tmp_addflag=' -nofor_main' ;;
13807 lf95*) # Lahey Fortran 8.1
13808 whole_archive_flag_spec=
13809 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013810 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013811 tmp_sharedflag='-qmkshrobj'
13812 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013813 nvcc*) # Cuda Compiler Driver 2.2
13814 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'
13815 compiler_needs_object=yes
13816 ;;
cristy73bd4a52010-10-05 11:24:23 +000013817 esac
13818 case `$CC -V 2>&1 | sed 5q` in
13819 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013820 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 +000013821 compiler_needs_object=yes
13822 tmp_sharedflag='-G' ;;
13823 *Sun\ F*) # Sun Fortran 8.3
13824 tmp_sharedflag='-G' ;;
13825 esac
13826 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827
13828 if test "x$supports_anon_versioning" = xyes; then
13829 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13831 echo "local: *; };" >> $output_objdir/$libname.ver~
13832 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13833 fi
13834
13835 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013836 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013837 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13838 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13839 hardcode_libdir_flag_spec=
13840 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013841 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013842 if test "x$supports_anon_versioning" = xyes; then
13843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13845 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013846 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013847 fi
13848 ;;
13849 esac
13850 else
13851 ld_shlibs=no
13852 fi
13853 ;;
13854
13855 netbsd*)
13856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13857 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13858 wlarc=
13859 else
cristyda16f162011-02-19 23:52:17 +000013860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13861 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 +000013862 fi
13863 ;;
13864
13865 solaris*)
13866 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13867 ld_shlibs=no
13868 cat <<_LT_EOF 1>&2
13869
13870*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13871*** create shared libraries on Solaris systems. Therefore, libtool
13872*** is disabling shared libraries support. We urge you to upgrade GNU
13873*** binutils to release 2.9.1 or newer. Another option is to modify
13874*** your PATH or compiler configuration so that the native linker is
13875*** used, and then restart.
13876
13877_LT_EOF
13878 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880 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 +000013881 else
13882 ld_shlibs=no
13883 fi
13884 ;;
13885
13886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13887 case `$LD -v 2>&1` in
13888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13889 ld_shlibs=no
13890 cat <<_LT_EOF 1>&2
13891
13892*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13893*** reliably create shared libraries on SCO systems. Therefore, libtool
13894*** is disabling shared libraries support. We urge you to upgrade GNU
13895*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13896*** your PATH or compiler configuration so that the native linker is
13897*** used, and then restart.
13898
13899_LT_EOF
13900 ;;
13901 *)
13902 # For security reasons, it is highly recommended that you always
13903 # use absolute paths for naming shared libraries, and exclude the
13904 # DT_RUNPATH tag from executables and libraries. But doing so
13905 # requires that you compile everything twice, which is a pain.
13906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13910 else
13911 ld_shlibs=no
13912 fi
13913 ;;
13914 esac
13915 ;;
13916
13917 sunos4*)
13918 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13919 wlarc=
13920 hardcode_direct=yes
13921 hardcode_shlibpath_var=no
13922 ;;
13923
13924 *)
13925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13927 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 +000013928 else
13929 ld_shlibs=no
13930 fi
13931 ;;
13932 esac
13933
13934 if test "$ld_shlibs" = no; then
13935 runpath_var=
13936 hardcode_libdir_flag_spec=
13937 export_dynamic_flag_spec=
13938 whole_archive_flag_spec=
13939 fi
13940 else
13941 # PORTME fill in a description of your system's linker (not GNU ld)
13942 case $host_os in
13943 aix3*)
13944 allow_undefined_flag=unsupported
13945 always_export_symbols=yes
13946 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'
13947 # Note: this linker hardcodes the directories in LIBPATH if there
13948 # are no directories specified by -L.
13949 hardcode_minus_L=yes
13950 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13951 # Neither direct hardcoding nor static linking is supported with a
13952 # broken collect2.
13953 hardcode_direct=unsupported
13954 fi
13955 ;;
13956
13957 aix[4-9]*)
13958 if test "$host_cpu" = ia64; then
13959 # On IA64, the linker does run time linking by default, so we don't
13960 # have to do anything special.
13961 aix_use_runtimelinking=no
13962 exp_sym_flag='-Bexport'
13963 no_entry_flag=""
13964 else
13965 # If we're using GNU nm, then we don't want the "-C" option.
13966 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013967 # Also, AIX nm treats weak defined symbols like other global
13968 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013969 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013970 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 +000013971 else
13972 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'
13973 fi
13974 aix_use_runtimelinking=no
13975
13976 # Test if we are trying to use run time linking or normal
13977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13978 # need to do runtime linking.
13979 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13980 for ld_flag in $LDFLAGS; do
13981 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13982 aix_use_runtimelinking=yes
13983 break
13984 fi
13985 done
13986 ;;
13987 esac
13988
13989 exp_sym_flag='-bexport'
13990 no_entry_flag='-bnoentry'
13991 fi
13992
13993 # When large executables or shared objects are built, AIX ld can
13994 # have problems creating the table of contents. If linking a library
13995 # or program results in "error TOC overflow" add -mminimal-toc to
13996 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13997 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13998
13999 archive_cmds=''
14000 hardcode_direct=yes
14001 hardcode_direct_absolute=yes
14002 hardcode_libdir_separator=':'
14003 link_all_deplibs=yes
14004 file_list_spec='${wl}-f,'
14005
14006 if test "$GCC" = yes; then
14007 case $host_os in aix4.[012]|aix4.[012].*)
14008 # We only want to do this on AIX 4.2 and lower, the check
14009 # below for broken collect2 doesn't work under 4.3+
14010 collect2name=`${CC} -print-prog-name=collect2`
14011 if test -f "$collect2name" &&
14012 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14013 then
14014 # We have reworked collect2
14015 :
14016 else
14017 # We have old collect2
14018 hardcode_direct=unsupported
14019 # It fails to find uninstalled libraries when the uninstalled
14020 # path is not listed in the libpath. Setting hardcode_minus_L
14021 # to unsupported forces relinking
14022 hardcode_minus_L=yes
14023 hardcode_libdir_flag_spec='-L$libdir'
14024 hardcode_libdir_separator=
14025 fi
14026 ;;
14027 esac
14028 shared_flag='-shared'
14029 if test "$aix_use_runtimelinking" = yes; then
14030 shared_flag="$shared_flag "'${wl}-G'
14031 fi
14032 else
14033 # not using gcc
14034 if test "$host_cpu" = ia64; then
14035 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14036 # chokes on -Wl,-G. The following line is correct:
14037 shared_flag='-G'
14038 else
14039 if test "$aix_use_runtimelinking" = yes; then
14040 shared_flag='${wl}-G'
14041 else
14042 shared_flag='${wl}-bM:SRE'
14043 fi
14044 fi
14045 fi
14046
14047 export_dynamic_flag_spec='${wl}-bexpall'
14048 # It seems that -bexpall does not export symbols beginning with
14049 # underscore (_), so it is better to generate a list of symbols to export.
14050 always_export_symbols=yes
14051 if test "$aix_use_runtimelinking" = yes; then
14052 # Warning - without using the other runtime loading flags (-brtl),
14053 # -berok will link without error, but may produce a broken library.
14054 allow_undefined_flag='-berok'
14055 # Determine the default libpath from the value encoded in an
14056 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014057 if test "${lt_cv_aix_libpath+set}" = set; then
14058 aix_libpath=$lt_cv_aix_libpath
14059else
14060 if ${lt_cv_aix_libpath_+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062else
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014064/* end confdefs.h. */
14065
14066int
14067main ()
14068{
14069
14070 ;
14071 return 0;
14072}
14073_ACEOF
14074if ac_fn_c_try_link "$LINENO"; then :
14075
cristyda16f162011-02-19 23:52:17 +000014076 lt_aix_libpath_sed='
14077 /Import File Strings/,/^$/ {
14078 /^0/ {
14079 s/^0 *\([^ ]*\) *$/\1/
14080 p
14081 }
14082 }'
14083 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14084 # Check for a 64-bit object if we didn't find anything.
14085 if test -z "$lt_cv_aix_libpath_"; then
14086 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14087 fi
cristy73bd4a52010-10-05 11:24:23 +000014088fi
14089rm -f core conftest.err conftest.$ac_objext \
14090 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014091 if test -z "$lt_cv_aix_libpath_"; then
14092 lt_cv_aix_libpath_="/usr/lib:/lib"
14093 fi
14094
14095fi
14096
14097 aix_libpath=$lt_cv_aix_libpath_
14098fi
cristy73bd4a52010-10-05 11:24:23 +000014099
14100 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014101 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 +000014102 else
14103 if test "$host_cpu" = ia64; then
14104 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14105 allow_undefined_flag="-z nodefs"
14106 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"
14107 else
14108 # Determine the default libpath from the value encoded in an
14109 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014110 if test "${lt_cv_aix_libpath+set}" = set; then
14111 aix_libpath=$lt_cv_aix_libpath
14112else
14113 if ${lt_cv_aix_libpath_+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115else
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014117/* end confdefs.h. */
14118
14119int
14120main ()
14121{
14122
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127if ac_fn_c_try_link "$LINENO"; then :
14128
cristyda16f162011-02-19 23:52:17 +000014129 lt_aix_libpath_sed='
14130 /Import File Strings/,/^$/ {
14131 /^0/ {
14132 s/^0 *\([^ ]*\) *$/\1/
14133 p
14134 }
14135 }'
14136 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14137 # Check for a 64-bit object if we didn't find anything.
14138 if test -z "$lt_cv_aix_libpath_"; then
14139 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14140 fi
cristy73bd4a52010-10-05 11:24:23 +000014141fi
14142rm -f core conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014144 if test -z "$lt_cv_aix_libpath_"; then
14145 lt_cv_aix_libpath_="/usr/lib:/lib"
14146 fi
14147
14148fi
14149
14150 aix_libpath=$lt_cv_aix_libpath_
14151fi
cristy73bd4a52010-10-05 11:24:23 +000014152
14153 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14154 # Warning - without using the other run time loading flags,
14155 # -berok will link without error, but may produce a broken library.
14156 no_undefined_flag=' ${wl}-bernotok'
14157 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014158 if test "$with_gnu_ld" = yes; then
14159 # We only use this code for GNU lds that support --whole-archive.
14160 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14161 else
14162 # Exported symbols can be pulled into shared objects from archives
14163 whole_archive_flag_spec='$convenience'
14164 fi
cristy73bd4a52010-10-05 11:24:23 +000014165 archive_cmds_need_lc=yes
14166 # This is similar to how AIX traditionally builds its shared libraries.
14167 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'
14168 fi
14169 fi
14170 ;;
14171
14172 amigaos*)
14173 case $host_cpu in
14174 powerpc)
14175 # see comment about AmigaOS4 .so support
14176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14177 archive_expsym_cmds=''
14178 ;;
14179 m68k)
14180 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)'
14181 hardcode_libdir_flag_spec='-L$libdir'
14182 hardcode_minus_L=yes
14183 ;;
14184 esac
14185 ;;
14186
14187 bsdi[45]*)
14188 export_dynamic_flag_spec=-rdynamic
14189 ;;
14190
14191 cygwin* | mingw* | pw32* | cegcc*)
14192 # When not using gcc, we currently assume that we are using
14193 # Microsoft Visual C++.
14194 # hardcode_libdir_flag_spec is actually meaningless, as there is
14195 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014196 case $cc_basename in
14197 cl*)
14198 # Native MSVC
14199 hardcode_libdir_flag_spec=' '
14200 allow_undefined_flag=unsupported
14201 always_export_symbols=yes
14202 file_list_spec='@'
14203 # Tell ltmain to make .lib files, not .a files.
14204 libext=lib
14205 # Tell ltmain to make .dll files, not .so files.
14206 shrext_cmds=".dll"
14207 # FIXME: Setting linknames here is a bad hack.
14208 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14209 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14210 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14211 else
14212 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14213 fi~
14214 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14215 linknames='
14216 # The linker will not automatically build a static lib if we build a DLL.
14217 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14218 enable_shared_with_static_runtimes=yes
14219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14220 # Don't use ranlib
14221 old_postinstall_cmds='chmod 644 $oldlib'
14222 postlink_cmds='lt_outputfile="@OUTPUT@"~
14223 lt_tool_outputfile="@TOOL_OUTPUT@"~
14224 case $lt_outputfile in
14225 *.exe|*.EXE) ;;
14226 *)
14227 lt_outputfile="$lt_outputfile.exe"
14228 lt_tool_outputfile="$lt_tool_outputfile.exe"
14229 ;;
14230 esac~
14231 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14232 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14233 $RM "$lt_outputfile.manifest";
14234 fi'
14235 ;;
14236 *)
14237 # Assume MSVC wrapper
14238 hardcode_libdir_flag_spec=' '
14239 allow_undefined_flag=unsupported
14240 # Tell ltmain to make .lib files, not .a files.
14241 libext=lib
14242 # Tell ltmain to make .dll files, not .so files.
14243 shrext_cmds=".dll"
14244 # FIXME: Setting linknames here is a bad hack.
14245 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14246 # The linker will automatically build a .lib file if we build a DLL.
14247 old_archive_from_new_cmds='true'
14248 # FIXME: Should let the user specify the lib program.
14249 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14250 enable_shared_with_static_runtimes=yes
14251 ;;
14252 esac
cristy73bd4a52010-10-05 11:24:23 +000014253 ;;
14254
14255 darwin* | rhapsody*)
14256
14257
14258 archive_cmds_need_lc=no
14259 hardcode_direct=no
14260 hardcode_automatic=yes
14261 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014262 if test "$lt_cv_ld_force_load" = "yes"; then
14263 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\"`'
14264 else
14265 whole_archive_flag_spec=''
14266 fi
cristy73bd4a52010-10-05 11:24:23 +000014267 link_all_deplibs=yes
14268 allow_undefined_flag="$_lt_dar_allow_undefined"
14269 case $cc_basename in
14270 ifort*) _lt_dar_can_shared=yes ;;
14271 *) _lt_dar_can_shared=$GCC ;;
14272 esac
14273 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014274 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014275 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14276 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14277 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}"
14278 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}"
14279
14280 else
14281 ld_shlibs=no
14282 fi
14283
14284 ;;
14285
14286 dgux*)
14287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288 hardcode_libdir_flag_spec='-L$libdir'
14289 hardcode_shlibpath_var=no
14290 ;;
14291
14292 freebsd1*)
14293 ld_shlibs=no
14294 ;;
14295
14296 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14297 # support. Future versions do this automatically, but an explicit c++rt0.o
14298 # does not break anything, and helps significantly (at the cost of a little
14299 # extra space).
14300 freebsd2.2*)
14301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14302 hardcode_libdir_flag_spec='-R$libdir'
14303 hardcode_direct=yes
14304 hardcode_shlibpath_var=no
14305 ;;
14306
14307 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14308 freebsd2*)
14309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14310 hardcode_direct=yes
14311 hardcode_minus_L=yes
14312 hardcode_shlibpath_var=no
14313 ;;
14314
14315 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14316 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014318 hardcode_libdir_flag_spec='-R$libdir'
14319 hardcode_direct=yes
14320 hardcode_shlibpath_var=no
14321 ;;
14322
14323 hpux9*)
14324 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014325 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 +000014326 else
14327 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'
14328 fi
14329 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14330 hardcode_libdir_separator=:
14331 hardcode_direct=yes
14332
14333 # hardcode_minus_L: Not really in the search PATH,
14334 # but as the default location of the library.
14335 hardcode_minus_L=yes
14336 export_dynamic_flag_spec='${wl}-E'
14337 ;;
14338
14339 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014340 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014341 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 +000014342 else
14343 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14344 fi
14345 if test "$with_gnu_ld" = no; then
14346 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14347 hardcode_libdir_flag_spec_ld='+b $libdir'
14348 hardcode_libdir_separator=:
14349 hardcode_direct=yes
14350 hardcode_direct_absolute=yes
14351 export_dynamic_flag_spec='${wl}-E'
14352 # hardcode_minus_L: Not really in the search PATH,
14353 # but as the default location of the library.
14354 hardcode_minus_L=yes
14355 fi
14356 ;;
14357
14358 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014359 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014360 case $host_cpu in
14361 hppa*64*)
14362 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14363 ;;
14364 ia64*)
cristyda16f162011-02-19 23:52:17 +000014365 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014366 ;;
14367 *)
cristyda16f162011-02-19 23:52:17 +000014368 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 +000014369 ;;
14370 esac
14371 else
14372 case $host_cpu in
14373 hppa*64*)
14374 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14375 ;;
14376 ia64*)
14377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14378 ;;
14379 *)
cristy0c60a692010-11-04 01:09:47 +000014380
14381 # Older versions of the 11.00 compiler do not understand -b yet
14382 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14384$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014385if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014386 $as_echo_n "(cached) " >&6
14387else
14388 lt_cv_prog_compiler__b=no
14389 save_LDFLAGS="$LDFLAGS"
14390 LDFLAGS="$LDFLAGS -b"
14391 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14393 # The linker can only warn and ignore the option if not recognized
14394 # So say no if there are warnings
14395 if test -s conftest.err; then
14396 # Append any errors to the config.log.
14397 cat conftest.err 1>&5
14398 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14400 if diff conftest.exp conftest.er2 >/dev/null; then
14401 lt_cv_prog_compiler__b=yes
14402 fi
14403 else
14404 lt_cv_prog_compiler__b=yes
14405 fi
14406 fi
14407 $RM -r conftest*
14408 LDFLAGS="$save_LDFLAGS"
14409
14410fi
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14412$as_echo "$lt_cv_prog_compiler__b" >&6; }
14413
14414if test x"$lt_cv_prog_compiler__b" = xyes; then
14415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14416else
14417 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14418fi
14419
cristy73bd4a52010-10-05 11:24:23 +000014420 ;;
14421 esac
14422 fi
14423 if test "$with_gnu_ld" = no; then
14424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14425 hardcode_libdir_separator=:
14426
14427 case $host_cpu in
14428 hppa*64*|ia64*)
14429 hardcode_direct=no
14430 hardcode_shlibpath_var=no
14431 ;;
14432 *)
14433 hardcode_direct=yes
14434 hardcode_direct_absolute=yes
14435 export_dynamic_flag_spec='${wl}-E'
14436
14437 # hardcode_minus_L: Not really in the search PATH,
14438 # but as the default location of the library.
14439 hardcode_minus_L=yes
14440 ;;
14441 esac
14442 fi
14443 ;;
14444
14445 irix5* | irix6* | nonstopux*)
14446 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014447 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 +000014448 # Try to use the -exported_symbol ld option, if it does not
14449 # work, assume that -exports_file does not work either and
14450 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014451 # This should be the same for all languages, so no per-tag cache variable.
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14453$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14454if ${lt_cv_irix_exported_symbol+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456else
14457 save_LDFLAGS="$LDFLAGS"
14458 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014460/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014461int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014462_ACEOF
14463if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014464 lt_cv_irix_exported_symbol=yes
14465else
14466 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014467fi
14468rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014470 LDFLAGS="$save_LDFLAGS"
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14473$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14474 if test "$lt_cv_irix_exported_symbol" = yes; then
14475 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'
14476 fi
cristy73bd4a52010-10-05 11:24:23 +000014477 else
cristy0c60a692010-11-04 01:09:47 +000014478 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'
14479 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 +000014480 fi
14481 archive_cmds_need_lc='no'
14482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14483 hardcode_libdir_separator=:
14484 inherit_rpath=yes
14485 link_all_deplibs=yes
14486 ;;
14487
14488 netbsd*)
14489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14491 else
14492 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14493 fi
14494 hardcode_libdir_flag_spec='-R$libdir'
14495 hardcode_direct=yes
14496 hardcode_shlibpath_var=no
14497 ;;
14498
14499 newsos6)
14500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14501 hardcode_direct=yes
14502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14503 hardcode_libdir_separator=:
14504 hardcode_shlibpath_var=no
14505 ;;
14506
14507 *nto* | *qnx*)
14508 ;;
14509
14510 openbsd*)
14511 if test -f /usr/libexec/ld.so; then
14512 hardcode_direct=yes
14513 hardcode_shlibpath_var=no
14514 hardcode_direct_absolute=yes
14515 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14519 export_dynamic_flag_spec='${wl}-E'
14520 else
14521 case $host_os in
14522 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14524 hardcode_libdir_flag_spec='-R$libdir'
14525 ;;
14526 *)
14527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14529 ;;
14530 esac
14531 fi
14532 else
14533 ld_shlibs=no
14534 fi
14535 ;;
14536
14537 os2*)
14538 hardcode_libdir_flag_spec='-L$libdir'
14539 hardcode_minus_L=yes
14540 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014541 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 +000014542 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14543 ;;
14544
14545 osf3*)
14546 if test "$GCC" = yes; then
14547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014548 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 +000014549 else
14550 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014551 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 +000014552 fi
14553 archive_cmds_need_lc='no'
14554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14555 hardcode_libdir_separator=:
14556 ;;
14557
14558 osf4* | osf5*) # as osf3* with the addition of -msym flag
14559 if test "$GCC" = yes; then
14560 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014561 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 +000014562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14563 else
14564 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014565 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 +000014566 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 +000014567 $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 +000014568
14569 # Both c and cxx compiler support -rpath directly
14570 hardcode_libdir_flag_spec='-rpath $libdir'
14571 fi
14572 archive_cmds_need_lc='no'
14573 hardcode_libdir_separator=:
14574 ;;
14575
14576 solaris*)
14577 no_undefined_flag=' -z defs'
14578 if test "$GCC" = yes; then
14579 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014580 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 +000014581 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 +000014582 $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 +000014583 else
14584 case `$CC -V 2>&1` in
14585 *"Compilers 5.0"*)
14586 wlarc=''
14587 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14590 ;;
14591 *)
14592 wlarc='${wl}'
14593 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14595 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14596 ;;
14597 esac
14598 fi
14599 hardcode_libdir_flag_spec='-R$libdir'
14600 hardcode_shlibpath_var=no
14601 case $host_os in
14602 solaris2.[0-5] | solaris2.[0-5].*) ;;
14603 *)
14604 # The compiler driver will combine and reorder linker options,
14605 # but understands `-z linker_flag'. GCC discards it without `$wl',
14606 # but is careful enough not to reorder.
14607 # Supported since Solaris 2.6 (maybe 2.5.1?)
14608 if test "$GCC" = yes; then
14609 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14610 else
14611 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14612 fi
14613 ;;
14614 esac
14615 link_all_deplibs=yes
14616 ;;
14617
14618 sunos4*)
14619 if test "x$host_vendor" = xsequent; then
14620 # Use $CC to link under sequent, because it throws in some extra .o
14621 # files that make .init and .fini sections work.
14622 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14623 else
14624 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14625 fi
14626 hardcode_libdir_flag_spec='-L$libdir'
14627 hardcode_direct=yes
14628 hardcode_minus_L=yes
14629 hardcode_shlibpath_var=no
14630 ;;
14631
14632 sysv4)
14633 case $host_vendor in
14634 sni)
14635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14636 hardcode_direct=yes # is this really true???
14637 ;;
14638 siemens)
14639 ## LD is ld it makes a PLAMLIB
14640 ## CC just makes a GrossModule.
14641 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14642 reload_cmds='$CC -r -o $output$reload_objs'
14643 hardcode_direct=no
14644 ;;
14645 motorola)
14646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14647 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14648 ;;
14649 esac
14650 runpath_var='LD_RUN_PATH'
14651 hardcode_shlibpath_var=no
14652 ;;
14653
14654 sysv4.3*)
14655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14656 hardcode_shlibpath_var=no
14657 export_dynamic_flag_spec='-Bexport'
14658 ;;
14659
14660 sysv4*MP*)
14661 if test -d /usr/nec; then
14662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14663 hardcode_shlibpath_var=no
14664 runpath_var=LD_RUN_PATH
14665 hardcode_runpath_var=yes
14666 ld_shlibs=yes
14667 fi
14668 ;;
14669
14670 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14671 no_undefined_flag='${wl}-z,text'
14672 archive_cmds_need_lc=no
14673 hardcode_shlibpath_var=no
14674 runpath_var='LD_RUN_PATH'
14675
14676 if test "$GCC" = yes; then
14677 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14678 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14679 else
14680 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14681 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14682 fi
14683 ;;
14684
14685 sysv5* | sco3.2v5* | sco5v6*)
14686 # Note: We can NOT use -z defs as we might desire, because we do not
14687 # link with -lc, and that would cause any symbols used from libc to
14688 # always be unresolved, which means just about no library would
14689 # ever link correctly. If we're not using GNU ld we use -z text
14690 # though, which does catch some bad symbols but isn't as heavy-handed
14691 # as -z defs.
14692 no_undefined_flag='${wl}-z,text'
14693 allow_undefined_flag='${wl}-z,nodefs'
14694 archive_cmds_need_lc=no
14695 hardcode_shlibpath_var=no
14696 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14697 hardcode_libdir_separator=':'
14698 link_all_deplibs=yes
14699 export_dynamic_flag_spec='${wl}-Bexport'
14700 runpath_var='LD_RUN_PATH'
14701
14702 if test "$GCC" = yes; then
14703 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14705 else
14706 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14707 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14708 fi
14709 ;;
14710
14711 uts4*)
14712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14713 hardcode_libdir_flag_spec='-L$libdir'
14714 hardcode_shlibpath_var=no
14715 ;;
14716
14717 *)
14718 ld_shlibs=no
14719 ;;
14720 esac
14721
14722 if test x$host_vendor = xsni; then
14723 case $host in
14724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14725 export_dynamic_flag_spec='${wl}-Blargedynsym'
14726 ;;
14727 esac
14728 fi
14729 fi
14730
14731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14732$as_echo "$ld_shlibs" >&6; }
14733test "$ld_shlibs" = no && can_build_shared=no
14734
14735with_gnu_ld=$with_gnu_ld
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751#
14752# Do we need to explicitly link libc?
14753#
14754case "x$archive_cmds_need_lc" in
14755x|xyes)
14756 # Assume -lc should be added
14757 archive_cmds_need_lc=yes
14758
14759 if test "$enable_shared" = yes && test "$GCC" = yes; then
14760 case $archive_cmds in
14761 *'~'*)
14762 # FIXME: we may have to deal with multi-command sequences.
14763 ;;
14764 '$CC '*)
14765 # Test whether the compiler implicitly links with -lc since on some
14766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14767 # to ld, don't add -lc before -lgcc.
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14769$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014770if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014771 $as_echo_n "(cached) " >&6
14772else
14773 $RM conftest*
14774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014775
cristy0c60a692010-11-04 01:09:47 +000014776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014777 (eval $ac_compile) 2>&5
14778 ac_status=$?
14779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14780 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014781 soname=conftest
14782 lib=conftest
14783 libobjs=conftest.$ac_objext
14784 deplibs=
14785 wl=$lt_prog_compiler_wl
14786 pic_flag=$lt_prog_compiler_pic
14787 compiler_flags=-v
14788 linker_flags=-v
14789 verstring=
14790 output_objdir=.
14791 libname=conftest
14792 lt_save_allow_undefined_flag=$allow_undefined_flag
14793 allow_undefined_flag=
14794 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 +000014795 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14796 ac_status=$?
14797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14798 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014799 then
14800 lt_cv_archive_cmds_need_lc=no
14801 else
14802 lt_cv_archive_cmds_need_lc=yes
14803 fi
14804 allow_undefined_flag=$lt_save_allow_undefined_flag
14805 else
14806 cat conftest.err 1>&5
14807 fi
14808 $RM conftest*
14809
14810fi
14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14812$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14813 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014814 ;;
14815 esac
14816 fi
14817 ;;
14818esac
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14977$as_echo_n "checking dynamic linker characteristics... " >&6; }
14978
14979if test "$GCC" = yes; then
14980 case $host_os in
14981 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14982 *) lt_awk_arg="/^libraries:/" ;;
14983 esac
cristy0c60a692010-11-04 01:09:47 +000014984 case $host_os in
14985 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14986 *) lt_sed_strip_eq="s,=/,/,g" ;;
14987 esac
14988 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14989 case $lt_search_path_spec in
14990 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014991 # if the path contains ";" then we assume it to be the separator
14992 # otherwise default to the standard path separator (i.e. ":") - it is
14993 # assumed that no part of a normal pathname contains ";" but that should
14994 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000014995 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14996 ;;
14997 *)
14998 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14999 ;;
15000 esac
cristy73bd4a52010-10-05 11:24:23 +000015001 # Ok, now we have the path, separated by spaces, we can step through it
15002 # and add multilib dir if necessary.
15003 lt_tmp_lt_search_path_spec=
15004 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15005 for lt_sys_path in $lt_search_path_spec; do
15006 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15007 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15008 else
15009 test -d "$lt_sys_path" && \
15010 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15011 fi
15012 done
cristy0c60a692010-11-04 01:09:47 +000015013 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015014BEGIN {RS=" "; FS="/|\n";} {
15015 lt_foo="";
15016 lt_count=0;
15017 for (lt_i = NF; lt_i > 0; lt_i--) {
15018 if ($lt_i != "" && $lt_i != ".") {
15019 if ($lt_i == "..") {
15020 lt_count++;
15021 } else {
15022 if (lt_count == 0) {
15023 lt_foo="/" $lt_i lt_foo;
15024 } else {
15025 lt_count--;
15026 }
15027 }
15028 }
15029 }
15030 if (lt_foo != "") { lt_freq[lt_foo]++; }
15031 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15032}'`
cristy0c60a692010-11-04 01:09:47 +000015033 # AWK program above erroneously prepends '/' to C:/dos/paths
15034 # for these hosts.
15035 case $host_os in
15036 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15037 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15038 esac
15039 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015040else
15041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15042fi
15043library_names_spec=
15044libname_spec='lib$name'
15045soname_spec=
15046shrext_cmds=".so"
15047postinstall_cmds=
15048postuninstall_cmds=
15049finish_cmds=
15050finish_eval=
15051shlibpath_var=
15052shlibpath_overrides_runpath=unknown
15053version_type=none
15054dynamic_linker="$host_os ld.so"
15055sys_lib_dlsearch_path_spec="/lib /usr/lib"
15056need_lib_prefix=unknown
15057hardcode_into_libs=no
15058
15059# when you set need_version to no, make sure it does not cause -set_version
15060# flags to be left without arguments
15061need_version=unknown
15062
15063case $host_os in
15064aix3*)
15065 version_type=linux
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15067 shlibpath_var=LIBPATH
15068
15069 # AIX 3 has no versioning support, so we append a major version to the name.
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 ;;
15072
15073aix[4-9]*)
15074 version_type=linux
15075 need_lib_prefix=no
15076 need_version=no
15077 hardcode_into_libs=yes
15078 if test "$host_cpu" = ia64; then
15079 # AIX 5 supports IA64
15080 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 else
15083 # With GCC up to 2.95.x, collect2 would create an import file
15084 # for dependence libraries. The import file would start with
15085 # the line `#! .'. This would cause the generated library to
15086 # depend on `.', always an invalid library. This was fixed in
15087 # development snapshots of GCC prior to 3.0.
15088 case $host_os in
15089 aix4 | aix4.[01] | aix4.[01].*)
15090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15091 echo ' yes '
15092 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15093 :
15094 else
15095 can_build_shared=no
15096 fi
15097 ;;
15098 esac
15099 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15100 # soname into executable. Probably we can add versioning support to
15101 # collect2, so additional links can be useful in future.
15102 if test "$aix_use_runtimelinking" = yes; then
15103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15104 # instead of lib<name>.a to let people know that these are not
15105 # typical AIX shared libraries.
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 else
15108 # We preserve .a as extension for shared libraries through AIX4.2
15109 # and later when we are not doing run time linking.
15110 library_names_spec='${libname}${release}.a $libname.a'
15111 soname_spec='${libname}${release}${shared_ext}$major'
15112 fi
15113 shlibpath_var=LIBPATH
15114 fi
15115 ;;
15116
15117amigaos*)
15118 case $host_cpu in
15119 powerpc)
15120 # Since July 2007 AmigaOS4 officially supports .so libraries.
15121 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123 ;;
15124 m68k)
15125 library_names_spec='$libname.ixlibrary $libname.a'
15126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015127 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 +000015128 ;;
15129 esac
15130 ;;
15131
15132beos*)
15133 library_names_spec='${libname}${shared_ext}'
15134 dynamic_linker="$host_os ld.so"
15135 shlibpath_var=LIBRARY_PATH
15136 ;;
15137
15138bsdi[45]*)
15139 version_type=linux
15140 need_version=no
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15147 # the default ld.so.conf also contains /usr/contrib/lib and
15148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15149 # libtool to hard-code these into programs
15150 ;;
15151
15152cygwin* | mingw* | pw32* | cegcc*)
15153 version_type=windows
15154 shrext_cmds=".dll"
15155 need_version=no
15156 need_lib_prefix=no
15157
cristyda16f162011-02-19 23:52:17 +000015158 case $GCC,$cc_basename in
15159 yes,*)
15160 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015161 library_names_spec='$libname.dll.a'
15162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15163 postinstall_cmds='base_file=`basename \${file}`~
15164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15165 dldir=$destdir/`dirname \$dlpath`~
15166 test -d \$dldir || mkdir -p \$dldir~
15167 $install_prog $dir/$dlname \$dldir/$dlname~
15168 chmod a+x \$dldir/$dlname~
15169 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15170 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15171 fi'
15172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15173 dlpath=$dir/\$dldll~
15174 $RM \$dlpath'
15175 shlibpath_overrides_runpath=yes
15176
15177 case $host_os in
15178 cygwin*)
15179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015181
15182 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015183 ;;
15184 mingw* | cegcc*)
15185 # MinGW DLLs use traditional 'lib' prefix
15186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015187 ;;
15188 pw32*)
15189 # pw32 DLLs use 'pw' prefix rather than 'lib'
15190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15191 ;;
15192 esac
cristyda16f162011-02-19 23:52:17 +000015193 dynamic_linker='Win32 ld.exe'
15194 ;;
15195
15196 *,cl*)
15197 # Native MSVC
15198 libname_spec='$name'
15199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15200 library_names_spec='${libname}.dll.lib'
15201
15202 case $build_os in
15203 mingw*)
15204 sys_lib_search_path_spec=
15205 lt_save_ifs=$IFS
15206 IFS=';'
15207 for lt_path in $LIB
15208 do
15209 IFS=$lt_save_ifs
15210 # Let DOS variable expansion print the short 8.3 style file name.
15211 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15212 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15213 done
15214 IFS=$lt_save_ifs
15215 # Convert to MSYS style.
15216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15217 ;;
15218 cygwin*)
15219 # Convert to unix form, then to dos form, then back to unix form
15220 # but this time dos style (no spaces!) so that the unix form looks
15221 # like /cygdrive/c/PROGRA~1:/cygdr...
15222 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15223 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15224 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15225 ;;
15226 *)
15227 sys_lib_search_path_spec="$LIB"
15228 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15229 # It is most probably a Windows format PATH.
15230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15231 else
15232 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15233 fi
15234 # FIXME: find the short name or the path components, as spaces are
15235 # common. (e.g. "Program Files" -> "PROGRA~1")
15236 ;;
15237 esac
15238
15239 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15240 postinstall_cmds='base_file=`basename \${file}`~
15241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15242 dldir=$destdir/`dirname \$dlpath`~
15243 test -d \$dldir || mkdir -p \$dldir~
15244 $install_prog $dir/$dlname \$dldir/$dlname'
15245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15246 dlpath=$dir/\$dldll~
15247 $RM \$dlpath'
15248 shlibpath_overrides_runpath=yes
15249 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015250 ;;
15251
15252 *)
cristyda16f162011-02-19 23:52:17 +000015253 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015255 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015256 ;;
15257 esac
cristy73bd4a52010-10-05 11:24:23 +000015258 # FIXME: first we should search . and the directory the executable is in
15259 shlibpath_var=PATH
15260 ;;
15261
15262darwin* | rhapsody*)
15263 dynamic_linker="$host_os dyld"
15264 version_type=darwin
15265 need_lib_prefix=no
15266 need_version=no
15267 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15268 soname_spec='${libname}${release}${major}$shared_ext'
15269 shlibpath_overrides_runpath=yes
15270 shlibpath_var=DYLD_LIBRARY_PATH
15271 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15272
15273 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15274 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15275 ;;
15276
15277dgux*)
15278 version_type=linux
15279 need_lib_prefix=no
15280 need_version=no
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 ;;
15285
15286freebsd1*)
15287 dynamic_linker=no
15288 ;;
15289
15290freebsd* | dragonfly*)
15291 # DragonFly does not have aout. When/if they implement a new
15292 # versioning mechanism, adjust this.
15293 if test -x /usr/bin/objformat; then
15294 objformat=`/usr/bin/objformat`
15295 else
15296 case $host_os in
15297 freebsd[123]*) objformat=aout ;;
15298 *) objformat=elf ;;
15299 esac
15300 fi
15301 version_type=freebsd-$objformat
15302 case $version_type in
15303 freebsd-elf*)
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15305 need_version=no
15306 need_lib_prefix=no
15307 ;;
15308 freebsd-*)
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15310 need_version=yes
15311 ;;
15312 esac
15313 shlibpath_var=LD_LIBRARY_PATH
15314 case $host_os in
15315 freebsd2*)
15316 shlibpath_overrides_runpath=yes
15317 ;;
15318 freebsd3.[01]* | freebsdelf3.[01]*)
15319 shlibpath_overrides_runpath=yes
15320 hardcode_into_libs=yes
15321 ;;
15322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15324 shlibpath_overrides_runpath=no
15325 hardcode_into_libs=yes
15326 ;;
15327 *) # from 4.6 on, and DragonFly
15328 shlibpath_overrides_runpath=yes
15329 hardcode_into_libs=yes
15330 ;;
15331 esac
15332 ;;
15333
15334gnu*)
15335 version_type=linux
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 hardcode_into_libs=yes
15342 ;;
15343
cristy0c60a692010-11-04 01:09:47 +000015344haiku*)
15345 version_type=linux
15346 need_lib_prefix=no
15347 need_version=no
15348 dynamic_linker="$host_os runtime_loader"
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 shlibpath_var=LIBRARY_PATH
15352 shlibpath_overrides_runpath=yes
15353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15354 hardcode_into_libs=yes
15355 ;;
15356
cristy73bd4a52010-10-05 11:24:23 +000015357hpux9* | hpux10* | hpux11*)
15358 # Give a soname corresponding to the major version so that dld.sl refuses to
15359 # link against other versions.
15360 version_type=sunos
15361 need_lib_prefix=no
15362 need_version=no
15363 case $host_cpu in
15364 ia64*)
15365 shrext_cmds='.so'
15366 hardcode_into_libs=yes
15367 dynamic_linker="$host_os dld.so"
15368 shlibpath_var=LD_LIBRARY_PATH
15369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 if test "X$HPUX_IA64_MODE" = X32; then
15373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15374 else
15375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15376 fi
15377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15378 ;;
15379 hppa*64*)
15380 shrext_cmds='.sl'
15381 hardcode_into_libs=yes
15382 dynamic_linker="$host_os dld.sl"
15383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386 soname_spec='${libname}${release}${shared_ext}$major'
15387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15389 ;;
15390 *)
15391 shrext_cmds='.sl'
15392 dynamic_linker="$host_os dld.sl"
15393 shlibpath_var=SHLIB_PATH
15394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 ;;
15398 esac
cristy0c60a692010-11-04 01:09:47 +000015399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015400 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015401 # or fails outright, so override atomically:
15402 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015403 ;;
15404
15405interix[3-9]*)
15406 version_type=linux
15407 need_lib_prefix=no
15408 need_version=no
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15410 soname_spec='${libname}${release}${shared_ext}$major'
15411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 shlibpath_overrides_runpath=no
15414 hardcode_into_libs=yes
15415 ;;
15416
15417irix5* | irix6* | nonstopux*)
15418 case $host_os in
15419 nonstopux*) version_type=nonstopux ;;
15420 *)
15421 if test "$lt_cv_prog_gnu_ld" = yes; then
15422 version_type=linux
15423 else
15424 version_type=irix
15425 fi ;;
15426 esac
15427 need_lib_prefix=no
15428 need_version=no
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15431 case $host_os in
15432 irix5* | nonstopux*)
15433 libsuff= shlibsuff=
15434 ;;
15435 *)
15436 case $LD in # libtool.m4 will add one of these switches to LD
15437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15438 libsuff= shlibsuff= libmagic=32-bit;;
15439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15440 libsuff=32 shlibsuff=N32 libmagic=N32;;
15441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15443 *) libsuff= shlibsuff= libmagic=never-match;;
15444 esac
15445 ;;
15446 esac
15447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15448 shlibpath_overrides_runpath=no
15449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15451 hardcode_into_libs=yes
15452 ;;
15453
15454# No shared lib support for Linux oldld, aout, or coff.
15455linux*oldld* | linux*aout* | linux*coff*)
15456 dynamic_linker=no
15457 ;;
15458
15459# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015460linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015461 version_type=linux
15462 need_lib_prefix=no
15463 need_version=no
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15465 soname_spec='${libname}${release}${shared_ext}$major'
15466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015469
cristy73bd4a52010-10-05 11:24:23 +000015470 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015471 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015472 $as_echo_n "(cached) " >&6
15473else
15474 lt_cv_shlibpath_overrides_runpath=no
15475 save_LDFLAGS=$LDFLAGS
15476 save_libdir=$libdir
15477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015480/* end confdefs.h. */
15481
15482int
15483main ()
15484{
15485
15486 ;
15487 return 0;
15488}
15489_ACEOF
15490if ac_fn_c_try_link "$LINENO"; then :
15491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015492 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015493fi
15494fi
15495rm -f core conftest.err conftest.$ac_objext \
15496 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015497 LDFLAGS=$save_LDFLAGS
15498 libdir=$save_libdir
15499
15500fi
15501
15502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015503
15504 # This implies no fast_install, which is unacceptable.
15505 # Some rework will be needed to allow for fast_install
15506 # before this can be enabled.
15507 hardcode_into_libs=yes
15508
15509 # Add ABI-specific directories to the system library path.
15510 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15511
15512 # Append ld.so.conf contents to the search path
15513 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015514 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 +000015515 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015516
cristy73bd4a52010-10-05 11:24:23 +000015517 fi
15518
15519 # We used to test for /lib/ld.so.1 and disable shared libraries on
15520 # powerpc, because MkLinux only supported shared libraries with the
15521 # GNU dynamic linker. Since this was broken with cross compilers,
15522 # most powerpc-linux boxes support dynamic linking these days and
15523 # people can always --disable-shared, the test was removed, and we
15524 # assume the GNU/Linux dynamic linker is in use.
15525 dynamic_linker='GNU/Linux ld.so'
15526 ;;
15527
15528netbsd*)
15529 version_type=sunos
15530 need_lib_prefix=no
15531 need_version=no
15532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15535 dynamic_linker='NetBSD (a.out) ld.so'
15536 else
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 dynamic_linker='NetBSD ld.elf_so'
15540 fi
15541 shlibpath_var=LD_LIBRARY_PATH
15542 shlibpath_overrides_runpath=yes
15543 hardcode_into_libs=yes
15544 ;;
15545
15546newsos6)
15547 version_type=linux
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=yes
15551 ;;
15552
15553*nto* | *qnx*)
15554 version_type=qnx
15555 need_lib_prefix=no
15556 need_version=no
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=no
15561 hardcode_into_libs=yes
15562 dynamic_linker='ldqnx.so'
15563 ;;
15564
15565openbsd*)
15566 version_type=sunos
15567 sys_lib_dlsearch_path_spec="/usr/lib"
15568 need_lib_prefix=no
15569 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15570 case $host_os in
15571 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15572 *) need_version=no ;;
15573 esac
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15578 case $host_os in
15579 openbsd2.[89] | openbsd2.[89].*)
15580 shlibpath_overrides_runpath=no
15581 ;;
15582 *)
15583 shlibpath_overrides_runpath=yes
15584 ;;
15585 esac
15586 else
15587 shlibpath_overrides_runpath=yes
15588 fi
15589 ;;
15590
15591os2*)
15592 libname_spec='$name'
15593 shrext_cmds=".dll"
15594 need_lib_prefix=no
15595 library_names_spec='$libname${shared_ext} $libname.a'
15596 dynamic_linker='OS/2 ld.exe'
15597 shlibpath_var=LIBPATH
15598 ;;
15599
15600osf3* | osf4* | osf5*)
15601 version_type=osf
15602 need_lib_prefix=no
15603 need_version=no
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15608 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15609 ;;
15610
15611rdos*)
15612 dynamic_linker=no
15613 ;;
15614
15615solaris*)
15616 version_type=linux
15617 need_lib_prefix=no
15618 need_version=no
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=yes
15623 hardcode_into_libs=yes
15624 # ldd complains unless libraries are executable
15625 postinstall_cmds='chmod +x $lib'
15626 ;;
15627
15628sunos4*)
15629 version_type=sunos
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15631 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 shlibpath_overrides_runpath=yes
15634 if test "$with_gnu_ld" = yes; then
15635 need_lib_prefix=no
15636 fi
15637 need_version=yes
15638 ;;
15639
15640sysv4 | sysv4.3*)
15641 version_type=linux
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 soname_spec='${libname}${release}${shared_ext}$major'
15644 shlibpath_var=LD_LIBRARY_PATH
15645 case $host_vendor in
15646 sni)
15647 shlibpath_overrides_runpath=no
15648 need_lib_prefix=no
15649 runpath_var=LD_RUN_PATH
15650 ;;
15651 siemens)
15652 need_lib_prefix=no
15653 ;;
15654 motorola)
15655 need_lib_prefix=no
15656 need_version=no
15657 shlibpath_overrides_runpath=no
15658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15659 ;;
15660 esac
15661 ;;
15662
15663sysv4*MP*)
15664 if test -d /usr/nec ;then
15665 version_type=linux
15666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15667 soname_spec='$libname${shared_ext}.$major'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 fi
15670 ;;
15671
15672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15673 version_type=freebsd-elf
15674 need_lib_prefix=no
15675 need_version=no
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 shlibpath_overrides_runpath=yes
15680 hardcode_into_libs=yes
15681 if test "$with_gnu_ld" = yes; then
15682 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15683 else
15684 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15685 case $host_os in
15686 sco3.2v5*)
15687 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15688 ;;
15689 esac
15690 fi
15691 sys_lib_dlsearch_path_spec='/usr/lib'
15692 ;;
15693
15694tpf*)
15695 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15696 version_type=linux
15697 need_lib_prefix=no
15698 need_version=no
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700 shlibpath_var=LD_LIBRARY_PATH
15701 shlibpath_overrides_runpath=no
15702 hardcode_into_libs=yes
15703 ;;
15704
15705uts4*)
15706 version_type=linux
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 ;;
15711
15712*)
15713 dynamic_linker=no
15714 ;;
15715esac
15716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15717$as_echo "$dynamic_linker" >&6; }
15718test "$dynamic_linker" = no && can_build_shared=no
15719
15720variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15721if test "$GCC" = yes; then
15722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15723fi
15724
15725if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15726 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15727fi
15728if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15729 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15730fi
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
cristy0c60a692010-11-04 01:09:47 +000015818
15819
15820
15821
15822
cristy73bd4a52010-10-05 11:24:23 +000015823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15824$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15825hardcode_action=
15826if test -n "$hardcode_libdir_flag_spec" ||
15827 test -n "$runpath_var" ||
15828 test "X$hardcode_automatic" = "Xyes" ; then
15829
15830 # We can hardcode non-existent directories.
15831 if test "$hardcode_direct" != no &&
15832 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15833 # have to relink, otherwise we might link with an installed library
15834 # when we should be linking with a yet-to-be-installed one
15835 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15836 test "$hardcode_minus_L" != no; then
15837 # Linking always hardcodes the temporary library directory.
15838 hardcode_action=relink
15839 else
15840 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15841 hardcode_action=immediate
15842 fi
15843else
15844 # We cannot hardcode anything, or else we can only hardcode existing
15845 # directories.
15846 hardcode_action=unsupported
15847fi
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15849$as_echo "$hardcode_action" >&6; }
15850
15851if test "$hardcode_action" = relink ||
15852 test "$inherit_rpath" = yes; then
15853 # Fast installation is not supported
15854 enable_fast_install=no
15855elif test "$shlibpath_overrides_runpath" = yes ||
15856 test "$enable_shared" = no; then
15857 # Fast installation is not necessary
15858 enable_fast_install=needless
15859fi
15860
15861
15862
15863
15864
15865
15866 if test "x$enable_dlopen" != xyes; then
15867 enable_dlopen=unknown
15868 enable_dlopen_self=unknown
15869 enable_dlopen_self_static=unknown
15870else
15871 lt_cv_dlopen=no
15872 lt_cv_dlopen_libs=
15873
15874 case $host_os in
15875 beos*)
15876 lt_cv_dlopen="load_add_on"
15877 lt_cv_dlopen_libs=
15878 lt_cv_dlopen_self=yes
15879 ;;
15880
15881 mingw* | pw32* | cegcc*)
15882 lt_cv_dlopen="LoadLibrary"
15883 lt_cv_dlopen_libs=
15884 ;;
15885
15886 cygwin*)
15887 lt_cv_dlopen="dlopen"
15888 lt_cv_dlopen_libs=
15889 ;;
15890
15891 darwin*)
15892 # if libdl is installed we need to link against it
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15894$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015895if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015896 $as_echo_n "(cached) " >&6
15897else
15898 ac_check_lib_save_LIBS=$LIBS
15899LIBS="-ldl $LIBS"
15900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h. */
15902
15903/* Override any GCC internal prototype to avoid an error.
15904 Use char because int might match the return type of a GCC
15905 builtin and then its argument prototype would still apply. */
15906#ifdef __cplusplus
15907extern "C"
15908#endif
15909char dlopen ();
15910int
15911main ()
15912{
15913return dlopen ();
15914 ;
15915 return 0;
15916}
15917_ACEOF
15918if ac_fn_c_try_link "$LINENO"; then :
15919 ac_cv_lib_dl_dlopen=yes
15920else
15921 ac_cv_lib_dl_dlopen=no
15922fi
15923rm -f core conftest.err conftest.$ac_objext \
15924 conftest$ac_exeext conftest.$ac_ext
15925LIBS=$ac_check_lib_save_LIBS
15926fi
15927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15928$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015929if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15931else
15932
15933 lt_cv_dlopen="dyld"
15934 lt_cv_dlopen_libs=
15935 lt_cv_dlopen_self=yes
15936
15937fi
15938
15939 ;;
15940
15941 *)
15942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015943if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015944 lt_cv_dlopen="shl_load"
15945else
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15947$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015948if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015949 $as_echo_n "(cached) " >&6
15950else
15951 ac_check_lib_save_LIBS=$LIBS
15952LIBS="-ldld $LIBS"
15953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954/* end confdefs.h. */
15955
15956/* Override any GCC internal prototype to avoid an error.
15957 Use char because int might match the return type of a GCC
15958 builtin and then its argument prototype would still apply. */
15959#ifdef __cplusplus
15960extern "C"
15961#endif
15962char shl_load ();
15963int
15964main ()
15965{
15966return shl_load ();
15967 ;
15968 return 0;
15969}
15970_ACEOF
15971if ac_fn_c_try_link "$LINENO"; then :
15972 ac_cv_lib_dld_shl_load=yes
15973else
15974 ac_cv_lib_dld_shl_load=no
15975fi
15976rm -f core conftest.err conftest.$ac_objext \
15977 conftest$ac_exeext conftest.$ac_ext
15978LIBS=$ac_check_lib_save_LIBS
15979fi
15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15981$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015982if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015983 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15984else
15985 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015986if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015987 lt_cv_dlopen="dlopen"
15988else
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15990$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015991if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015992 $as_echo_n "(cached) " >&6
15993else
15994 ac_check_lib_save_LIBS=$LIBS
15995LIBS="-ldl $LIBS"
15996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h. */
15998
15999/* Override any GCC internal prototype to avoid an error.
16000 Use char because int might match the return type of a GCC
16001 builtin and then its argument prototype would still apply. */
16002#ifdef __cplusplus
16003extern "C"
16004#endif
16005char dlopen ();
16006int
16007main ()
16008{
16009return dlopen ();
16010 ;
16011 return 0;
16012}
16013_ACEOF
16014if ac_fn_c_try_link "$LINENO"; then :
16015 ac_cv_lib_dl_dlopen=yes
16016else
16017 ac_cv_lib_dl_dlopen=no
16018fi
16019rm -f core conftest.err conftest.$ac_objext \
16020 conftest$ac_exeext conftest.$ac_ext
16021LIBS=$ac_check_lib_save_LIBS
16022fi
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16024$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016025if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16027else
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16029$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016030if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016031 $as_echo_n "(cached) " >&6
16032else
16033 ac_check_lib_save_LIBS=$LIBS
16034LIBS="-lsvld $LIBS"
16035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036/* end confdefs.h. */
16037
16038/* Override any GCC internal prototype to avoid an error.
16039 Use char because int might match the return type of a GCC
16040 builtin and then its argument prototype would still apply. */
16041#ifdef __cplusplus
16042extern "C"
16043#endif
16044char dlopen ();
16045int
16046main ()
16047{
16048return dlopen ();
16049 ;
16050 return 0;
16051}
16052_ACEOF
16053if ac_fn_c_try_link "$LINENO"; then :
16054 ac_cv_lib_svld_dlopen=yes
16055else
16056 ac_cv_lib_svld_dlopen=no
16057fi
16058rm -f core conftest.err conftest.$ac_objext \
16059 conftest$ac_exeext conftest.$ac_ext
16060LIBS=$ac_check_lib_save_LIBS
16061fi
16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16063$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016064if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16066else
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16068$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016069if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016070 $as_echo_n "(cached) " >&6
16071else
16072 ac_check_lib_save_LIBS=$LIBS
16073LIBS="-ldld $LIBS"
16074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075/* end confdefs.h. */
16076
16077/* Override any GCC internal prototype to avoid an error.
16078 Use char because int might match the return type of a GCC
16079 builtin and then its argument prototype would still apply. */
16080#ifdef __cplusplus
16081extern "C"
16082#endif
16083char dld_link ();
16084int
16085main ()
16086{
16087return dld_link ();
16088 ;
16089 return 0;
16090}
16091_ACEOF
16092if ac_fn_c_try_link "$LINENO"; then :
16093 ac_cv_lib_dld_dld_link=yes
16094else
16095 ac_cv_lib_dld_dld_link=no
16096fi
16097rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099LIBS=$ac_check_lib_save_LIBS
16100fi
16101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16102$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016103if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16105fi
16106
16107
16108fi
16109
16110
16111fi
16112
16113
16114fi
16115
16116
16117fi
16118
16119
16120fi
16121
16122 ;;
16123 esac
16124
16125 if test "x$lt_cv_dlopen" != xno; then
16126 enable_dlopen=yes
16127 else
16128 enable_dlopen=no
16129 fi
16130
16131 case $lt_cv_dlopen in
16132 dlopen)
16133 save_CPPFLAGS="$CPPFLAGS"
16134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16135
16136 save_LDFLAGS="$LDFLAGS"
16137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16138
16139 save_LIBS="$LIBS"
16140 LIBS="$lt_cv_dlopen_libs $LIBS"
16141
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16143$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016144if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016145 $as_echo_n "(cached) " >&6
16146else
16147 if test "$cross_compiling" = yes; then :
16148 lt_cv_dlopen_self=cross
16149else
16150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16151 lt_status=$lt_dlunknown
16152 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016153#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016154#include "confdefs.h"
16155
16156#if HAVE_DLFCN_H
16157#include <dlfcn.h>
16158#endif
16159
16160#include <stdio.h>
16161
16162#ifdef RTLD_GLOBAL
16163# define LT_DLGLOBAL RTLD_GLOBAL
16164#else
16165# ifdef DL_GLOBAL
16166# define LT_DLGLOBAL DL_GLOBAL
16167# else
16168# define LT_DLGLOBAL 0
16169# endif
16170#endif
16171
16172/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16173 find out it does not work in some platform. */
16174#ifndef LT_DLLAZY_OR_NOW
16175# ifdef RTLD_LAZY
16176# define LT_DLLAZY_OR_NOW RTLD_LAZY
16177# else
16178# ifdef DL_LAZY
16179# define LT_DLLAZY_OR_NOW DL_LAZY
16180# else
16181# ifdef RTLD_NOW
16182# define LT_DLLAZY_OR_NOW RTLD_NOW
16183# else
16184# ifdef DL_NOW
16185# define LT_DLLAZY_OR_NOW DL_NOW
16186# else
16187# define LT_DLLAZY_OR_NOW 0
16188# endif
16189# endif
16190# endif
16191# endif
16192#endif
16193
cristy0c60a692010-11-04 01:09:47 +000016194/* When -fvisbility=hidden is used, assume the code has been annotated
16195 correspondingly for the symbols needed. */
16196#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016197int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016198#endif
16199
cristyda16f162011-02-19 23:52:17 +000016200int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016201int main ()
16202{
16203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16204 int status = $lt_dlunknown;
16205
16206 if (self)
16207 {
16208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016209 else
16210 {
16211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16212 else puts (dlerror ());
16213 }
cristy73bd4a52010-10-05 11:24:23 +000016214 /* dlclose (self); */
16215 }
16216 else
16217 puts (dlerror ());
16218
16219 return status;
16220}
16221_LT_EOF
16222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16223 (eval $ac_link) 2>&5
16224 ac_status=$?
16225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16227 (./conftest; exit; ) >&5 2>/dev/null
16228 lt_status=$?
16229 case x$lt_status in
16230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16233 esac
16234 else :
16235 # compilation failed
16236 lt_cv_dlopen_self=no
16237 fi
16238fi
16239rm -fr conftest*
16240
16241
16242fi
16243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16244$as_echo "$lt_cv_dlopen_self" >&6; }
16245
16246 if test "x$lt_cv_dlopen_self" = xyes; then
16247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16249$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016250if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016251 $as_echo_n "(cached) " >&6
16252else
16253 if test "$cross_compiling" = yes; then :
16254 lt_cv_dlopen_self_static=cross
16255else
16256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16257 lt_status=$lt_dlunknown
16258 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016259#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016260#include "confdefs.h"
16261
16262#if HAVE_DLFCN_H
16263#include <dlfcn.h>
16264#endif
16265
16266#include <stdio.h>
16267
16268#ifdef RTLD_GLOBAL
16269# define LT_DLGLOBAL RTLD_GLOBAL
16270#else
16271# ifdef DL_GLOBAL
16272# define LT_DLGLOBAL DL_GLOBAL
16273# else
16274# define LT_DLGLOBAL 0
16275# endif
16276#endif
16277
16278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16279 find out it does not work in some platform. */
16280#ifndef LT_DLLAZY_OR_NOW
16281# ifdef RTLD_LAZY
16282# define LT_DLLAZY_OR_NOW RTLD_LAZY
16283# else
16284# ifdef DL_LAZY
16285# define LT_DLLAZY_OR_NOW DL_LAZY
16286# else
16287# ifdef RTLD_NOW
16288# define LT_DLLAZY_OR_NOW RTLD_NOW
16289# else
16290# ifdef DL_NOW
16291# define LT_DLLAZY_OR_NOW DL_NOW
16292# else
16293# define LT_DLLAZY_OR_NOW 0
16294# endif
16295# endif
16296# endif
16297# endif
16298#endif
16299
cristy0c60a692010-11-04 01:09:47 +000016300/* When -fvisbility=hidden is used, assume the code has been annotated
16301 correspondingly for the symbols needed. */
16302#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016303int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016304#endif
16305
cristyda16f162011-02-19 23:52:17 +000016306int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016307int main ()
16308{
16309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16310 int status = $lt_dlunknown;
16311
16312 if (self)
16313 {
16314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016315 else
16316 {
16317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16318 else puts (dlerror ());
16319 }
cristy73bd4a52010-10-05 11:24:23 +000016320 /* dlclose (self); */
16321 }
16322 else
16323 puts (dlerror ());
16324
16325 return status;
16326}
16327_LT_EOF
16328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16329 (eval $ac_link) 2>&5
16330 ac_status=$?
16331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16332 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16333 (./conftest; exit; ) >&5 2>/dev/null
16334 lt_status=$?
16335 case x$lt_status in
16336 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16337 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16338 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16339 esac
16340 else :
16341 # compilation failed
16342 lt_cv_dlopen_self_static=no
16343 fi
16344fi
16345rm -fr conftest*
16346
16347
16348fi
16349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16350$as_echo "$lt_cv_dlopen_self_static" >&6; }
16351 fi
16352
16353 CPPFLAGS="$save_CPPFLAGS"
16354 LDFLAGS="$save_LDFLAGS"
16355 LIBS="$save_LIBS"
16356 ;;
16357 esac
16358
16359 case $lt_cv_dlopen_self in
16360 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16361 *) enable_dlopen_self=unknown ;;
16362 esac
16363
16364 case $lt_cv_dlopen_self_static in
16365 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16366 *) enable_dlopen_self_static=unknown ;;
16367 esac
16368fi
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386striplib=
16387old_striplib=
16388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16389$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16390if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16394$as_echo "yes" >&6; }
16395else
16396# FIXME - insert some real tests, host_os isn't really good enough
16397 case $host_os in
16398 darwin*)
16399 if test -n "$STRIP" ; then
16400 striplib="$STRIP -x"
16401 old_striplib="$STRIP -S"
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16403$as_echo "yes" >&6; }
16404 else
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406$as_echo "no" >&6; }
16407 fi
16408 ;;
16409 *)
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16411$as_echo "no" >&6; }
16412 ;;
16413 esac
16414fi
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427 # Report which library types will actually be built
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16429$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16431$as_echo "$can_build_shared" >&6; }
16432
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16434$as_echo_n "checking whether to build shared libraries... " >&6; }
16435 test "$can_build_shared" = "no" && enable_shared=no
16436
16437 # On AIX, shared libraries and static libraries use the same namespace, and
16438 # are all built from PIC.
16439 case $host_os in
16440 aix3*)
16441 test "$enable_shared" = yes && enable_static=no
16442 if test -n "$RANLIB"; then
16443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16444 postinstall_cmds='$RANLIB $lib'
16445 fi
16446 ;;
16447
16448 aix[4-9]*)
16449 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16450 test "$enable_shared" = yes && enable_static=no
16451 fi
16452 ;;
16453 esac
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16455$as_echo "$enable_shared" >&6; }
16456
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16458$as_echo_n "checking whether to build static libraries... " >&6; }
16459 # Make sure either enable_shared or enable_static is yes.
16460 test "$enable_shared" = yes || enable_static=yes
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16462$as_echo "$enable_static" >&6; }
16463
16464
16465
16466
16467fi
16468ac_ext=c
16469ac_cpp='$CPP $CPPFLAGS'
16470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16472ac_compiler_gnu=$ac_cv_c_compiler_gnu
16473
16474CC="$lt_save_CC"
16475
cristy0c60a692010-11-04 01:09:47 +000016476 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16477 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16478 (test "X$CXX" != "Xg++"))) ; then
16479 ac_ext=cpp
16480ac_cpp='$CXXCPP $CPPFLAGS'
16481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16485$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16486if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016487 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016488 $as_echo_n "(cached) " >&6
16489else
16490 # Double quotes because CXXCPP needs to be expanded
16491 for CXXCPP in "$CXX -E" "/lib/cpp"
16492 do
16493 ac_preproc_ok=false
16494for ac_cxx_preproc_warn_flag in '' yes
16495do
16496 # Use a header file that comes with gcc, so configuring glibc
16497 # with a fresh cross-compiler works.
16498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16499 # <limits.h> exists even on freestanding compilers.
16500 # On the NeXT, cc -E runs the code through the compiler's parser,
16501 # not just through cpp. "Syntax error" is here to catch this case.
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503/* end confdefs.h. */
16504#ifdef __STDC__
16505# include <limits.h>
16506#else
16507# include <assert.h>
16508#endif
16509 Syntax error
16510_ACEOF
16511if ac_fn_cxx_try_cpp "$LINENO"; then :
16512
16513else
16514 # Broken: fails on valid input.
16515continue
16516fi
cristyda16f162011-02-19 23:52:17 +000016517rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016518
16519 # OK, works on sane cases. Now check whether nonexistent headers
16520 # can be detected and how.
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522/* end confdefs.h. */
16523#include <ac_nonexistent.h>
16524_ACEOF
16525if ac_fn_cxx_try_cpp "$LINENO"; then :
16526 # Broken: success on invalid input.
16527continue
16528else
16529 # Passes both tests.
16530ac_preproc_ok=:
16531break
16532fi
cristyda16f162011-02-19 23:52:17 +000016533rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016534
16535done
16536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016537rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016538if $ac_preproc_ok; then :
16539 break
16540fi
16541
16542 done
16543 ac_cv_prog_CXXCPP=$CXXCPP
16544
16545fi
16546 CXXCPP=$ac_cv_prog_CXXCPP
16547else
16548 ac_cv_prog_CXXCPP=$CXXCPP
16549fi
16550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16551$as_echo "$CXXCPP" >&6; }
16552ac_preproc_ok=false
16553for ac_cxx_preproc_warn_flag in '' yes
16554do
16555 # Use a header file that comes with gcc, so configuring glibc
16556 # with a fresh cross-compiler works.
16557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16558 # <limits.h> exists even on freestanding compilers.
16559 # On the NeXT, cc -E runs the code through the compiler's parser,
16560 # not just through cpp. "Syntax error" is here to catch this case.
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562/* end confdefs.h. */
16563#ifdef __STDC__
16564# include <limits.h>
16565#else
16566# include <assert.h>
16567#endif
16568 Syntax error
16569_ACEOF
16570if ac_fn_cxx_try_cpp "$LINENO"; then :
16571
16572else
16573 # Broken: fails on valid input.
16574continue
16575fi
cristyda16f162011-02-19 23:52:17 +000016576rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016577
16578 # OK, works on sane cases. Now check whether nonexistent headers
16579 # can be detected and how.
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581/* end confdefs.h. */
16582#include <ac_nonexistent.h>
16583_ACEOF
16584if ac_fn_cxx_try_cpp "$LINENO"; then :
16585 # Broken: success on invalid input.
16586continue
16587else
16588 # Passes both tests.
16589ac_preproc_ok=:
16590break
16591fi
cristyda16f162011-02-19 23:52:17 +000016592rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016593
16594done
16595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016596rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016597if $ac_preproc_ok; then :
16598
16599else
16600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16602as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16603See \`config.log' for more details" "$LINENO" 5; }
16604fi
16605
16606ac_ext=c
16607ac_cpp='$CPP $CPPFLAGS'
16608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16610ac_compiler_gnu=$ac_cv_c_compiler_gnu
16611
16612else
16613 _lt_caught_CXX_error=yes
16614fi
cristy73bd4a52010-10-05 11:24:23 +000016615
16616ac_ext=cpp
16617ac_cpp='$CXXCPP $CPPFLAGS'
16618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16621
16622archive_cmds_need_lc_CXX=no
16623allow_undefined_flag_CXX=
16624always_export_symbols_CXX=no
16625archive_expsym_cmds_CXX=
16626compiler_needs_object_CXX=no
16627export_dynamic_flag_spec_CXX=
16628hardcode_direct_CXX=no
16629hardcode_direct_absolute_CXX=no
16630hardcode_libdir_flag_spec_CXX=
16631hardcode_libdir_flag_spec_ld_CXX=
16632hardcode_libdir_separator_CXX=
16633hardcode_minus_L_CXX=no
16634hardcode_shlibpath_var_CXX=unsupported
16635hardcode_automatic_CXX=no
16636inherit_rpath_CXX=no
16637module_cmds_CXX=
16638module_expsym_cmds_CXX=
16639link_all_deplibs_CXX=unknown
16640old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016641reload_flag_CXX=$reload_flag
16642reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016643no_undefined_flag_CXX=
16644whole_archive_flag_spec_CXX=
16645enable_shared_with_static_runtimes_CXX=no
16646
16647# Source file extension for C++ test sources.
16648ac_ext=cpp
16649
16650# Object file extension for compiled C++ test sources.
16651objext=o
16652objext_CXX=$objext
16653
16654# No sense in running all these tests if we already determined that
16655# the CXX compiler isn't working. Some variables (like enable_shared)
16656# are currently assumed to apply to all compilers on this platform,
16657# and will be corrupted by setting them based on a non-working compiler.
16658if test "$_lt_caught_CXX_error" != yes; then
16659 # Code to be used in simple compile tests
16660 lt_simple_compile_test_code="int some_variable = 0;"
16661
16662 # Code to be used in simple link tests
16663 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16664
16665 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16666
16667
16668
16669
16670
16671
16672# If no C compiler was specified, use CC.
16673LTCC=${LTCC-"$CC"}
16674
16675# If no C compiler flags were specified, use CFLAGS.
16676LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16677
16678# Allow CC to be a program name with arguments.
16679compiler=$CC
16680
16681
16682 # save warnings/boilerplate of simple test code
16683 ac_outfile=conftest.$ac_objext
16684echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16685eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16686_lt_compiler_boilerplate=`cat conftest.err`
16687$RM conftest*
16688
16689 ac_outfile=conftest.$ac_objext
16690echo "$lt_simple_link_test_code" >conftest.$ac_ext
16691eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16692_lt_linker_boilerplate=`cat conftest.err`
16693$RM -r conftest*
16694
16695
16696 # Allow CC to be a program name with arguments.
16697 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016698 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016699 lt_save_LD=$LD
16700 lt_save_GCC=$GCC
16701 GCC=$GXX
16702 lt_save_with_gnu_ld=$with_gnu_ld
16703 lt_save_path_LD=$lt_cv_path_LD
16704 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16705 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16706 else
16707 $as_unset lt_cv_prog_gnu_ld
16708 fi
16709 if test -n "${lt_cv_path_LDCXX+set}"; then
16710 lt_cv_path_LD=$lt_cv_path_LDCXX
16711 else
16712 $as_unset lt_cv_path_LD
16713 fi
16714 test -z "${LDCXX+set}" || LD=$LDCXX
16715 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016716 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016717 compiler=$CC
16718 compiler_CXX=$CC
16719 for cc_temp in $compiler""; do
16720 case $cc_temp in
16721 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16722 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16723 \-*) ;;
16724 *) break;;
16725 esac
16726done
cristy0c60a692010-11-04 01:09:47 +000016727cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016728
16729
16730 if test -n "$compiler"; then
16731 # We don't want -fno-exception when compiling C++ code, so set the
16732 # no_builtin_flag separately
16733 if test "$GXX" = yes; then
16734 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16735 else
16736 lt_prog_compiler_no_builtin_flag_CXX=
16737 fi
16738
16739 if test "$GXX" = yes; then
16740 # Set up default GNU C++ configuration
16741
16742
16743
16744# Check whether --with-gnu-ld was given.
16745if test "${with_gnu_ld+set}" = set; then :
16746 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16747else
16748 with_gnu_ld=no
16749fi
16750
16751ac_prog=ld
16752if test "$GCC" = yes; then
16753 # Check if gcc -print-prog-name=ld gives a path.
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16755$as_echo_n "checking for ld used by $CC... " >&6; }
16756 case $host in
16757 *-*-mingw*)
16758 # gcc leaves a trailing carriage return which upsets mingw
16759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16760 *)
16761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16762 esac
16763 case $ac_prog in
16764 # Accept absolute paths.
16765 [\\/]* | ?:[\\/]*)
16766 re_direlt='/[^/][^/]*/\.\./'
16767 # Canonicalize the pathname of ld
16768 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16769 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16770 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16771 done
16772 test -z "$LD" && LD="$ac_prog"
16773 ;;
16774 "")
16775 # If it fails, then pretend we aren't using GCC.
16776 ac_prog=ld
16777 ;;
16778 *)
16779 # If it is relative, then search for the first ld in PATH.
16780 with_gnu_ld=unknown
16781 ;;
16782 esac
16783elif test "$with_gnu_ld" = yes; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16785$as_echo_n "checking for GNU ld... " >&6; }
16786else
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16788$as_echo_n "checking for non-GNU ld... " >&6; }
16789fi
cristyda16f162011-02-19 23:52:17 +000016790if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016791 $as_echo_n "(cached) " >&6
16792else
16793 if test -z "$LD"; then
16794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16795 for ac_dir in $PATH; do
16796 IFS="$lt_save_ifs"
16797 test -z "$ac_dir" && ac_dir=.
16798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16799 lt_cv_path_LD="$ac_dir/$ac_prog"
16800 # Check to see if the program is GNU ld. I'd rather use --version,
16801 # but apparently some variants of GNU ld only accept -v.
16802 # Break only if it was the GNU/non-GNU ld that we prefer.
16803 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16804 *GNU* | *'with BFD'*)
16805 test "$with_gnu_ld" != no && break
16806 ;;
16807 *)
16808 test "$with_gnu_ld" != yes && break
16809 ;;
16810 esac
16811 fi
16812 done
16813 IFS="$lt_save_ifs"
16814else
16815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16816fi
16817fi
16818
16819LD="$lt_cv_path_LD"
16820if test -n "$LD"; then
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16822$as_echo "$LD" >&6; }
16823else
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16825$as_echo "no" >&6; }
16826fi
cristy98dddb52010-11-04 00:30:15 +000016827test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16829$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016830if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016831 $as_echo_n "(cached) " >&6
16832else
16833 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16834case `$LD -v 2>&1 </dev/null` in
16835*GNU* | *'with BFD'*)
16836 lt_cv_prog_gnu_ld=yes
16837 ;;
16838*)
16839 lt_cv_prog_gnu_ld=no
16840 ;;
16841esac
16842fi
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16844$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16845with_gnu_ld=$lt_cv_prog_gnu_ld
16846
16847
16848
16849
16850
16851
16852
16853 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16854 # archiving commands below assume that GNU ld is being used.
16855 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016856 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16857 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 +000016858
16859 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16860 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16861
16862 # If archive_cmds runs LD, not CC, wlarc should be empty
16863 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16864 # investigate it a little bit more. (MM)
16865 wlarc='${wl}'
16866
16867 # ancient GNU ld didn't support --whole-archive et. al.
16868 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16869 $GREP 'no-whole-archive' > /dev/null; then
16870 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16871 else
16872 whole_archive_flag_spec_CXX=
16873 fi
16874 else
16875 with_gnu_ld=no
16876 wlarc=
16877
16878 # A generic and very simple default shared library creation
16879 # command for GNU C++ for the case where it uses the native
16880 # linker, instead of GNU ld. If possible, this setting should
16881 # overridden to take advantage of the native linker features on
16882 # the platform it is being used on.
16883 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16884 fi
16885
16886 # Commands to make compiler produce verbose output that lists
16887 # what "hidden" libraries, object files and flags are used when
16888 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016890
16891 else
16892 GXX=no
16893 with_gnu_ld=no
16894 wlarc=
16895 fi
16896
16897 # PORTME: fill in a description of your system's C++ link characteristics
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16899$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16900 ld_shlibs_CXX=yes
16901 case $host_os in
16902 aix3*)
16903 # FIXME: insert proper C++ library support
16904 ld_shlibs_CXX=no
16905 ;;
16906 aix[4-9]*)
16907 if test "$host_cpu" = ia64; then
16908 # On IA64, the linker does run time linking by default, so we don't
16909 # have to do anything special.
16910 aix_use_runtimelinking=no
16911 exp_sym_flag='-Bexport'
16912 no_entry_flag=""
16913 else
16914 aix_use_runtimelinking=no
16915
16916 # Test if we are trying to use run time linking or normal
16917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16918 # need to do runtime linking.
16919 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16920 for ld_flag in $LDFLAGS; do
16921 case $ld_flag in
16922 *-brtl*)
16923 aix_use_runtimelinking=yes
16924 break
16925 ;;
16926 esac
16927 done
16928 ;;
16929 esac
16930
16931 exp_sym_flag='-bexport'
16932 no_entry_flag='-bnoentry'
16933 fi
16934
16935 # When large executables or shared objects are built, AIX ld can
16936 # have problems creating the table of contents. If linking a library
16937 # or program results in "error TOC overflow" add -mminimal-toc to
16938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16940
16941 archive_cmds_CXX=''
16942 hardcode_direct_CXX=yes
16943 hardcode_direct_absolute_CXX=yes
16944 hardcode_libdir_separator_CXX=':'
16945 link_all_deplibs_CXX=yes
16946 file_list_spec_CXX='${wl}-f,'
16947
16948 if test "$GXX" = yes; then
16949 case $host_os in aix4.[012]|aix4.[012].*)
16950 # We only want to do this on AIX 4.2 and lower, the check
16951 # below for broken collect2 doesn't work under 4.3+
16952 collect2name=`${CC} -print-prog-name=collect2`
16953 if test -f "$collect2name" &&
16954 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16955 then
16956 # We have reworked collect2
16957 :
16958 else
16959 # We have old collect2
16960 hardcode_direct_CXX=unsupported
16961 # It fails to find uninstalled libraries when the uninstalled
16962 # path is not listed in the libpath. Setting hardcode_minus_L
16963 # to unsupported forces relinking
16964 hardcode_minus_L_CXX=yes
16965 hardcode_libdir_flag_spec_CXX='-L$libdir'
16966 hardcode_libdir_separator_CXX=
16967 fi
16968 esac
16969 shared_flag='-shared'
16970 if test "$aix_use_runtimelinking" = yes; then
16971 shared_flag="$shared_flag "'${wl}-G'
16972 fi
16973 else
16974 # not using gcc
16975 if test "$host_cpu" = ia64; then
16976 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16977 # chokes on -Wl,-G. The following line is correct:
16978 shared_flag='-G'
16979 else
16980 if test "$aix_use_runtimelinking" = yes; then
16981 shared_flag='${wl}-G'
16982 else
16983 shared_flag='${wl}-bM:SRE'
16984 fi
16985 fi
16986 fi
16987
16988 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16989 # It seems that -bexpall does not export symbols beginning with
16990 # underscore (_), so it is better to generate a list of symbols to
16991 # export.
16992 always_export_symbols_CXX=yes
16993 if test "$aix_use_runtimelinking" = yes; then
16994 # Warning - without using the other runtime loading flags (-brtl),
16995 # -berok will link without error, but may produce a broken library.
16996 allow_undefined_flag_CXX='-berok'
16997 # Determine the default libpath from the value encoded in an empty
16998 # executable.
cristyda16f162011-02-19 23:52:17 +000016999 if test "${lt_cv_aix_libpath+set}" = set; then
17000 aix_libpath=$lt_cv_aix_libpath
17001else
17002 if ${lt_cv_aix_libpath__CXX+:} false; then :
17003 $as_echo_n "(cached) " >&6
17004else
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017006/* end confdefs.h. */
17007
17008int
17009main ()
17010{
17011
17012 ;
17013 return 0;
17014}
17015_ACEOF
17016if ac_fn_cxx_try_link "$LINENO"; then :
17017
cristyda16f162011-02-19 23:52:17 +000017018 lt_aix_libpath_sed='
17019 /Import File Strings/,/^$/ {
17020 /^0/ {
17021 s/^0 *\([^ ]*\) *$/\1/
17022 p
17023 }
17024 }'
17025 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17026 # Check for a 64-bit object if we didn't find anything.
17027 if test -z "$lt_cv_aix_libpath__CXX"; then
17028 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17029 fi
cristy73bd4a52010-10-05 11:24:23 +000017030fi
17031rm -f core conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017033 if test -z "$lt_cv_aix_libpath__CXX"; then
17034 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17035 fi
17036
17037fi
17038
17039 aix_libpath=$lt_cv_aix_libpath__CXX
17040fi
cristy73bd4a52010-10-05 11:24:23 +000017041
17042 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17043
cristy0c60a692010-11-04 01:09:47 +000017044 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 +000017045 else
17046 if test "$host_cpu" = ia64; then
17047 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17048 allow_undefined_flag_CXX="-z nodefs"
17049 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"
17050 else
17051 # Determine the default libpath from the value encoded in an
17052 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017053 if test "${lt_cv_aix_libpath+set}" = set; then
17054 aix_libpath=$lt_cv_aix_libpath
17055else
17056 if ${lt_cv_aix_libpath__CXX+:} false; then :
17057 $as_echo_n "(cached) " >&6
17058else
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017060/* end confdefs.h. */
17061
17062int
17063main ()
17064{
17065
17066 ;
17067 return 0;
17068}
17069_ACEOF
17070if ac_fn_cxx_try_link "$LINENO"; then :
17071
cristyda16f162011-02-19 23:52:17 +000017072 lt_aix_libpath_sed='
17073 /Import File Strings/,/^$/ {
17074 /^0/ {
17075 s/^0 *\([^ ]*\) *$/\1/
17076 p
17077 }
17078 }'
17079 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17080 # Check for a 64-bit object if we didn't find anything.
17081 if test -z "$lt_cv_aix_libpath__CXX"; then
17082 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17083 fi
cristy73bd4a52010-10-05 11:24:23 +000017084fi
17085rm -f core conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017087 if test -z "$lt_cv_aix_libpath__CXX"; then
17088 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17089 fi
17090
17091fi
17092
17093 aix_libpath=$lt_cv_aix_libpath__CXX
17094fi
cristy73bd4a52010-10-05 11:24:23 +000017095
17096 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17097 # Warning - without using the other run time loading flags,
17098 # -berok will link without error, but may produce a broken library.
17099 no_undefined_flag_CXX=' ${wl}-bernotok'
17100 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017101 if test "$with_gnu_ld" = yes; then
17102 # We only use this code for GNU lds that support --whole-archive.
17103 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17104 else
17105 # Exported symbols can be pulled into shared objects from archives
17106 whole_archive_flag_spec_CXX='$convenience'
17107 fi
cristy73bd4a52010-10-05 11:24:23 +000017108 archive_cmds_need_lc_CXX=yes
17109 # This is similar to how AIX traditionally builds its shared
17110 # libraries.
17111 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'
17112 fi
17113 fi
17114 ;;
17115
17116 beos*)
17117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17118 allow_undefined_flag_CXX=unsupported
17119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17120 # support --undefined. This deserves some investigation. FIXME
17121 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17122 else
17123 ld_shlibs_CXX=no
17124 fi
17125 ;;
17126
17127 chorus*)
17128 case $cc_basename in
17129 *)
17130 # FIXME: insert proper C++ library support
17131 ld_shlibs_CXX=no
17132 ;;
17133 esac
17134 ;;
17135
17136 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017137 case $GXX,$cc_basename in
17138 ,cl* | no,cl*)
17139 # Native MSVC
17140 # hardcode_libdir_flag_spec is actually meaningless, as there is
17141 # no search path for DLLs.
17142 hardcode_libdir_flag_spec_CXX=' '
17143 allow_undefined_flag_CXX=unsupported
17144 always_export_symbols_CXX=yes
17145 file_list_spec_CXX='@'
17146 # Tell ltmain to make .lib files, not .a files.
17147 libext=lib
17148 # Tell ltmain to make .dll files, not .so files.
17149 shrext_cmds=".dll"
17150 # FIXME: Setting linknames here is a bad hack.
17151 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17152 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17153 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17154 else
17155 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17156 fi~
17157 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17158 linknames='
17159 # The linker will not automatically build a static lib if we build a DLL.
17160 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17161 enable_shared_with_static_runtimes_CXX=yes
17162 # Don't use ranlib
17163 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17164 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17165 lt_tool_outputfile="@TOOL_OUTPUT@"~
17166 case $lt_outputfile in
17167 *.exe|*.EXE) ;;
17168 *)
17169 lt_outputfile="$lt_outputfile.exe"
17170 lt_tool_outputfile="$lt_tool_outputfile.exe"
17171 ;;
17172 esac~
17173 func_to_tool_file "$lt_outputfile"~
17174 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17176 $RM "$lt_outputfile.manifest";
17177 fi'
17178 ;;
17179 *)
17180 # g++
17181 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17182 # as there is no search path for DLLs.
17183 hardcode_libdir_flag_spec_CXX='-L$libdir'
17184 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17185 allow_undefined_flag_CXX=unsupported
17186 always_export_symbols_CXX=no
17187 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017188
cristyda16f162011-02-19 23:52:17 +000017189 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17190 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'
17191 # If the export-symbols file already is a .def file (1st line
17192 # is EXPORTS), use it as is; otherwise, prepend...
17193 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17194 cp $export_symbols $output_objdir/$soname.def;
17195 else
17196 echo EXPORTS > $output_objdir/$soname.def;
17197 cat $export_symbols >> $output_objdir/$soname.def;
17198 fi~
17199 $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'
17200 else
17201 ld_shlibs_CXX=no
17202 fi
17203 ;;
17204 esac
17205 ;;
cristy73bd4a52010-10-05 11:24:23 +000017206 darwin* | rhapsody*)
17207
17208
17209 archive_cmds_need_lc_CXX=no
17210 hardcode_direct_CXX=no
17211 hardcode_automatic_CXX=yes
17212 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017213 if test "$lt_cv_ld_force_load" = "yes"; then
17214 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\"`'
17215 else
17216 whole_archive_flag_spec_CXX=''
17217 fi
cristy73bd4a52010-10-05 11:24:23 +000017218 link_all_deplibs_CXX=yes
17219 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17220 case $cc_basename in
17221 ifort*) _lt_dar_can_shared=yes ;;
17222 *) _lt_dar_can_shared=$GCC ;;
17223 esac
17224 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017225 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017226 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}"
17227 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17228 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}"
17229 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}"
17230 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17231 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}"
17232 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}"
17233 fi
17234
17235 else
17236 ld_shlibs_CXX=no
17237 fi
17238
17239 ;;
17240
17241 dgux*)
17242 case $cc_basename in
17243 ec++*)
17244 # FIXME: insert proper C++ library support
17245 ld_shlibs_CXX=no
17246 ;;
17247 ghcx*)
17248 # Green Hills C++ Compiler
17249 # FIXME: insert proper C++ library support
17250 ld_shlibs_CXX=no
17251 ;;
17252 *)
17253 # FIXME: insert proper C++ library support
17254 ld_shlibs_CXX=no
17255 ;;
17256 esac
17257 ;;
17258
17259 freebsd[12]*)
17260 # C++ shared libraries reported to be fairly broken before
17261 # switch to ELF
17262 ld_shlibs_CXX=no
17263 ;;
17264
17265 freebsd-elf*)
17266 archive_cmds_need_lc_CXX=no
17267 ;;
17268
17269 freebsd* | dragonfly*)
17270 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17271 # conventions
17272 ld_shlibs_CXX=yes
17273 ;;
17274
17275 gnu*)
17276 ;;
17277
cristy0c60a692010-11-04 01:09:47 +000017278 haiku*)
17279 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280 link_all_deplibs_CXX=yes
17281 ;;
17282
cristy73bd4a52010-10-05 11:24:23 +000017283 hpux9*)
17284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17285 hardcode_libdir_separator_CXX=:
17286 export_dynamic_flag_spec_CXX='${wl}-E'
17287 hardcode_direct_CXX=yes
17288 hardcode_minus_L_CXX=yes # Not in the search PATH,
17289 # but as the default
17290 # location of the library.
17291
17292 case $cc_basename in
17293 CC*)
17294 # FIXME: insert proper C++ library support
17295 ld_shlibs_CXX=no
17296 ;;
17297 aCC*)
17298 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'
17299 # Commands to make compiler produce verbose output that lists
17300 # what "hidden" libraries, object files and flags are used when
17301 # linking a shared library.
17302 #
17303 # There doesn't appear to be a way to prevent this compiler from
17304 # explicitly linking system object files so we need to strip them
17305 # from the output so that they don't get included in the library
17306 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017307 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 +000017308 ;;
17309 *)
17310 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017311 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 +000017312 else
17313 # FIXME: insert proper C++ library support
17314 ld_shlibs_CXX=no
17315 fi
17316 ;;
17317 esac
17318 ;;
17319
17320 hpux10*|hpux11*)
17321 if test $with_gnu_ld = no; then
17322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17323 hardcode_libdir_separator_CXX=:
17324
17325 case $host_cpu in
17326 hppa*64*|ia64*)
17327 ;;
17328 *)
17329 export_dynamic_flag_spec_CXX='${wl}-E'
17330 ;;
17331 esac
17332 fi
17333 case $host_cpu in
17334 hppa*64*|ia64*)
17335 hardcode_direct_CXX=no
17336 hardcode_shlibpath_var_CXX=no
17337 ;;
17338 *)
17339 hardcode_direct_CXX=yes
17340 hardcode_direct_absolute_CXX=yes
17341 hardcode_minus_L_CXX=yes # Not in the search PATH,
17342 # but as the default
17343 # location of the library.
17344 ;;
17345 esac
17346
17347 case $cc_basename in
17348 CC*)
17349 # FIXME: insert proper C++ library support
17350 ld_shlibs_CXX=no
17351 ;;
17352 aCC*)
17353 case $host_cpu in
17354 hppa*64*)
17355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17356 ;;
17357 ia64*)
17358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17359 ;;
17360 *)
17361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17362 ;;
17363 esac
17364 # Commands to make compiler produce verbose output that lists
17365 # what "hidden" libraries, object files and flags are used when
17366 # linking a shared library.
17367 #
17368 # There doesn't appear to be a way to prevent this compiler from
17369 # explicitly linking system object files so we need to strip them
17370 # from the output so that they don't get included in the library
17371 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017372 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 +000017373 ;;
17374 *)
17375 if test "$GXX" = yes; then
17376 if test $with_gnu_ld = no; then
17377 case $host_cpu in
17378 hppa*64*)
17379 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17380 ;;
17381 ia64*)
cristyda16f162011-02-19 23:52:17 +000017382 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 +000017383 ;;
17384 *)
cristyda16f162011-02-19 23:52:17 +000017385 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 +000017386 ;;
17387 esac
17388 fi
17389 else
17390 # FIXME: insert proper C++ library support
17391 ld_shlibs_CXX=no
17392 fi
17393 ;;
17394 esac
17395 ;;
17396
17397 interix[3-9]*)
17398 hardcode_direct_CXX=no
17399 hardcode_shlibpath_var_CXX=no
17400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17401 export_dynamic_flag_spec_CXX='${wl}-E'
17402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17403 # Instead, shared libraries are loaded at an image base (0x10000000 by
17404 # default) and relocated if they conflict, which is a slow very memory
17405 # consuming and fragmenting process. To avoid this, we pick a random,
17406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17408 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'
17409 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'
17410 ;;
17411 irix5* | irix6*)
17412 case $cc_basename in
17413 CC*)
17414 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017415 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 +000017416
17417 # Archives containing C++ object files must be created using
17418 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17419 # necessary to make sure instantiated templates are included
17420 # in the archive.
17421 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17422 ;;
17423 *)
17424 if test "$GXX" = yes; then
17425 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017426 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 +000017427 else
cristyda16f162011-02-19 23:52:17 +000017428 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 +000017429 fi
17430 fi
17431 link_all_deplibs_CXX=yes
17432 ;;
17433 esac
17434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17435 hardcode_libdir_separator_CXX=:
17436 inherit_rpath_CXX=yes
17437 ;;
17438
cristy0c60a692010-11-04 01:09:47 +000017439 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017440 case $cc_basename in
17441 KCC*)
17442 # Kuck and Associates, Inc. (KAI) C++ Compiler
17443
17444 # KCC will only create a shared library if the output file
17445 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17446 # to its proper name (with version) after linking.
17447 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'
17448 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'
17449 # Commands to make compiler produce verbose output that lists
17450 # what "hidden" libraries, object files and flags are used when
17451 # linking a shared library.
17452 #
17453 # There doesn't appear to be a way to prevent this compiler from
17454 # explicitly linking system object files so we need to strip them
17455 # from the output so that they don't get included in the library
17456 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017457 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 +000017458
17459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17460 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17461
17462 # Archives containing C++ object files must be created using
17463 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17464 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17465 ;;
17466 icpc* | ecpc* )
17467 # Intel C++
17468 with_gnu_ld=yes
17469 # version 8.0 and above of icpc choke on multiply defined symbols
17470 # if we add $predep_objects and $postdep_objects, however 7.1 and
17471 # earlier do not add the objects themselves.
17472 case `$CC -V 2>&1` in
17473 *"Version 7."*)
17474 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17475 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'
17476 ;;
17477 *) # Version 8.0 or newer
17478 tmp_idyn=
17479 case $host_cpu in
17480 ia64*) tmp_idyn=' -i_dynamic';;
17481 esac
17482 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483 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'
17484 ;;
17485 esac
17486 archive_cmds_need_lc_CXX=no
17487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17489 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17490 ;;
17491 pgCC* | pgcpp*)
17492 # Portland Group C++ compiler
17493 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017494 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017495 prelink_cmds_CXX='tpldir=Template.dir~
17496 rm -rf $tpldir~
17497 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017498 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017499 old_archive_cmds_CXX='tpldir=Template.dir~
17500 rm -rf $tpldir~
17501 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017502 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017503 $RANLIB $oldlib'
17504 archive_cmds_CXX='tpldir=Template.dir~
17505 rm -rf $tpldir~
17506 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017507 $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 +000017508 archive_expsym_cmds_CXX='tpldir=Template.dir~
17509 rm -rf $tpldir~
17510 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017511 $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 +000017512 ;;
cristy0c60a692010-11-04 01:09:47 +000017513 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017514 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17515 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'
17516 ;;
17517 esac
17518
17519 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17520 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017521 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 +000017522 ;;
17523 cxx*)
17524 # Compaq C++
17525 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17526 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'
17527
17528 runpath_var=LD_RUN_PATH
17529 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17530 hardcode_libdir_separator_CXX=:
17531
17532 # Commands to make compiler produce verbose output that lists
17533 # what "hidden" libraries, object files and flags are used when
17534 # linking a shared library.
17535 #
17536 # There doesn't appear to be a way to prevent this compiler from
17537 # explicitly linking system object files so we need to strip them
17538 # from the output so that they don't get included in the library
17539 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017540 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 +000017541 ;;
cristy0c60a692010-11-04 01:09:47 +000017542 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017543 # IBM XL 8.0 on PPC, with GNU ld
17544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17546 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17547 if test "x$supports_anon_versioning" = xyes; then
17548 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17550 echo "local: *; };" >> $output_objdir/$libname.ver~
17551 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17552 fi
17553 ;;
17554 *)
17555 case `$CC -V 2>&1 | sed 5q` in
17556 *Sun\ C*)
17557 # Sun C++ 5.9
17558 no_undefined_flag_CXX=' -zdefs'
17559 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17560 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'
17561 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017562 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 +000017563 compiler_needs_object_CXX=yes
17564
17565 # Not sure whether something based on
17566 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17567 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017568 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017569
17570 # Archives containing C++ object files must be created using
17571 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17572 # necessary to make sure instantiated templates are included
17573 # in the archive.
17574 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17575 ;;
17576 esac
17577 ;;
17578 esac
17579 ;;
17580
17581 lynxos*)
17582 # FIXME: insert proper C++ library support
17583 ld_shlibs_CXX=no
17584 ;;
17585
17586 m88k*)
17587 # FIXME: insert proper C++ library support
17588 ld_shlibs_CXX=no
17589 ;;
17590
17591 mvs*)
17592 case $cc_basename in
17593 cxx*)
17594 # FIXME: insert proper C++ library support
17595 ld_shlibs_CXX=no
17596 ;;
17597 *)
17598 # FIXME: insert proper C++ library support
17599 ld_shlibs_CXX=no
17600 ;;
17601 esac
17602 ;;
17603
17604 netbsd*)
17605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17606 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17607 wlarc=
17608 hardcode_libdir_flag_spec_CXX='-R$libdir'
17609 hardcode_direct_CXX=yes
17610 hardcode_shlibpath_var_CXX=no
17611 fi
17612 # Workaround some broken pre-1.5 toolchains
17613 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17614 ;;
17615
17616 *nto* | *qnx*)
17617 ld_shlibs_CXX=yes
17618 ;;
17619
17620 openbsd2*)
17621 # C++ shared libraries are fairly broken
17622 ld_shlibs_CXX=no
17623 ;;
17624
17625 openbsd*)
17626 if test -f /usr/libexec/ld.so; then
17627 hardcode_direct_CXX=yes
17628 hardcode_shlibpath_var_CXX=no
17629 hardcode_direct_absolute_CXX=yes
17630 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17633 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17634 export_dynamic_flag_spec_CXX='${wl}-E'
17635 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17636 fi
cristy0c60a692010-11-04 01:09:47 +000017637 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017638 else
17639 ld_shlibs_CXX=no
17640 fi
17641 ;;
17642
17643 osf3* | osf4* | osf5*)
17644 case $cc_basename in
17645 KCC*)
17646 # Kuck and Associates, Inc. (KAI) C++ Compiler
17647
17648 # KCC will only create a shared library if the output file
17649 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17650 # to its proper name (with version) after linking.
17651 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'
17652
17653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17654 hardcode_libdir_separator_CXX=:
17655
17656 # Archives containing C++ object files must be created using
17657 # the KAI C++ compiler.
17658 case $host in
17659 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17660 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17661 esac
17662 ;;
17663 RCC*)
17664 # Rational C++ 2.4.1
17665 # FIXME: insert proper C++ library support
17666 ld_shlibs_CXX=no
17667 ;;
17668 cxx*)
17669 case $host in
17670 osf3*)
17671 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017672 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 +000017673 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17674 ;;
17675 *)
17676 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017677 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 +000017678 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17679 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017680 $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 +000017681 $RM $lib.exp'
17682 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17683 ;;
17684 esac
17685
17686 hardcode_libdir_separator_CXX=:
17687
17688 # Commands to make compiler produce verbose output that lists
17689 # what "hidden" libraries, object files and flags are used when
17690 # linking a shared library.
17691 #
17692 # There doesn't appear to be a way to prevent this compiler from
17693 # explicitly linking system object files so we need to strip them
17694 # from the output so that they don't get included in the library
17695 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017696 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 +000017697 ;;
17698 *)
17699 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17700 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17701 case $host in
17702 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017703 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 +000017704 ;;
17705 *)
cristyda16f162011-02-19 23:52:17 +000017706 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 +000017707 ;;
17708 esac
17709
17710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17711 hardcode_libdir_separator_CXX=:
17712
17713 # Commands to make compiler produce verbose output that lists
17714 # what "hidden" libraries, object files and flags are used when
17715 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017716 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017717
17718 else
17719 # FIXME: insert proper C++ library support
17720 ld_shlibs_CXX=no
17721 fi
17722 ;;
17723 esac
17724 ;;
17725
17726 psos*)
17727 # FIXME: insert proper C++ library support
17728 ld_shlibs_CXX=no
17729 ;;
17730
17731 sunos4*)
17732 case $cc_basename in
17733 CC*)
17734 # Sun C++ 4.x
17735 # FIXME: insert proper C++ library support
17736 ld_shlibs_CXX=no
17737 ;;
17738 lcc*)
17739 # Lucid
17740 # FIXME: insert proper C++ library support
17741 ld_shlibs_CXX=no
17742 ;;
17743 *)
17744 # FIXME: insert proper C++ library support
17745 ld_shlibs_CXX=no
17746 ;;
17747 esac
17748 ;;
17749
17750 solaris*)
17751 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017752 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017753 # Sun C++ 4.2, 5.x and Centerline C++
17754 archive_cmds_need_lc_CXX=yes
17755 no_undefined_flag_CXX=' -zdefs'
17756 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17757 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17758 $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'
17759
17760 hardcode_libdir_flag_spec_CXX='-R$libdir'
17761 hardcode_shlibpath_var_CXX=no
17762 case $host_os in
17763 solaris2.[0-5] | solaris2.[0-5].*) ;;
17764 *)
17765 # The compiler driver will combine and reorder linker options,
17766 # but understands `-z linker_flag'.
17767 # Supported since Solaris 2.6 (maybe 2.5.1?)
17768 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17769 ;;
17770 esac
17771 link_all_deplibs_CXX=yes
17772
cristy0c60a692010-11-04 01:09:47 +000017773 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017774
17775 # Archives containing C++ object files must be created using
17776 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17777 # necessary to make sure instantiated templates are included
17778 # in the archive.
17779 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17780 ;;
17781 gcx*)
17782 # Green Hills C++ Compiler
17783 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17784
17785 # The C++ compiler must be used to create the archive.
17786 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17787 ;;
17788 *)
17789 # GNU C++ compiler with Solaris linker
17790 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17791 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17792 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017793 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 +000017794 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 +000017795 $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 +000017796
17797 # Commands to make compiler produce verbose output that lists
17798 # what "hidden" libraries, object files and flags are used when
17799 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017801 else
17802 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17803 # platform.
17804 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17805 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17806 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17807
17808 # Commands to make compiler produce verbose output that lists
17809 # what "hidden" libraries, object files and flags are used when
17810 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017811 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017812 fi
17813
17814 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17815 case $host_os in
17816 solaris2.[0-5] | solaris2.[0-5].*) ;;
17817 *)
17818 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17819 ;;
17820 esac
17821 fi
17822 ;;
17823 esac
17824 ;;
17825
17826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17827 no_undefined_flag_CXX='${wl}-z,text'
17828 archive_cmds_need_lc_CXX=no
17829 hardcode_shlibpath_var_CXX=no
17830 runpath_var='LD_RUN_PATH'
17831
17832 case $cc_basename in
17833 CC*)
17834 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17835 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 ;;
17837 *)
17838 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17839 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17840 ;;
17841 esac
17842 ;;
17843
17844 sysv5* | sco3.2v5* | sco5v6*)
17845 # Note: We can NOT use -z defs as we might desire, because we do not
17846 # link with -lc, and that would cause any symbols used from libc to
17847 # always be unresolved, which means just about no library would
17848 # ever link correctly. If we're not using GNU ld we use -z text
17849 # though, which does catch some bad symbols but isn't as heavy-handed
17850 # as -z defs.
17851 no_undefined_flag_CXX='${wl}-z,text'
17852 allow_undefined_flag_CXX='${wl}-z,nodefs'
17853 archive_cmds_need_lc_CXX=no
17854 hardcode_shlibpath_var_CXX=no
17855 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17856 hardcode_libdir_separator_CXX=':'
17857 link_all_deplibs_CXX=yes
17858 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17859 runpath_var='LD_RUN_PATH'
17860
17861 case $cc_basename in
17862 CC*)
17863 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17864 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 +000017865 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17866 '"$old_archive_cmds_CXX"
17867 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17868 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017869 ;;
17870 *)
17871 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17873 ;;
17874 esac
17875 ;;
17876
17877 tandem*)
17878 case $cc_basename in
17879 NCC*)
17880 # NonStop-UX NCC 3.20
17881 # FIXME: insert proper C++ library support
17882 ld_shlibs_CXX=no
17883 ;;
17884 *)
17885 # FIXME: insert proper C++ library support
17886 ld_shlibs_CXX=no
17887 ;;
17888 esac
17889 ;;
17890
17891 vxworks*)
17892 # FIXME: insert proper C++ library support
17893 ld_shlibs_CXX=no
17894 ;;
17895
17896 *)
17897 # FIXME: insert proper C++ library support
17898 ld_shlibs_CXX=no
17899 ;;
17900 esac
17901
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17903$as_echo "$ld_shlibs_CXX" >&6; }
17904 test "$ld_shlibs_CXX" = no && can_build_shared=no
17905
17906 GCC_CXX="$GXX"
17907 LD_CXX="$LD"
17908
17909 ## CAVEAT EMPTOR:
17910 ## There is no encapsulation within the following macros, do not change
17911 ## the running order or otherwise move them around unless you know exactly
17912 ## what you are doing...
17913 # Dependencies to place before and after the object being linked:
17914predep_objects_CXX=
17915postdep_objects_CXX=
17916predeps_CXX=
17917postdeps_CXX=
17918compiler_lib_search_path_CXX=
17919
17920cat > conftest.$ac_ext <<_LT_EOF
17921class Foo
17922{
17923public:
17924 Foo (void) { a = 0; }
17925private:
17926 int a;
17927};
17928_LT_EOF
17929
cristyda16f162011-02-19 23:52:17 +000017930
17931_lt_libdeps_save_CFLAGS=$CFLAGS
17932case "$CC $CFLAGS " in #(
17933*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17934*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17935esac
17936
cristy73bd4a52010-10-05 11:24:23 +000017937if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17938 (eval $ac_compile) 2>&5
17939 ac_status=$?
17940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17941 test $ac_status = 0; }; then
17942 # Parse the compiler output and extract the necessary
17943 # objects, libraries and library flags.
17944
17945 # Sentinel used to keep track of whether or not we are before
17946 # the conftest object file.
17947 pre_test_object_deps_done=no
17948
17949 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017950 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017951
17952 -L* | -R* | -l*)
17953 # Some compilers place space between "-{L,R}" and the path.
17954 # Remove the space.
17955 if test $p = "-L" ||
17956 test $p = "-R"; then
17957 prev=$p
17958 continue
cristy73bd4a52010-10-05 11:24:23 +000017959 fi
17960
cristyda16f162011-02-19 23:52:17 +000017961 # Expand the sysroot to ease extracting the directories later.
17962 if test -z "$prev"; then
17963 case $p in
17964 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17965 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17966 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17967 esac
17968 fi
17969 case $p in
17970 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17971 esac
cristy73bd4a52010-10-05 11:24:23 +000017972 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017973 case ${prev} in
17974 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017975 # Internal compiler library paths should come after those
17976 # provided the user. The postdeps already come after the
17977 # user supplied libs so there is no need to process them.
17978 if test -z "$compiler_lib_search_path_CXX"; then
17979 compiler_lib_search_path_CXX="${prev}${p}"
17980 else
17981 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17982 fi
17983 ;;
17984 # The "-l" case would never come before the object being
17985 # linked, so don't bother handling this case.
17986 esac
17987 else
17988 if test -z "$postdeps_CXX"; then
17989 postdeps_CXX="${prev}${p}"
17990 else
17991 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17992 fi
17993 fi
cristyda16f162011-02-19 23:52:17 +000017994 prev=
cristy73bd4a52010-10-05 11:24:23 +000017995 ;;
17996
cristyda16f162011-02-19 23:52:17 +000017997 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000017998 *.$objext)
17999 # This assumes that the test object file only shows up
18000 # once in the compiler output.
18001 if test "$p" = "conftest.$objext"; then
18002 pre_test_object_deps_done=yes
18003 continue
18004 fi
18005
18006 if test "$pre_test_object_deps_done" = no; then
18007 if test -z "$predep_objects_CXX"; then
18008 predep_objects_CXX="$p"
18009 else
18010 predep_objects_CXX="$predep_objects_CXX $p"
18011 fi
18012 else
18013 if test -z "$postdep_objects_CXX"; then
18014 postdep_objects_CXX="$p"
18015 else
18016 postdep_objects_CXX="$postdep_objects_CXX $p"
18017 fi
18018 fi
18019 ;;
18020
18021 *) ;; # Ignore the rest.
18022
18023 esac
18024 done
18025
18026 # Clean up.
18027 rm -f a.out a.exe
18028else
18029 echo "libtool.m4: error: problem compiling CXX test program"
18030fi
18031
18032$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018033CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018034
18035# PORTME: override above test on systems where it is broken
18036case $host_os in
18037interix[3-9]*)
18038 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18039 # hack all around it, let's just trust "g++" to DTRT.
18040 predep_objects_CXX=
18041 postdep_objects_CXX=
18042 postdeps_CXX=
18043 ;;
18044
18045linux*)
18046 case `$CC -V 2>&1 | sed 5q` in
18047 *Sun\ C*)
18048 # Sun C++ 5.9
18049
18050 # The more standards-conforming stlport4 library is
18051 # incompatible with the Cstd library. Avoid specifying
18052 # it if it's in CXXFLAGS. Ignore libCrun as
18053 # -library=stlport4 depends on it.
18054 case " $CXX $CXXFLAGS " in
18055 *" -library=stlport4 "*)
18056 solaris_use_stlport4=yes
18057 ;;
18058 esac
18059
18060 if test "$solaris_use_stlport4" != yes; then
18061 postdeps_CXX='-library=Cstd -library=Crun'
18062 fi
18063 ;;
18064 esac
18065 ;;
18066
18067solaris*)
18068 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018069 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018070 # The more standards-conforming stlport4 library is
18071 # incompatible with the Cstd library. Avoid specifying
18072 # it if it's in CXXFLAGS. Ignore libCrun as
18073 # -library=stlport4 depends on it.
18074 case " $CXX $CXXFLAGS " in
18075 *" -library=stlport4 "*)
18076 solaris_use_stlport4=yes
18077 ;;
18078 esac
18079
18080 # Adding this requires a known-good setup of shared libraries for
18081 # Sun compiler versions before 5.6, else PIC objects from an old
18082 # archive will be linked into the output, leading to subtle bugs.
18083 if test "$solaris_use_stlport4" != yes; then
18084 postdeps_CXX='-library=Cstd -library=Crun'
18085 fi
18086 ;;
18087 esac
18088 ;;
18089esac
18090
18091
18092case " $postdeps_CXX " in
18093*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18094esac
18095 compiler_lib_search_dirs_CXX=
18096if test -n "${compiler_lib_search_path_CXX}"; then
18097 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18098fi
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130 lt_prog_compiler_wl_CXX=
18131lt_prog_compiler_pic_CXX=
18132lt_prog_compiler_static_CXX=
18133
cristy73bd4a52010-10-05 11:24:23 +000018134
18135 # C++ specific cases for pic, static, wl, etc.
18136 if test "$GXX" = yes; then
18137 lt_prog_compiler_wl_CXX='-Wl,'
18138 lt_prog_compiler_static_CXX='-static'
18139
18140 case $host_os in
18141 aix*)
18142 # All AIX code is PIC.
18143 if test "$host_cpu" = ia64; then
18144 # AIX 5 now supports IA64 processor
18145 lt_prog_compiler_static_CXX='-Bstatic'
18146 fi
18147 ;;
18148
18149 amigaos*)
18150 case $host_cpu in
18151 powerpc)
18152 # see comment about AmigaOS4 .so support
18153 lt_prog_compiler_pic_CXX='-fPIC'
18154 ;;
18155 m68k)
18156 # FIXME: we need at least 68020 code to build shared libraries, but
18157 # adding the `-m68020' flag to GCC prevents building anything better,
18158 # like `-m68040'.
18159 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18160 ;;
18161 esac
18162 ;;
18163
18164 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18165 # PIC is the default for these OSes.
18166 ;;
18167 mingw* | cygwin* | os2* | pw32* | cegcc*)
18168 # This hack is so that the source file can tell whether it is being
18169 # built for inclusion in a dll (and should export symbols for example).
18170 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18171 # (--disable-auto-import) libraries
18172 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18173 ;;
18174 darwin* | rhapsody*)
18175 # PIC is the default on this platform
18176 # Common symbols not allowed in MH_DYLIB files
18177 lt_prog_compiler_pic_CXX='-fno-common'
18178 ;;
18179 *djgpp*)
18180 # DJGPP does not support shared libraries at all
18181 lt_prog_compiler_pic_CXX=
18182 ;;
cristy0c60a692010-11-04 01:09:47 +000018183 haiku*)
18184 # PIC is the default for Haiku.
18185 # The "-static" flag exists, but is broken.
18186 lt_prog_compiler_static_CXX=
18187 ;;
cristy73bd4a52010-10-05 11:24:23 +000018188 interix[3-9]*)
18189 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18190 # Instead, we relocate shared libraries at runtime.
18191 ;;
18192 sysv4*MP*)
18193 if test -d /usr/nec; then
18194 lt_prog_compiler_pic_CXX=-Kconform_pic
18195 fi
18196 ;;
18197 hpux*)
18198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18200 # sets the default TLS model and affects inlining.
18201 case $host_cpu in
18202 hppa*64*)
18203 ;;
18204 *)
18205 lt_prog_compiler_pic_CXX='-fPIC'
18206 ;;
18207 esac
18208 ;;
18209 *qnx* | *nto*)
18210 # QNX uses GNU C++, but need to define -shared option too, otherwise
18211 # it will coredump.
18212 lt_prog_compiler_pic_CXX='-fPIC -shared'
18213 ;;
18214 *)
18215 lt_prog_compiler_pic_CXX='-fPIC'
18216 ;;
18217 esac
18218 else
18219 case $host_os in
18220 aix[4-9]*)
18221 # All AIX code is PIC.
18222 if test "$host_cpu" = ia64; then
18223 # AIX 5 now supports IA64 processor
18224 lt_prog_compiler_static_CXX='-Bstatic'
18225 else
18226 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18227 fi
18228 ;;
18229 chorus*)
18230 case $cc_basename in
18231 cxch68*)
18232 # Green Hills C++ Compiler
18233 # _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"
18234 ;;
18235 esac
18236 ;;
cristyda16f162011-02-19 23:52:17 +000018237 mingw* | cygwin* | os2* | pw32* | cegcc*)
18238 # This hack is so that the source file can tell whether it is being
18239 # built for inclusion in a dll (and should export symbols for example).
18240 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18241 ;;
cristy73bd4a52010-10-05 11:24:23 +000018242 dgux*)
18243 case $cc_basename in
18244 ec++*)
18245 lt_prog_compiler_pic_CXX='-KPIC'
18246 ;;
18247 ghcx*)
18248 # Green Hills C++ Compiler
18249 lt_prog_compiler_pic_CXX='-pic'
18250 ;;
18251 *)
18252 ;;
18253 esac
18254 ;;
18255 freebsd* | dragonfly*)
18256 # FreeBSD uses GNU C++
18257 ;;
18258 hpux9* | hpux10* | hpux11*)
18259 case $cc_basename in
18260 CC*)
18261 lt_prog_compiler_wl_CXX='-Wl,'
18262 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18263 if test "$host_cpu" != ia64; then
18264 lt_prog_compiler_pic_CXX='+Z'
18265 fi
18266 ;;
18267 aCC*)
18268 lt_prog_compiler_wl_CXX='-Wl,'
18269 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18270 case $host_cpu in
18271 hppa*64*|ia64*)
18272 # +Z the default
18273 ;;
18274 *)
18275 lt_prog_compiler_pic_CXX='+Z'
18276 ;;
18277 esac
18278 ;;
18279 *)
18280 ;;
18281 esac
18282 ;;
18283 interix*)
18284 # This is c89, which is MS Visual C++ (no shared libs)
18285 # Anyone wants to do a port?
18286 ;;
18287 irix5* | irix6* | nonstopux*)
18288 case $cc_basename in
18289 CC*)
18290 lt_prog_compiler_wl_CXX='-Wl,'
18291 lt_prog_compiler_static_CXX='-non_shared'
18292 # CC pic flag -KPIC is the default.
18293 ;;
18294 *)
18295 ;;
18296 esac
18297 ;;
cristy0c60a692010-11-04 01:09:47 +000018298 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018299 case $cc_basename in
18300 KCC*)
18301 # KAI C++ Compiler
18302 lt_prog_compiler_wl_CXX='--backend -Wl,'
18303 lt_prog_compiler_pic_CXX='-fPIC'
18304 ;;
18305 ecpc* )
18306 # old Intel C++ for x86_64 which still supported -KPIC.
18307 lt_prog_compiler_wl_CXX='-Wl,'
18308 lt_prog_compiler_pic_CXX='-KPIC'
18309 lt_prog_compiler_static_CXX='-static'
18310 ;;
18311 icpc* )
18312 # Intel C++, used to be incompatible with GCC.
18313 # ICC 10 doesn't accept -KPIC any more.
18314 lt_prog_compiler_wl_CXX='-Wl,'
18315 lt_prog_compiler_pic_CXX='-fPIC'
18316 lt_prog_compiler_static_CXX='-static'
18317 ;;
18318 pgCC* | pgcpp*)
18319 # Portland Group C++ compiler
18320 lt_prog_compiler_wl_CXX='-Wl,'
18321 lt_prog_compiler_pic_CXX='-fpic'
18322 lt_prog_compiler_static_CXX='-Bstatic'
18323 ;;
18324 cxx*)
18325 # Compaq C++
18326 # Make sure the PIC flag is empty. It appears that all Alpha
18327 # Linux and Compaq Tru64 Unix objects are PIC.
18328 lt_prog_compiler_pic_CXX=
18329 lt_prog_compiler_static_CXX='-non_shared'
18330 ;;
cristy0c60a692010-11-04 01:09:47 +000018331 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18332 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018333 lt_prog_compiler_wl_CXX='-Wl,'
18334 lt_prog_compiler_pic_CXX='-qpic'
18335 lt_prog_compiler_static_CXX='-qstaticlink'
18336 ;;
18337 *)
18338 case `$CC -V 2>&1 | sed 5q` in
18339 *Sun\ C*)
18340 # Sun C++ 5.9
18341 lt_prog_compiler_pic_CXX='-KPIC'
18342 lt_prog_compiler_static_CXX='-Bstatic'
18343 lt_prog_compiler_wl_CXX='-Qoption ld '
18344 ;;
18345 esac
18346 ;;
18347 esac
18348 ;;
18349 lynxos*)
18350 ;;
18351 m88k*)
18352 ;;
18353 mvs*)
18354 case $cc_basename in
18355 cxx*)
18356 lt_prog_compiler_pic_CXX='-W c,exportall'
18357 ;;
18358 *)
18359 ;;
18360 esac
18361 ;;
18362 netbsd*)
18363 ;;
18364 *qnx* | *nto*)
18365 # QNX uses GNU C++, but need to define -shared option too, otherwise
18366 # it will coredump.
18367 lt_prog_compiler_pic_CXX='-fPIC -shared'
18368 ;;
18369 osf3* | osf4* | osf5*)
18370 case $cc_basename in
18371 KCC*)
18372 lt_prog_compiler_wl_CXX='--backend -Wl,'
18373 ;;
18374 RCC*)
18375 # Rational C++ 2.4.1
18376 lt_prog_compiler_pic_CXX='-pic'
18377 ;;
18378 cxx*)
18379 # Digital/Compaq C++
18380 lt_prog_compiler_wl_CXX='-Wl,'
18381 # Make sure the PIC flag is empty. It appears that all Alpha
18382 # Linux and Compaq Tru64 Unix objects are PIC.
18383 lt_prog_compiler_pic_CXX=
18384 lt_prog_compiler_static_CXX='-non_shared'
18385 ;;
18386 *)
18387 ;;
18388 esac
18389 ;;
18390 psos*)
18391 ;;
18392 solaris*)
18393 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018394 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018395 # Sun C++ 4.2, 5.x and Centerline C++
18396 lt_prog_compiler_pic_CXX='-KPIC'
18397 lt_prog_compiler_static_CXX='-Bstatic'
18398 lt_prog_compiler_wl_CXX='-Qoption ld '
18399 ;;
18400 gcx*)
18401 # Green Hills C++ Compiler
18402 lt_prog_compiler_pic_CXX='-PIC'
18403 ;;
18404 *)
18405 ;;
18406 esac
18407 ;;
18408 sunos4*)
18409 case $cc_basename in
18410 CC*)
18411 # Sun C++ 4.x
18412 lt_prog_compiler_pic_CXX='-pic'
18413 lt_prog_compiler_static_CXX='-Bstatic'
18414 ;;
18415 lcc*)
18416 # Lucid
18417 lt_prog_compiler_pic_CXX='-pic'
18418 ;;
18419 *)
18420 ;;
18421 esac
18422 ;;
18423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18424 case $cc_basename in
18425 CC*)
18426 lt_prog_compiler_wl_CXX='-Wl,'
18427 lt_prog_compiler_pic_CXX='-KPIC'
18428 lt_prog_compiler_static_CXX='-Bstatic'
18429 ;;
18430 esac
18431 ;;
18432 tandem*)
18433 case $cc_basename in
18434 NCC*)
18435 # NonStop-UX NCC 3.20
18436 lt_prog_compiler_pic_CXX='-KPIC'
18437 ;;
18438 *)
18439 ;;
18440 esac
18441 ;;
18442 vxworks*)
18443 ;;
18444 *)
18445 lt_prog_compiler_can_build_shared_CXX=no
18446 ;;
18447 esac
18448 fi
18449
18450case $host_os in
18451 # For platforms which do not support PIC, -DPIC is meaningless:
18452 *djgpp*)
18453 lt_prog_compiler_pic_CXX=
18454 ;;
18455 *)
18456 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18457 ;;
18458esac
cristy73bd4a52010-10-05 11:24:23 +000018459
cristyda16f162011-02-19 23:52:17 +000018460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18461$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18462if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18463 $as_echo_n "(cached) " >&6
18464else
18465 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18466fi
18467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18468$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18469lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018470
18471#
18472# Check to make sure the PIC flag actually works.
18473#
18474if test -n "$lt_prog_compiler_pic_CXX"; then
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18476$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018477if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018478 $as_echo_n "(cached) " >&6
18479else
18480 lt_cv_prog_compiler_pic_works_CXX=no
18481 ac_outfile=conftest.$ac_objext
18482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18483 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18484 # Insert the option either (1) after the last *FLAGS variable, or
18485 # (2) before a word containing "conftest.", or (3) at the end.
18486 # Note that $ac_compile itself does not contain backslashes and begins
18487 # with a dollar sign (not a hyphen), so the echo should work correctly.
18488 # The option is referenced via a variable to avoid confusing sed.
18489 lt_compile=`echo "$ac_compile" | $SED \
18490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18492 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018494 (eval "$lt_compile" 2>conftest.err)
18495 ac_status=$?
18496 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018498 if (exit $ac_status) && test -s "$ac_outfile"; then
18499 # The compiler can only warn and ignore the option if not recognized
18500 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18504 lt_cv_prog_compiler_pic_works_CXX=yes
18505 fi
18506 fi
18507 $RM conftest*
18508
18509fi
18510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18511$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18512
18513if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18514 case $lt_prog_compiler_pic_CXX in
18515 "" | " "*) ;;
18516 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18517 esac
18518else
18519 lt_prog_compiler_pic_CXX=
18520 lt_prog_compiler_can_build_shared_CXX=no
18521fi
18522
18523fi
18524
18525
18526
cristyda16f162011-02-19 23:52:17 +000018527
18528
cristy73bd4a52010-10-05 11:24:23 +000018529#
18530# Check to make sure the static flag actually works.
18531#
18532wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18534$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018535if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018536 $as_echo_n "(cached) " >&6
18537else
18538 lt_cv_prog_compiler_static_works_CXX=no
18539 save_LDFLAGS="$LDFLAGS"
18540 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18541 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18543 # The linker can only warn and ignore the option if not recognized
18544 # So say no if there are warnings
18545 if test -s conftest.err; then
18546 # Append any errors to the config.log.
18547 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018548 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18550 if diff conftest.exp conftest.er2 >/dev/null; then
18551 lt_cv_prog_compiler_static_works_CXX=yes
18552 fi
18553 else
18554 lt_cv_prog_compiler_static_works_CXX=yes
18555 fi
18556 fi
18557 $RM -r conftest*
18558 LDFLAGS="$save_LDFLAGS"
18559
18560fi
18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18562$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18563
18564if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18565 :
18566else
18567 lt_prog_compiler_static_CXX=
18568fi
18569
18570
18571
18572
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18574$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018575if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018576 $as_echo_n "(cached) " >&6
18577else
18578 lt_cv_prog_compiler_c_o_CXX=no
18579 $RM -r conftest 2>/dev/null
18580 mkdir conftest
18581 cd conftest
18582 mkdir out
18583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18584
18585 lt_compiler_flag="-o out/conftest2.$ac_objext"
18586 # Insert the option either (1) after the last *FLAGS variable, or
18587 # (2) before a word containing "conftest.", or (3) at the end.
18588 # Note that $ac_compile itself does not contain backslashes and begins
18589 # with a dollar sign (not a hyphen), so the echo should work correctly.
18590 lt_compile=`echo "$ac_compile" | $SED \
18591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18593 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018595 (eval "$lt_compile" 2>out/conftest.err)
18596 ac_status=$?
18597 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18600 then
18601 # The compiler can only warn and ignore the option if not recognized
18602 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18606 lt_cv_prog_compiler_c_o_CXX=yes
18607 fi
18608 fi
18609 chmod u+w . 2>&5
18610 $RM conftest*
18611 # SGI C++ compiler will create directory out/ii_files/ for
18612 # template instantiation
18613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18614 $RM out/* && rmdir out
18615 cd ..
18616 $RM -r conftest
18617 $RM conftest*
18618
18619fi
18620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18621$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18622
18623
18624
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18626$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018627if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018628 $as_echo_n "(cached) " >&6
18629else
18630 lt_cv_prog_compiler_c_o_CXX=no
18631 $RM -r conftest 2>/dev/null
18632 mkdir conftest
18633 cd conftest
18634 mkdir out
18635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18636
18637 lt_compiler_flag="-o out/conftest2.$ac_objext"
18638 # Insert the option either (1) after the last *FLAGS variable, or
18639 # (2) before a word containing "conftest.", or (3) at the end.
18640 # Note that $ac_compile itself does not contain backslashes and begins
18641 # with a dollar sign (not a hyphen), so the echo should work correctly.
18642 lt_compile=`echo "$ac_compile" | $SED \
18643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18645 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018646 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018647 (eval "$lt_compile" 2>out/conftest.err)
18648 ac_status=$?
18649 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18652 then
18653 # The compiler can only warn and ignore the option if not recognized
18654 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18658 lt_cv_prog_compiler_c_o_CXX=yes
18659 fi
18660 fi
18661 chmod u+w . 2>&5
18662 $RM conftest*
18663 # SGI C++ compiler will create directory out/ii_files/ for
18664 # template instantiation
18665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18666 $RM out/* && rmdir out
18667 cd ..
18668 $RM -r conftest
18669 $RM conftest*
18670
18671fi
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18673$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18674
18675
18676
18677
18678hard_links="nottested"
18679if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18680 # do not overwrite the value of need_locks provided by the user
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18682$as_echo_n "checking if we can lock with hard links... " >&6; }
18683 hard_links=yes
18684 $RM conftest*
18685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18686 touch conftest.a
18687 ln conftest.a conftest.b 2>&5 || hard_links=no
18688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18690$as_echo "$hard_links" >&6; }
18691 if test "$hard_links" = no; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18693$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18694 need_locks=warn
18695 fi
18696else
18697 need_locks=no
18698fi
18699
18700
18701
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18703$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18704
18705 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018706 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018707 case $host_os in
18708 aix[4-9]*)
18709 # If we're using GNU nm, then we don't want the "-C" option.
18710 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018711 # Also, AIX nm treats weak defined symbols like other global defined
18712 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018713 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018714 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 +000018715 else
18716 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'
18717 fi
18718 ;;
18719 pw32*)
18720 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018721 ;;
cristy73bd4a52010-10-05 11:24:23 +000018722 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018723 case $cc_basename in
18724 cl*) ;;
18725 *)
18726 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'
18727 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18728 ;;
18729 esac
18730 ;;
cristy73bd4a52010-10-05 11:24:23 +000018731 *)
18732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018733 ;;
cristy73bd4a52010-10-05 11:24:23 +000018734 esac
cristy73bd4a52010-10-05 11:24:23 +000018735
18736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18737$as_echo "$ld_shlibs_CXX" >&6; }
18738test "$ld_shlibs_CXX" = no && can_build_shared=no
18739
18740with_gnu_ld_CXX=$with_gnu_ld
18741
18742
18743
18744
18745
18746
18747#
18748# Do we need to explicitly link libc?
18749#
18750case "x$archive_cmds_need_lc_CXX" in
18751x|xyes)
18752 # Assume -lc should be added
18753 archive_cmds_need_lc_CXX=yes
18754
18755 if test "$enable_shared" = yes && test "$GCC" = yes; then
18756 case $archive_cmds_CXX in
18757 *'~'*)
18758 # FIXME: we may have to deal with multi-command sequences.
18759 ;;
18760 '$CC '*)
18761 # Test whether the compiler implicitly links with -lc since on some
18762 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18763 # to ld, don't add -lc before -lgcc.
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18765$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018766if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018767 $as_echo_n "(cached) " >&6
18768else
18769 $RM conftest*
18770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018771
cristy0c60a692010-11-04 01:09:47 +000018772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018773 (eval $ac_compile) 2>&5
18774 ac_status=$?
18775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18776 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018777 soname=conftest
18778 lib=conftest
18779 libobjs=conftest.$ac_objext
18780 deplibs=
18781 wl=$lt_prog_compiler_wl_CXX
18782 pic_flag=$lt_prog_compiler_pic_CXX
18783 compiler_flags=-v
18784 linker_flags=-v
18785 verstring=
18786 output_objdir=.
18787 libname=conftest
18788 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18789 allow_undefined_flag_CXX=
18790 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 +000018791 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18792 ac_status=$?
18793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18794 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018795 then
18796 lt_cv_archive_cmds_need_lc_CXX=no
18797 else
18798 lt_cv_archive_cmds_need_lc_CXX=yes
18799 fi
18800 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18801 else
18802 cat conftest.err 1>&5
18803 fi
18804 $RM conftest*
18805
18806fi
18807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18808$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18809 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018810 ;;
18811 esac
18812 fi
18813 ;;
18814esac
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18880$as_echo_n "checking dynamic linker characteristics... " >&6; }
18881
18882library_names_spec=
18883libname_spec='lib$name'
18884soname_spec=
18885shrext_cmds=".so"
18886postinstall_cmds=
18887postuninstall_cmds=
18888finish_cmds=
18889finish_eval=
18890shlibpath_var=
18891shlibpath_overrides_runpath=unknown
18892version_type=none
18893dynamic_linker="$host_os ld.so"
18894sys_lib_dlsearch_path_spec="/lib /usr/lib"
18895need_lib_prefix=unknown
18896hardcode_into_libs=no
18897
18898# when you set need_version to no, make sure it does not cause -set_version
18899# flags to be left without arguments
18900need_version=unknown
18901
18902case $host_os in
18903aix3*)
18904 version_type=linux
18905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18906 shlibpath_var=LIBPATH
18907
18908 # AIX 3 has no versioning support, so we append a major version to the name.
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 ;;
18911
18912aix[4-9]*)
18913 version_type=linux
18914 need_lib_prefix=no
18915 need_version=no
18916 hardcode_into_libs=yes
18917 if test "$host_cpu" = ia64; then
18918 # AIX 5 supports IA64
18919 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18920 shlibpath_var=LD_LIBRARY_PATH
18921 else
18922 # With GCC up to 2.95.x, collect2 would create an import file
18923 # for dependence libraries. The import file would start with
18924 # the line `#! .'. This would cause the generated library to
18925 # depend on `.', always an invalid library. This was fixed in
18926 # development snapshots of GCC prior to 3.0.
18927 case $host_os in
18928 aix4 | aix4.[01] | aix4.[01].*)
18929 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18930 echo ' yes '
18931 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18932 :
18933 else
18934 can_build_shared=no
18935 fi
18936 ;;
18937 esac
18938 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18939 # soname into executable. Probably we can add versioning support to
18940 # collect2, so additional links can be useful in future.
18941 if test "$aix_use_runtimelinking" = yes; then
18942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18943 # instead of lib<name>.a to let people know that these are not
18944 # typical AIX shared libraries.
18945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18946 else
18947 # We preserve .a as extension for shared libraries through AIX4.2
18948 # and later when we are not doing run time linking.
18949 library_names_spec='${libname}${release}.a $libname.a'
18950 soname_spec='${libname}${release}${shared_ext}$major'
18951 fi
18952 shlibpath_var=LIBPATH
18953 fi
18954 ;;
18955
18956amigaos*)
18957 case $host_cpu in
18958 powerpc)
18959 # Since July 2007 AmigaOS4 officially supports .so libraries.
18960 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18962 ;;
18963 m68k)
18964 library_names_spec='$libname.ixlibrary $libname.a'
18965 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018966 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 +000018967 ;;
18968 esac
18969 ;;
18970
18971beos*)
18972 library_names_spec='${libname}${shared_ext}'
18973 dynamic_linker="$host_os ld.so"
18974 shlibpath_var=LIBRARY_PATH
18975 ;;
18976
18977bsdi[45]*)
18978 version_type=linux
18979 need_version=no
18980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18981 soname_spec='${libname}${release}${shared_ext}$major'
18982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18983 shlibpath_var=LD_LIBRARY_PATH
18984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18986 # the default ld.so.conf also contains /usr/contrib/lib and
18987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18988 # libtool to hard-code these into programs
18989 ;;
18990
18991cygwin* | mingw* | pw32* | cegcc*)
18992 version_type=windows
18993 shrext_cmds=".dll"
18994 need_version=no
18995 need_lib_prefix=no
18996
cristyda16f162011-02-19 23:52:17 +000018997 case $GCC,$cc_basename in
18998 yes,*)
18999 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019000 library_names_spec='$libname.dll.a'
19001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19002 postinstall_cmds='base_file=`basename \${file}`~
19003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19004 dldir=$destdir/`dirname \$dlpath`~
19005 test -d \$dldir || mkdir -p \$dldir~
19006 $install_prog $dir/$dlname \$dldir/$dlname~
19007 chmod a+x \$dldir/$dlname~
19008 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19009 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19010 fi'
19011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19012 dlpath=$dir/\$dldll~
19013 $RM \$dlpath'
19014 shlibpath_overrides_runpath=yes
19015
19016 case $host_os in
19017 cygwin*)
19018 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19019 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019020
cristy73bd4a52010-10-05 11:24:23 +000019021 ;;
19022 mingw* | cegcc*)
19023 # MinGW DLLs use traditional 'lib' prefix
19024 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019025 ;;
19026 pw32*)
19027 # pw32 DLLs use 'pw' prefix rather than 'lib'
19028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19029 ;;
19030 esac
cristyda16f162011-02-19 23:52:17 +000019031 dynamic_linker='Win32 ld.exe'
19032 ;;
19033
19034 *,cl*)
19035 # Native MSVC
19036 libname_spec='$name'
19037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19038 library_names_spec='${libname}.dll.lib'
19039
19040 case $build_os in
19041 mingw*)
19042 sys_lib_search_path_spec=
19043 lt_save_ifs=$IFS
19044 IFS=';'
19045 for lt_path in $LIB
19046 do
19047 IFS=$lt_save_ifs
19048 # Let DOS variable expansion print the short 8.3 style file name.
19049 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19050 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19051 done
19052 IFS=$lt_save_ifs
19053 # Convert to MSYS style.
19054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19055 ;;
19056 cygwin*)
19057 # Convert to unix form, then to dos form, then back to unix form
19058 # but this time dos style (no spaces!) so that the unix form looks
19059 # like /cygdrive/c/PROGRA~1:/cygdr...
19060 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19061 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19062 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19063 ;;
19064 *)
19065 sys_lib_search_path_spec="$LIB"
19066 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19067 # It is most probably a Windows format PATH.
19068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19069 else
19070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19071 fi
19072 # FIXME: find the short name or the path components, as spaces are
19073 # common. (e.g. "Program Files" -> "PROGRA~1")
19074 ;;
19075 esac
19076
19077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19078 postinstall_cmds='base_file=`basename \${file}`~
19079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19080 dldir=$destdir/`dirname \$dlpath`~
19081 test -d \$dldir || mkdir -p \$dldir~
19082 $install_prog $dir/$dlname \$dldir/$dlname'
19083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19084 dlpath=$dir/\$dldll~
19085 $RM \$dlpath'
19086 shlibpath_overrides_runpath=yes
19087 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019088 ;;
19089
19090 *)
cristyda16f162011-02-19 23:52:17 +000019091 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019092 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019093 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019094 ;;
19095 esac
cristy73bd4a52010-10-05 11:24:23 +000019096 # FIXME: first we should search . and the directory the executable is in
19097 shlibpath_var=PATH
19098 ;;
19099
19100darwin* | rhapsody*)
19101 dynamic_linker="$host_os dyld"
19102 version_type=darwin
19103 need_lib_prefix=no
19104 need_version=no
19105 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19106 soname_spec='${libname}${release}${major}$shared_ext'
19107 shlibpath_overrides_runpath=yes
19108 shlibpath_var=DYLD_LIBRARY_PATH
19109 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19110
19111 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19112 ;;
19113
19114dgux*)
19115 version_type=linux
19116 need_lib_prefix=no
19117 need_version=no
19118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19119 soname_spec='${libname}${release}${shared_ext}$major'
19120 shlibpath_var=LD_LIBRARY_PATH
19121 ;;
19122
19123freebsd1*)
19124 dynamic_linker=no
19125 ;;
19126
19127freebsd* | dragonfly*)
19128 # DragonFly does not have aout. When/if they implement a new
19129 # versioning mechanism, adjust this.
19130 if test -x /usr/bin/objformat; then
19131 objformat=`/usr/bin/objformat`
19132 else
19133 case $host_os in
19134 freebsd[123]*) objformat=aout ;;
19135 *) objformat=elf ;;
19136 esac
19137 fi
19138 version_type=freebsd-$objformat
19139 case $version_type in
19140 freebsd-elf*)
19141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19142 need_version=no
19143 need_lib_prefix=no
19144 ;;
19145 freebsd-*)
19146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19147 need_version=yes
19148 ;;
19149 esac
19150 shlibpath_var=LD_LIBRARY_PATH
19151 case $host_os in
19152 freebsd2*)
19153 shlibpath_overrides_runpath=yes
19154 ;;
19155 freebsd3.[01]* | freebsdelf3.[01]*)
19156 shlibpath_overrides_runpath=yes
19157 hardcode_into_libs=yes
19158 ;;
19159 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19160 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19161 shlibpath_overrides_runpath=no
19162 hardcode_into_libs=yes
19163 ;;
19164 *) # from 4.6 on, and DragonFly
19165 shlibpath_overrides_runpath=yes
19166 hardcode_into_libs=yes
19167 ;;
19168 esac
19169 ;;
19170
19171gnu*)
19172 version_type=linux
19173 need_lib_prefix=no
19174 need_version=no
19175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19176 soname_spec='${libname}${release}${shared_ext}$major'
19177 shlibpath_var=LD_LIBRARY_PATH
19178 hardcode_into_libs=yes
19179 ;;
19180
cristy0c60a692010-11-04 01:09:47 +000019181haiku*)
19182 version_type=linux
19183 need_lib_prefix=no
19184 need_version=no
19185 dynamic_linker="$host_os runtime_loader"
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19187 soname_spec='${libname}${release}${shared_ext}$major'
19188 shlibpath_var=LIBRARY_PATH
19189 shlibpath_overrides_runpath=yes
19190 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19191 hardcode_into_libs=yes
19192 ;;
19193
cristy73bd4a52010-10-05 11:24:23 +000019194hpux9* | hpux10* | hpux11*)
19195 # Give a soname corresponding to the major version so that dld.sl refuses to
19196 # link against other versions.
19197 version_type=sunos
19198 need_lib_prefix=no
19199 need_version=no
19200 case $host_cpu in
19201 ia64*)
19202 shrext_cmds='.so'
19203 hardcode_into_libs=yes
19204 dynamic_linker="$host_os dld.so"
19205 shlibpath_var=LD_LIBRARY_PATH
19206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208 soname_spec='${libname}${release}${shared_ext}$major'
19209 if test "X$HPUX_IA64_MODE" = X32; then
19210 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19211 else
19212 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19213 fi
19214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19215 ;;
19216 hppa*64*)
19217 shrext_cmds='.sl'
19218 hardcode_into_libs=yes
19219 dynamic_linker="$host_os dld.sl"
19220 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223 soname_spec='${libname}${release}${shared_ext}$major'
19224 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19226 ;;
19227 *)
19228 shrext_cmds='.sl'
19229 dynamic_linker="$host_os dld.sl"
19230 shlibpath_var=SHLIB_PATH
19231 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19233 soname_spec='${libname}${release}${shared_ext}$major'
19234 ;;
19235 esac
cristy0c60a692010-11-04 01:09:47 +000019236 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019237 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019238 # or fails outright, so override atomically:
19239 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019240 ;;
19241
19242interix[3-9]*)
19243 version_type=linux
19244 need_lib_prefix=no
19245 need_version=no
19246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19247 soname_spec='${libname}${release}${shared_ext}$major'
19248 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19249 shlibpath_var=LD_LIBRARY_PATH
19250 shlibpath_overrides_runpath=no
19251 hardcode_into_libs=yes
19252 ;;
19253
19254irix5* | irix6* | nonstopux*)
19255 case $host_os in
19256 nonstopux*) version_type=nonstopux ;;
19257 *)
19258 if test "$lt_cv_prog_gnu_ld" = yes; then
19259 version_type=linux
19260 else
19261 version_type=irix
19262 fi ;;
19263 esac
19264 need_lib_prefix=no
19265 need_version=no
19266 soname_spec='${libname}${release}${shared_ext}$major'
19267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19268 case $host_os in
19269 irix5* | nonstopux*)
19270 libsuff= shlibsuff=
19271 ;;
19272 *)
19273 case $LD in # libtool.m4 will add one of these switches to LD
19274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19275 libsuff= shlibsuff= libmagic=32-bit;;
19276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19277 libsuff=32 shlibsuff=N32 libmagic=N32;;
19278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19280 *) libsuff= shlibsuff= libmagic=never-match;;
19281 esac
19282 ;;
19283 esac
19284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19285 shlibpath_overrides_runpath=no
19286 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19287 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19288 hardcode_into_libs=yes
19289 ;;
19290
19291# No shared lib support for Linux oldld, aout, or coff.
19292linux*oldld* | linux*aout* | linux*coff*)
19293 dynamic_linker=no
19294 ;;
19295
19296# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019297linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019298 version_type=linux
19299 need_lib_prefix=no
19300 need_version=no
19301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19302 soname_spec='${libname}${release}${shared_ext}$major'
19303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19304 shlibpath_var=LD_LIBRARY_PATH
19305 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019306
cristy73bd4a52010-10-05 11:24:23 +000019307 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019308 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019309 $as_echo_n "(cached) " >&6
19310else
19311 lt_cv_shlibpath_overrides_runpath=no
19312 save_LDFLAGS=$LDFLAGS
19313 save_libdir=$libdir
19314 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19315 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019317/* end confdefs.h. */
19318
19319int
19320main ()
19321{
19322
19323 ;
19324 return 0;
19325}
19326_ACEOF
19327if ac_fn_cxx_try_link "$LINENO"; then :
19328 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019329 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019330fi
19331fi
19332rm -f core conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019334 LDFLAGS=$save_LDFLAGS
19335 libdir=$save_libdir
19336
19337fi
19338
19339 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019340
19341 # This implies no fast_install, which is unacceptable.
19342 # Some rework will be needed to allow for fast_install
19343 # before this can be enabled.
19344 hardcode_into_libs=yes
19345
19346 # Add ABI-specific directories to the system library path.
19347 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19348
19349 # Append ld.so.conf contents to the search path
19350 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019351 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 +000019352 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019353
cristy73bd4a52010-10-05 11:24:23 +000019354 fi
19355
19356 # We used to test for /lib/ld.so.1 and disable shared libraries on
19357 # powerpc, because MkLinux only supported shared libraries with the
19358 # GNU dynamic linker. Since this was broken with cross compilers,
19359 # most powerpc-linux boxes support dynamic linking these days and
19360 # people can always --disable-shared, the test was removed, and we
19361 # assume the GNU/Linux dynamic linker is in use.
19362 dynamic_linker='GNU/Linux ld.so'
19363 ;;
19364
19365netbsd*)
19366 version_type=sunos
19367 need_lib_prefix=no
19368 need_version=no
19369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19372 dynamic_linker='NetBSD (a.out) ld.so'
19373 else
19374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19375 soname_spec='${libname}${release}${shared_ext}$major'
19376 dynamic_linker='NetBSD ld.elf_so'
19377 fi
19378 shlibpath_var=LD_LIBRARY_PATH
19379 shlibpath_overrides_runpath=yes
19380 hardcode_into_libs=yes
19381 ;;
19382
19383newsos6)
19384 version_type=linux
19385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19386 shlibpath_var=LD_LIBRARY_PATH
19387 shlibpath_overrides_runpath=yes
19388 ;;
19389
19390*nto* | *qnx*)
19391 version_type=qnx
19392 need_lib_prefix=no
19393 need_version=no
19394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19395 soname_spec='${libname}${release}${shared_ext}$major'
19396 shlibpath_var=LD_LIBRARY_PATH
19397 shlibpath_overrides_runpath=no
19398 hardcode_into_libs=yes
19399 dynamic_linker='ldqnx.so'
19400 ;;
19401
19402openbsd*)
19403 version_type=sunos
19404 sys_lib_dlsearch_path_spec="/usr/lib"
19405 need_lib_prefix=no
19406 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19407 case $host_os in
19408 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19409 *) need_version=no ;;
19410 esac
19411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19413 shlibpath_var=LD_LIBRARY_PATH
19414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19415 case $host_os in
19416 openbsd2.[89] | openbsd2.[89].*)
19417 shlibpath_overrides_runpath=no
19418 ;;
19419 *)
19420 shlibpath_overrides_runpath=yes
19421 ;;
19422 esac
19423 else
19424 shlibpath_overrides_runpath=yes
19425 fi
19426 ;;
19427
19428os2*)
19429 libname_spec='$name'
19430 shrext_cmds=".dll"
19431 need_lib_prefix=no
19432 library_names_spec='$libname${shared_ext} $libname.a'
19433 dynamic_linker='OS/2 ld.exe'
19434 shlibpath_var=LIBPATH
19435 ;;
19436
19437osf3* | osf4* | osf5*)
19438 version_type=osf
19439 need_lib_prefix=no
19440 need_version=no
19441 soname_spec='${libname}${release}${shared_ext}$major'
19442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19443 shlibpath_var=LD_LIBRARY_PATH
19444 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19445 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19446 ;;
19447
19448rdos*)
19449 dynamic_linker=no
19450 ;;
19451
19452solaris*)
19453 version_type=linux
19454 need_lib_prefix=no
19455 need_version=no
19456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19457 soname_spec='${libname}${release}${shared_ext}$major'
19458 shlibpath_var=LD_LIBRARY_PATH
19459 shlibpath_overrides_runpath=yes
19460 hardcode_into_libs=yes
19461 # ldd complains unless libraries are executable
19462 postinstall_cmds='chmod +x $lib'
19463 ;;
19464
19465sunos4*)
19466 version_type=sunos
19467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19468 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19469 shlibpath_var=LD_LIBRARY_PATH
19470 shlibpath_overrides_runpath=yes
19471 if test "$with_gnu_ld" = yes; then
19472 need_lib_prefix=no
19473 fi
19474 need_version=yes
19475 ;;
19476
19477sysv4 | sysv4.3*)
19478 version_type=linux
19479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19480 soname_spec='${libname}${release}${shared_ext}$major'
19481 shlibpath_var=LD_LIBRARY_PATH
19482 case $host_vendor in
19483 sni)
19484 shlibpath_overrides_runpath=no
19485 need_lib_prefix=no
19486 runpath_var=LD_RUN_PATH
19487 ;;
19488 siemens)
19489 need_lib_prefix=no
19490 ;;
19491 motorola)
19492 need_lib_prefix=no
19493 need_version=no
19494 shlibpath_overrides_runpath=no
19495 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19496 ;;
19497 esac
19498 ;;
19499
19500sysv4*MP*)
19501 if test -d /usr/nec ;then
19502 version_type=linux
19503 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19504 soname_spec='$libname${shared_ext}.$major'
19505 shlibpath_var=LD_LIBRARY_PATH
19506 fi
19507 ;;
19508
19509sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19510 version_type=freebsd-elf
19511 need_lib_prefix=no
19512 need_version=no
19513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19514 soname_spec='${libname}${release}${shared_ext}$major'
19515 shlibpath_var=LD_LIBRARY_PATH
19516 shlibpath_overrides_runpath=yes
19517 hardcode_into_libs=yes
19518 if test "$with_gnu_ld" = yes; then
19519 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19520 else
19521 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19522 case $host_os in
19523 sco3.2v5*)
19524 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19525 ;;
19526 esac
19527 fi
19528 sys_lib_dlsearch_path_spec='/usr/lib'
19529 ;;
19530
19531tpf*)
19532 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19533 version_type=linux
19534 need_lib_prefix=no
19535 need_version=no
19536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19537 shlibpath_var=LD_LIBRARY_PATH
19538 shlibpath_overrides_runpath=no
19539 hardcode_into_libs=yes
19540 ;;
19541
19542uts4*)
19543 version_type=linux
19544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 soname_spec='${libname}${release}${shared_ext}$major'
19546 shlibpath_var=LD_LIBRARY_PATH
19547 ;;
19548
19549*)
19550 dynamic_linker=no
19551 ;;
19552esac
19553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19554$as_echo "$dynamic_linker" >&6; }
19555test "$dynamic_linker" = no && can_build_shared=no
19556
19557variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19558if test "$GCC" = yes; then
19559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19560fi
19561
19562if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19563 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19564fi
19565if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19566 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19567fi
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
cristy0c60a692010-11-04 01:09:47 +000019604
19605
cristy73bd4a52010-10-05 11:24:23 +000019606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19607$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19608hardcode_action_CXX=
19609if test -n "$hardcode_libdir_flag_spec_CXX" ||
19610 test -n "$runpath_var_CXX" ||
19611 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19612
19613 # We can hardcode non-existent directories.
19614 if test "$hardcode_direct_CXX" != no &&
19615 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19616 # have to relink, otherwise we might link with an installed library
19617 # when we should be linking with a yet-to-be-installed one
19618 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19619 test "$hardcode_minus_L_CXX" != no; then
19620 # Linking always hardcodes the temporary library directory.
19621 hardcode_action_CXX=relink
19622 else
19623 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19624 hardcode_action_CXX=immediate
19625 fi
19626else
19627 # We cannot hardcode anything, or else we can only hardcode existing
19628 # directories.
19629 hardcode_action_CXX=unsupported
19630fi
19631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19632$as_echo "$hardcode_action_CXX" >&6; }
19633
19634if test "$hardcode_action_CXX" = relink ||
19635 test "$inherit_rpath_CXX" = yes; then
19636 # Fast installation is not supported
19637 enable_fast_install=no
19638elif test "$shlibpath_overrides_runpath" = yes ||
19639 test "$enable_shared" = no; then
19640 # Fast installation is not necessary
19641 enable_fast_install=needless
19642fi
19643
19644
19645
19646
19647
19648
19649
19650 fi # test -n "$compiler"
19651
19652 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019653 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019654 LDCXX=$LD
19655 LD=$lt_save_LD
19656 GCC=$lt_save_GCC
19657 with_gnu_ld=$lt_save_with_gnu_ld
19658 lt_cv_path_LDCXX=$lt_cv_path_LD
19659 lt_cv_path_LD=$lt_save_path_LD
19660 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19661 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19662fi # test "$_lt_caught_CXX_error" != yes
19663
19664ac_ext=c
19665ac_cpp='$CPP $CPPFLAGS'
19666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19668ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682 ac_config_commands="$ac_config_commands libtool"
19683
19684
19685
19686
19687# Only expand once:
19688
19689
19690
cristy3ed852e2009-09-05 21:47:34 +000019691
19692
19693# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019694
19695
19696
19697
19698
19699
19700
cristy73bd4a52010-10-05 11:24:23 +000019701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19702$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019703if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019704 $as_echo_n "(cached) " >&6
19705else
19706
19707module=yes
19708eval libltdl_cv_shlibext=$shrext_cmds
19709
19710fi
19711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19712$as_echo "$libltdl_cv_shlibext" >&6; }
19713if test -n "$libltdl_cv_shlibext"; then
19714
19715cat >>confdefs.h <<_ACEOF
19716#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19717_ACEOF
19718
19719fi
19720
19721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19722$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019723if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019724 $as_echo_n "(cached) " >&6
19725else
19726 lt_cv_module_path_var="$shlibpath_var"
19727fi
19728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19729$as_echo "$lt_cv_module_path_var" >&6; }
19730if test -n "$lt_cv_module_path_var"; then
19731
19732cat >>confdefs.h <<_ACEOF
19733#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19734_ACEOF
19735
19736fi
19737
19738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19739$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019740if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019741 $as_echo_n "(cached) " >&6
19742else
19743 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19744fi
19745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19746$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19747if test -n "$lt_cv_sys_dlsearch_path"; then
19748 sys_dlsearch_path=
19749 for dir in $lt_cv_sys_dlsearch_path; do
19750 if test -z "$sys_dlsearch_path"; then
19751 sys_dlsearch_path="$dir"
19752 else
19753 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19754 fi
19755 done
19756
19757cat >>confdefs.h <<_ACEOF
19758#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19759_ACEOF
19760
19761fi
19762
19763
19764LT_DLLOADERS=
19765
19766
19767ac_ext=c
19768ac_cpp='$CPP $CPPFLAGS'
19769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771ac_compiler_gnu=$ac_cv_c_compiler_gnu
19772
19773
19774LIBADD_DLOPEN=
19775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19776$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019777if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019778 $as_echo_n "(cached) " >&6
19779else
19780 ac_func_search_save_LIBS=$LIBS
19781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782/* end confdefs.h. */
19783
19784/* Override any GCC internal prototype to avoid an error.
19785 Use char because int might match the return type of a GCC
19786 builtin and then its argument prototype would still apply. */
19787#ifdef __cplusplus
19788extern "C"
19789#endif
19790char dlopen ();
19791int
19792main ()
19793{
19794return dlopen ();
19795 ;
19796 return 0;
19797}
19798_ACEOF
19799for ac_lib in '' dl; do
19800 if test -z "$ac_lib"; then
19801 ac_res="none required"
19802 else
19803 ac_res=-l$ac_lib
19804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19805 fi
19806 if ac_fn_c_try_link "$LINENO"; then :
19807 ac_cv_search_dlopen=$ac_res
19808fi
19809rm -f core conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019811 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019812 break
19813fi
19814done
cristyda16f162011-02-19 23:52:17 +000019815if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019816
19817else
19818 ac_cv_search_dlopen=no
19819fi
19820rm conftest.$ac_ext
19821LIBS=$ac_func_search_save_LIBS
19822fi
19823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19824$as_echo "$ac_cv_search_dlopen" >&6; }
19825ac_res=$ac_cv_search_dlopen
19826if test "$ac_res" != no; then :
19827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19828
19829$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19830
19831 if test "$ac_cv_search_dlopen" != "none required" ; then
19832 LIBADD_DLOPEN="-ldl"
19833 fi
19834 libltdl_cv_lib_dl_dlopen="yes"
19835 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19836else
19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838/* end confdefs.h. */
19839#if HAVE_DLFCN_H
19840# include <dlfcn.h>
19841#endif
19842
19843int
19844main ()
19845{
19846dlopen(0, 0);
19847 ;
19848 return 0;
19849}
19850_ACEOF
19851if ac_fn_c_try_link "$LINENO"; then :
19852
19853$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19854
19855 libltdl_cv_func_dlopen="yes"
19856 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19857else
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19859$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019860if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019861 $as_echo_n "(cached) " >&6
19862else
19863 ac_check_lib_save_LIBS=$LIBS
19864LIBS="-lsvld $LIBS"
19865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866/* end confdefs.h. */
19867
19868/* Override any GCC internal prototype to avoid an error.
19869 Use char because int might match the return type of a GCC
19870 builtin and then its argument prototype would still apply. */
19871#ifdef __cplusplus
19872extern "C"
19873#endif
19874char dlopen ();
19875int
19876main ()
19877{
19878return dlopen ();
19879 ;
19880 return 0;
19881}
19882_ACEOF
19883if ac_fn_c_try_link "$LINENO"; then :
19884 ac_cv_lib_svld_dlopen=yes
19885else
19886 ac_cv_lib_svld_dlopen=no
19887fi
19888rm -f core conftest.err conftest.$ac_objext \
19889 conftest$ac_exeext conftest.$ac_ext
19890LIBS=$ac_check_lib_save_LIBS
19891fi
19892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19893$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019894if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019895
19896$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19897
19898 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19899 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19900fi
19901
19902fi
19903rm -f core conftest.err conftest.$ac_objext \
19904 conftest$ac_exeext conftest.$ac_ext
19905fi
19906
19907if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19908then
19909 lt_save_LIBS="$LIBS"
19910 LIBS="$LIBS $LIBADD_DLOPEN"
19911 for ac_func in dlerror
19912do :
19913 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019914if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019915 cat >>confdefs.h <<_ACEOF
19916#define HAVE_DLERROR 1
19917_ACEOF
19918
19919fi
19920done
19921
19922 LIBS="$lt_save_LIBS"
19923fi
19924
19925
19926LIBADD_SHL_LOAD=
19927ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019928if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019929
19930$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19931
19932 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19933else
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19935$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019936if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019937 $as_echo_n "(cached) " >&6
19938else
19939 ac_check_lib_save_LIBS=$LIBS
19940LIBS="-ldld $LIBS"
19941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942/* end confdefs.h. */
19943
19944/* Override any GCC internal prototype to avoid an error.
19945 Use char because int might match the return type of a GCC
19946 builtin and then its argument prototype would still apply. */
19947#ifdef __cplusplus
19948extern "C"
19949#endif
19950char shl_load ();
19951int
19952main ()
19953{
19954return shl_load ();
19955 ;
19956 return 0;
19957}
19958_ACEOF
19959if ac_fn_c_try_link "$LINENO"; then :
19960 ac_cv_lib_dld_shl_load=yes
19961else
19962 ac_cv_lib_dld_shl_load=no
19963fi
19964rm -f core conftest.err conftest.$ac_objext \
19965 conftest$ac_exeext conftest.$ac_ext
19966LIBS=$ac_check_lib_save_LIBS
19967fi
19968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19969$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019970if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019971
19972$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19973
19974 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19975 LIBADD_SHL_LOAD="-ldld"
19976fi
19977
19978fi
19979
19980
19981
19982case $host_os in
19983darwin[1567].*)
19984# We only want this for pre-Mac OS X 10.4.
19985 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019986if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019987
19988$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19989
19990 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19991fi
19992
19993 ;;
19994beos*)
19995 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19996 ;;
19997cygwin* | mingw* | os2* | pw32*)
19998 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19999"
cristyda16f162011-02-19 23:52:17 +000020000if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020001 ac_have_decl=1
20002else
20003 ac_have_decl=0
20004fi
20005
20006cat >>confdefs.h <<_ACEOF
20007#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20008_ACEOF
20009
20010 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20011 ;;
20012esac
20013
20014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20015$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020016if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020017 $as_echo_n "(cached) " >&6
20018else
20019 ac_check_lib_save_LIBS=$LIBS
20020LIBS="-ldld $LIBS"
20021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022/* end confdefs.h. */
20023
20024/* Override any GCC internal prototype to avoid an error.
20025 Use char because int might match the return type of a GCC
20026 builtin and then its argument prototype would still apply. */
20027#ifdef __cplusplus
20028extern "C"
20029#endif
20030char dld_link ();
20031int
20032main ()
20033{
20034return dld_link ();
20035 ;
20036 return 0;
20037}
20038_ACEOF
20039if ac_fn_c_try_link "$LINENO"; then :
20040 ac_cv_lib_dld_dld_link=yes
20041else
20042 ac_cv_lib_dld_dld_link=no
20043fi
20044rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20046LIBS=$ac_check_lib_save_LIBS
20047fi
20048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20049$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020050if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020051
20052$as_echo "#define HAVE_DLD 1" >>confdefs.h
20053
20054 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20055fi
20056
20057
20058
20059
20060LT_DLPREOPEN=
20061if test -n "$LT_DLLOADERS"
20062then
20063 for lt_loader in $LT_DLLOADERS; do
20064 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20065 done
20066
20067$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20068
20069fi
20070
20071
20072LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20073
20074
20075ac_ext=c
20076ac_cpp='$CPP $CPPFLAGS'
20077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20079ac_compiler_gnu=$ac_cv_c_compiler_gnu
20080
20081
20082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20083$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020084if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020085 $as_echo_n "(cached) " >&6
20086else
20087 lt_cv_sys_symbol_underscore=no
20088 cat > conftest.$ac_ext <<_LT_EOF
20089void nm_test_func(){}
20090int main(){nm_test_func;return 0;}
20091_LT_EOF
20092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20093 (eval $ac_compile) 2>&5
20094 ac_status=$?
20095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20096 test $ac_status = 0; }; then
20097 # Now try to grab the symbols.
20098 ac_nlist=conftest.nm
20099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20100 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20101 ac_status=$?
20102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20103 test $ac_status = 0; } && test -s "$ac_nlist"; then
20104 # See whether the symbols have a leading underscore.
20105 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20106 lt_cv_sys_symbol_underscore=yes
20107 else
20108 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20109 :
20110 else
20111 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20112 fi
20113 fi
20114 else
20115 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20116 fi
20117 else
20118 echo "configure: failed program was:" >&5
20119 cat conftest.c >&5
20120 fi
20121 rm -rf conftest*
20122
20123fi
20124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20125$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20126 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20127
20128
20129if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20130 if test x"$libltdl_cv_func_dlopen" = xyes ||
20131 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20133$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020134if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020135 $as_echo_n "(cached) " >&6
20136else
20137 libltdl_cv_need_uscore=unknown
20138 save_LIBS="$LIBS"
20139 LIBS="$LIBS $LIBADD_DLOPEN"
20140 if test "$cross_compiling" = yes; then :
20141 libltdl_cv_need_uscore=cross
20142else
20143 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20144 lt_status=$lt_dlunknown
20145 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020146#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020147#include "confdefs.h"
20148
20149#if HAVE_DLFCN_H
20150#include <dlfcn.h>
20151#endif
20152
20153#include <stdio.h>
20154
20155#ifdef RTLD_GLOBAL
20156# define LT_DLGLOBAL RTLD_GLOBAL
20157#else
20158# ifdef DL_GLOBAL
20159# define LT_DLGLOBAL DL_GLOBAL
20160# else
20161# define LT_DLGLOBAL 0
20162# endif
20163#endif
20164
20165/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20166 find out it does not work in some platform. */
20167#ifndef LT_DLLAZY_OR_NOW
20168# ifdef RTLD_LAZY
20169# define LT_DLLAZY_OR_NOW RTLD_LAZY
20170# else
20171# ifdef DL_LAZY
20172# define LT_DLLAZY_OR_NOW DL_LAZY
20173# else
20174# ifdef RTLD_NOW
20175# define LT_DLLAZY_OR_NOW RTLD_NOW
20176# else
20177# ifdef DL_NOW
20178# define LT_DLLAZY_OR_NOW DL_NOW
20179# else
20180# define LT_DLLAZY_OR_NOW 0
20181# endif
20182# endif
20183# endif
20184# endif
20185#endif
20186
cristy0c60a692010-11-04 01:09:47 +000020187/* When -fvisbility=hidden is used, assume the code has been annotated
20188 correspondingly for the symbols needed. */
20189#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020190int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020191#endif
20192
cristyda16f162011-02-19 23:52:17 +000020193int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020194int main ()
20195{
20196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20197 int status = $lt_dlunknown;
20198
20199 if (self)
20200 {
20201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020202 else
20203 {
20204 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20205 else puts (dlerror ());
20206 }
cristy73bd4a52010-10-05 11:24:23 +000020207 /* dlclose (self); */
20208 }
20209 else
20210 puts (dlerror ());
20211
20212 return status;
20213}
20214_LT_EOF
20215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20216 (eval $ac_link) 2>&5
20217 ac_status=$?
20218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20219 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20220 (./conftest; exit; ) >&5 2>/dev/null
20221 lt_status=$?
20222 case x$lt_status in
20223 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20224 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20225 x$lt_dlunknown|x*) ;;
20226 esac
20227 else :
20228 # compilation failed
20229
20230 fi
20231fi
20232rm -fr conftest*
20233
20234 LIBS="$save_LIBS"
20235
20236fi
20237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20238$as_echo "$libltdl_cv_need_uscore" >&6; }
20239 fi
20240fi
20241
20242if test x"$libltdl_cv_need_uscore" = xyes; then
20243
20244$as_echo "#define NEED_USCORE 1" >>confdefs.h
20245
20246fi
20247
20248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20249$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020250if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020251 $as_echo_n "(cached) " >&6
20252else
20253 # PORTME does your system automatically load deplibs for dlopen?
20254 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20255 # For now, we just catch OSes we know something about -- in the
20256 # future, we'll try test this programmatically.
20257 lt_cv_sys_dlopen_deplibs=unknown
20258 case $host_os in
20259 aix3*|aix4.1.*|aix4.2.*)
20260 # Unknown whether this is true for these versions of AIX, but
20261 # we want this `case' here to explicitly catch those versions.
20262 lt_cv_sys_dlopen_deplibs=unknown
20263 ;;
20264 aix[4-9]*)
20265 lt_cv_sys_dlopen_deplibs=yes
20266 ;;
20267 amigaos*)
20268 case $host_cpu in
20269 powerpc)
20270 lt_cv_sys_dlopen_deplibs=no
20271 ;;
20272 esac
20273 ;;
20274 darwin*)
20275 # Assuming the user has installed a libdl from somewhere, this is true
20276 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20277 lt_cv_sys_dlopen_deplibs=yes
20278 ;;
20279 freebsd* | dragonfly*)
20280 lt_cv_sys_dlopen_deplibs=yes
20281 ;;
cristy0c60a692010-11-04 01:09:47 +000020282 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020283 # GNU and its variants, using gnu ld.so (Glibc)
20284 lt_cv_sys_dlopen_deplibs=yes
20285 ;;
20286 hpux10*|hpux11*)
20287 lt_cv_sys_dlopen_deplibs=yes
20288 ;;
20289 interix*)
20290 lt_cv_sys_dlopen_deplibs=yes
20291 ;;
20292 irix[12345]*|irix6.[01]*)
20293 # Catch all versions of IRIX before 6.2, and indicate that we don't
20294 # know how it worked for any of those versions.
20295 lt_cv_sys_dlopen_deplibs=unknown
20296 ;;
20297 irix*)
20298 # The case above catches anything before 6.2, and it's known that
20299 # at 6.2 and later dlopen does load deplibs.
20300 lt_cv_sys_dlopen_deplibs=yes
20301 ;;
20302 netbsd*)
20303 lt_cv_sys_dlopen_deplibs=yes
20304 ;;
20305 openbsd*)
20306 lt_cv_sys_dlopen_deplibs=yes
20307 ;;
20308 osf[1234]*)
20309 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20310 # it did *not* use an RPATH in a shared library to find objects the
20311 # library depends on, so we explicitly say `no'.
20312 lt_cv_sys_dlopen_deplibs=no
20313 ;;
20314 osf5.0|osf5.0a|osf5.1)
20315 # dlopen *does* load deplibs and with the right loader patch applied
20316 # it even uses RPATH in a shared library to search for shared objects
20317 # that the library depends on, but there's no easy way to know if that
20318 # patch is installed. Since this is the case, all we can really
20319 # say is unknown -- it depends on the patch being installed. If
20320 # it is, this changes to `yes'. Without it, it would be `no'.
20321 lt_cv_sys_dlopen_deplibs=unknown
20322 ;;
20323 osf*)
20324 # the two cases above should catch all versions of osf <= 5.1. Read
20325 # the comments above for what we know about them.
20326 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20327 # is used to find them so we can finally say `yes'.
20328 lt_cv_sys_dlopen_deplibs=yes
20329 ;;
20330 qnx*)
20331 lt_cv_sys_dlopen_deplibs=yes
20332 ;;
20333 solaris*)
20334 lt_cv_sys_dlopen_deplibs=yes
20335 ;;
20336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20337 libltdl_cv_sys_dlopen_deplibs=yes
20338 ;;
20339 esac
20340
20341fi
20342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20343$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20344if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20345
20346$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20347
20348fi
20349
20350:
20351
20352for ac_header in argz.h
20353do :
20354 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20355"
cristyda16f162011-02-19 23:52:17 +000020356if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020357 cat >>confdefs.h <<_ACEOF
20358#define HAVE_ARGZ_H 1
20359_ACEOF
20360
20361fi
20362
20363done
20364
20365
20366ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20367# include <argz.h>
20368#endif
20369"
cristyda16f162011-02-19 23:52:17 +000020370if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020371
20372cat >>confdefs.h <<_ACEOF
20373#define HAVE_ERROR_T 1
20374_ACEOF
20375
20376
20377else
20378
20379$as_echo "#define error_t int" >>confdefs.h
20380
20381
20382$as_echo "#define __error_t_defined 1" >>confdefs.h
20383
20384fi
20385
20386
20387ARGZ_H=
20388for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20389 argz_next argz_stringify
20390do :
20391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20392ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020393if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020394 cat >>confdefs.h <<_ACEOF
20395#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20396_ACEOF
20397
20398else
20399 ARGZ_H=argz.h;
20400
20401 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20402
20403fi
20404done
20405
20406
20407if test -z "$ARGZ_H"; then :
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20409$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020410if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020411 $as_echo_n "(cached) " >&6
20412else
20413 case $host_os in #(
20414 *cygwin*)
20415 lt_cv_sys_argz_works=no
20416 if test "$cross_compiling" != no; then
20417 lt_cv_sys_argz_works="guessing no"
20418 else
20419 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20420 save_IFS=$IFS
20421 IFS=-.
20422 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20423 IFS=$save_IFS
20424 lt_os_major=${2-0}
20425 lt_os_minor=${3-0}
20426 lt_os_micro=${4-0}
20427 if test "$lt_os_major" -gt 1 \
20428 || { test "$lt_os_major" -eq 1 \
20429 && { test "$lt_os_minor" -gt 5 \
20430 || { test "$lt_os_minor" -eq 5 \
20431 && test "$lt_os_micro" -gt 24; }; }; }; then
20432 lt_cv_sys_argz_works=yes
20433 fi
20434 fi
20435 ;; #(
20436 *) lt_cv_sys_argz_works=yes ;;
20437 esac
20438fi
20439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20440$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020441 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020442
20443$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20444
20445else
20446 ARGZ_H=argz.h
20447
20448
20449 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20450
20451fi
20452fi
20453
20454
20455
20456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20457$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020458if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020459 $as_echo_n "(cached) " >&6
20460else
20461 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20462 libltdl_cv_preloaded_symbols=yes
20463 else
20464 libltdl_cv_preloaded_symbols=no
20465 fi
20466
20467fi
20468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20469$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20470if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20471
20472$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20473
20474fi
20475
20476# Set options
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488# Check whether --with-included_ltdl was given.
20489if test "${with_included_ltdl+set}" = set; then :
20490 withval=$with_included_ltdl;
20491fi
20492
20493
20494if test "x$with_included_ltdl" != xyes; then
20495 # We are not being forced to use the included libltdl sources, so
20496 # decide whether there is a useful installed version we can use.
20497 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20498
20499"
cristyda16f162011-02-19 23:52:17 +000020500if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020501 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20502 #include <ltdl.h>
20503"
cristyda16f162011-02-19 23:52:17 +000020504if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20506$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020507if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020508 $as_echo_n "(cached) " >&6
20509else
20510 ac_check_lib_save_LIBS=$LIBS
20511LIBS="-lltdl $LIBS"
20512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513/* end confdefs.h. */
20514
20515/* Override any GCC internal prototype to avoid an error.
20516 Use char because int might match the return type of a GCC
20517 builtin and then its argument prototype would still apply. */
20518#ifdef __cplusplus
20519extern "C"
20520#endif
20521char lt_dladvise_preload ();
20522int
20523main ()
20524{
20525return lt_dladvise_preload ();
20526 ;
20527 return 0;
20528}
20529_ACEOF
20530if ac_fn_c_try_link "$LINENO"; then :
20531 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20532else
20533 ac_cv_lib_ltdl_lt_dladvise_preload=no
20534fi
20535rm -f core conftest.err conftest.$ac_objext \
20536 conftest$ac_exeext conftest.$ac_ext
20537LIBS=$ac_check_lib_save_LIBS
20538fi
20539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20540$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020541if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020542 with_included_ltdl=no
20543else
20544 with_included_ltdl=yes
20545fi
20546
20547else
20548 with_included_ltdl=yes
20549fi
20550
20551else
20552 with_included_ltdl=yes
20553fi
20554
20555
20556fi
20557
20558
20559
20560
20561# Check whether --with-ltdl_include was given.
20562if test "${with_ltdl_include+set}" = set; then :
20563 withval=$with_ltdl_include;
20564fi
20565
20566
20567if test -n "$with_ltdl_include"; then
20568 if test -f "$with_ltdl_include/ltdl.h"; then :
20569 else
cristy98dddb52010-11-04 00:30:15 +000020570 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020571 fi
20572else
20573 with_ltdl_include=no
20574fi
20575
20576
20577# Check whether --with-ltdl_lib was given.
20578if test "${with_ltdl_lib+set}" = set; then :
20579 withval=$with_ltdl_lib;
20580fi
20581
20582
20583if test -n "$with_ltdl_lib"; then
20584 if test -f "$with_ltdl_lib/libltdl.la"; then :
20585 else
cristy98dddb52010-11-04 00:30:15 +000020586 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020587 fi
20588else
20589 with_ltdl_lib=no
20590fi
20591
20592case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20593 ,yes,no,no,)
20594 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020595 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020596 "") enable_ltdl_convenience=yes
20597 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20598esac
20599LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20600LTDLDEPS=$LIBLTDL
20601LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20602
20603
20604
20605
20606
20607# For backwards non-gettext consistent compatibility...
20608INCLTDL="$LTDLINCL"
20609
20610
20611 ;;
20612 ,no,no,no,)
20613 # If the included ltdl is not to be used, then use the
20614 # preinstalled libltdl we found.
20615
20616$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20617
20618 LIBLTDL=-lltdl
20619 LTDLDEPS=
20620 LTDLINCL=
20621 ;;
20622 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020623 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020624 ;;
20625 *) with_included_ltdl=no
20626 LIBLTDL="-L$with_ltdl_lib -lltdl"
20627 LTDLDEPS=
20628 LTDLINCL="-I$with_ltdl_include"
20629 ;;
20630esac
20631INCLTDL="$LTDLINCL"
20632
20633# Report our decision...
20634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20635$as_echo_n "checking where to find libltdl headers... " >&6; }
20636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20637$as_echo "$LTDLINCL" >&6; }
20638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20639$as_echo_n "checking where to find libltdl library... " >&6; }
20640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20641$as_echo "$LIBLTDL" >&6; }
20642
20643
20644
20645# Check whether --enable-ltdl-install was given.
20646if test "${enable_ltdl_install+set}" = set; then :
20647 enableval=$enable_ltdl_install;
20648fi
20649
20650
20651case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20652 *yes*) ;;
20653 *) enable_ltdl_convenience=yes ;;
20654esac
20655
20656 if test x"${enable_ltdl_install-no}" != xno; then
20657 INSTALL_LTDL_TRUE=
20658 INSTALL_LTDL_FALSE='#'
20659else
20660 INSTALL_LTDL_TRUE='#'
20661 INSTALL_LTDL_FALSE=
20662fi
20663
20664 if test x"${enable_ltdl_convenience-no}" != xno; then
20665 CONVENIENCE_LTDL_TRUE=
20666 CONVENIENCE_LTDL_FALSE='#'
20667else
20668 CONVENIENCE_LTDL_TRUE='#'
20669 CONVENIENCE_LTDL_FALSE=
20670fi
20671
20672
20673
20674
20675
20676
cristy73bd4a52010-10-05 11:24:23 +000020677# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20678# the user used. This is so that ltdl.h can pick up the parent projects
20679# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20680# definitions required by ltdl.c.
20681# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20682
20683
20684
20685for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20686do :
20687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20688ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20689"
cristy98dddb52010-11-04 00:30:15 +000020690if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020691 cat >>confdefs.h <<_ACEOF
20692#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20693_ACEOF
20694
20695fi
20696
20697done
20698
20699
20700for ac_func in closedir opendir readdir
20701do :
20702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20703ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020704if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020705 cat >>confdefs.h <<_ACEOF
20706#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20707_ACEOF
20708
20709else
20710
20711
20712 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20713
20714fi
20715done
20716
20717for ac_func in strlcat strlcpy
20718do :
20719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20720ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020721if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020722 cat >>confdefs.h <<_ACEOF
20723#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20724_ACEOF
20725
20726else
20727
20728
20729 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20730
20731fi
20732done
20733
20734
20735
20736cat >>confdefs.h <<_ACEOF
20737#define LT_LIBEXT "$libext"
20738_ACEOF
20739
20740
cristyda16f162011-02-19 23:52:17 +000020741name=
20742eval "lt_libprefix=\"$libname_spec\""
20743
20744cat >>confdefs.h <<_ACEOF
20745#define LT_LIBPREFIX "$lt_libprefix"
20746_ACEOF
20747
20748
cristy73bd4a52010-10-05 11:24:23 +000020749name=ltdl
cristyda16f162011-02-19 23:52:17 +000020750eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020751
20752
20753
20754
20755
20756
20757
20758
20759# Only expand once:
20760
20761
cristy3ed852e2009-09-05 21:47:34 +000020762
20763# Check to see if building shared libraries
20764libtool_build_shared_libs='no'
20765if test "$enable_shared" = 'yes'; then
20766 libtool_build_shared_libs='yes'
20767fi
20768
20769# Check to see if building static libraries
20770libtool_build_static_libs='no'
20771if test "$enable_static" = 'yes'; then
20772 libtool_build_static_libs='yes'
20773fi
20774
cristy73bd4a52010-10-05 11:24:23 +000020775 if test "${libtool_build_shared_libs}" = 'yes'; then
20776 WITH_SHARED_LIBS_TRUE=
20777 WITH_SHARED_LIBS_FALSE='#'
20778else
20779 WITH_SHARED_LIBS_TRUE='#'
20780 WITH_SHARED_LIBS_FALSE=
20781fi
20782
cristy3ed852e2009-09-05 21:47:34 +000020783#
20784# Enable support for building loadable modules
20785#
20786
20787# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020788if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020789 withval=$with_modules; with_modules=$withval
20790else
cristy5a1cefd2010-01-06 20:42:35 +000020791 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020792fi
20793
20794
20795# Only allow building loadable modules if we are building shared libraries
20796if test "$with_modules" != 'no' ; then
20797 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020798 { $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 +000020799$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20800 with_modules='no'
20801 fi
20802fi
20803if test "$with_modules" != 'no'; then
20804
cristy8b350f62009-11-15 23:12:43 +000020805$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020806
20807fi
cristy73bd4a52010-10-05 11:24:23 +000020808 if test "$with_modules" != 'no'; then
20809 WITH_MODULES_TRUE=
20810 WITH_MODULES_FALSE='#'
20811else
20812 WITH_MODULES_TRUE='#'
20813 WITH_MODULES_FALSE=
20814fi
20815
cristy3ed852e2009-09-05 21:47:34 +000020816
20817# Enable building/use of libltdl if we are building shared libraries regardless
20818# of whether modules are built or not.
20819with_ltdl='no'
20820if test "$libtool_build_shared_libs" != 'no'; then
20821 with_ltdl='yes'
20822fi
20823
cristy73bd4a52010-10-05 11:24:23 +000020824 if test "$with_ltdl" != 'no'; then
20825 WITH_LTDL_TRUE=
20826 WITH_LTDL_FALSE='#'
20827else
20828 WITH_LTDL_TRUE='#'
20829 WITH_LTDL_FALSE=
20830fi
20831
cristy3ed852e2009-09-05 21:47:34 +000020832if test "$with_ltdl" != 'no'; then
20833
cristy8b350f62009-11-15 23:12:43 +000020834$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020835
20836
20837 # Set DLLDFLAGS
20838 if test X"$enable_shared" = Xyes; then
20839 DLLDFLAGS=-export-dynamic
20840
20841 fi
20842fi
20843
20844# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020845# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020846# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020847if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020848 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20849else
20850 enable_delegate_build='no'
20851fi
20852
20853
20854# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020855if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020856 enableval=$enable_deprecated; enable_deprecated=$enableval
20857else
20858 enable_deprecated='no'
20859fi
20860
20861
20862if test "$enable_deprecated" = 'yes'; then
20863
cristy8b350f62009-11-15 23:12:43 +000020864$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020865
20866else
20867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20868fi
20869
20870# Build a version of ImageMagick which operates uninstalled.
20871# Used to build distributions located via MAGICK_HOME / executable path
20872# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020873if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020874 enableval=$enable_installed; enable_installed=$enableval
20875else
20876 enable_installed='yes'
20877fi
20878
20879
20880if test "$enable_installed" = 'yes'; then
20881
cristy8b350f62009-11-15 23:12:43 +000020882$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020883
20884else
20885 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20886fi
20887
20888# Permit enciphering and deciphering image pixels.
20889# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020890if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020891 enableval=$enable_cipher; enable_cipher=$enableval
20892else
20893 enable_cipher='yes'
20894fi
20895
20896
20897if test "$enable_cipher" = 'yes'; then
20898
cristy8b350f62009-11-15 23:12:43 +000020899$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020900
20901fi
20902
20903# Build an embeddable version of ImageMagick.
20904# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020905if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020906 enableval=$enable_embeddable; enable_embeddable=$enableval
20907else
20908 enable_embeddable='no'
20909fi
20910
20911
20912if test "$enable_embeddable" = 'yes'; then
20913
cristy8b350f62009-11-15 23:12:43 +000020914$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020915
20916fi
20917
20918# Build a high dynamic range version of ImageMagick.
20919# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020920if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020921 enableval=$enable_hdri; enable_hdri=$enableval
20922else
20923 enable_hdri='no'
20924fi
20925
20926
20927MAGICK_HDRI=""
20928if test "$enable_hdri" = 'yes'; then
20929 MAGICK_HDRI="HDRI"
20930
cristy8b350f62009-11-15 23:12:43 +000020931$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020932
cristyfd9dcd42010-08-08 18:07:02 +000020933 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020934fi
20935
cristy3ed852e2009-09-05 21:47:34 +000020936# Build a version of ImageMagick with assert statements.
20937# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020938if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020939 enableval=$enable_assert; enable_assert=$enableval
20940else
20941 enable_assert='yes'
20942fi
20943
20944
20945if test "$enable_assert" = 'no'; then
20946
cristy8b350f62009-11-15 23:12:43 +000020947$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020948
20949fi
20950
20951# Add configure option --enable-maintainer-mode which enables dependency
20952# checking and generation useful to package maintainers. This is made an
20953# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020954
20955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20956$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20957 # Check whether --enable-maintainer-mode was given.
20958if test "${enable_maintainer_mode+set}" = set; then :
20959 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20960else
20961 USE_MAINTAINER_MODE=no
20962fi
20963
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20965$as_echo "$USE_MAINTAINER_MODE" >&6; }
20966 if test $USE_MAINTAINER_MODE = yes; then
20967 MAINTAINER_MODE_TRUE=
20968 MAINTAINER_MODE_FALSE='#'
20969else
20970 MAINTAINER_MODE_TRUE='#'
20971 MAINTAINER_MODE_FALSE=
20972fi
20973
20974 MAINT=$MAINTAINER_MODE_TRUE
20975
20976
cristy3ed852e2009-09-05 21:47:34 +000020977
20978
20979# Enable ccmalloc memory debugging support
20980# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020981if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020982 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20983else
20984 enable_ccmalloc='no'
20985fi
20986
20987
20988# Enable Electric Fence memory debugging support
20989# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020990if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020991 enableval=$enable_efence; enable_efence=$enableval
20992else
20993 enable_efence='no'
20994fi
20995
20996
20997# Enable prof-based profiling support
20998# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020999if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021000 enableval=$enable_prof; enable_prof=$enableval
21001else
21002 enable_prof='no'
21003fi
21004
21005
21006# Enable gprof-based profiling support
21007# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021008if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021009 enableval=$enable_gprof; enable_gprof=$enableval
21010else
21011 enable_gprof='no'
21012fi
21013
21014
21015# Enable gcov-based profiling support
21016# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021017if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021018 enableval=$enable_gcov; enable_gcov=$enableval
21019else
21020 enable_gcov='no'
21021fi
21022
21023
21024enable_profiling='no'
21025if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21026 enable_profiling='yes'
21027 if test "$libtool_build_shared_libs" = 'yes'; then
21028 echo "Warning: Can not profile code using shared libraries"
21029 fi
21030fi
21031
21032# Magick API method prefix
21033
21034# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021035if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021036 withval=$with_method_prefix; with_method_prefix=$enableval
21037else
21038 with_method_prefix=''
21039fi
21040
21041
21042if test "$with_method_prefix" != ''; then
21043
21044cat >>confdefs.h <<_ACEOF
21045#define NAMESPACE_PREFIX $with_method_prefix
21046_ACEOF
21047
21048fi
21049
21050# Number of bits in a Quantum
21051
21052# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021053if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021054 withval=$with_quantum_depth; with_quantum_depth=$withval
21055else
21056 with_quantum_depth=16
21057fi
21058
21059
21060if test "$with_quantum_depth" != '8'; then
21061 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21062fi
21063
21064case "${with_quantum_depth}" in
21065 8 ) ;;
21066 16 ) ;;
21067 32 ) ;;
21068 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021069 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021070esac
cristycdae12a2010-09-19 02:24:31 +000021071if test "$enable_hdri" = 'yes'; then
21072 with_quantum_depth=16
21073fi
cristy3ed852e2009-09-05 21:47:34 +000021074QUANTUM_DEPTH="$with_quantum_depth"
21075
21076cat >>confdefs.h <<_ACEOF
21077#define QUANTUM_DEPTH $QUANTUM_DEPTH
21078_ACEOF
21079
21080
21081# Set pixel cache threshold
21082
21083# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021084if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021085 withval=$with_cache; with_cache=$withval
21086else
21087 with_cache=''
21088fi
21089
21090
21091if test "$with_cache" != ''; then
21092
21093cat >>confdefs.h <<_ACEOF
21094#define PixelCacheThreshold $with_cache
21095_ACEOF
21096
21097 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21098fi
21099
21100# Disable/Enable support for full delegate paths
21101
21102# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021103if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021104 withval=$with_frozenpaths; with_frozenpaths=$withval
21105else
21106 with_frozenpaths='no'
21107fi
21108
21109
21110# Enable build/install of Magick++
21111
21112# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021113if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021114 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21115else
21116 with_magick_plus_plus='yes'
21117fi
21118
21119
21120# Disable build/install of PerlMagick.
21121
21122# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021123if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021124 withval=$with_perl; with_perl=$withval
21125else
cristyb5f4e2f2010-04-25 00:49:11 +000021126 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021127fi
21128
21129
21130# Options to pass when configuring PerlMagick
21131
21132# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021133if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021134 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021135fi
21136
21137
cristy3ed852e2009-09-05 21:47:34 +000021138
21139# Enable umem, object-caching memory allocation library.
21140
21141# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021142if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021143 withval=$with_umem; with_umem=$withval
21144else
21145 with_umem='no'
21146fi
21147
21148if test "$with_umem" != 'yes' ; then
21149 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21150fi
21151
21152#
21153# Specify path to shared libstdc++ if not in normal location
21154#
21155
21156# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021157if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021158 withval=$with_libstdc; with_libstdc=$withval
21159else
21160 with_libstdc=''
21161fi
21162
21163
21164if test "$with_libstdc" != ''; then
21165 if test -d "$with_libstdc"; then
21166 LIBSTDCLDFLAGS="-L$with_libstdc"
21167 fi
21168fi
21169
21170
21171# Does gcc required -traditional?
21172if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021174$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021175if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021176 $as_echo_n "(cached) " >&6
21177else
21178 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021180/* end confdefs.h. */
21181#include <sgtty.h>
21182Autoconf TIOCGETP
21183_ACEOF
21184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021185 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021186 ac_cv_prog_gcc_traditional=yes
21187else
21188 ac_cv_prog_gcc_traditional=no
21189fi
21190rm -f conftest*
21191
21192
21193 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021195/* end confdefs.h. */
21196#include <termio.h>
21197Autoconf TCGETA
21198_ACEOF
21199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021200 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021201 ac_cv_prog_gcc_traditional=yes
21202fi
21203rm -f conftest*
21204
21205 fi
21206fi
cristy8b350f62009-11-15 23:12:43 +000021207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021208$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21209 if test $ac_cv_prog_gcc_traditional = yes; then
21210 CC="$CC -traditional"
21211 fi
21212fi
21213
21214
21215########
21216#
21217# Set defines required to build DLLs and modules using MinGW
21218#
21219########
21220# These options are set for multi-thread DLL module build
21221# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21222# module: _DLL
21223# executable/Magick++: _DLL _MAGICKMOD_
21224MODULE_EXTRA_CPPFLAGS=''
21225LIBRARY_EXTRA_CPPFLAGS=''
21226if test "${native_win32_build}" = 'yes'; then
21227 if test "${libtool_build_shared_libs}" = 'yes'; then
21228 CPPFLAGS="$CPPFLAGS -D_DLL"
21229 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21230 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21231 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21232 if test "$with_modules" = 'yes'; then
21233 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21234 else
21235 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21236 fi
21237 else
21238 CPPFLAGS="$CPPFLAGS -D_LIB"
21239 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21240 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21241 fi
21242 if test "$with_threads" = 'yes'; then
21243 CPPFLAGS="$CPPFLAGS -D_MT"
21244 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21245 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21246 fi
21247fi
21248
21249
21250
21251# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021253$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021254if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021255 $as_echo_n "(cached) " >&6
21256else
cristy8b350f62009-11-15 23:12:43 +000021257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021258/* end confdefs.h. */
21259#include <stdlib.h>
21260#include <stdarg.h>
21261#include <string.h>
21262#include <float.h>
21263
21264int
21265main ()
21266{
21267
21268 ;
21269 return 0;
21270}
21271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021272if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021273 ac_cv_header_stdc=yes
21274else
cristy8b350f62009-11-15 23:12:43 +000021275 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021276fi
cristy3ed852e2009-09-05 21:47:34 +000021277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278
21279if test $ac_cv_header_stdc = yes; then
21280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021282/* end confdefs.h. */
21283#include <string.h>
21284
21285_ACEOF
21286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021287 $EGREP "memchr" >/dev/null 2>&1; then :
21288
cristy3ed852e2009-09-05 21:47:34 +000021289else
21290 ac_cv_header_stdc=no
21291fi
21292rm -f conftest*
21293
21294fi
21295
21296if test $ac_cv_header_stdc = yes; then
21297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021299/* end confdefs.h. */
21300#include <stdlib.h>
21301
21302_ACEOF
21303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021304 $EGREP "free" >/dev/null 2>&1; then :
21305
cristy3ed852e2009-09-05 21:47:34 +000021306else
21307 ac_cv_header_stdc=no
21308fi
21309rm -f conftest*
21310
21311fi
21312
21313if test $ac_cv_header_stdc = yes; then
21314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021315 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021316 :
21317else
cristy8b350f62009-11-15 23:12:43 +000021318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021319/* end confdefs.h. */
21320#include <ctype.h>
21321#include <stdlib.h>
21322#if ((' ' & 0x0FF) == 0x020)
21323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21324# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21325#else
21326# define ISLOWER(c) \
21327 (('a' <= (c) && (c) <= 'i') \
21328 || ('j' <= (c) && (c) <= 'r') \
21329 || ('s' <= (c) && (c) <= 'z'))
21330# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21331#endif
21332
21333#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21334int
21335main ()
21336{
21337 int i;
21338 for (i = 0; i < 256; i++)
21339 if (XOR (islower (i), ISLOWER (i))
21340 || toupper (i) != TOUPPER (i))
21341 return 2;
21342 return 0;
21343}
21344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021345if ac_fn_c_try_run "$LINENO"; then :
21346
cristy3ed852e2009-09-05 21:47:34 +000021347else
cristy8b350f62009-11-15 23:12:43 +000021348 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021349fi
cristy8b350f62009-11-15 23:12:43 +000021350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21351 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021352fi
21353
cristy3ed852e2009-09-05 21:47:34 +000021354fi
21355fi
cristy8b350f62009-11-15 23:12:43 +000021356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021357$as_echo "$ac_cv_header_stdc" >&6; }
21358if test $ac_cv_header_stdc = yes; then
21359
cristy8b350f62009-11-15 23:12:43 +000021360$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021361
21362fi
21363
21364if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021365 { $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 +000021366 header files. Compilation cannot proceed. Please install the ANSI C
21367 headers and rerun this script." >&5
21368$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21369 header files. Compilation cannot proceed. Please install the ANSI C
21370 headers and rerun this script." >&2;};
21371fi
cristya0b81c32010-01-22 02:54:33 +000021372
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21374$as_echo_n "checking whether to enable assertions... " >&6; }
21375 # Check whether --enable-assert was given.
21376if test "${enable_assert+set}" = set; then :
21377 enableval=$enable_assert; ac_enable_assert=$enableval
21378 if test "x$enableval" = xno; then :
21379
21380$as_echo "#define NDEBUG 1" >>confdefs.h
21381
21382elif test "x$enableval" != xyes; then :
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21384$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21385 ac_enable_assert=yes
21386fi
21387else
21388 ac_enable_assert=yes
21389fi
21390
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21392$as_echo "$ac_enable_assert" >&6; }
21393
cristy3ed852e2009-09-05 21:47:34 +000021394ac_header_dirent=no
21395for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21396 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021398$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021399if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021400 $as_echo_n "(cached) " >&6
21401else
cristy8b350f62009-11-15 23:12:43 +000021402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021403/* end confdefs.h. */
21404#include <sys/types.h>
21405#include <$ac_hdr>
21406
21407int
21408main ()
21409{
21410if ((DIR *) 0)
21411return 0;
21412 ;
21413 return 0;
21414}
21415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021416if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021417 eval "$as_ac_Header=yes"
21418else
cristy8b350f62009-11-15 23:12:43 +000021419 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021420fi
cristy3ed852e2009-09-05 21:47:34 +000021421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422fi
cristy8b350f62009-11-15 23:12:43 +000021423eval ac_res=\$$as_ac_Header
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021425$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021427 cat >>confdefs.h <<_ACEOF
21428#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21429_ACEOF
21430
21431ac_header_dirent=$ac_hdr; break
21432fi
21433
21434done
21435# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21436if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021438$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021439if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021440 $as_echo_n "(cached) " >&6
21441else
21442 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021444/* end confdefs.h. */
21445
21446/* Override any GCC internal prototype to avoid an error.
21447 Use char because int might match the return type of a GCC
21448 builtin and then its argument prototype would still apply. */
21449#ifdef __cplusplus
21450extern "C"
21451#endif
21452char opendir ();
21453int
21454main ()
21455{
21456return opendir ();
21457 ;
21458 return 0;
21459}
21460_ACEOF
21461for ac_lib in '' dir; do
21462 if test -z "$ac_lib"; then
21463 ac_res="none required"
21464 else
21465 ac_res=-l$ac_lib
21466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21467 fi
cristy8b350f62009-11-15 23:12:43 +000021468 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021469 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021470fi
cristy8b350f62009-11-15 23:12:43 +000021471rm -f core conftest.err conftest.$ac_objext \
21472 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021473 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021474 break
21475fi
21476done
cristyda16f162011-02-19 23:52:17 +000021477if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021478
cristy3ed852e2009-09-05 21:47:34 +000021479else
21480 ac_cv_search_opendir=no
21481fi
21482rm conftest.$ac_ext
21483LIBS=$ac_func_search_save_LIBS
21484fi
cristy8b350f62009-11-15 23:12:43 +000021485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021486$as_echo "$ac_cv_search_opendir" >&6; }
21487ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021488if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21490
21491fi
21492
21493else
cristy8b350f62009-11-15 23:12:43 +000021494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021495$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021496if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021497 $as_echo_n "(cached) " >&6
21498else
21499 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021501/* end confdefs.h. */
21502
21503/* Override any GCC internal prototype to avoid an error.
21504 Use char because int might match the return type of a GCC
21505 builtin and then its argument prototype would still apply. */
21506#ifdef __cplusplus
21507extern "C"
21508#endif
21509char opendir ();
21510int
21511main ()
21512{
21513return opendir ();
21514 ;
21515 return 0;
21516}
21517_ACEOF
21518for ac_lib in '' x; do
21519 if test -z "$ac_lib"; then
21520 ac_res="none required"
21521 else
21522 ac_res=-l$ac_lib
21523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21524 fi
cristy8b350f62009-11-15 23:12:43 +000021525 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021526 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021527fi
cristy8b350f62009-11-15 23:12:43 +000021528rm -f core conftest.err conftest.$ac_objext \
21529 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021530 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021531 break
21532fi
21533done
cristyda16f162011-02-19 23:52:17 +000021534if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021535
cristy3ed852e2009-09-05 21:47:34 +000021536else
21537 ac_cv_search_opendir=no
21538fi
21539rm conftest.$ac_ext
21540LIBS=$ac_func_search_save_LIBS
21541fi
cristy8b350f62009-11-15 23:12:43 +000021542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021543$as_echo "$ac_cv_search_opendir" >&6; }
21544ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021545if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21547
21548fi
21549
21550fi
21551
21552
21553# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021554for 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 +000021555do :
21556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21557ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021558if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021559 cat >>confdefs.h <<_ACEOF
21560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21561_ACEOF
21562
21563fi
21564
21565done
21566
21567
21568########
21569#
21570# Checks for typedefs, structures, and compiler characteristics.
21571#
21572########
21573
cristy8b350f62009-11-15 23:12:43 +000021574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021575$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021576if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021577 $as_echo_n "(cached) " >&6
21578else
cristy8b350f62009-11-15 23:12:43 +000021579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021580/* end confdefs.h. */
21581
21582#include <stdbool.h>
21583#ifndef bool
21584 "error: bool is not defined"
21585#endif
21586#ifndef false
21587 "error: false is not defined"
21588#endif
21589#if false
21590 "error: false is not 0"
21591#endif
21592#ifndef true
21593 "error: true is not defined"
21594#endif
21595#if true != 1
21596 "error: true is not 1"
21597#endif
21598#ifndef __bool_true_false_are_defined
21599 "error: __bool_true_false_are_defined is not defined"
21600#endif
21601
21602 struct s { _Bool s: 1; _Bool t; } s;
21603
21604 char a[true == 1 ? 1 : -1];
21605 char b[false == 0 ? 1 : -1];
21606 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21607 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021608 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021609 char f[(_Bool) 0.0 == false ? 1 : -1];
21610 char g[true];
21611 char h[sizeof (_Bool)];
21612 char i[sizeof s.t];
21613 enum { j = false, k = true, l = false * true, m = true * 256 };
21614 /* The following fails for
21615 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21616 _Bool n[m];
21617 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21618 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021619 /* Catch a bug in an HP-UX C compiler. See
21620 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21621 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21622 */
21623 _Bool q = true;
21624 _Bool *pq = &q;
21625
21626int
21627main ()
21628{
21629
cristyda16f162011-02-19 23:52:17 +000021630 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021631 *pq |= q;
21632 *pq |= ! q;
21633 /* Refer to every declared value, to avoid compiler optimizations. */
21634 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21635 + !m + !n + !o + !p + !q + !pq);
21636
21637 ;
21638 return 0;
21639}
21640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021641if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021642 ac_cv_header_stdbool_h=yes
21643else
cristy8b350f62009-11-15 23:12:43 +000021644 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021645fi
cristy3ed852e2009-09-05 21:47:34 +000021646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647fi
cristy8b350f62009-11-15 23:12:43 +000021648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021649$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021650ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021651if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021652
21653cat >>confdefs.h <<_ACEOF
21654#define HAVE__BOOL 1
21655_ACEOF
21656
21657
21658fi
21659
21660if test $ac_cv_header_stdbool_h = yes; then
21661
cristy8b350f62009-11-15 23:12:43 +000021662$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021663
21664fi
21665
cristy8b350f62009-11-15 23:12:43 +000021666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021667$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021668if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021669 $as_echo_n "(cached) " >&6
21670else
cristy8b350f62009-11-15 23:12:43 +000021671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021672/* end confdefs.h. */
21673
21674int
21675main ()
21676{
21677
21678volatile int x;
21679int * volatile y = (int *) 0;
21680return !x && !y;
21681 ;
21682 return 0;
21683}
21684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021685if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021686 ac_cv_c_volatile=yes
21687else
cristy8b350f62009-11-15 23:12:43 +000021688 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021689fi
cristy3ed852e2009-09-05 21:47:34 +000021690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691fi
cristy8b350f62009-11-15 23:12:43 +000021692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021693$as_echo "$ac_cv_c_volatile" >&6; }
21694if test $ac_cv_c_volatile = no; then
21695
cristy8b350f62009-11-15 23:12:43 +000021696$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021697
21698fi
21699
cristy8b350f62009-11-15 23:12:43 +000021700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021701$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021702if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 $as_echo_n "(cached) " >&6
21704else
cristy8b350f62009-11-15 23:12:43 +000021705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021706/* end confdefs.h. */
21707#define x(y) #y
21708
21709char *s = x(teststring);
21710_ACEOF
21711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021712 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021713 ac_cv_c_stringize=no
21714else
21715 ac_cv_c_stringize=yes
21716fi
21717rm -f conftest*
21718
21719fi
cristy8b350f62009-11-15 23:12:43 +000021720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021721$as_echo "$ac_cv_c_stringize" >&6; }
21722if test $ac_cv_c_stringize = yes; then
21723
cristy8b350f62009-11-15 23:12:43 +000021724$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021725
21726fi
21727
cristy8b350f62009-11-15 23:12:43 +000021728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021729$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021730if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021731 $as_echo_n "(cached) " >&6
21732else
cristy8b350f62009-11-15 23:12:43 +000021733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021734/* end confdefs.h. */
21735#include <sys/types.h>
21736#include <sys/stat.h>
21737
21738#if defined S_ISBLK && defined S_IFDIR
21739extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21740#endif
21741
21742#if defined S_ISBLK && defined S_IFCHR
21743extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21744#endif
21745
21746#if defined S_ISLNK && defined S_IFREG
21747extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21748#endif
21749
21750#if defined S_ISSOCK && defined S_IFREG
21751extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21752#endif
21753
21754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021755if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021756 ac_cv_header_stat_broken=no
21757else
cristy8b350f62009-11-15 23:12:43 +000021758 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021759fi
cristy3ed852e2009-09-05 21:47:34 +000021760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21761fi
cristy8b350f62009-11-15 23:12:43 +000021762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021763$as_echo "$ac_cv_header_stat_broken" >&6; }
21764if test $ac_cv_header_stat_broken = yes; then
21765
cristy8b350f62009-11-15 23:12:43 +000021766$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021767
21768fi
21769
cristy8b350f62009-11-15 23:12:43 +000021770{ $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 +000021771$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021772if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021773 $as_echo_n "(cached) " >&6
21774else
cristy8b350f62009-11-15 23:12:43 +000021775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021776/* end confdefs.h. */
21777#include <sys/types.h>
21778#include <sys/time.h>
21779#include <time.h>
21780
21781int
21782main ()
21783{
21784if ((struct tm *) 0)
21785return 0;
21786 ;
21787 return 0;
21788}
21789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021790if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021791 ac_cv_header_time=yes
21792else
cristy8b350f62009-11-15 23:12:43 +000021793 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021794fi
cristy3ed852e2009-09-05 21:47:34 +000021795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796fi
cristy8b350f62009-11-15 23:12:43 +000021797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021798$as_echo "$ac_cv_header_time" >&6; }
21799if test $ac_cv_header_time = yes; then
21800
cristy8b350f62009-11-15 23:12:43 +000021801$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021802
21803fi
21804
cristy8b350f62009-11-15 23:12:43 +000021805{ $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 +000021806$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021807if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021808 $as_echo_n "(cached) " >&6
21809else
cristy8b350f62009-11-15 23:12:43 +000021810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021811/* end confdefs.h. */
21812#include <sys/types.h>
21813#include <time.h>
21814
21815int
21816main ()
21817{
21818struct tm tm;
21819 int *p = &tm.tm_sec;
21820 return !p;
21821 ;
21822 return 0;
21823}
21824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021825if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021826 ac_cv_struct_tm=time.h
21827else
cristy8b350f62009-11-15 23:12:43 +000021828 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021829fi
cristy3ed852e2009-09-05 21:47:34 +000021830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831fi
cristy8b350f62009-11-15 23:12:43 +000021832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021833$as_echo "$ac_cv_struct_tm" >&6; }
21834if test $ac_cv_struct_tm = sys/time.h; then
21835
cristy8b350f62009-11-15 23:12:43 +000021836$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021837
21838fi
21839
cristy92703d82010-04-26 00:18:18 +000021840ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21841#include <$ac_cv_struct_tm>
21842
21843"
cristyda16f162011-02-19 23:52:17 +000021844if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021845
21846cat >>confdefs.h <<_ACEOF
21847#define HAVE_STRUCT_TM_TM_ZONE 1
21848_ACEOF
21849
21850
21851fi
21852
21853if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21854
21855$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21856
21857else
21858 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21859"
cristyda16f162011-02-19 23:52:17 +000021860if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021861 ac_have_decl=1
21862else
21863 ac_have_decl=0
21864fi
21865
21866cat >>confdefs.h <<_ACEOF
21867#define HAVE_DECL_TZNAME $ac_have_decl
21868_ACEOF
21869
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21871$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021872if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021873 $as_echo_n "(cached) " >&6
21874else
21875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21876/* end confdefs.h. */
21877#include <time.h>
21878#if !HAVE_DECL_TZNAME
21879extern char *tzname[];
21880#endif
21881
21882int
21883main ()
21884{
21885return tzname[0][0];
21886 ;
21887 return 0;
21888}
21889_ACEOF
21890if ac_fn_c_try_link "$LINENO"; then :
21891 ac_cv_var_tzname=yes
21892else
21893 ac_cv_var_tzname=no
21894fi
21895rm -f core conftest.err conftest.$ac_objext \
21896 conftest$ac_exeext conftest.$ac_ext
21897fi
21898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21899$as_echo "$ac_cv_var_tzname" >&6; }
21900 if test $ac_cv_var_tzname = yes; then
21901
21902$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21903
21904 fi
21905fi
21906
cristy8b350f62009-11-15 23:12:43 +000021907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021908$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021909if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 $as_echo_n "(cached) " >&6
21911else
21912 echo '#! /bin/cat
21913exit 69
21914' >conftest
21915chmod u+x conftest
21916(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21917if test $? -ne 69; then
21918 ac_cv_sys_interpreter=yes
21919else
21920 ac_cv_sys_interpreter=no
21921fi
21922rm -f conftest
21923fi
cristy8b350f62009-11-15 23:12:43 +000021924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021925$as_echo "$ac_cv_sys_interpreter" >&6; }
21926interpval=$ac_cv_sys_interpreter
21927
21928
cristy3ed852e2009-09-05 21:47:34 +000021929# If the C compiler supports the keyword inline, do nothing. Otherwise
21930# define inline to __inline__ or __inline if it accepts one of those,
21931# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021933$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021934if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 $as_echo_n "(cached) " >&6
21936else
21937 ac_cv_c_inline=no
21938for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021940/* end confdefs.h. */
21941#ifndef __cplusplus
21942typedef int foo_t;
21943static $ac_kw foo_t static_foo () {return 0; }
21944$ac_kw foo_t foo () {return 0; }
21945#endif
21946
21947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021948if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021949 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021950fi
cristy3ed852e2009-09-05 21:47:34 +000021951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21952 test "$ac_cv_c_inline" != no && break
21953done
21954
21955fi
cristy8b350f62009-11-15 23:12:43 +000021956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021957$as_echo "$ac_cv_c_inline" >&6; }
21958
cristy3ed852e2009-09-05 21:47:34 +000021959case $ac_cv_c_inline in
21960 inline | yes) ;;
21961 *)
21962 case $ac_cv_c_inline in
21963 no) ac_val=;;
21964 *) ac_val=$ac_cv_c_inline;;
21965 esac
21966 cat >>confdefs.h <<_ACEOF
21967#ifndef __cplusplus
21968#define inline $ac_val
21969#endif
21970_ACEOF
21971 ;;
21972esac
21973
21974
21975# If the C compiler supports the keyword restrict, do nothing. Otherwise
21976# define restrict to __restrict__ or __restrict if it accepts one of those,
21977# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021979$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021980if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021981 $as_echo_n "(cached) " >&6
21982else
21983 ac_cv_c_restrict=no
21984 # The order here caters to the fact that C++ does not require restrict.
21985 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021987/* end confdefs.h. */
21988typedef int * int_ptr;
21989 int foo (int_ptr $ac_kw ip) {
21990 return ip[0];
21991 }
21992int
21993main ()
21994{
21995int s[1];
21996 int * $ac_kw t = s;
21997 t[0] = 0;
21998 return foo(t)
21999 ;
22000 return 0;
22001}
22002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022003if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022004 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022005fi
cristy3ed852e2009-09-05 21:47:34 +000022006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 test "$ac_cv_c_restrict" != no && break
22008 done
22009
22010fi
cristy8b350f62009-11-15 23:12:43 +000022011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022012$as_echo "$ac_cv_c_restrict" >&6; }
22013
cristy3ed852e2009-09-05 21:47:34 +000022014 case $ac_cv_c_restrict in
22015 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022016 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022017 ;;
22018 *) cat >>confdefs.h <<_ACEOF
22019#define restrict $ac_cv_c_restrict
22020_ACEOF
22021 ;;
22022 esac
22023
22024
22025# If words are stored with the most significant byte first (like
22026# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022028$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022029if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022030 $as_echo_n "(cached) " >&6
22031else
22032 ac_cv_c_bigendian=unknown
22033 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022035/* end confdefs.h. */
22036#ifndef __APPLE_CC__
22037 not a universal capable compiler
22038 #endif
22039 typedef int dummy;
22040
22041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022042if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022043
22044 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022045 # there are at least two -arch flags with different values.
22046 ac_arch=
22047 ac_prev=
22048 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22049 if test -n "$ac_prev"; then
22050 case $ac_word in
22051 i?86 | x86_64 | ppc | ppc64)
22052 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22053 ac_arch=$ac_word
22054 else
22055 ac_cv_c_bigendian=universal
22056 break
22057 fi
22058 ;;
22059 esac
22060 ac_prev=
22061 elif test "x$ac_word" = "x-arch"; then
22062 ac_prev=arch
22063 fi
22064 done
cristy3ed852e2009-09-05 21:47:34 +000022065fi
cristy3ed852e2009-09-05 21:47:34 +000022066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22067 if test $ac_cv_c_bigendian = unknown; then
22068 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022070/* end confdefs.h. */
22071#include <sys/types.h>
22072 #include <sys/param.h>
22073
22074int
22075main ()
22076{
22077#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22078 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22079 && LITTLE_ENDIAN)
22080 bogus endian macros
22081 #endif
22082
22083 ;
22084 return 0;
22085}
22086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022088 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022090/* end confdefs.h. */
22091#include <sys/types.h>
22092 #include <sys/param.h>
22093
22094int
22095main ()
22096{
22097#if BYTE_ORDER != BIG_ENDIAN
22098 not big endian
22099 #endif
22100
22101 ;
22102 return 0;
22103}
22104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022105if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022106 ac_cv_c_bigendian=yes
22107else
cristy8b350f62009-11-15 23:12:43 +000022108 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022109fi
cristy3ed852e2009-09-05 21:47:34 +000022110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022111fi
cristy3ed852e2009-09-05 21:47:34 +000022112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113 fi
22114 if test $ac_cv_c_bigendian = unknown; then
22115 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022117/* end confdefs.h. */
22118#include <limits.h>
22119
22120int
22121main ()
22122{
22123#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22124 bogus endian macros
22125 #endif
22126
22127 ;
22128 return 0;
22129}
22130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022131if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022132 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022134/* end confdefs.h. */
22135#include <limits.h>
22136
22137int
22138main ()
22139{
22140#ifndef _BIG_ENDIAN
22141 not big endian
22142 #endif
22143
22144 ;
22145 return 0;
22146}
22147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022148if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022149 ac_cv_c_bigendian=yes
22150else
cristy8b350f62009-11-15 23:12:43 +000022151 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022152fi
cristy3ed852e2009-09-05 21:47:34 +000022153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022154fi
cristy3ed852e2009-09-05 21:47:34 +000022155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 fi
22157 if test $ac_cv_c_bigendian = unknown; then
22158 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022159 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022160 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022162/* end confdefs.h. */
22163short int ascii_mm[] =
22164 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22165 short int ascii_ii[] =
22166 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22167 int use_ascii (int i) {
22168 return ascii_mm[i] + ascii_ii[i];
22169 }
22170 short int ebcdic_ii[] =
22171 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22172 short int ebcdic_mm[] =
22173 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22174 int use_ebcdic (int i) {
22175 return ebcdic_mm[i] + ebcdic_ii[i];
22176 }
22177 extern int foo;
22178
22179int
22180main ()
22181{
22182return use_ascii (foo) == use_ebcdic (foo);
22183 ;
22184 return 0;
22185}
22186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022187if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022188 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22189 ac_cv_c_bigendian=yes
22190 fi
22191 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22192 if test "$ac_cv_c_bigendian" = unknown; then
22193 ac_cv_c_bigendian=no
22194 else
22195 # finding both strings is unlikely to happen, but who knows?
22196 ac_cv_c_bigendian=unknown
22197 fi
22198 fi
cristy3ed852e2009-09-05 21:47:34 +000022199fi
cristy3ed852e2009-09-05 21:47:34 +000022200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22201else
cristy8b350f62009-11-15 23:12:43 +000022202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022203/* end confdefs.h. */
22204$ac_includes_default
22205int
22206main ()
22207{
22208
22209 /* Are we little or big endian? From Harbison&Steele. */
22210 union
22211 {
22212 long int l;
22213 char c[sizeof (long int)];
22214 } u;
22215 u.l = 1;
22216 return u.c[sizeof (long int) - 1] == 1;
22217
22218 ;
22219 return 0;
22220}
22221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022222if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022223 ac_cv_c_bigendian=no
22224else
cristy8b350f62009-11-15 23:12:43 +000022225 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022226fi
cristy8b350f62009-11-15 23:12:43 +000022227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22228 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022229fi
22230
cristy3ed852e2009-09-05 21:47:34 +000022231 fi
22232fi
cristy8b350f62009-11-15 23:12:43 +000022233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022234$as_echo "$ac_cv_c_bigendian" >&6; }
22235 case $ac_cv_c_bigendian in #(
22236 yes)
cristy8b350f62009-11-15 23:12:43 +000022237 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022238;; #(
22239 no)
22240 ;; #(
22241 universal)
22242
cristy8b350f62009-11-15 23:12:43 +000022243$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022244
22245 ;; #(
22246 *)
cristy98dddb52010-11-04 00:30:15 +000022247 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022248 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022249 esac
22250
22251
22252# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022253ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022254if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022255
cristy3ed852e2009-09-05 21:47:34 +000022256else
22257
22258cat >>confdefs.h <<_ACEOF
22259#define mode_t int
22260_ACEOF
22261
22262fi
22263
22264
22265# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022266ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022267if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022268
cristy3ed852e2009-09-05 21:47:34 +000022269else
22270
22271cat >>confdefs.h <<_ACEOF
22272#define off_t long int
22273_ACEOF
22274
22275fi
22276
22277
22278# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022279ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022280if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022281
cristy3ed852e2009-09-05 21:47:34 +000022282else
22283
22284cat >>confdefs.h <<_ACEOF
22285#define pid_t int
22286_ACEOF
22287
22288fi
22289
22290
22291# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022292ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022293if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022294
cristy3ed852e2009-09-05 21:47:34 +000022295else
22296
22297cat >>confdefs.h <<_ACEOF
22298#define size_t unsigned int
22299_ACEOF
22300
22301fi
22302
22303
22304# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022305ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022306if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022307
cristy3ed852e2009-09-05 21:47:34 +000022308else
22309
22310cat >>confdefs.h <<_ACEOF
22311#define ssize_t int
22312_ACEOF
22313
22314fi
22315
22316
22317# If the C compiler supports a working long double type with more range
22318# or precision than the double type, define HAVE_LONG_DOUBLE.
22319
cristy8b350f62009-11-15 23:12:43 +000022320 { $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 +000022321$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022322if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022323 $as_echo_n "(cached) " >&6
22324else
cristy8b350f62009-11-15 23:12:43 +000022325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022326/* end confdefs.h. */
22327#include <float.h>
22328 long double const a[] =
22329 {
22330 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22331 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22332 };
22333 long double
22334 f (long double x)
22335 {
22336 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22337 + (x ? f (x) : 'c'));
22338 }
22339
22340int
22341main ()
22342{
22343static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22344 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22345 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22346 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22347 && (int) LDBL_EPSILON == 0
22348 )];
22349test_array [0] = 0
22350
22351 ;
22352 return 0;
22353}
22354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022355if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022356 ac_cv_type_long_double_wider=yes
22357else
cristy8b350f62009-11-15 23:12:43 +000022358 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022359fi
cristy3ed852e2009-09-05 21:47:34 +000022360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361fi
cristy8b350f62009-11-15 23:12:43 +000022362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022363$as_echo "$ac_cv_type_long_double_wider" >&6; }
22364 if test $ac_cv_type_long_double_wider = yes; then
22365
cristy8b350f62009-11-15 23:12:43 +000022366$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022367
22368 fi
22369
22370
22371# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22372# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022374$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022375if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022376 $as_echo_n "(cached) " >&6
22377else
cristy8b350f62009-11-15 23:12:43 +000022378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022379/* end confdefs.h. */
22380$ac_includes_default
22381int
22382main ()
22383{
22384static int test_array [1 - 2 * !(((char) -1) < 0)];
22385test_array [0] = 0
22386
22387 ;
22388 return 0;
22389}
22390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022391if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022392 ac_cv_c_char_unsigned=no
22393else
cristy8b350f62009-11-15 23:12:43 +000022394 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022395fi
cristy3ed852e2009-09-05 21:47:34 +000022396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397fi
cristy8b350f62009-11-15 23:12:43 +000022398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022399$as_echo "$ac_cv_c_char_unsigned" >&6; }
22400if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022401 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022402
22403fi
22404
22405
22406# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22407# The cast to long int works around a bug in the HP C Compiler
22408# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22409# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22410# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022412$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022413if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022414 $as_echo_n "(cached) " >&6
22415else
cristy8b350f62009-11-15 23:12:43 +000022416 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 +000022417
cristy3ed852e2009-09-05 21:47:34 +000022418else
cristy8b350f62009-11-15 23:12:43 +000022419 if test "$ac_cv_type_signed_short" = yes; then
22420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022422as_fn_error 77 "cannot compute sizeof (signed short)
22423See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022424 else
22425 ac_cv_sizeof_signed_short=0
22426 fi
22427fi
cristy8b350f62009-11-15 23:12:43 +000022428
cristy3ed852e2009-09-05 21:47:34 +000022429fi
cristy8b350f62009-11-15 23:12:43 +000022430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022431$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22432
22433
22434
22435cat >>confdefs.h <<_ACEOF
22436#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22437_ACEOF
22438
22439
22440
22441# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22442# The cast to long int works around a bug in the HP C Compiler
22443# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22444# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22445# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022447$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022448if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022449 $as_echo_n "(cached) " >&6
22450else
cristy8b350f62009-11-15 23:12:43 +000022451 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 +000022452
cristy3ed852e2009-09-05 21:47:34 +000022453else
cristy8b350f62009-11-15 23:12:43 +000022454 if test "$ac_cv_type_unsigned_short" = yes; then
22455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022457as_fn_error 77 "cannot compute sizeof (unsigned short)
22458See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022459 else
22460 ac_cv_sizeof_unsigned_short=0
22461 fi
22462fi
cristy8b350f62009-11-15 23:12:43 +000022463
cristy3ed852e2009-09-05 21:47:34 +000022464fi
cristy8b350f62009-11-15 23:12:43 +000022465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022466$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22467
22468
22469
22470cat >>confdefs.h <<_ACEOF
22471#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22472_ACEOF
22473
22474
22475
22476# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22477# The cast to long int works around a bug in the HP C Compiler
22478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22480# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022482$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022483if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022484 $as_echo_n "(cached) " >&6
22485else
cristy8b350f62009-11-15 23:12:43 +000022486 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 +000022487
cristy3ed852e2009-09-05 21:47:34 +000022488else
cristy8b350f62009-11-15 23:12:43 +000022489 if test "$ac_cv_type_signed_int" = yes; then
22490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022492as_fn_error 77 "cannot compute sizeof (signed int)
22493See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022494 else
22495 ac_cv_sizeof_signed_int=0
22496 fi
22497fi
cristy8b350f62009-11-15 23:12:43 +000022498
cristy3ed852e2009-09-05 21:47:34 +000022499fi
cristy8b350f62009-11-15 23:12:43 +000022500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022501$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22502
22503
22504
22505cat >>confdefs.h <<_ACEOF
22506#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22507_ACEOF
22508
22509
22510
22511# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22512# The cast to long int works around a bug in the HP C Compiler
22513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22515# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022517$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022518if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022519 $as_echo_n "(cached) " >&6
22520else
cristy8b350f62009-11-15 23:12:43 +000022521 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 +000022522
cristy3ed852e2009-09-05 21:47:34 +000022523else
cristy8b350f62009-11-15 23:12:43 +000022524 if test "$ac_cv_type_unsigned_int" = yes; then
22525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022527as_fn_error 77 "cannot compute sizeof (unsigned int)
22528See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022529 else
22530 ac_cv_sizeof_unsigned_int=0
22531 fi
22532fi
cristy8b350f62009-11-15 23:12:43 +000022533
cristy3ed852e2009-09-05 21:47:34 +000022534fi
cristy8b350f62009-11-15 23:12:43 +000022535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022536$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22537
22538
22539
22540cat >>confdefs.h <<_ACEOF
22541#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22542_ACEOF
22543
22544
22545
22546# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22547# The cast to long int works around a bug in the HP C Compiler
22548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22550# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022552$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022553if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022554 $as_echo_n "(cached) " >&6
22555else
cristy8b350f62009-11-15 23:12:43 +000022556 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 +000022557
cristy3ed852e2009-09-05 21:47:34 +000022558else
cristy8b350f62009-11-15 23:12:43 +000022559 if test "$ac_cv_type_signed_long" = yes; then
22560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022562as_fn_error 77 "cannot compute sizeof (signed long)
22563See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022564 else
22565 ac_cv_sizeof_signed_long=0
22566 fi
22567fi
cristy8b350f62009-11-15 23:12:43 +000022568
cristy3ed852e2009-09-05 21:47:34 +000022569fi
cristy8b350f62009-11-15 23:12:43 +000022570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022571$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22572
22573
22574
22575cat >>confdefs.h <<_ACEOF
22576#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22577_ACEOF
22578
22579
22580
22581# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22582# The cast to long int works around a bug in the HP C Compiler
22583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22585# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022587$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022588if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022589 $as_echo_n "(cached) " >&6
22590else
cristy8b350f62009-11-15 23:12:43 +000022591 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 +000022592
cristy3ed852e2009-09-05 21:47:34 +000022593else
cristy8b350f62009-11-15 23:12:43 +000022594 if test "$ac_cv_type_unsigned_long" = yes; then
22595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022597as_fn_error 77 "cannot compute sizeof (unsigned long)
22598See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022599 else
22600 ac_cv_sizeof_unsigned_long=0
22601 fi
22602fi
cristy8b350f62009-11-15 23:12:43 +000022603
cristy3ed852e2009-09-05 21:47:34 +000022604fi
cristy8b350f62009-11-15 23:12:43 +000022605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022606$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22607
22608
22609
22610cat >>confdefs.h <<_ACEOF
22611#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22612_ACEOF
22613
22614
22615
22616# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22617# 'signed long long' is not supported then the value defined is zero.
22618# The cast to long int works around a bug in the HP C Compiler
22619# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22620# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22621# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022623$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022624if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022625 $as_echo_n "(cached) " >&6
22626else
cristy8b350f62009-11-15 23:12:43 +000022627 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 +000022628
cristy3ed852e2009-09-05 21:47:34 +000022629else
cristy8b350f62009-11-15 23:12:43 +000022630 if test "$ac_cv_type_signed_long_long" = yes; then
22631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022633as_fn_error 77 "cannot compute sizeof (signed long long)
22634See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022635 else
22636 ac_cv_sizeof_signed_long_long=0
22637 fi
22638fi
cristy8b350f62009-11-15 23:12:43 +000022639
cristy3ed852e2009-09-05 21:47:34 +000022640fi
cristy8b350f62009-11-15 23:12:43 +000022641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022642$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22643
22644
22645
22646cat >>confdefs.h <<_ACEOF
22647#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22648_ACEOF
22649
22650
22651
22652# Obtain size of a 'unsigned long long' and define as
22653# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22654# supported then the value defined is zero.
22655# The cast to long int works around a bug in the HP C Compiler
22656# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22657# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22658# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022660$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022661if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022662 $as_echo_n "(cached) " >&6
22663else
cristy8b350f62009-11-15 23:12:43 +000022664 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 +000022665
cristy3ed852e2009-09-05 21:47:34 +000022666else
cristy8b350f62009-11-15 23:12:43 +000022667 if test "$ac_cv_type_unsigned_long_long" = yes; then
22668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022670as_fn_error 77 "cannot compute sizeof (unsigned long long)
22671See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022672 else
22673 ac_cv_sizeof_unsigned_long_long=0
22674 fi
22675fi
cristy8b350f62009-11-15 23:12:43 +000022676
cristy3ed852e2009-09-05 21:47:34 +000022677fi
cristy8b350f62009-11-15 23:12:43 +000022678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022679$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22680
22681
22682
22683cat >>confdefs.h <<_ACEOF
22684#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22685_ACEOF
22686
22687
22688
22689# Obtain size of off_t and define as SIZEOF_OFF_T
22690# The cast to long int works around a bug in the HP C Compiler
22691# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22692# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22693# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022695$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022696if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022697 $as_echo_n "(cached) " >&6
22698else
cristy8b350f62009-11-15 23:12:43 +000022699 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 +000022700
cristy3ed852e2009-09-05 21:47:34 +000022701else
cristy8b350f62009-11-15 23:12:43 +000022702 if test "$ac_cv_type_off_t" = yes; then
22703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022705as_fn_error 77 "cannot compute sizeof (off_t)
22706See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022707 else
22708 ac_cv_sizeof_off_t=0
22709 fi
22710fi
cristy8b350f62009-11-15 23:12:43 +000022711
cristy3ed852e2009-09-05 21:47:34 +000022712fi
cristy8b350f62009-11-15 23:12:43 +000022713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022714$as_echo "$ac_cv_sizeof_off_t" >&6; }
22715
22716
22717
22718cat >>confdefs.h <<_ACEOF
22719#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22720_ACEOF
22721
22722
22723
22724# Obtain size of size_t and define as SIZEOF_SIZE_T
22725# The cast to long int works around a bug in the HP C Compiler
22726# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22727# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22728# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022730$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022731if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022732 $as_echo_n "(cached) " >&6
22733else
cristy8b350f62009-11-15 23:12:43 +000022734 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 +000022735
cristy3ed852e2009-09-05 21:47:34 +000022736else
cristy8b350f62009-11-15 23:12:43 +000022737 if test "$ac_cv_type_size_t" = yes; then
22738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022740as_fn_error 77 "cannot compute sizeof (size_t)
22741See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022742 else
22743 ac_cv_sizeof_size_t=0
22744 fi
22745fi
cristy8b350f62009-11-15 23:12:43 +000022746
cristy3ed852e2009-09-05 21:47:34 +000022747fi
cristy8b350f62009-11-15 23:12:43 +000022748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022749$as_echo "$ac_cv_sizeof_size_t" >&6; }
22750
22751
22752
22753cat >>confdefs.h <<_ACEOF
22754#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22755_ACEOF
22756
22757
22758
cristy330e9352010-06-01 18:42:49 +000022759# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22760# The cast to long int works around a bug in the HP C Compiler
22761# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22762# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22763# This bug is HP SR number 8606223364.
22764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22765$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022766if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022767 $as_echo_n "(cached) " >&6
22768else
22769 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22770
22771else
22772 if test "$ac_cv_type_ssize_t" = yes; then
22773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022775as_fn_error 77 "cannot compute sizeof (ssize_t)
22776See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022777 else
22778 ac_cv_sizeof_ssize_t=0
22779 fi
22780fi
22781
22782fi
22783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22784$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22785
22786
22787
22788cat >>confdefs.h <<_ACEOF
22789#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22790_ACEOF
22791
22792
22793
cristy3ed852e2009-09-05 21:47:34 +000022794# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22795# The cast to long int works around a bug in the HP C Compiler
22796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22798# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022800$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022801if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022802 $as_echo_n "(cached) " >&6
22803else
cristy8b350f62009-11-15 23:12:43 +000022804 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 +000022805
cristy3ed852e2009-09-05 21:47:34 +000022806else
cristy8b350f62009-11-15 23:12:43 +000022807 if test "$ac_cv_type_unsigned_intp" = yes; then
22808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022810as_fn_error 77 "cannot compute sizeof (unsigned int*)
22811See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022812 else
22813 ac_cv_sizeof_unsigned_intp=0
22814 fi
22815fi
cristy8b350f62009-11-15 23:12:43 +000022816
cristy3ed852e2009-09-05 21:47:34 +000022817fi
cristy8b350f62009-11-15 23:12:43 +000022818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022819$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22820
22821
22822
22823cat >>confdefs.h <<_ACEOF
22824#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22825_ACEOF
22826
22827
22828
22829#
22830# Compute sized types for current CPU and compiler options.
22831#
22832
cristy8b350f62009-11-15 23:12:43 +000022833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022834$as_echo_n "checking for signed 8-bit type... " >&6; }
22835INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022837$as_echo "$INT8_T" >&6; }
22838
22839
cristy8b350f62009-11-15 23:12:43 +000022840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22842UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022844$as_echo "$UINT8_T" >&6; }
22845
22846
cristy8b350f62009-11-15 23:12:43 +000022847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022848$as_echo_n "checking for signed 16-bit type... " >&6; }
22849INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022851$as_echo "$INT16_T" >&6; }
22852
22853
cristy8b350f62009-11-15 23:12:43 +000022854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022855$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22856UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo "$UINT16_T" >&6; }
22859
22860
cristy8b350f62009-11-15 23:12:43 +000022861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022862$as_echo_n "checking for signed 32-bit type... " >&6; }
22863INT32_T='none'
22864if test $ac_cv_sizeof_signed_int -eq 4; then
22865 INT32_T='signed int'
22866elif test $ac_cv_sizeof_signed_long -eq 4; then
22867 INT32_T='signed long'
22868fi
cristy8b350f62009-11-15 23:12:43 +000022869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo "$INT32_T" >&6; }
22871
22872
cristy8b350f62009-11-15 23:12:43 +000022873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022874$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22875UINT32_T='none'
22876if test $ac_cv_sizeof_unsigned_int -eq 4; then
22877 UINT32_T='unsigned int'
22878elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22879 UINT32_T='unsigned long'
22880fi
cristy8b350f62009-11-15 23:12:43 +000022881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022882$as_echo "$UINT32_T" >&6; }
22883
22884
cristy8b350f62009-11-15 23:12:43 +000022885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022886$as_echo_n "checking for signed 64-bit type... " >&6; }
22887INT64_T='none'
22888if test $ac_cv_sizeof_signed_long -eq 8; then
22889 INT64_T='signed long'
22890elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22891 INT64_T='signed long long'
22892fi
cristy8b350f62009-11-15 23:12:43 +000022893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022894$as_echo "$INT64_T" >&6; }
22895
22896
cristy8b350f62009-11-15 23:12:43 +000022897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022898$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22899UINT64_T='none'
22900if test $ac_cv_sizeof_unsigned_long -eq 8; then
22901 UINT64_T='unsigned long'
22902elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22903 UINT64_T='unsigned long long'
22904fi
cristy8b350f62009-11-15 23:12:43 +000022905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022906$as_echo "$UINT64_T" >&6; }
22907
22908
cristy8b350f62009-11-15 23:12:43 +000022909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022910$as_echo_n "checking for unsigned maximum type... " >&6; }
22911UINTMAX_T='none'
22912if test "$UINT64_T" != 'none'; then
22913 UINTMAX_T=$UINT64_T
22914elif test "$UINT32_T" != 'none'; then
22915 UINTMAX_T=$UINT32_T
22916fi
cristy8b350f62009-11-15 23:12:43 +000022917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022918$as_echo "$UINTMAX_T" >&6; }
22919
22920
cristy8b350f62009-11-15 23:12:43 +000022921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022922$as_echo_n "checking for pointer difference type... " >&6; }
22923UINTPTR_T='none'
22924if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22925 UINTPTR_T='unsigned long'
22926elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22927 UINTPTR_T='unsigned long long'
22928fi
cristy8b350f62009-11-15 23:12:43 +000022929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022930$as_echo "$UINTPTR_T" >&6; }
22931
22932
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022936/* end confdefs.h. */
22937
22938int
22939main ()
22940{
22941{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22942 ;
22943 return 0;
22944}
22945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022946if ac_fn_c_try_compile "$LINENO"; then :
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022948$as_echo "yes" >&6; }
22949else
cristy8b350f62009-11-15 23:12:43 +000022950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022951$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022953$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022955/* end confdefs.h. */
22956
22957int
22958main ()
22959{
22960{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22961 ;
22962 return 0;
22963}
22964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022965if ac_fn_c_try_compile "$LINENO"; then :
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022967$as_echo "yes" >&6; }
22968
cristy8b350f62009-11-15 23:12:43 +000022969$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022970
22971else
cristy8b350f62009-11-15 23:12:43 +000022972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022973$as_echo "no" >&6; }
22974
cristy8b350f62009-11-15 23:12:43 +000022975$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022976
22977fi
cristy3ed852e2009-09-05 21:47:34 +000022978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979fi
cristy3ed852e2009-09-05 21:47:34 +000022980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981
22982########
22983#
22984# Check for functions
22985#
22986########
cristy73bd4a52010-10-05 11:24:23 +000022987for ac_header in stdlib.h unistd.h
22988do :
22989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22990ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022992 cat >>confdefs.h <<_ACEOF
22993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22994_ACEOF
22995
22996fi
22997
22998done
22999
23000for ac_func in getpagesize
23001do :
23002 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023003if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023004 cat >>confdefs.h <<_ACEOF
23005#define HAVE_GETPAGESIZE 1
23006_ACEOF
23007
23008fi
23009done
23010
23011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23012$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023013if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023014 $as_echo_n "(cached) " >&6
23015else
23016 if test "$cross_compiling" = yes; then :
23017 magick_cv_func_mmap_fileio=no
23018else
23019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23020/* end confdefs.h. */
23021$ac_includes_default
23022/* malloc might have been renamed as rpl_malloc. */
23023#undef malloc
23024
23025/*
23026 This test is derived from GNU Autoconf's similar macro.
23027 The purpose of this test is to verify that files may be memory
23028 mapped, and that memory mapping and file I/O are coherent.
23029
23030 The test creates a test file, memory maps the file, updates
23031 the file using the memory map, and then reads the file using
23032 file I/O to verify that the file contains the updates.
23033*/
23034
23035#include <fcntl.h>
23036#include <sys/mman.h>
23037
23038#if !STDC_HEADERS && !HAVE_STDLIB_H
23039char *malloc ();
23040#endif
23041
23042/* This mess was copied from the GNU getpagesize.h. */
23043#if !HAVE_GETPAGESIZE
23044/* Assume that all systems that can run configure have sys/param.h. */
23045# if !HAVE_SYS_PARAM_H
23046# define HAVE_SYS_PARAM_H 1
23047# endif
23048
23049# ifdef _SC_PAGESIZE
23050# define getpagesize() sysconf(_SC_PAGESIZE)
23051# else /* no _SC_PAGESIZE */
23052# if HAVE_SYS_PARAM_H
23053# include <sys/param.h>
23054# ifdef EXEC_PAGESIZE
23055# define getpagesize() EXEC_PAGESIZE
23056# else /* no EXEC_PAGESIZE */
23057# ifdef NBPG
23058# define getpagesize() NBPG * CLSIZE
23059# ifndef CLSIZE
23060# define CLSIZE 1
23061# endif /* no CLSIZE */
23062# else /* no NBPG */
23063# ifdef NBPC
23064# define getpagesize() NBPC
23065# else /* no NBPC */
23066# ifdef PAGESIZE
23067# define getpagesize() PAGESIZE
23068# endif /* PAGESIZE */
23069# endif /* no NBPC */
23070# endif /* no NBPG */
23071# endif /* no EXEC_PAGESIZE */
23072# else /* no HAVE_SYS_PARAM_H */
23073# define getpagesize() 8192 /* punt totally */
23074# endif /* no HAVE_SYS_PARAM_H */
23075# endif /* no _SC_PAGESIZE */
23076
23077#endif /* no HAVE_GETPAGESIZE */
23078
23079int
23080main ()
23081{
23082 char *data, *data2, *data3;
23083 int i, pagesize;
23084 int fd;
23085
23086 pagesize = getpagesize ();
23087
23088 /* First, make a file with some known garbage in it. */
23089 data = (char *) malloc (pagesize);
23090 if (!data)
23091 exit (1);
23092 for (i = 0; i < pagesize; ++i)
23093 *(data + i) = rand ();
23094 umask (0);
23095 fd = creat ("conftest.mmap", 0600);
23096 if (fd < 0)
23097 exit (1);
23098 if (write (fd, data, pagesize) != pagesize)
23099 exit (1);
23100 close (fd);
23101
23102 /* Mmap the file as read/write/shared and verify that we see the
23103 same garbage. */
23104 fd = open ("conftest.mmap", O_RDWR);
23105 if (fd < 0)
23106 exit (1);
23107 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23108 if (data2 == 0)
23109 exit (1);
23110 for (i = 0; i < pagesize; ++i)
23111 if (*(data + i) != *(data2 + i))
23112 exit (1);
23113
23114 /* Finally, make sure that changes to the mapped area
23115 percolate back to the file as seen by read(). */
23116 for (i = 0; i < pagesize; ++i)
23117 *(data2 + i) = *(data2 + i) + 1;
23118 data3 = (char *) malloc (pagesize);
23119 if (!data3)
23120 exit (1);
23121 if (read (fd, data3, pagesize) != pagesize)
23122 exit (1);
23123 for (i = 0; i < pagesize; ++i)
23124 if (*(data2 + i) != *(data3 + i))
23125 exit (1);
23126 close (fd);
23127 exit (0);
23128}
23129_ACEOF
23130if ac_fn_c_try_run "$LINENO"; then :
23131 magick_cv_func_mmap_fileio=yes
23132else
23133 magick_cv_func_mmap_fileio=no
23134fi
23135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23136 conftest.$ac_objext conftest.beam conftest.$ac_ext
23137fi
23138
23139fi
23140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23141$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23142if test $magick_cv_func_mmap_fileio = yes; then
23143
23144$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23145
23146fi
23147rm -f conftest.mmap
23148
cristy8b350f62009-11-15 23:12:43 +000023149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023150$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023151if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 $as_echo_n "(cached) " >&6
23153else
cristy8b350f62009-11-15 23:12:43 +000023154 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023155 ac_cv_func_closedir_void=yes
23156else
cristy8b350f62009-11-15 23:12:43 +000023157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023158/* end confdefs.h. */
23159$ac_includes_default
23160#include <$ac_header_dirent>
23161#ifndef __cplusplus
23162int closedir ();
23163#endif
23164
23165int
23166main ()
23167{
23168return closedir (opendir (".")) != 0;
23169 ;
23170 return 0;
23171}
23172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023173if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023174 ac_cv_func_closedir_void=no
23175else
cristy8b350f62009-11-15 23:12:43 +000023176 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023177fi
cristy8b350f62009-11-15 23:12:43 +000023178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23179 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023180fi
23181
cristy3ed852e2009-09-05 21:47:34 +000023182fi
cristy8b350f62009-11-15 23:12:43 +000023183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023184$as_echo "$ac_cv_func_closedir_void" >&6; }
23185if test $ac_cv_func_closedir_void = yes; then
23186
cristy8b350f62009-11-15 23:12:43 +000023187$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023188
23189fi
23190
cristycd4c5312009-11-22 01:19:08 +000023191
23192
23193
23194 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023195do :
23196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023197ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23198"
cristy98dddb52010-11-04 00:30:15 +000023199if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023200 cat >>confdefs.h <<_ACEOF
23201#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23202_ACEOF
23203
23204fi
23205
23206done
23207
cristycd4c5312009-11-22 01:19:08 +000023208
23209
23210
23211
23212
23213
23214
cristy3ed852e2009-09-05 21:47:34 +000023215for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023216do :
23217 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023218if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023219 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023220#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023221_ACEOF
23222
23223fi
23224done
23225
cristy8b350f62009-11-15 23:12:43 +000023226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023227$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023228if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023229 $as_echo_n "(cached) " >&6
23230else
cristy8b350f62009-11-15 23:12:43 +000023231 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023232 ac_cv_func_mmap_fixed_mapped=no
23233else
cristy8b350f62009-11-15 23:12:43 +000023234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023235/* end confdefs.h. */
23236$ac_includes_default
23237/* malloc might have been renamed as rpl_malloc. */
23238#undef malloc
23239
23240/* Thanks to Mike Haertel and Jim Avera for this test.
23241 Here is a matrix of mmap possibilities:
23242 mmap private not fixed
23243 mmap private fixed at somewhere currently unmapped
23244 mmap private fixed at somewhere already mapped
23245 mmap shared not fixed
23246 mmap shared fixed at somewhere currently unmapped
23247 mmap shared fixed at somewhere already mapped
23248 For private mappings, we should verify that changes cannot be read()
23249 back from the file, nor mmap's back from the file at a different
23250 address. (There have been systems where private was not correctly
23251 implemented like the infamous i386 svr4.0, and systems where the
23252 VM page cache was not coherent with the file system buffer cache
23253 like early versions of FreeBSD and possibly contemporary NetBSD.)
23254 For shared mappings, we should conversely verify that changes get
23255 propagated back to all the places they're supposed to be.
23256
23257 Grep wants private fixed already mapped.
23258 The main things grep needs to know about mmap are:
23259 * does it exist and is it safe to write into the mmap'd area
23260 * how to use it (BSD variants) */
23261
23262#include <fcntl.h>
23263#include <sys/mman.h>
23264
23265#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23266char *malloc ();
23267#endif
23268
23269/* This mess was copied from the GNU getpagesize.h. */
23270#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023271# ifdef _SC_PAGESIZE
23272# define getpagesize() sysconf(_SC_PAGESIZE)
23273# else /* no _SC_PAGESIZE */
23274# ifdef HAVE_SYS_PARAM_H
23275# include <sys/param.h>
23276# ifdef EXEC_PAGESIZE
23277# define getpagesize() EXEC_PAGESIZE
23278# else /* no EXEC_PAGESIZE */
23279# ifdef NBPG
23280# define getpagesize() NBPG * CLSIZE
23281# ifndef CLSIZE
23282# define CLSIZE 1
23283# endif /* no CLSIZE */
23284# else /* no NBPG */
23285# ifdef NBPC
23286# define getpagesize() NBPC
23287# else /* no NBPC */
23288# ifdef PAGESIZE
23289# define getpagesize() PAGESIZE
23290# endif /* PAGESIZE */
23291# endif /* no NBPC */
23292# endif /* no NBPG */
23293# endif /* no EXEC_PAGESIZE */
23294# else /* no HAVE_SYS_PARAM_H */
23295# define getpagesize() 8192 /* punt totally */
23296# endif /* no HAVE_SYS_PARAM_H */
23297# endif /* no _SC_PAGESIZE */
23298
23299#endif /* no HAVE_GETPAGESIZE */
23300
23301int
23302main ()
23303{
23304 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023305 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023306 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023307 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023308
23309 pagesize = getpagesize ();
23310
23311 /* First, make a file with some known garbage in it. */
23312 data = (char *) malloc (pagesize);
23313 if (!data)
23314 return 1;
23315 for (i = 0; i < pagesize; ++i)
23316 *(data + i) = rand ();
23317 umask (0);
23318 fd = creat ("conftest.mmap", 0600);
23319 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023320 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023321 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023322 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023323 close (fd);
23324
cristycd4c5312009-11-22 01:19:08 +000023325 /* Next, check that the tail of a page is zero-filled. File must have
23326 non-zero length, otherwise we risk SIGBUS for entire page. */
23327 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23328 if (fd2 < 0)
23329 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023330 cdata2 = "";
23331 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023332 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023333 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023334 if (data2 == MAP_FAILED)
23335 return 6;
23336 for (i = 0; i < pagesize; ++i)
23337 if (*(data2 + i))
23338 return 7;
23339 close (fd2);
23340 if (munmap (data2, pagesize))
23341 return 8;
23342
cristy3ed852e2009-09-05 21:47:34 +000023343 /* Next, try to mmap the file at a fixed address which already has
23344 something else allocated at it. If we can, also make sure that
23345 we see the same garbage. */
23346 fd = open ("conftest.mmap", O_RDWR);
23347 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023348 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023349 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23350 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023351 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023352 for (i = 0; i < pagesize; ++i)
23353 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023354 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023355
23356 /* Finally, make sure that changes to the mapped area do not
23357 percolate back to the file as seen by read(). (This is a bug on
23358 some variants of i386 svr4.0.) */
23359 for (i = 0; i < pagesize; ++i)
23360 *(data2 + i) = *(data2 + i) + 1;
23361 data3 = (char *) malloc (pagesize);
23362 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023363 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023364 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023365 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023366 for (i = 0; i < pagesize; ++i)
23367 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023368 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023369 close (fd);
23370 return 0;
23371}
23372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023373if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023374 ac_cv_func_mmap_fixed_mapped=yes
23375else
cristy8b350f62009-11-15 23:12:43 +000023376 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023377fi
cristy8b350f62009-11-15 23:12:43 +000023378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23379 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023380fi
23381
cristy3ed852e2009-09-05 21:47:34 +000023382fi
cristy8b350f62009-11-15 23:12:43 +000023383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023384$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23385if test $ac_cv_func_mmap_fixed_mapped = yes; then
23386
cristy8b350f62009-11-15 23:12:43 +000023387$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023388
23389fi
cristycd4c5312009-11-22 01:19:08 +000023390rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023391
cristy3ed852e2009-09-05 21:47:34 +000023392for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023393do :
23394 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023395if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023396 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023397#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023398_ACEOF
23399
23400fi
23401
23402done
23403
cristy3ed852e2009-09-05 21:47:34 +000023404for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023405do :
23406 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23407ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023408if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023409 cat >>confdefs.h <<_ACEOF
23410#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23411_ACEOF
23412
23413fi
23414done
23415
23416if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023418$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023419if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023420 $as_echo_n "(cached) " >&6
23421else
cristy8b350f62009-11-15 23:12:43 +000023422 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023423 ac_cv_func_fork_works=cross
23424else
cristy8b350f62009-11-15 23:12:43 +000023425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023426/* end confdefs.h. */
23427$ac_includes_default
23428int
23429main ()
23430{
23431
23432 /* By Ruediger Kuhlmann. */
23433 return fork () < 0;
23434
23435 ;
23436 return 0;
23437}
23438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023439if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023440 ac_cv_func_fork_works=yes
23441else
cristy8b350f62009-11-15 23:12:43 +000023442 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023443fi
cristy8b350f62009-11-15 23:12:43 +000023444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23445 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023446fi
23447
cristy3ed852e2009-09-05 21:47:34 +000023448fi
cristy8b350f62009-11-15 23:12:43 +000023449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023450$as_echo "$ac_cv_func_fork_works" >&6; }
23451
23452else
23453 ac_cv_func_fork_works=$ac_cv_func_fork
23454fi
23455if test "x$ac_cv_func_fork_works" = xcross; then
23456 case $host in
23457 *-*-amigaos* | *-*-msdosdjgpp*)
23458 # Override, as these systems have only a dummy fork() stub
23459 ac_cv_func_fork_works=no
23460 ;;
23461 *)
23462 ac_cv_func_fork_works=yes
23463 ;;
23464 esac
cristy8b350f62009-11-15 23:12:43 +000023465 { $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 +000023466$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23467fi
23468ac_cv_func_vfork_works=$ac_cv_func_vfork
23469if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023471$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023472if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023473 $as_echo_n "(cached) " >&6
23474else
cristy8b350f62009-11-15 23:12:43 +000023475 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023476 ac_cv_func_vfork_works=cross
23477else
cristy8b350f62009-11-15 23:12:43 +000023478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023479/* end confdefs.h. */
23480/* Thanks to Paul Eggert for this test. */
23481$ac_includes_default
23482#include <sys/wait.h>
23483#ifdef HAVE_VFORK_H
23484# include <vfork.h>
23485#endif
23486/* On some sparc systems, changes by the child to local and incoming
23487 argument registers are propagated back to the parent. The compiler
23488 is told about this with #include <vfork.h>, but some compilers
23489 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23490 static variable whose address is put into a register that is
23491 clobbered by the vfork. */
23492static void
23493#ifdef __cplusplus
23494sparc_address_test (int arg)
23495# else
23496sparc_address_test (arg) int arg;
23497#endif
23498{
23499 static pid_t child;
23500 if (!child) {
23501 child = vfork ();
23502 if (child < 0) {
23503 perror ("vfork");
23504 _exit(2);
23505 }
23506 if (!child) {
23507 arg = getpid();
23508 write(-1, "", 0);
23509 _exit (arg);
23510 }
23511 }
23512}
23513
23514int
23515main ()
23516{
23517 pid_t parent = getpid ();
23518 pid_t child;
23519
23520 sparc_address_test (0);
23521
23522 child = vfork ();
23523
23524 if (child == 0) {
23525 /* Here is another test for sparc vfork register problems. This
23526 test uses lots of local variables, at least as many local
23527 variables as main has allocated so far including compiler
23528 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23529 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23530 reuse the register of parent for one of the local variables,
23531 since it will think that parent can't possibly be used any more
23532 in this routine. Assigning to the local variable will thus
23533 munge parent in the parent process. */
23534 pid_t
23535 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23536 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23537 /* Convince the compiler that p..p7 are live; otherwise, it might
23538 use the same hardware register for all 8 local variables. */
23539 if (p != p1 || p != p2 || p != p3 || p != p4
23540 || p != p5 || p != p6 || p != p7)
23541 _exit(1);
23542
23543 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23544 from child file descriptors. If the child closes a descriptor
23545 before it execs or exits, this munges the parent's descriptor
23546 as well. Test for this by closing stdout in the child. */
23547 _exit(close(fileno(stdout)) != 0);
23548 } else {
23549 int status;
23550 struct stat st;
23551
23552 while (wait(&status) != child)
23553 ;
23554 return (
23555 /* Was there some problem with vforking? */
23556 child < 0
23557
23558 /* Did the child fail? (This shouldn't happen.) */
23559 || status
23560
23561 /* Did the vfork/compiler bug occur? */
23562 || parent != getpid()
23563
23564 /* Did the file descriptor bug occur? */
23565 || fstat(fileno(stdout), &st) != 0
23566 );
23567 }
23568}
23569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023570if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023571 ac_cv_func_vfork_works=yes
23572else
cristy8b350f62009-11-15 23:12:43 +000023573 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023574fi
cristy8b350f62009-11-15 23:12:43 +000023575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23576 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023577fi
23578
cristy3ed852e2009-09-05 21:47:34 +000023579fi
cristy8b350f62009-11-15 23:12:43 +000023580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo "$ac_cv_func_vfork_works" >&6; }
23582
23583fi;
23584if test "x$ac_cv_func_fork_works" = xcross; then
23585 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023586 { $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 +000023587$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23588fi
23589
23590if test "x$ac_cv_func_vfork_works" = xyes; then
23591
cristy8b350f62009-11-15 23:12:43 +000023592$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023593
23594else
23595
cristy8b350f62009-11-15 23:12:43 +000023596$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023597
23598fi
23599if test "x$ac_cv_func_fork_works" = xyes; then
23600
cristy8b350f62009-11-15 23:12:43 +000023601$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023602
23603fi
23604
cristy8b350f62009-11-15 23:12:43 +000023605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023606$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023607if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023608 $as_echo_n "(cached) " >&6
23609else
cristy8b350f62009-11-15 23:12:43 +000023610 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023611 ac_cv_func_memcmp_working=no
23612else
cristy8b350f62009-11-15 23:12:43 +000023613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023614/* end confdefs.h. */
23615$ac_includes_default
23616int
23617main ()
23618{
23619
23620 /* Some versions of memcmp are not 8-bit clean. */
23621 char c0 = '\100', c1 = '\200', c2 = '\201';
23622 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23623 return 1;
23624
23625 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23626 or more and with at least one buffer not starting on a 4-byte boundary.
23627 William Lewis provided this test program. */
23628 {
23629 char foo[21];
23630 char bar[21];
23631 int i;
23632 for (i = 0; i < 4; i++)
23633 {
23634 char *a = foo + i;
23635 char *b = bar + i;
23636 strcpy (a, "--------01111111");
23637 strcpy (b, "--------10000000");
23638 if (memcmp (a, b, 16) >= 0)
23639 return 1;
23640 }
23641 return 0;
23642 }
23643
23644 ;
23645 return 0;
23646}
23647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023648if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023649 ac_cv_func_memcmp_working=yes
23650else
cristy8b350f62009-11-15 23:12:43 +000023651 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023652fi
cristy8b350f62009-11-15 23:12:43 +000023653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23654 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023655fi
23656
cristy3ed852e2009-09-05 21:47:34 +000023657fi
cristy8b350f62009-11-15 23:12:43 +000023658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023659$as_echo "$ac_cv_func_memcmp_working" >&6; }
23660test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23661 *" memcmp.$ac_objext "* ) ;;
23662 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23663 ;;
23664esac
23665
23666
cristy3ed852e2009-09-05 21:47:34 +000023667for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023668do :
23669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23670ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023672 cat >>confdefs.h <<_ACEOF
23673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23674_ACEOF
23675
23676fi
23677
23678done
23679
cristy8b350f62009-11-15 23:12:43 +000023680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023682if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023683 $as_echo_n "(cached) " >&6
23684else
23685 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23686 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23687 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023689/* end confdefs.h. */
23690$ac_includes_default
23691#ifdef HAVE_SYS_SELECT_H
23692# include <sys/select.h>
23693#endif
23694#ifdef HAVE_SYS_SOCKET_H
23695# include <sys/socket.h>
23696#endif
23697
23698int
23699main ()
23700{
23701extern int select ($ac_arg1,
23702 $ac_arg234, $ac_arg234, $ac_arg234,
23703 $ac_arg5);
23704 ;
23705 return 0;
23706}
23707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023708if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023709 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023710fi
cristy3ed852e2009-09-05 21:47:34 +000023711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 done
23713 done
23714done
23715# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023716: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023717
23718fi
cristy8b350f62009-11-15 23:12:43 +000023719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023720$as_echo "$ac_cv_func_select_args" >&6; }
23721ac_save_IFS=$IFS; IFS=','
23722set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23723IFS=$ac_save_IFS
23724shift
23725
23726cat >>confdefs.h <<_ACEOF
23727#define SELECT_TYPE_ARG1 $1
23728_ACEOF
23729
23730
23731cat >>confdefs.h <<_ACEOF
23732#define SELECT_TYPE_ARG234 ($2)
23733_ACEOF
23734
23735
23736cat >>confdefs.h <<_ACEOF
23737#define SELECT_TYPE_ARG5 ($3)
23738_ACEOF
23739
23740rm -f conftest*
23741
cristyda16f162011-02-19 23:52:17 +000023742if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023743 $as_echo_n "(cached) " >&6
23744else
23745 ac_cv_func_setvbuf_reversed=no
23746fi
23747
23748
cristy8b350f62009-11-15 23:12:43 +000023749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023750$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023751if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023752 $as_echo_n "(cached) " >&6
23753else
cristy8b350f62009-11-15 23:12:43 +000023754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023755/* end confdefs.h. */
23756#include <sys/types.h>
23757#include <signal.h>
23758
23759int
23760main ()
23761{
23762return *(signal (0, 0)) (0) == 1;
23763 ;
23764 return 0;
23765}
23766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023767if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023768 ac_cv_type_signal=int
23769else
cristy8b350f62009-11-15 23:12:43 +000023770 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023771fi
cristy3ed852e2009-09-05 21:47:34 +000023772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773fi
cristy8b350f62009-11-15 23:12:43 +000023774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023775$as_echo "$ac_cv_type_signal" >&6; }
23776
23777cat >>confdefs.h <<_ACEOF
23778#define RETSIGTYPE $ac_cv_type_signal
23779_ACEOF
23780
23781
cristy8b350f62009-11-15 23:12:43 +000023782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023783$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023784if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023785 $as_echo_n "(cached) " >&6
23786else
cristy8b350f62009-11-15 23:12:43 +000023787 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023788 ac_cv_func_strtod=no
23789else
cristy8b350f62009-11-15 23:12:43 +000023790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023791/* end confdefs.h. */
23792
23793$ac_includes_default
23794#ifndef strtod
23795double strtod ();
23796#endif
23797int
23798main()
23799{
23800 {
23801 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23802 char *string = " +69";
23803 char *term;
23804 double value;
23805 value = strtod (string, &term);
23806 if (value != 69 || term != (string + 4))
23807 return 1;
23808 }
23809
23810 {
23811 /* Under Solaris 2.4, strtod returns the wrong value for the
23812 terminating character under some conditions. */
23813 char *string = "NaN";
23814 char *term;
23815 strtod (string, &term);
23816 if (term != string && *(term - 1) == 0)
23817 return 1;
23818 }
23819 return 0;
23820}
23821
23822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023823if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023824 ac_cv_func_strtod=yes
23825else
cristy8b350f62009-11-15 23:12:43 +000023826 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023827fi
cristy8b350f62009-11-15 23:12:43 +000023828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23829 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023830fi
23831
cristy3ed852e2009-09-05 21:47:34 +000023832fi
cristy8b350f62009-11-15 23:12:43 +000023833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023834$as_echo "$ac_cv_func_strtod" >&6; }
23835if test $ac_cv_func_strtod = no; then
23836 case " $LIBOBJS " in
23837 *" strtod.$ac_objext "* ) ;;
23838 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23839 ;;
23840esac
23841
cristy8b350f62009-11-15 23:12:43 +000023842ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023843if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023844
cristy3ed852e2009-09-05 21:47:34 +000023845fi
23846
cristy3ed852e2009-09-05 21:47:34 +000023847if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023849$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023850if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023851 $as_echo_n "(cached) " >&6
23852else
23853 ac_check_lib_save_LIBS=$LIBS
23854LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023856/* end confdefs.h. */
23857
23858/* Override any GCC internal prototype to avoid an error.
23859 Use char because int might match the return type of a GCC
23860 builtin and then its argument prototype would still apply. */
23861#ifdef __cplusplus
23862extern "C"
23863#endif
23864char pow ();
23865int
23866main ()
23867{
23868return pow ();
23869 ;
23870 return 0;
23871}
23872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023874 ac_cv_lib_m_pow=yes
23875else
cristy8b350f62009-11-15 23:12:43 +000023876 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023877fi
cristy8b350f62009-11-15 23:12:43 +000023878rm -f core conftest.err conftest.$ac_objext \
23879 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023880LIBS=$ac_check_lib_save_LIBS
23881fi
cristy8b350f62009-11-15 23:12:43 +000023882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023883$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023884if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023885 POW_LIB=-lm
23886else
cristy8b350f62009-11-15 23:12:43 +000023887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023888$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23889fi
23890
23891fi
23892
23893fi
23894
cristy3ed852e2009-09-05 21:47:34 +000023895for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023896do :
23897 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023898if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023899 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023900#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023901_ACEOF
23902
cristy8b350f62009-11-15 23:12:43 +000023903ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023904if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023905
cristy8b350f62009-11-15 23:12:43 +000023906$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023907
23908fi
23909
23910fi
23911done
23912
23913
23914
cristy161b9262010-03-20 19:34:32 +000023915#
23916# Find math library
23917#
23918MATH_LIBS=''
23919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23920$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023921if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023922 $as_echo_n "(cached) " >&6
23923else
23924 ac_check_lib_save_LIBS=$LIBS
23925LIBS="-lm $LIBS"
23926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23927/* end confdefs.h. */
23928
23929/* Override any GCC internal prototype to avoid an error.
23930 Use char because int might match the return type of a GCC
23931 builtin and then its argument prototype would still apply. */
23932#ifdef __cplusplus
23933extern "C"
23934#endif
23935char sqrt ();
23936int
23937main ()
23938{
23939return sqrt ();
23940 ;
23941 return 0;
23942}
23943_ACEOF
23944if ac_fn_c_try_link "$LINENO"; then :
23945 ac_cv_lib_m_sqrt=yes
23946else
23947 ac_cv_lib_m_sqrt=no
23948fi
23949rm -f core conftest.err conftest.$ac_objext \
23950 conftest$ac_exeext conftest.$ac_ext
23951LIBS=$ac_check_lib_save_LIBS
23952fi
23953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23954$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000023955if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000023956 MATH_LIBS="-lm"
23957fi
23958
23959LIBS="$MATH_LIBS $LIBS"
23960
23961
cristy47b022b2011-01-18 22:29:21 +000023962for 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 +000023963do :
23964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23965ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023966if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023967 cat >>confdefs.h <<_ACEOF
23968#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23969_ACEOF
23970
23971fi
23972done
23973
23974
cristye43a45e2009-09-28 14:49:00 +000023975#
23976# Check for clock_gettime().
23977#
cristy8b350f62009-11-15 23:12:43 +000023978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023979$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023980if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000023981 $as_echo_n "(cached) " >&6
23982else
23983 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023985/* end confdefs.h. */
23986
23987/* Override any GCC internal prototype to avoid an error.
23988 Use char because int might match the return type of a GCC
23989 builtin and then its argument prototype would still apply. */
23990#ifdef __cplusplus
23991extern "C"
23992#endif
23993char clock_gettime ();
23994int
23995main ()
23996{
23997return clock_gettime ();
23998 ;
23999 return 0;
24000}
24001_ACEOF
24002for ac_lib in '' rt; do
24003 if test -z "$ac_lib"; then
24004 ac_res="none required"
24005 else
24006 ac_res=-l$ac_lib
24007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24008 fi
cristy8b350f62009-11-15 23:12:43 +000024009 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024010 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024011fi
cristy8b350f62009-11-15 23:12:43 +000024012rm -f core conftest.err conftest.$ac_objext \
24013 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024014 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024015 break
24016fi
24017done
cristyda16f162011-02-19 23:52:17 +000024018if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024019
cristye43a45e2009-09-28 14:49:00 +000024020else
24021 ac_cv_search_clock_gettime=no
24022fi
24023rm conftest.$ac_ext
24024LIBS=$ac_func_search_save_LIBS
24025fi
cristy8b350f62009-11-15 23:12:43 +000024026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024027$as_echo "$ac_cv_search_clock_gettime" >&6; }
24028ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024029if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24031
24032
cristy8b350f62009-11-15 23:12:43 +000024033$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024034
cristy8b350f62009-11-15 23:12:43 +000024035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024036$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024038/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024039
24040 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024041int
24042main ()
24043{
24044clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024045 ;
24046 return 0;
24047}
24048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024049if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024050
cristy8b350f62009-11-15 23:12:43 +000024051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024052$as_echo "yes" >&6; }
24053
cristy8b350f62009-11-15 23:12:43 +000024054$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024055
24056
24057else
cristy8b350f62009-11-15 23:12:43 +000024058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024059$as_echo "no" >&6; }
24060
24061fi
cristye43a45e2009-09-28 14:49:00 +000024062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24063
24064else
24065
cristy8b350f62009-11-15 23:12:43 +000024066 for ac_func in gettimeofday ftime
24067do :
24068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24069ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024070if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024071 cat >>confdefs.h <<_ACEOF
24072#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24073_ACEOF
24074 break
24075fi
24076done
24077
24078
24079
24080fi
24081
24082
cristy3ed852e2009-09-05 21:47:34 +000024083########
24084#
24085# Check for function prototypes
24086#
24087########
24088
cristy8b350f62009-11-15 23:12:43 +000024089ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024090#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024091"
cristyda16f162011-02-19 23:52:17 +000024092if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024093 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024094else
cristy8b350f62009-11-15 23:12:43 +000024095 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024096fi
24097
cristy3ed852e2009-09-05 21:47:34 +000024098cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024099#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024101ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024102#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024103"
cristyda16f162011-02-19 23:52:17 +000024104if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024105 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024106else
cristy8b350f62009-11-15 23:12:43 +000024107 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024108fi
24109
cristy3ed852e2009-09-05 21:47:34 +000024110cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024111#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024112_ACEOF
24113
24114
cristy8b350f62009-11-15 23:12:43 +000024115ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024116#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024117"
cristyda16f162011-02-19 23:52:17 +000024118if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024119 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024120else
cristy8b350f62009-11-15 23:12:43 +000024121 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024122fi
24123
cristy3ed852e2009-09-05 21:47:34 +000024124cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024125#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024126_ACEOF
24127
24128
cristy8b350f62009-11-15 23:12:43 +000024129ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024130#include <stdio.h>
24131#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024132"
cristyda16f162011-02-19 23:52:17 +000024133if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024134 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024135else
cristy8b350f62009-11-15 23:12:43 +000024136 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024137fi
24138
cristy3ed852e2009-09-05 21:47:34 +000024139cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024140#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024141_ACEOF
24142
24143
cristy3ed852e2009-09-05 21:47:34 +000024144########
24145#
24146# C++ Support Tests (For Magick++)
24147#
24148########
24149have_magick_plus_plus='no'
24150if test "$with_magick_plus_plus" = 'yes'; then
24151 OLIBS="$LIBS"
24152 LIBS=''
24153 ac_ext=cpp
24154ac_cpp='$CXXCPP $CPPFLAGS'
24155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24158
24159
24160 # Full set of headers used...
24161 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24162 # functional iomanip iosfwd iostream iterator list string strstream utility
24163 ac_ext=cpp
24164ac_cpp='$CXXCPP $CPPFLAGS'
24165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24168
24169 ac_ext=cpp
24170ac_cpp='$CXXCPP $CPPFLAGS'
24171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24174if test -z "$CXX"; then
24175 if test -n "$CCC"; then
24176 CXX=$CCC
24177 else
24178 if test -n "$ac_tool_prefix"; then
24179 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24180 do
24181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024185if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024186 $as_echo_n "(cached) " >&6
24187else
24188 if test -n "$CXX"; then
24189 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24190else
24191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24192for as_dir in $PATH
24193do
24194 IFS=$as_save_IFS
24195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24198 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200 break 2
24201 fi
24202done
cristy8b350f62009-11-15 23:12:43 +000024203 done
cristy3ed852e2009-09-05 21:47:34 +000024204IFS=$as_save_IFS
24205
24206fi
24207fi
24208CXX=$ac_cv_prog_CXX
24209if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024211$as_echo "$CXX" >&6; }
24212else
cristy8b350f62009-11-15 23:12:43 +000024213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024214$as_echo "no" >&6; }
24215fi
24216
24217
24218 test -n "$CXX" && break
24219 done
24220fi
24221if test -z "$CXX"; then
24222 ac_ct_CXX=$CXX
24223 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24224do
24225 # Extract the first word of "$ac_prog", so it can be a program name with args.
24226set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024229if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024230 $as_echo_n "(cached) " >&6
24231else
24232 if test -n "$ac_ct_CXX"; then
24233 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24234else
24235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24236for as_dir in $PATH
24237do
24238 IFS=$as_save_IFS
24239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24242 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024244 break 2
24245 fi
24246done
cristy8b350f62009-11-15 23:12:43 +000024247 done
cristy3ed852e2009-09-05 21:47:34 +000024248IFS=$as_save_IFS
24249
24250fi
24251fi
24252ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24253if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024255$as_echo "$ac_ct_CXX" >&6; }
24256else
cristy8b350f62009-11-15 23:12:43 +000024257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024258$as_echo "no" >&6; }
24259fi
24260
24261
24262 test -n "$ac_ct_CXX" && break
24263done
24264
24265 if test "x$ac_ct_CXX" = x; then
24266 CXX="g++"
24267 else
24268 case $cross_compiling:$ac_tool_warned in
24269yes:)
cristy8b350f62009-11-15 23:12:43 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24272ac_tool_warned=yes ;;
24273esac
24274 CXX=$ac_ct_CXX
24275 fi
24276fi
24277
24278 fi
24279fi
24280# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024281$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282set X $ac_compile
24283ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024284for ac_option in --version -v -V -qversion; do
24285 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024286case "(($ac_try" in
24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288 *) ac_try_echo=$ac_try;;
24289esac
cristy8b350f62009-11-15 23:12:43 +000024290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24291$as_echo "$ac_try_echo"; } >&5
24292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024293 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024294 if test -s conftest.err; then
24295 sed '10a\
24296... rest of stderr output deleted ...
24297 10q' conftest.err >conftest.er1
24298 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024299 fi
cristycd4c5312009-11-22 01:19:08 +000024300 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }
24303done
cristy3ed852e2009-09-05 21:47:34 +000024304
cristy8b350f62009-11-15 23:12:43 +000024305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024307if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024308 $as_echo_n "(cached) " >&6
24309else
cristy8b350f62009-11-15 23:12:43 +000024310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024311/* end confdefs.h. */
24312
24313int
24314main ()
24315{
24316#ifndef __GNUC__
24317 choke me
24318#endif
24319
24320 ;
24321 return 0;
24322}
24323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024324if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024325 ac_compiler_gnu=yes
24326else
cristy8b350f62009-11-15 23:12:43 +000024327 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024328fi
cristy3ed852e2009-09-05 21:47:34 +000024329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24330ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24331
24332fi
cristy8b350f62009-11-15 23:12:43 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024334$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24335if test $ac_compiler_gnu = yes; then
24336 GXX=yes
24337else
24338 GXX=
24339fi
24340ac_test_CXXFLAGS=${CXXFLAGS+set}
24341ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024343$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024344if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024345 $as_echo_n "(cached) " >&6
24346else
24347 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24348 ac_cxx_werror_flag=yes
24349 ac_cv_prog_cxx_g=no
24350 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024352/* end confdefs.h. */
24353
24354int
24355main ()
24356{
24357
24358 ;
24359 return 0;
24360}
24361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024362if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024363 ac_cv_prog_cxx_g=yes
24364else
cristy8b350f62009-11-15 23:12:43 +000024365 CXXFLAGS=""
24366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024367/* end confdefs.h. */
24368
24369int
24370main ()
24371{
24372
24373 ;
24374 return 0;
24375}
24376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024377if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024378
cristy8b350f62009-11-15 23:12:43 +000024379else
24380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024381 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024383/* end confdefs.h. */
24384
24385int
24386main ()
24387{
24388
24389 ;
24390 return 0;
24391}
24392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024393if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024394 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024395fi
cristy3ed852e2009-09-05 21:47:34 +000024396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24397fi
cristy3ed852e2009-09-05 21:47:34 +000024398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24399fi
cristy3ed852e2009-09-05 21:47:34 +000024400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24401 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24402fi
cristy8b350f62009-11-15 23:12:43 +000024403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024404$as_echo "$ac_cv_prog_cxx_g" >&6; }
24405if test "$ac_test_CXXFLAGS" = set; then
24406 CXXFLAGS=$ac_save_CXXFLAGS
24407elif test $ac_cv_prog_cxx_g = yes; then
24408 if test "$GXX" = yes; then
24409 CXXFLAGS="-g -O2"
24410 else
24411 CXXFLAGS="-g"
24412 fi
24413else
24414 if test "$GXX" = yes; then
24415 CXXFLAGS="-O2"
24416 else
24417 CXXFLAGS=
24418 fi
24419fi
24420ac_ext=cpp
24421ac_cpp='$CXXCPP $CPPFLAGS'
24422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24425
cristy73bd4a52010-10-05 11:24:23 +000024426depcc="$CXX" am_compiler_list=
24427
24428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24429$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024430if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024431 $as_echo_n "(cached) " >&6
24432else
24433 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24434 # We make a subdir and do the tests there. Otherwise we can end up
24435 # making bogus files that we don't know about and never remove. For
24436 # instance it was reported that on HP-UX the gcc test will end up
24437 # making a dummy file named `D' -- because `-MD' means `put the output
24438 # in D'.
24439 mkdir conftest.dir
24440 # Copy depcomp to subdir because otherwise we won't find it if we're
24441 # using a relative directory.
24442 cp "$am_depcomp" conftest.dir
24443 cd conftest.dir
24444 # We will build objects and dependencies in a subdirectory because
24445 # it helps to detect inapplicable dependency modes. For instance
24446 # both Tru64's cc and ICC support -MD to output dependencies as a
24447 # side effect of compilation, but ICC will put the dependencies in
24448 # the current directory while Tru64 will put them in the object
24449 # directory.
24450 mkdir sub
24451
24452 am_cv_CXX_dependencies_compiler_type=none
24453 if test "$am_compiler_list" = ""; then
24454 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24455 fi
24456 am__universal=false
24457 case " $depcc " in #(
24458 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24459 esac
24460
24461 for depmode in $am_compiler_list; do
24462 # Setup a source with many dependencies, because some compilers
24463 # like to wrap large dependency lists on column 80 (with \), and
24464 # we should not choose a depcomp mode which is confused by this.
24465 #
24466 # We need to recreate these files for each test, as the compiler may
24467 # overwrite some of them when testing with obscure command lines.
24468 # This happens at least with the AIX C compiler.
24469 : > sub/conftest.c
24470 for i in 1 2 3 4 5 6; do
24471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24472 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24473 # Solaris 8's {/usr,}/bin/sh.
24474 touch sub/conftst$i.h
24475 done
24476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24477
24478 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24479 # mode. It turns out that the SunPro C++ compiler does not properly
24480 # handle `-M -o', and we need to detect this. Also, some Intel
24481 # versions had trouble with output in subdirs
24482 am__obj=sub/conftest.${OBJEXT-o}
24483 am__minus_obj="-o $am__obj"
24484 case $depmode in
24485 gcc)
24486 # This depmode causes a compiler race in universal mode.
24487 test "$am__universal" = false || continue
24488 ;;
24489 nosideeffect)
24490 # after this tag, mechanisms are not by side-effect, so they'll
24491 # only be used when explicitly requested
24492 if test "x$enable_dependency_tracking" = xyes; then
24493 continue
24494 else
24495 break
24496 fi
24497 ;;
24498 msvisualcpp | msvcmsys)
24499 # This compiler won't grok `-c -o', but also, the minuso test has
24500 # not run yet. These depmodes are late enough in the game, and
24501 # so weak that their functioning should not be impacted.
24502 am__obj=conftest.${OBJEXT-o}
24503 am__minus_obj=
24504 ;;
24505 none) break ;;
24506 esac
24507 if depmode=$depmode \
24508 source=sub/conftest.c object=$am__obj \
24509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24510 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24511 >/dev/null 2>conftest.err &&
24512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24514 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24516 # icc doesn't choke on unknown options, it will just issue warnings
24517 # or remarks (even with -Werror). So we grep stderr for any message
24518 # that says an option was ignored or not supported.
24519 # When given -MP, icc 7.0 and 7.1 complain thusly:
24520 # icc: Command line warning: ignoring option '-M'; no argument required
24521 # The diagnosis changed in icc 8.0:
24522 # icc: Command line remark: option '-MP' not supported
24523 if (grep 'ignoring option' conftest.err ||
24524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24525 am_cv_CXX_dependencies_compiler_type=$depmode
24526 break
24527 fi
24528 fi
24529 done
24530
24531 cd ..
24532 rm -rf conftest.dir
24533else
24534 am_cv_CXX_dependencies_compiler_type=none
24535fi
24536
24537fi
24538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24539$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24540CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24541
24542 if
24543 test "x$enable_dependency_tracking" != xno \
24544 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24545 am__fastdepCXX_TRUE=
24546 am__fastdepCXX_FALSE='#'
24547else
24548 am__fastdepCXX_TRUE='#'
24549 am__fastdepCXX_FALSE=
24550fi
24551
24552
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24554$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024555if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024556 $as_echo_n "(cached) " >&6
24557else
24558
24559 ac_ext=cpp
24560ac_cpp='$CXXCPP $CPPFLAGS'
24561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24564
24565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24566/* end confdefs.h. */
24567
24568int f(int x){return 1;}
24569int f(char x){return 1;}
24570int f(bool x){return 1;}
24571
24572int
24573main ()
24574{
24575bool b = true; return f(b);
24576 ;
24577 return 0;
24578}
24579_ACEOF
24580if ac_fn_cxx_try_compile "$LINENO"; then :
24581 ax_cv_cxx_bool=yes
24582else
24583 ax_cv_cxx_bool=no
24584fi
24585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24586 ac_ext=cpp
24587ac_cpp='$CXXCPP $CPPFLAGS'
24588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24591
24592
24593fi
24594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24595$as_echo "$ax_cv_cxx_bool" >&6; }
24596if test "$ax_cv_cxx_bool" = yes; then
24597
24598$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24599
24600fi
24601
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24603$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024604if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024605 $as_echo_n "(cached) " >&6
24606else
24607
24608 ac_ext=cpp
24609ac_cpp='$CXXCPP $CPPFLAGS'
24610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24613
24614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24615/* end confdefs.h. */
24616namespace Outer { namespace Inner { int i = 0; }}
24617int
24618main ()
24619{
24620using namespace Outer::Inner; return i;
24621 ;
24622 return 0;
24623}
24624_ACEOF
24625if ac_fn_cxx_try_compile "$LINENO"; then :
24626 ax_cv_cxx_namespaces=yes
24627else
24628 ax_cv_cxx_namespaces=no
24629fi
24630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24631 ac_ext=cpp
24632ac_cpp='$CXXCPP $CPPFLAGS'
24633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24636
24637
24638fi
24639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24640$as_echo "$ax_cv_cxx_namespaces" >&6; }
24641if test "$ax_cv_cxx_namespaces" = yes; then
24642
24643$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24644
24645fi
24646
24647
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24649$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024650if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024651 $as_echo_n "(cached) " >&6
24652else
24653
24654 ac_ext=cpp
24655ac_cpp='$CXXCPP $CPPFLAGS'
24656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24659
24660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24661/* end confdefs.h. */
24662#include <iostream>
24663 std::istream& is = std::cin;
24664int
24665main ()
24666{
24667
24668 ;
24669 return 0;
24670}
24671_ACEOF
24672if ac_fn_cxx_try_compile "$LINENO"; then :
24673 ax_cv_cxx_have_std_namespace=yes
24674else
24675 ax_cv_cxx_have_std_namespace=no
24676fi
24677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 ac_ext=cpp
24679ac_cpp='$CXXCPP $CPPFLAGS'
24680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24683
24684
24685fi
24686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24687$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24688 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24689
24690$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24691
24692 fi
24693
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24695$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024696if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024697 $as_echo_n "(cached) " >&6
24698else
24699
24700
24701 ac_ext=cpp
24702ac_cpp='$CXXCPP $CPPFLAGS'
24703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24706
24707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24708/* end confdefs.h. */
24709#include <iostream>
24710#include <map>
24711#include <iomanip>
24712#include <cmath>
24713#ifdef HAVE_NAMESPACES
24714using namespace std;
24715#endif
24716int
24717main ()
24718{
24719return 0;
24720 ;
24721 return 0;
24722}
24723_ACEOF
24724if ac_fn_cxx_try_compile "$LINENO"; then :
24725 ac_cv_cxx_have_std_libs=yes
24726else
24727 ac_cv_cxx_have_std_libs=no
24728fi
24729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24730 ac_ext=cpp
24731ac_cpp='$CXXCPP $CPPFLAGS'
24732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24735
24736
24737fi
24738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24739$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24740if test "$ac_cv_cxx_have_std_libs" = yes; then
24741
24742$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24743
24744fi
24745
cristy3ed852e2009-09-05 21:47:34 +000024746
24747 OPENMP_CXXFLAGS=
24748 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024749if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024750 enableval=$enable_openmp;
24751fi
24752
24753 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24755$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024756if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024757 $as_echo_n "(cached) " >&6
24758else
cristy8b350f62009-11-15 23:12:43 +000024759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24760/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024761
24762#ifndef _OPENMP
24763 choke me
24764#endif
24765#include <omp.h>
24766int main () { return omp_get_num_threads (); }
24767
24768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024769if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024770 ac_cv_prog_cxx_openmp='none needed'
24771else
cristy8b350f62009-11-15 23:12:43 +000024772 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024773 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24774 ac_save_CXXFLAGS=$CXXFLAGS
24775 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24777/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024778
24779#ifndef _OPENMP
24780 choke me
24781#endif
24782#include <omp.h>
24783int main () { return omp_get_num_threads (); }
24784
24785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024786if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024787 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024788fi
cristy8b350f62009-11-15 23:12:43 +000024789rm -f core conftest.err conftest.$ac_objext \
24790 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024791 CXXFLAGS=$ac_save_CXXFLAGS
24792 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24793 break
24794 fi
24795 done
24796fi
cristy8b350f62009-11-15 23:12:43 +000024797rm -f core conftest.err conftest.$ac_objext \
24798 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024799fi
cristy8b350f62009-11-15 23:12:43 +000024800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024801$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24802 case $ac_cv_prog_cxx_openmp in #(
24803 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024804 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024805 *)
cristy8b350f62009-11-15 23:12:43 +000024806 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024807 esac
24808 fi
24809
24810
24811 ac_ext=c
24812ac_cpp='$CPP $CPPFLAGS'
24813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24815ac_compiler_gnu=$ac_cv_c_compiler_gnu
24816
24817
cristy8b350f62009-11-15 23:12:43 +000024818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024819$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24820 if \
cristy964cb7f2010-04-25 23:18:00 +000024821 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024822 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024823 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024824 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024825 have_magick_plus_plus='yes'
24826 else
24827 have_magick_plus_plus='no (failed tests)'
24828 fi
cristy8b350f62009-11-15 23:12:43 +000024829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024830$as_echo "$have_magick_plus_plus" >&6; }
24831 LIBS="$OLIBS"
24832fi
cristy73bd4a52010-10-05 11:24:23 +000024833 if test "$have_magick_plus_plus" = 'yes'; then
24834 WITH_MAGICK_PLUS_PLUS_TRUE=
24835 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24836else
24837 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24838 WITH_MAGICK_PLUS_PLUS_FALSE=
24839fi
24840
cristy3ed852e2009-09-05 21:47:34 +000024841
24842# Only check for delegate libraries in subdirectories if requested.
24843if test "$enable_delegate_build" != 'no'; then
24844 # Check for delegate sub-directories and add -I & -L options as required.
24845 # This presumes that delegates are installed as detailed in the ImageMagick
24846 # README. If delegates are installed in a standard location where the
24847 # compiler will automatically find them then these options should not be
24848 # required.
24849
24850 #
24851 # Most delegates have includes in the same directory as the library, but not all...
24852 #
24853 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024854 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 +000024855 if test -d "$builddir/$dir"; then
24856 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24857 else
24858 if test -d "$srcdirfull/$dir"; then
24859 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24860 fi
24861 fi
24862 done
24863
24864 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024865 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 +000024866 if test -d "$builddir/$dir/.libs"; then
24867 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24868 else
24869 if test -d "$srcdirfull/$dir/.libs"; then
24870 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24871 fi
24872 fi
24873 if test -d "$builddir/$dir"; then
24874 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24875 else
24876 if test -d "$srcdirfull/$dir"; then
24877 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24878 fi
24879 fi
24880 done
24881fi
24882
24883# Assume that delegate headers reside under same directory as ImageMagick
24884# installation prefix.
24885MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24886
24887#
24888# Find the X11 RGB database
24889#
cristy8b350f62009-11-15 23:12:43 +000024890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024891$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024892if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024893 $as_echo_n "(cached) " >&6
24894else
24895 # Look for the header file in a standard set of common directories.
24896# Check X11 before X11Rn because it is often a symlink to the current release.
24897 for ac_dir in \
24898 /lib/usr/lib/X11 \
24899 /usr/X11/lib \
24900 /usr/X11R4/lib \
24901 /usr/X11R5/lib \
24902 /usr/X11R6/lib \
24903 /usr/X11R7/lib \
24904 /usr/X386/lib \
24905 /usr/XFree86/lib/X11 \
24906 /usr/athena/lib \
24907 /usr/lib \
24908 /usr/lib/X11 \
24909 /usr/lib/X11R4 \
24910 /usr/lib/X11R5 \
24911 /usr/lib/X11R6 \
24912 /usr/lib/X11R7 \
24913 /usr/local/X11/lib \
24914 /usr/local/X11R4/lib \
24915 /usr/local/X11R5/lib \
24916 /usr/local/X11R6/lib \
24917 /usr/local/lib \
24918 /usr/local/lib/X11 \
24919 /usr/local/lib/X11R4 \
24920 /usr/local/lib/X11R5 \
24921 /usr/local/lib/X11R6 \
24922 /usr/local/lib/X11R7 \
24923 /usr/local/x11r5/lib \
24924 /usr/lpp/Xamples/lib \
24925 /usr/openwin/lib \
24926 /usr/openwin/share/lib \
24927 /usr/unsupported/lib \
24928 /usr/x386/lib \
24929 ; do
24930 if test -f "$ac_dir/X11/rgb.txt"; then
24931 im_cv_x_configure="$ac_dir/X11/"
24932 break
24933 elif test -f "$ac_dir/rgb.txt"; then
24934 im_cv_x_configure="$ac_dir/"
24935 break
24936 fi
24937
24938 done
24939fi
cristy8b350f62009-11-15 23:12:43 +000024940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024941$as_echo "$im_cv_x_configure" >&6; }
24942X11_CONFIGURE_PATH="$im_cv_x_configure"
24943case "${build_os}" in
24944 mingw* )
24945 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24946 ;;
24947esac
24948
24949cat >>confdefs.h <<_ACEOF
24950#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24951_ACEOF
24952
24953
24954#
24955# Find OpenMP library
24956#
24957GOMP_LIBS=''
24958if test "$enable_openmp" != 'no'; then
24959 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024961$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024962if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024963 $as_echo_n "(cached) " >&6
24964else
24965 ac_check_lib_save_LIBS=$LIBS
24966LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024968/* end confdefs.h. */
24969
24970/* Override any GCC internal prototype to avoid an error.
24971 Use char because int might match the return type of a GCC
24972 builtin and then its argument prototype would still apply. */
24973#ifdef __cplusplus
24974extern "C"
24975#endif
24976char GOMP_parallel_start ();
24977int
24978main ()
24979{
24980return GOMP_parallel_start ();
24981 ;
24982 return 0;
24983}
24984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024985if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024986 ac_cv_lib_gomp_GOMP_parallel_start=yes
24987else
cristy8b350f62009-11-15 23:12:43 +000024988 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024989fi
cristy8b350f62009-11-15 23:12:43 +000024990rm -f core conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024992LIBS=$ac_check_lib_save_LIBS
24993fi
cristy8b350f62009-11-15 23:12:43 +000024994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024995$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000024996if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024997 GOMP_LIBS="-lgomp"
24998fi
24999 # gcc
25000 else
cristy8b350f62009-11-15 23:12:43 +000025001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025002$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025003if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025004 $as_echo_n "(cached) " >&6
25005else
25006 ac_check_lib_save_LIBS=$LIBS
25007LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025009/* end confdefs.h. */
25010
25011/* Override any GCC internal prototype to avoid an error.
25012 Use char because int might match the return type of a GCC
25013 builtin and then its argument prototype would still apply. */
25014#ifdef __cplusplus
25015extern "C"
25016#endif
25017char sunw_mp_register_warn ();
25018int
25019main ()
25020{
25021return sunw_mp_register_warn ();
25022 ;
25023 return 0;
25024}
25025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025026if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025027 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25028else
cristy8b350f62009-11-15 23:12:43 +000025029 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025030fi
cristy8b350f62009-11-15 23:12:43 +000025031rm -f core conftest.err conftest.$ac_objext \
25032 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025033LIBS=$ac_check_lib_save_LIBS
25034fi
cristy8b350f62009-11-15 23:12:43 +000025035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025036$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025037if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025038 GOMP_LIBS="-lmtsk"
25039fi
25040 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025042$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025043if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025044 $as_echo_n "(cached) " >&6
25045else
25046 ac_check_lib_save_LIBS=$LIBS
25047LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025049/* end confdefs.h. */
25050
25051/* Override any GCC internal prototype to avoid an error.
25052 Use char because int might match the return type of a GCC
25053 builtin and then its argument prototype would still apply. */
25054#ifdef __cplusplus
25055extern "C"
25056#endif
25057char _xlsmpFlush ();
25058int
25059main ()
25060{
25061return _xlsmpFlush ();
25062 ;
25063 return 0;
25064}
25065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025066if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025067 ac_cv_lib_xlsmp__xlsmpFlush=yes
25068else
cristy8b350f62009-11-15 23:12:43 +000025069 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025070fi
cristy8b350f62009-11-15 23:12:43 +000025071rm -f core conftest.err conftest.$ac_objext \
25072 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025073LIBS=$ac_check_lib_save_LIBS
25074fi
cristy8b350f62009-11-15 23:12:43 +000025075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025076$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025077if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025078 GOMP_LIBS="-lxlsmp"
25079fi
25080 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025082$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025083if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025084 $as_echo_n "(cached) " >&6
25085else
25086 ac_check_lib_save_LIBS=$LIBS
25087LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025089/* end confdefs.h. */
25090
25091/* Override any GCC internal prototype to avoid an error.
25092 Use char because int might match the return type of a GCC
25093 builtin and then its argument prototype would still apply. */
25094#ifdef __cplusplus
25095extern "C"
25096#endif
25097char mp_destroy ();
25098int
25099main ()
25100{
25101return mp_destroy ();
25102 ;
25103 return 0;
25104}
25105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025106if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025107 ac_cv_lib_mp_mp_destroy=yes
25108else
cristy8b350f62009-11-15 23:12:43 +000025109 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025110fi
cristy8b350f62009-11-15 23:12:43 +000025111rm -f core conftest.err conftest.$ac_objext \
25112 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025113LIBS=$ac_check_lib_save_LIBS
25114fi
cristy8b350f62009-11-15 23:12:43 +000025115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025116$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025117if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025118 GOMP_LIBS="-lmp"
25119fi
25120 # SGI IRIX 6.5 MIPSpro C/C++
25121 fi
25122 LIBS="$GOMP_LIBS $LIBS"
25123fi
25124
25125
25126#
25127# Find Posix threads library
25128#
25129THREAD_LIBS=''
25130if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25131
25132 if test "x$PTHREAD_LIBS" = "x"; then
25133 case "${host_cpu}-${host_os}" in
25134 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025135
25136
25137
25138ac_ext=c
25139ac_cpp='$CPP $CPPFLAGS'
25140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25142ac_compiler_gnu=$ac_cv_c_compiler_gnu
25143
25144magick_pthread_lib_ok=no
25145
25146LIB=-lc_r
25147save_LIBS="$LIBS"
25148LIBS="$LIBS $LIB"
25149
25150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25151$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25153/* end confdefs.h. */
25154#include <pthread.h>
25155int
25156main ()
25157{
25158 pthread_t th;
25159 pthread_join(th, 0);
25160 pthread_attr_init(0);
25161 pthread_cleanup_push(0, 0);
25162 pthread_create(0,0,0,0);
25163 pthread_cleanup_pop(0);
25164 ;
25165 return 0;
25166}
25167_ACEOF
25168if ac_fn_c_try_link "$LINENO"; then :
25169 magick_pthread_lib_ok=yes
25170fi
25171rm -f core conftest.err conftest.$ac_objext \
25172 conftest$ac_exeext conftest.$ac_ext
25173
25174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25175$as_echo "${magick_pthread_lib_ok}" >&6; }
25176if test "$magick_pthread_lib_ok" = yes
25177then
25178 PTHREAD_LIBS=-lc_r
25179 :
25180else
25181
25182 :
25183fi
25184
25185LIBS="$save_LIBS"
25186
25187ac_ext=c
25188ac_cpp='$CPP $CPPFLAGS'
25189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25191ac_compiler_gnu=$ac_cv_c_compiler_gnu
25192
25193 ;;
cristy3ed852e2009-09-05 21:47:34 +000025194 esac
25195 fi
25196
25197 for lib in pthread pthreads; do
25198 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025199
25200
25201
25202ac_ext=c
25203ac_cpp='$CPP $CPPFLAGS'
25204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25206ac_compiler_gnu=$ac_cv_c_compiler_gnu
25207
25208magick_pthread_lib_ok=no
25209
25210LIB=-l$lib
25211save_LIBS="$LIBS"
25212LIBS="$LIBS $LIB"
25213
25214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25215$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25217/* end confdefs.h. */
25218#include <pthread.h>
25219int
25220main ()
25221{
25222 pthread_t th;
25223 pthread_join(th, 0);
25224 pthread_attr_init(0);
25225 pthread_cleanup_push(0, 0);
25226 pthread_create(0,0,0,0);
25227 pthread_cleanup_pop(0);
25228 ;
25229 return 0;
25230}
25231_ACEOF
25232if ac_fn_c_try_link "$LINENO"; then :
25233 magick_pthread_lib_ok=yes
25234fi
25235rm -f core conftest.err conftest.$ac_objext \
25236 conftest$ac_exeext conftest.$ac_ext
25237
25238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25239$as_echo "${magick_pthread_lib_ok}" >&6; }
25240if test "$magick_pthread_lib_ok" = yes
25241then
25242 PTHREAD_LIBS=-l$lib
25243 :
25244else
25245
25246 :
25247fi
25248
25249LIBS="$save_LIBS"
25250
25251ac_ext=c
25252ac_cpp='$CPP $CPPFLAGS'
25253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25255ac_compiler_gnu=$ac_cv_c_compiler_gnu
25256
25257
cristy3ed852e2009-09-05 21:47:34 +000025258 fi
25259 done
25260
25261 THREAD_LIBS="$PTHREAD_LIBS"
25262 LIBS="$LIBS $THREAD_LIBS"
25263fi
25264
25265
25266#
25267# Check for umem.
25268#
25269have_umem='no'
25270UMEM_LIBS=''
25271if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025273$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025275$as_echo "" >&6; }
25276 failed=0
25277 passed=0
cristy8b350f62009-11-15 23:12:43 +000025278 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025279if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025280 passed=`expr $passed + 1`
25281else
25282 failed=`expr $failed + 1`
25283fi
25284
25285
cristy8b350f62009-11-15 23:12:43 +000025286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025287$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025288if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025289 $as_echo_n "(cached) " >&6
25290else
25291 ac_check_lib_save_LIBS=$LIBS
25292LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025294/* end confdefs.h. */
25295
25296/* Override any GCC internal prototype to avoid an error.
25297 Use char because int might match the return type of a GCC
25298 builtin and then its argument prototype would still apply. */
25299#ifdef __cplusplus
25300extern "C"
25301#endif
25302char umem_alloc ();
25303int
25304main ()
25305{
25306return umem_alloc ();
25307 ;
25308 return 0;
25309}
25310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025312 ac_cv_lib_umem_umem_alloc=yes
25313else
cristy8b350f62009-11-15 23:12:43 +000025314 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025315fi
cristy8b350f62009-11-15 23:12:43 +000025316rm -f core conftest.err conftest.$ac_objext \
25317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025318LIBS=$ac_check_lib_save_LIBS
25319fi
cristy8b350f62009-11-15 23:12:43 +000025320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025321$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025322if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025323 passed=`expr $passed + 1`
25324else
25325 failed=`expr $failed + 1`
25326fi
25327
cristy8b350f62009-11-15 23:12:43 +000025328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025329$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025330if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025331 $as_echo_n "(cached) " >&6
25332else
25333 ac_check_lib_save_LIBS=$LIBS
25334LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025336/* end confdefs.h. */
25337
25338/* Override any GCC internal prototype to avoid an error.
25339 Use char because int might match the return type of a GCC
25340 builtin and then its argument prototype would still apply. */
25341#ifdef __cplusplus
25342extern "C"
25343#endif
25344char umem_free ();
25345int
25346main ()
25347{
25348return umem_free ();
25349 ;
25350 return 0;
25351}
25352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025353if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025354 ac_cv_lib_umem_umem_free=yes
25355else
cristy8b350f62009-11-15 23:12:43 +000025356 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025357fi
cristy8b350f62009-11-15 23:12:43 +000025358rm -f core conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025360LIBS=$ac_check_lib_save_LIBS
25361fi
cristy8b350f62009-11-15 23:12:43 +000025362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025363$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025364if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025365 passed=`expr $passed + 1`
25366else
25367 failed=`expr $failed + 1`
25368fi
25369
cristy8b350f62009-11-15 23:12:43 +000025370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025371$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25372 if test $passed -gt 0; then
25373 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025375$as_echo "no -- some components failed test" >&6; }
25376 have_umem='no (failed tests)'
25377 else
25378 UMEM_LIBS='-lumem'
25379 LIBS="$UMEM_LIBS $LIBS"
25380
cristy8b350f62009-11-15 23:12:43 +000025381$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025382
cristy8b350f62009-11-15 23:12:43 +000025383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025384$as_echo "yes" >&6; }
25385 have_umem='yes'
25386 fi
25387 else
cristy8b350f62009-11-15 23:12:43 +000025388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025389$as_echo "no" >&6; }
25390 fi
25391fi
cristy73bd4a52010-10-05 11:24:23 +000025392 if test "$have_umem" = 'yes'; then
25393 HasUMEM_TRUE=
25394 HasUMEM_FALSE='#'
25395else
25396 HasUMEM_TRUE='#'
25397 HasUMEM_FALSE=
25398fi
25399
cristy3ed852e2009-09-05 21:47:34 +000025400
25401
25402#
25403# Add support for ccmalloc memory debugging library if requested
25404#
25405have_ccmalloc='no'
25406CCMALLOC_LIBS=''
25407if test "$enable_ccmalloc" = 'yes'; then
25408 # Extract the first word of "ccmalloc", so it can be a program name with args.
25409set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025411$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025412if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025413 $as_echo_n "(cached) " >&6
25414else
25415 case $CCMALLOCDelegate in
25416 [\\/]* | ?:[\\/]*)
25417 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25418 ;;
25419 *)
25420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25421for as_dir in $PATH
25422do
25423 IFS=$as_save_IFS
25424 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025425 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25427 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025429 break 2
25430 fi
25431done
cristy8b350f62009-11-15 23:12:43 +000025432 done
cristy3ed852e2009-09-05 21:47:34 +000025433IFS=$as_save_IFS
25434
25435 ;;
25436esac
25437fi
25438CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25439if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025441$as_echo "$CCMALLOCDelegate" >&6; }
25442else
cristy8b350f62009-11-15 23:12:43 +000025443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025444$as_echo "no" >&6; }
25445fi
25446
25447
25448 if test -n "$CCMALLOCDelegate"; then
25449 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25450 OLIBS="$LIBS"
25451 # Assume that gcc is used with ccmalloc.
25452 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025454$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025455if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025456 $as_echo_n "(cached) " >&6
25457else
25458 ac_check_lib_save_LIBS=$LIBS
25459LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025461/* end confdefs.h. */
25462
25463/* Override any GCC internal prototype to avoid an error.
25464 Use char because int might match the return type of a GCC
25465 builtin and then its argument prototype would still apply. */
25466#ifdef __cplusplus
25467extern "C"
25468#endif
25469char ccmalloc_malloc ();
25470int
25471main ()
25472{
25473return ccmalloc_malloc ();
25474 ;
25475 return 0;
25476}
25477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025479 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25480else
cristy8b350f62009-11-15 23:12:43 +000025481 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025482fi
cristy8b350f62009-11-15 23:12:43 +000025483rm -f core conftest.err conftest.$ac_objext \
25484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025485LIBS=$ac_check_lib_save_LIBS
25486fi
cristy8b350f62009-11-15 23:12:43 +000025487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025488$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025489if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025490 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25491fi
25492
25493 if test -n "$CCMALLOC_LIBS"; then
25494 LIBS="$OLIBS"
25495 LIBS="$LIBS $CCMALLOC_LIBS"
25496 have_ccmalloc='yes'
25497 else
25498 LIBS="$OLIBS"
25499 fi
25500 fi
25501fi
25502
25503#
25504# Add support for efence memory debugging library if requested
25505#
25506if test "$enable_efence" = 'yes'; then
25507 EFENCE_LIBS='-lefence'
25508 LIBS="$EFENCE_LIBS $LIBS"
25509fi
25510
cristy3ed852e2009-09-05 21:47:34 +000025511
25512#
25513# Check for BZLIB
25514#
25515
25516
25517# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025518if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025519 withval=$with_bzlib; with_bzlib=$withval
25520else
25521 with_bzlib='yes'
25522fi
25523
25524
25525if test "$with_bzlib" != 'yes'; then
25526 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25527fi
25528
25529have_bzlib='no'
25530if test "$with_bzlib" != 'no'; then
25531 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025533$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025535$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025537$as_echo "" >&6; }
25538 failed=0
25539 passed=0
25540 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025541 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025542if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025543 passed=`expr $passed + 1`
25544else
25545 failed=`expr $failed + 1`
25546fi
25547
25548
cristy8b350f62009-11-15 23:12:43 +000025549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025550$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025551if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025552 $as_echo_n "(cached) " >&6
25553else
25554 ac_check_lib_save_LIBS=$LIBS
25555LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025557/* end confdefs.h. */
25558
25559/* Override any GCC internal prototype to avoid an error.
25560 Use char because int might match the return type of a GCC
25561 builtin and then its argument prototype would still apply. */
25562#ifdef __cplusplus
25563extern "C"
25564#endif
25565char BZ2_bzDecompress ();
25566int
25567main ()
25568{
25569return BZ2_bzDecompress ();
25570 ;
25571 return 0;
25572}
25573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025574if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025575 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25576else
cristy8b350f62009-11-15 23:12:43 +000025577 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025578fi
cristy8b350f62009-11-15 23:12:43 +000025579rm -f core conftest.err conftest.$ac_objext \
25580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025581LIBS=$ac_check_lib_save_LIBS
25582fi
cristy8b350f62009-11-15 23:12:43 +000025583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025584$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025585if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025586 found_libbz=`expr $found_libbz + 1`
25587fi
25588
25589 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025591$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025592if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025593 $as_echo_n "(cached) " >&6
25594else
25595 ac_check_lib_save_LIBS=$LIBS
25596LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025598/* end confdefs.h. */
25599
25600/* Override any GCC internal prototype to avoid an error.
25601 Use char because int might match the return type of a GCC
25602 builtin and then its argument prototype would still apply. */
25603#ifdef __cplusplus
25604extern "C"
25605#endif
25606char _imp__BZ2_decompress ();
25607int
25608main ()
25609{
25610return _imp__BZ2_decompress ();
25611 ;
25612 return 0;
25613}
25614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025615if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025616 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25617else
cristy8b350f62009-11-15 23:12:43 +000025618 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025619fi
cristy8b350f62009-11-15 23:12:43 +000025620rm -f core conftest.err conftest.$ac_objext \
25621 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025622LIBS=$ac_check_lib_save_LIBS
25623fi
cristy8b350f62009-11-15 23:12:43 +000025624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025625$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025626if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025627 found_libbz=`expr $found_libbz + 1`
25628fi
25629
25630 fi
25631 if test $found_libbz -gt 0; then
25632 passed=`expr $passed + 1`
25633 else
25634 failed=`expr $failed + 1`
25635 fi
cristy8b350f62009-11-15 23:12:43 +000025636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025637$as_echo_n "checking if BZLIB package is complete... " >&6; }
25638 if test $passed -gt 0; then
25639 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025641$as_echo "no -- some components failed test" >&6; }
25642 have_bzlib='no (failed tests)'
25643 else
25644 BZLIB_LIBS='-lbz2'
25645 LIBS="$BZLIB_LIBS $LIBS"
25646
cristy8b350f62009-11-15 23:12:43 +000025647$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025648
cristy8b350f62009-11-15 23:12:43 +000025649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025650$as_echo "yes" >&6; }
25651 have_bzlib='yes'
25652 fi
25653 else
cristy8b350f62009-11-15 23:12:43 +000025654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025655$as_echo "no" >&6; }
25656 fi
25657fi
cristy73bd4a52010-10-05 11:24:23 +000025658 if test "$have_bzlib" = 'yes'; then
25659 BZLIB_DELEGATE_TRUE=
25660 BZLIB_DELEGATE_FALSE='#'
25661else
25662 BZLIB_DELEGATE_TRUE='#'
25663 BZLIB_DELEGATE_FALSE=
25664fi
25665
cristy3ed852e2009-09-05 21:47:34 +000025666
25667
25668#
25669# Find the X11 include and library directories.
25670#
25671IPC_LIBS=''
25672X11_LIBS=''
25673XEXT_LIBS=''
25674XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025676$as_echo_n "checking for X... " >&6; }
25677
25678
25679# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025680if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025681 withval=$with_x;
25682fi
25683
25684# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25685if test "x$with_x" = xno; then
25686 # The user explicitly disabled X.
25687 have_x=disabled
25688else
25689 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025690 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025691 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025692 $as_echo_n "(cached) " >&6
25693else
25694 # One or both of the vars are not set, and there is no cached value.
25695ac_x_includes=no ac_x_libraries=no
25696rm -f -r conftest.dir
25697if mkdir conftest.dir; then
25698 cd conftest.dir
25699 cat >Imakefile <<'_ACEOF'
25700incroot:
25701 @echo incroot='${INCROOT}'
25702usrlibdir:
25703 @echo usrlibdir='${USRLIBDIR}'
25704libdir:
25705 @echo libdir='${LIBDIR}'
25706_ACEOF
25707 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025708 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025709 for ac_var in incroot usrlibdir libdir; do
25710 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25711 done
25712 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25713 for ac_extension in a so sl dylib la dll; do
25714 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25715 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25716 ac_im_usrlibdir=$ac_im_libdir; break
25717 fi
25718 done
25719 # Screen out bogus values from the imake configuration. They are
25720 # bogus both because they are the default anyway, and because
25721 # using them would break gcc on systems where it needs fixed includes.
25722 case $ac_im_incroot in
25723 /usr/include) ac_x_includes= ;;
25724 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25725 esac
25726 case $ac_im_usrlibdir in
25727 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25728 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25729 esac
25730 fi
25731 cd ..
25732 rm -f -r conftest.dir
25733fi
25734
25735# Standard set of common directories for X headers.
25736# Check X11 before X11Rn because it is often a symlink to the current release.
25737ac_x_header_dirs='
25738/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025739/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025740/usr/X11R6/include
25741/usr/X11R5/include
25742/usr/X11R4/include
25743
25744/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025745/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025746/usr/include/X11R6
25747/usr/include/X11R5
25748/usr/include/X11R4
25749
25750/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025751/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025752/usr/local/X11R6/include
25753/usr/local/X11R5/include
25754/usr/local/X11R4/include
25755
25756/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025757/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025758/usr/local/include/X11R6
25759/usr/local/include/X11R5
25760/usr/local/include/X11R4
25761
25762/usr/X386/include
25763/usr/x386/include
25764/usr/XFree86/include/X11
25765
25766/usr/include
25767/usr/local/include
25768/usr/unsupported/include
25769/usr/athena/include
25770/usr/local/x11r5/include
25771/usr/lpp/Xamples/include
25772
25773/usr/openwin/include
25774/usr/openwin/share/include'
25775
25776if test "$ac_x_includes" = no; then
25777 # Guess where to find include files, by looking for Xlib.h.
25778 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025780/* end confdefs.h. */
25781#include <X11/Xlib.h>
25782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025783if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025784 # We can compile using X headers with no special include directory.
25785ac_x_includes=
25786else
cristyc7083c12009-10-14 03:16:55 +000025787 for ac_dir in $ac_x_header_dirs; do
25788 if test -r "$ac_dir/X11/Xlib.h"; then
25789 ac_x_includes=$ac_dir
25790 break
25791 fi
25792done
25793fi
cristyda16f162011-02-19 23:52:17 +000025794rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025795fi # $ac_x_includes = no
25796
25797if test "$ac_x_libraries" = no; then
25798 # Check for the libraries.
25799 # See if we find them without any special options.
25800 # Don't add to $LIBS permanently.
25801 ac_save_LIBS=$LIBS
25802 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025804/* end confdefs.h. */
25805#include <X11/Xlib.h>
25806int
25807main ()
25808{
25809XrmInitialize ()
25810 ;
25811 return 0;
25812}
25813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025814if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025815 LIBS=$ac_save_LIBS
25816# We can link X programs with no special library path.
25817ac_x_libraries=
25818else
cristy8b350f62009-11-15 23:12:43 +000025819 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025820for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25821do
25822 # Don't even attempt the hair of trying to link an X program!
25823 for ac_extension in a so sl dylib la dll; do
25824 if test -r "$ac_dir/libX11.$ac_extension"; then
25825 ac_x_libraries=$ac_dir
25826 break 2
25827 fi
25828 done
25829done
25830fi
cristy8b350f62009-11-15 23:12:43 +000025831rm -f core conftest.err conftest.$ac_objext \
25832 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025833fi # $ac_x_libraries = no
25834
25835case $ac_x_includes,$ac_x_libraries in #(
25836 no,* | *,no | *\'*)
25837 # Didn't find X, or a directory has "'" in its name.
25838 ac_cv_have_x="have_x=no";; #(
25839 *)
25840 # Record where we found X for the cache.
25841 ac_cv_have_x="have_x=yes\
25842 ac_x_includes='$ac_x_includes'\
25843 ac_x_libraries='$ac_x_libraries'"
25844esac
25845fi
25846;; #(
25847 *) have_x=yes;;
25848 esac
25849 eval "$ac_cv_have_x"
25850fi # $with_x != no
25851
25852if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025854$as_echo "$have_x" >&6; }
25855 no_x=yes
25856else
25857 # If each of the values was on the command line, it overrides each guess.
25858 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25859 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25860 # Update the cache value to reflect the command line values.
25861 ac_cv_have_x="have_x=yes\
25862 ac_x_includes='$x_includes'\
25863 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025865$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25866fi
25867
cristy3ed852e2009-09-05 21:47:34 +000025868if test "$no_x" = yes; then
25869 # Not all programs may use this symbol, but it does not hurt to define it.
25870
cristy8b350f62009-11-15 23:12:43 +000025871$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025872
25873 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25874else
25875 if test -n "$x_includes"; then
25876 X_CFLAGS="$X_CFLAGS -I$x_includes"
25877 fi
25878
25879 # It would also be nice to do this for all -L options, not just this one.
25880 if test -n "$x_libraries"; then
25881 X_LIBS="$X_LIBS -L$x_libraries"
25882 # For Solaris; some versions of Sun CC require a space after -R and
25883 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025885$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25886 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25887 ac_xsave_c_werror_flag=$ac_c_werror_flag
25888 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025890/* end confdefs.h. */
25891
25892int
25893main ()
25894{
25895
25896 ;
25897 return 0;
25898}
25899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025900if ac_fn_c_try_link "$LINENO"; then :
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025902$as_echo "no" >&6; }
25903 X_LIBS="$X_LIBS -R$x_libraries"
25904else
cristy8b350f62009-11-15 23:12:43 +000025905 LIBS="$ac_xsave_LIBS -R $x_libraries"
25906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025907/* end confdefs.h. */
25908
25909int
25910main ()
25911{
25912
25913 ;
25914 return 0;
25915}
25916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025917if ac_fn_c_try_link "$LINENO"; then :
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025919$as_echo "yes" >&6; }
25920 X_LIBS="$X_LIBS -R $x_libraries"
25921else
cristy8b350f62009-11-15 23:12:43 +000025922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025923$as_echo "neither works" >&6; }
25924fi
cristy8b350f62009-11-15 23:12:43 +000025925rm -f core conftest.err conftest.$ac_objext \
25926 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025927fi
cristy8b350f62009-11-15 23:12:43 +000025928rm -f core conftest.err conftest.$ac_objext \
25929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025930 ac_c_werror_flag=$ac_xsave_c_werror_flag
25931 LIBS=$ac_xsave_LIBS
25932 fi
25933
25934 # Check for system-dependent libraries X programs must link with.
25935 # Do this before checking for the system-independent R6 libraries
25936 # (-lICE), since we may need -lsocket or whatever for X linking.
25937
25938 if test "$ISC" = yes; then
25939 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25940 else
25941 # Martyn Johnson says this is needed for Ultrix, if the X
25942 # libraries were built with DECnet support. And Karl Berry says
25943 # the Alpha needs dnet_stub (dnet does not exist).
25944 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025946/* end confdefs.h. */
25947
25948/* Override any GCC internal prototype to avoid an error.
25949 Use char because int might match the return type of a GCC
25950 builtin and then its argument prototype would still apply. */
25951#ifdef __cplusplus
25952extern "C"
25953#endif
25954char XOpenDisplay ();
25955int
25956main ()
25957{
25958return XOpenDisplay ();
25959 ;
25960 return 0;
25961}
25962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025964
cristy8b350f62009-11-15 23:12:43 +000025965else
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025968if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025969 $as_echo_n "(cached) " >&6
25970else
25971 ac_check_lib_save_LIBS=$LIBS
25972LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025974/* end confdefs.h. */
25975
25976/* Override any GCC internal prototype to avoid an error.
25977 Use char because int might match the return type of a GCC
25978 builtin and then its argument prototype would still apply. */
25979#ifdef __cplusplus
25980extern "C"
25981#endif
25982char dnet_ntoa ();
25983int
25984main ()
25985{
25986return dnet_ntoa ();
25987 ;
25988 return 0;
25989}
25990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025992 ac_cv_lib_dnet_dnet_ntoa=yes
25993else
cristy8b350f62009-11-15 23:12:43 +000025994 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025995fi
cristy8b350f62009-11-15 23:12:43 +000025996rm -f core conftest.err conftest.$ac_objext \
25997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025998LIBS=$ac_check_lib_save_LIBS
25999fi
cristy8b350f62009-11-15 23:12:43 +000026000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026001$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026002if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26004fi
26005
26006 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026009if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 $as_echo_n "(cached) " >&6
26011else
26012 ac_check_lib_save_LIBS=$LIBS
26013LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026015/* end confdefs.h. */
26016
26017/* Override any GCC internal prototype to avoid an error.
26018 Use char because int might match the return type of a GCC
26019 builtin and then its argument prototype would still apply. */
26020#ifdef __cplusplus
26021extern "C"
26022#endif
26023char dnet_ntoa ();
26024int
26025main ()
26026{
26027return dnet_ntoa ();
26028 ;
26029 return 0;
26030}
26031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026033 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26034else
cristy8b350f62009-11-15 23:12:43 +000026035 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026036fi
cristy8b350f62009-11-15 23:12:43 +000026037rm -f core conftest.err conftest.$ac_objext \
26038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026039LIBS=$ac_check_lib_save_LIBS
26040fi
cristy8b350f62009-11-15 23:12:43 +000026041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026043if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026044 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26045fi
26046
26047 fi
26048fi
cristy8b350f62009-11-15 23:12:43 +000026049rm -f core conftest.err conftest.$ac_objext \
26050 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026051 LIBS="$ac_xsave_LIBS"
26052
26053 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26054 # to get the SysV transport functions.
26055 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26056 # needs -lnsl.
26057 # The nsl library prevents programs from opening the X display
26058 # on Irix 5.2, according to T.E. Dickey.
26059 # The functions gethostbyname, getservbyname, and inet_addr are
26060 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026061 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026062if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026063
cristy3ed852e2009-09-05 21:47:34 +000026064fi
26065
cristy3ed852e2009-09-05 21:47:34 +000026066 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026068$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026069if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026070 $as_echo_n "(cached) " >&6
26071else
26072 ac_check_lib_save_LIBS=$LIBS
26073LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026075/* end confdefs.h. */
26076
26077/* Override any GCC internal prototype to avoid an error.
26078 Use char because int might match the return type of a GCC
26079 builtin and then its argument prototype would still apply. */
26080#ifdef __cplusplus
26081extern "C"
26082#endif
26083char gethostbyname ();
26084int
26085main ()
26086{
26087return gethostbyname ();
26088 ;
26089 return 0;
26090}
26091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026092if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026093 ac_cv_lib_nsl_gethostbyname=yes
26094else
cristy8b350f62009-11-15 23:12:43 +000026095 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026096fi
cristy8b350f62009-11-15 23:12:43 +000026097rm -f core conftest.err conftest.$ac_objext \
26098 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026099LIBS=$ac_check_lib_save_LIBS
26100fi
cristy8b350f62009-11-15 23:12:43 +000026101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026102$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026103if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26105fi
26106
26107 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026109$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026110if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026111 $as_echo_n "(cached) " >&6
26112else
26113 ac_check_lib_save_LIBS=$LIBS
26114LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026116/* end confdefs.h. */
26117
26118/* Override any GCC internal prototype to avoid an error.
26119 Use char because int might match the return type of a GCC
26120 builtin and then its argument prototype would still apply. */
26121#ifdef __cplusplus
26122extern "C"
26123#endif
26124char gethostbyname ();
26125int
26126main ()
26127{
26128return gethostbyname ();
26129 ;
26130 return 0;
26131}
26132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026133if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026134 ac_cv_lib_bsd_gethostbyname=yes
26135else
cristy8b350f62009-11-15 23:12:43 +000026136 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026137fi
cristy8b350f62009-11-15 23:12:43 +000026138rm -f core conftest.err conftest.$ac_objext \
26139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026140LIBS=$ac_check_lib_save_LIBS
26141fi
cristy8b350f62009-11-15 23:12:43 +000026142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026143$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026144if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26146fi
26147
26148 fi
26149 fi
26150
26151 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26152 # socket/setsockopt and other routines are undefined under SCO ODT
26153 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26154 # on later versions), says Simon Leinen: it contains gethostby*
26155 # variants that don't use the name server (or something). -lsocket
26156 # must be given before -lnsl if both are needed. We assume that
26157 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026158 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026159if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026160
cristy3ed852e2009-09-05 21:47:34 +000026161fi
26162
cristy3ed852e2009-09-05 21:47:34 +000026163 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026166if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026167 $as_echo_n "(cached) " >&6
26168else
26169 ac_check_lib_save_LIBS=$LIBS
26170LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026172/* end confdefs.h. */
26173
26174/* Override any GCC internal prototype to avoid an error.
26175 Use char because int might match the return type of a GCC
26176 builtin and then its argument prototype would still apply. */
26177#ifdef __cplusplus
26178extern "C"
26179#endif
26180char connect ();
26181int
26182main ()
26183{
26184return connect ();
26185 ;
26186 return 0;
26187}
26188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 ac_cv_lib_socket_connect=yes
26191else
cristy8b350f62009-11-15 23:12:43 +000026192 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026193fi
cristy8b350f62009-11-15 23:12:43 +000026194rm -f core conftest.err conftest.$ac_objext \
26195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026196LIBS=$ac_check_lib_save_LIBS
26197fi
cristy8b350f62009-11-15 23:12:43 +000026198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026199$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026200if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026201 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26202fi
26203
26204 fi
26205
26206 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026207 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026208if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026209
cristy3ed852e2009-09-05 21:47:34 +000026210fi
26211
cristy3ed852e2009-09-05 21:47:34 +000026212 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026214$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026215if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026216 $as_echo_n "(cached) " >&6
26217else
26218 ac_check_lib_save_LIBS=$LIBS
26219LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026221/* end confdefs.h. */
26222
26223/* Override any GCC internal prototype to avoid an error.
26224 Use char because int might match the return type of a GCC
26225 builtin and then its argument prototype would still apply. */
26226#ifdef __cplusplus
26227extern "C"
26228#endif
26229char remove ();
26230int
26231main ()
26232{
26233return remove ();
26234 ;
26235 return 0;
26236}
26237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026238if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026239 ac_cv_lib_posix_remove=yes
26240else
cristy8b350f62009-11-15 23:12:43 +000026241 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026242fi
cristy8b350f62009-11-15 23:12:43 +000026243rm -f core conftest.err conftest.$ac_objext \
26244 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026245LIBS=$ac_check_lib_save_LIBS
26246fi
cristy8b350f62009-11-15 23:12:43 +000026247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026249if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026250 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26251fi
26252
26253 fi
26254
26255 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026256 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026257if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026258
cristy3ed852e2009-09-05 21:47:34 +000026259fi
26260
cristy3ed852e2009-09-05 21:47:34 +000026261 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026263$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026264if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026265 $as_echo_n "(cached) " >&6
26266else
26267 ac_check_lib_save_LIBS=$LIBS
26268LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026270/* end confdefs.h. */
26271
26272/* Override any GCC internal prototype to avoid an error.
26273 Use char because int might match the return type of a GCC
26274 builtin and then its argument prototype would still apply. */
26275#ifdef __cplusplus
26276extern "C"
26277#endif
26278char shmat ();
26279int
26280main ()
26281{
26282return shmat ();
26283 ;
26284 return 0;
26285}
26286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026288 ac_cv_lib_ipc_shmat=yes
26289else
cristy8b350f62009-11-15 23:12:43 +000026290 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026291fi
cristy8b350f62009-11-15 23:12:43 +000026292rm -f core conftest.err conftest.$ac_objext \
26293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026294LIBS=$ac_check_lib_save_LIBS
26295fi
cristy8b350f62009-11-15 23:12:43 +000026296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026297$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026298if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26300fi
26301
26302 fi
26303 fi
26304
26305 # Check for libraries that X11R6 Xt/Xaw programs need.
26306 ac_save_LDFLAGS=$LDFLAGS
26307 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26308 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26309 # check for ICE first), but we must link in the order -lSM -lICE or
26310 # we get undefined symbols. So assume we have SM if we have ICE.
26311 # These have to be linked with before -lX11, unlike the other
26312 # libraries we check for below, so use a different variable.
26313 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026315$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026316if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026317 $as_echo_n "(cached) " >&6
26318else
26319 ac_check_lib_save_LIBS=$LIBS
26320LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026322/* end confdefs.h. */
26323
26324/* Override any GCC internal prototype to avoid an error.
26325 Use char because int might match the return type of a GCC
26326 builtin and then its argument prototype would still apply. */
26327#ifdef __cplusplus
26328extern "C"
26329#endif
26330char IceConnectionNumber ();
26331int
26332main ()
26333{
26334return IceConnectionNumber ();
26335 ;
26336 return 0;
26337}
26338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026340 ac_cv_lib_ICE_IceConnectionNumber=yes
26341else
cristy8b350f62009-11-15 23:12:43 +000026342 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026343fi
cristy8b350f62009-11-15 23:12:43 +000026344rm -f core conftest.err conftest.$ac_objext \
26345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026346LIBS=$ac_check_lib_save_LIBS
26347fi
cristy8b350f62009-11-15 23:12:43 +000026348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026349$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026350if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026351 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26352fi
26353
26354 LDFLAGS=$ac_save_LDFLAGS
26355
26356fi
26357
26358if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026362$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026364$as_echo "" >&6; }
26365 LDFLAGS="$LDFLAGS $X_LIBS"
26366 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26367 LIBS="$X11_LIBS $LIBS"
26368 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26369
26370
cristy8b350f62009-11-15 23:12:43 +000026371$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026372
26373 #
26374 # Check for X11 shared memory extension
26375 #
26376 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026377 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026378if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026379 have_shmctl='yes'
26380fi
26381
26382 if test "$have_shmctl" != 'yes'; then
26383 PERSIST_LIBS=$LIBS
26384 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026386/* end confdefs.h. */
26387
26388/* Override any GCC internal prototype to avoid an error.
26389 Use char because int might match the return type of a GCC
26390 builtin and then its argument prototype would still apply. */
26391#ifdef __cplusplus
26392extern "C"
26393#endif
26394char shmctl ();
26395int
26396main ()
26397{
26398return shmctl ();
26399 ;
26400 return 0;
26401}
26402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026404 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026405fi
cristy8b350f62009-11-15 23:12:43 +000026406rm -f core conftest.err conftest.$ac_objext \
26407 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026408 LIBS=$PERSIST_LIBS
26409 fi
26410
26411 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026413$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026414if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026415 $as_echo_n "(cached) " >&6
26416else
26417 ac_check_lib_save_LIBS=$LIBS
26418LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026420/* end confdefs.h. */
26421
26422/* Override any GCC internal prototype to avoid an error.
26423 Use char because int might match the return type of a GCC
26424 builtin and then its argument prototype would still apply. */
26425#ifdef __cplusplus
26426extern "C"
26427#endif
26428char XShmAttach ();
26429int
26430main ()
26431{
26432return XShmAttach ();
26433 ;
26434 return 0;
26435}
26436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026438 ac_cv_lib_Xext_XShmAttach=yes
26439else
cristy8b350f62009-11-15 23:12:43 +000026440 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026441fi
cristy8b350f62009-11-15 23:12:43 +000026442rm -f core conftest.err conftest.$ac_objext \
26443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026444LIBS=$ac_check_lib_save_LIBS
26445fi
cristy8b350f62009-11-15 23:12:43 +000026446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026447$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026448if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026449 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026450$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026451
26452fi
26453
26454 fi
26455
26456 #
26457 # Check for X11 shape extension
26458 #
cristy8b350f62009-11-15 23:12:43 +000026459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026460$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026461if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026462 $as_echo_n "(cached) " >&6
26463else
26464 ac_check_lib_save_LIBS=$LIBS
26465LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026467/* end confdefs.h. */
26468
26469/* Override any GCC internal prototype to avoid an error.
26470 Use char because int might match the return type of a GCC
26471 builtin and then its argument prototype would still apply. */
26472#ifdef __cplusplus
26473extern "C"
26474#endif
26475char XShapeCombineMask ();
26476int
26477main ()
26478{
26479return XShapeCombineMask ();
26480 ;
26481 return 0;
26482}
26483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026485 ac_cv_lib_Xext_XShapeCombineMask=yes
26486else
cristy8b350f62009-11-15 23:12:43 +000026487 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000026488fi
cristy8b350f62009-11-15 23:12:43 +000026489rm -f core conftest.err conftest.$ac_objext \
26490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026491LIBS=$ac_check_lib_save_LIBS
26492fi
cristy8b350f62009-11-15 23:12:43 +000026493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026495if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026496 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026497$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026498
26499fi
26500
cristy8b350f62009-11-15 23:12:43 +000026501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026503if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 $as_echo_n "(cached) " >&6
26505else
26506 ac_check_lib_save_LIBS=$LIBS
26507LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026509/* end confdefs.h. */
26510
26511/* Override any GCC internal prototype to avoid an error.
26512 Use char because int might match the return type of a GCC
26513 builtin and then its argument prototype would still apply. */
26514#ifdef __cplusplus
26515extern "C"
26516#endif
26517char XtSetEventDispatcher ();
26518int
26519main ()
26520{
26521return XtSetEventDispatcher ();
26522 ;
26523 return 0;
26524}
26525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026527 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26528else
cristy8b350f62009-11-15 23:12:43 +000026529 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026530fi
cristy8b350f62009-11-15 23:12:43 +000026531rm -f core conftest.err conftest.$ac_objext \
26532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026533LIBS=$ac_check_lib_save_LIBS
26534fi
cristy8b350f62009-11-15 23:12:43 +000026535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026537if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026538 XT_LIBS='-lXt'
26539fi
26540
26541 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26542fi
26543if test "$no_x" != 'yes'; then
26544 have_x='yes'
26545else
26546 have_x='no'
26547fi
cristy73bd4a52010-10-05 11:24:23 +000026548 if test "$have_x" = 'yes'; then
26549 X11_DELEGATE_TRUE=
26550 X11_DELEGATE_FALSE='#'
26551else
26552 X11_DELEGATE_TRUE='#'
26553 X11_DELEGATE_FALSE=
26554fi
26555
cristy3ed852e2009-09-05 21:47:34 +000026556
26557
26558
26559
26560#
26561# Check for ZLIB
26562#
26563
26564# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026565if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026566 withval=$with_zlib; with_zlib=$withval
26567else
26568 with_zlib='yes'
26569fi
26570
26571
26572if test "$with_zlib" != 'yes'; then
26573 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26574fi
26575
26576have_zlib='no'
26577ZLIB_LIBS=''
26578if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026580$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026582$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026584$as_echo "" >&6; }
26585 ZLIB_LIBS=''
26586 failed=0
26587 passed=0
cristy8b350f62009-11-15 23:12:43 +000026588 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026589if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026590 passed=`expr $passed + 1`
26591else
26592 failed=`expr $failed + 1`
26593fi
26594
26595
cristy8b350f62009-11-15 23:12:43 +000026596 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026597if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026598 passed=`expr $passed + 1`
26599else
26600 failed=`expr $failed + 1`
26601fi
26602
26603
cristy8b350f62009-11-15 23:12:43 +000026604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026605$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026606if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026607 $as_echo_n "(cached) " >&6
26608else
26609 ac_check_lib_save_LIBS=$LIBS
26610LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026612/* end confdefs.h. */
26613
26614/* Override any GCC internal prototype to avoid an error.
26615 Use char because int might match the return type of a GCC
26616 builtin and then its argument prototype would still apply. */
26617#ifdef __cplusplus
26618extern "C"
26619#endif
26620char compress ();
26621int
26622main ()
26623{
26624return compress ();
26625 ;
26626 return 0;
26627}
26628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026630 ac_cv_lib_z_compress=yes
26631else
cristy8b350f62009-11-15 23:12:43 +000026632 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026633fi
cristy8b350f62009-11-15 23:12:43 +000026634rm -f core conftest.err conftest.$ac_objext \
26635 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026636LIBS=$ac_check_lib_save_LIBS
26637fi
cristy8b350f62009-11-15 23:12:43 +000026638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026639$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026640if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026641 passed=`expr $passed + 1`
26642else
26643 failed=`expr $failed + 1`
26644fi
26645
cristy8b350f62009-11-15 23:12:43 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026648if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 $as_echo_n "(cached) " >&6
26650else
26651 ac_check_lib_save_LIBS=$LIBS
26652LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026654/* end confdefs.h. */
26655
26656/* Override any GCC internal prototype to avoid an error.
26657 Use char because int might match the return type of a GCC
26658 builtin and then its argument prototype would still apply. */
26659#ifdef __cplusplus
26660extern "C"
26661#endif
26662char uncompress ();
26663int
26664main ()
26665{
26666return uncompress ();
26667 ;
26668 return 0;
26669}
26670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026671if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026672 ac_cv_lib_z_uncompress=yes
26673else
cristy8b350f62009-11-15 23:12:43 +000026674 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026675fi
cristy8b350f62009-11-15 23:12:43 +000026676rm -f core conftest.err conftest.$ac_objext \
26677 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026678LIBS=$ac_check_lib_save_LIBS
26679fi
cristy8b350f62009-11-15 23:12:43 +000026680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026682if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026683 passed=`expr $passed + 1`
26684else
26685 failed=`expr $failed + 1`
26686fi
26687
cristy8b350f62009-11-15 23:12:43 +000026688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026690if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026691 $as_echo_n "(cached) " >&6
26692else
26693 ac_check_lib_save_LIBS=$LIBS
26694LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026696/* end confdefs.h. */
26697
26698/* Override any GCC internal prototype to avoid an error.
26699 Use char because int might match the return type of a GCC
26700 builtin and then its argument prototype would still apply. */
26701#ifdef __cplusplus
26702extern "C"
26703#endif
26704char deflate ();
26705int
26706main ()
26707{
26708return deflate ();
26709 ;
26710 return 0;
26711}
26712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026713if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026714 ac_cv_lib_z_deflate=yes
26715else
cristy8b350f62009-11-15 23:12:43 +000026716 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026717fi
cristy8b350f62009-11-15 23:12:43 +000026718rm -f core conftest.err conftest.$ac_objext \
26719 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026720LIBS=$ac_check_lib_save_LIBS
26721fi
cristy8b350f62009-11-15 23:12:43 +000026722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026723$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026724if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026725 passed=`expr $passed + 1`
26726else
26727 failed=`expr $failed + 1`
26728fi
26729
cristy8b350f62009-11-15 23:12:43 +000026730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026731$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026732if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 $as_echo_n "(cached) " >&6
26734else
26735 ac_check_lib_save_LIBS=$LIBS
26736LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026738/* end confdefs.h. */
26739
26740/* Override any GCC internal prototype to avoid an error.
26741 Use char because int might match the return type of a GCC
26742 builtin and then its argument prototype would still apply. */
26743#ifdef __cplusplus
26744extern "C"
26745#endif
26746char inflate ();
26747int
26748main ()
26749{
26750return inflate ();
26751 ;
26752 return 0;
26753}
26754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026755if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026756 ac_cv_lib_z_inflate=yes
26757else
cristy8b350f62009-11-15 23:12:43 +000026758 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026759fi
cristy8b350f62009-11-15 23:12:43 +000026760rm -f core conftest.err conftest.$ac_objext \
26761 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026762LIBS=$ac_check_lib_save_LIBS
26763fi
cristy8b350f62009-11-15 23:12:43 +000026764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026766if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026767 passed=`expr $passed + 1`
26768else
26769 failed=`expr $failed + 1`
26770fi
26771
cristy8b350f62009-11-15 23:12:43 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026774if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026775 $as_echo_n "(cached) " >&6
26776else
26777 ac_check_lib_save_LIBS=$LIBS
26778LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026780/* end confdefs.h. */
26781
26782/* Override any GCC internal prototype to avoid an error.
26783 Use char because int might match the return type of a GCC
26784 builtin and then its argument prototype would still apply. */
26785#ifdef __cplusplus
26786extern "C"
26787#endif
26788char gzseek ();
26789int
26790main ()
26791{
26792return gzseek ();
26793 ;
26794 return 0;
26795}
26796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026798 ac_cv_lib_z_gzseek=yes
26799else
cristy8b350f62009-11-15 23:12:43 +000026800 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026801fi
cristy8b350f62009-11-15 23:12:43 +000026802rm -f core conftest.err conftest.$ac_objext \
26803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026804LIBS=$ac_check_lib_save_LIBS
26805fi
cristy8b350f62009-11-15 23:12:43 +000026806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026808if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026809 passed=`expr $passed + 1`
26810else
26811 failed=`expr $failed + 1`
26812fi
26813
cristy8b350f62009-11-15 23:12:43 +000026814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026816if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026817 $as_echo_n "(cached) " >&6
26818else
26819 ac_check_lib_save_LIBS=$LIBS
26820LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026822/* end confdefs.h. */
26823
26824/* Override any GCC internal prototype to avoid an error.
26825 Use char because int might match the return type of a GCC
26826 builtin and then its argument prototype would still apply. */
26827#ifdef __cplusplus
26828extern "C"
26829#endif
26830char gztell ();
26831int
26832main ()
26833{
26834return gztell ();
26835 ;
26836 return 0;
26837}
26838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026839if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026840 ac_cv_lib_z_gztell=yes
26841else
cristy8b350f62009-11-15 23:12:43 +000026842 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026843fi
cristy8b350f62009-11-15 23:12:43 +000026844rm -f core conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026846LIBS=$ac_check_lib_save_LIBS
26847fi
cristy8b350f62009-11-15 23:12:43 +000026848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026849$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026850if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026851 passed=`expr $passed + 1`
26852else
26853 failed=`expr $failed + 1`
26854fi
26855
cristy8b350f62009-11-15 23:12:43 +000026856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026857$as_echo_n "checking if ZLIB package is complete... " >&6; }
26858 if test $passed -gt 0; then
26859 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026861$as_echo "no -- some components failed test" >&6; }
26862 have_zlib='no (failed tests)'
26863 else
26864 ZLIB_LIBS='-lz'
26865 LIBS="$ZLIB_LIBS $LIBS"
26866
cristy8b350f62009-11-15 23:12:43 +000026867$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026868
cristy8b350f62009-11-15 23:12:43 +000026869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026870$as_echo "yes" >&6; }
26871 have_zlib='yes'
26872 fi
26873 else
cristy8b350f62009-11-15 23:12:43 +000026874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026875$as_echo "no" >&6; }
26876 fi
26877fi
cristy73bd4a52010-10-05 11:24:23 +000026878 if test "$have_zlib" = 'yes'; then
26879 ZLIB_DELEGATE_TRUE=
26880 ZLIB_DELEGATE_FALSE='#'
26881else
26882 ZLIB_DELEGATE_TRUE='#'
26883 ZLIB_DELEGATE_FALSE=
26884fi
26885
cristy3ed852e2009-09-05 21:47:34 +000026886
26887
26888#
26889# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26890#
26891LIB_DL=''
26892if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026894$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026895if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026896 $as_echo_n "(cached) " >&6
26897else
26898 ac_check_lib_save_LIBS=$LIBS
26899LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026901/* end confdefs.h. */
26902
26903/* Override any GCC internal prototype to avoid an error.
26904 Use char because int might match the return type of a GCC
26905 builtin and then its argument prototype would still apply. */
26906#ifdef __cplusplus
26907extern "C"
26908#endif
26909char dlopen ();
26910int
26911main ()
26912{
26913return dlopen ();
26914 ;
26915 return 0;
26916}
26917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026918if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026919 ac_cv_lib_dl_dlopen=yes
26920else
cristy8b350f62009-11-15 23:12:43 +000026921 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026922fi
cristy8b350f62009-11-15 23:12:43 +000026923rm -f core conftest.err conftest.$ac_objext \
26924 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026925LIBS=$ac_check_lib_save_LIBS
26926fi
cristy8b350f62009-11-15 23:12:43 +000026927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026929if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026930 LIB_DL='-ldl'
26931fi
26932
26933 LIBS="$LIB_DL $LIBS"
26934fi
26935
26936
26937
26938#
26939# Check for Autotrace delegate library.
26940#
26941
26942# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026943if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026944 withval=$with_autotrace; with_autotrace=$withval
26945else
26946 with_autotrace='no'
26947fi
26948
26949
26950if test "$with_autotrace" != 'yes'; then
26951 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26952fi
26953
26954have_autotrace='no'
26955AUTOTRACE_CFLAGS=""
26956AUTOTRACE_LIBS=""
26957AUTOTRACE_PKG=""
26958if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026960$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026961
26962pkg_failed=no
26963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26964$as_echo_n "checking for AUTOTRACE... " >&6; }
26965
26966if test -n "$AUTOTRACE_CFLAGS"; then
26967 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26968 elif test -n "$PKG_CONFIG"; then
26969 if test -n "$PKG_CONFIG" && \
26970 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26971 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26972 ac_status=$?
26973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974 test $ac_status = 0; }; then
26975 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26976else
26977 pkg_failed=yes
26978fi
26979 else
26980 pkg_failed=untried
26981fi
26982if test -n "$AUTOTRACE_LIBS"; then
26983 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26984 elif test -n "$PKG_CONFIG"; then
26985 if test -n "$PKG_CONFIG" && \
26986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26987 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26988 ac_status=$?
26989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26990 test $ac_status = 0; }; then
26991 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26992else
26993 pkg_failed=yes
26994fi
26995 else
26996 pkg_failed=untried
26997fi
26998
26999
27000
27001if test $pkg_failed = yes; then
27002
27003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27004 _pkg_short_errors_supported=yes
27005else
27006 _pkg_short_errors_supported=no
27007fi
27008 if test $_pkg_short_errors_supported = yes; then
27009 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27010 else
27011 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27012 fi
27013 # Put the nasty error message in config.log where it belongs
27014 echo "$AUTOTRACE_PKG_ERRORS" >&5
27015
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27017$as_echo "no" >&6; }
27018 have_autotrace=no
27019elif test $pkg_failed = untried; then
27020 have_autotrace=no
27021else
27022 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27023 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27025$as_echo "yes" >&6; }
27026 have_autotrace=yes
27027fi
cristy8b350f62009-11-15 23:12:43 +000027028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027029$as_echo "" >&6; }
27030fi
27031
27032if test "$have_autotrace" = 'yes'; then
27033 failed=0
27034
cristy8b350f62009-11-15 23:12:43 +000027035$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027036
27037 if test "$with_modules" = 'no'; then
27038 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27039 fi
27040fi
27041
cristy73bd4a52010-10-05 11:24:23 +000027042 if test "$have_autotrace" = 'yes'; then
27043 AUTOTRACE_DELEGATE_TRUE=
27044 AUTOTRACE_DELEGATE_FALSE='#'
27045else
27046 AUTOTRACE_DELEGATE_TRUE='#'
27047 AUTOTRACE_DELEGATE_FALSE=
27048fi
27049
cristy3ed852e2009-09-05 21:47:34 +000027050
27051
27052
27053
27054#
27055# Check for Display Postscript delegate library.
27056#
27057
27058# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027059if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027060 withval=$with_dps; with_dps=$withval
27061else
27062 with_dps='yes'
27063fi
27064
27065
27066if test "$with_dps" != 'yes'; then
27067 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27068fi
27069
27070have_dps='no'
27071DPS_LIBS=''
27072if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027074$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027076$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027078$as_echo "" >&6; }
27079 failed=0
27080 passed=0
27081 PERSIST_CPPFLAGS="$CPPFLAGS"
27082 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027083 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 +000027084if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027085 passed=`expr $passed + 1`
27086else
27087 failed=`expr $failed + 1`
27088fi
27089
27090
27091 # DPS issues:
27092 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27093 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27094 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27095 # ImageMagick itself doesn't use -lXt.
27096 have_libdps='no'
27097 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027099$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027100if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027101 $as_echo_n "(cached) " >&6
27102else
27103 ac_check_lib_save_LIBS=$LIBS
27104LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027106/* end confdefs.h. */
27107
27108/* Override any GCC internal prototype to avoid an error.
27109 Use char because int might match the return type of a GCC
27110 builtin and then its argument prototype would still apply. */
27111#ifdef __cplusplus
27112extern "C"
27113#endif
27114char DPSInitialize ();
27115int
27116main ()
27117{
27118return DPSInitialize ();
27119 ;
27120 return 0;
27121}
27122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027123if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027124 ac_cv_lib_dps_DPSInitialize=yes
27125else
cristy8b350f62009-11-15 23:12:43 +000027126 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027127fi
cristy8b350f62009-11-15 23:12:43 +000027128rm -f core conftest.err conftest.$ac_objext \
27129 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027130LIBS=$ac_check_lib_save_LIBS
27131fi
cristy8b350f62009-11-15 23:12:43 +000027132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027133$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027134if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027135 have_libdps='yes'
27136else
27137 have_libdps='no'
27138fi
27139
27140 if test "$have_libdps" != 'yes'; then
27141 # Unset cache variable so we can try again.
27142 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027144$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027145if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027146 $as_echo_n "(cached) " >&6
27147else
27148 ac_check_lib_save_LIBS=$LIBS
27149LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027151/* end confdefs.h. */
27152
27153/* Override any GCC internal prototype to avoid an error.
27154 Use char because int might match the return type of a GCC
27155 builtin and then its argument prototype would still apply. */
27156#ifdef __cplusplus
27157extern "C"
27158#endif
27159char DPSInitialize ();
27160int
27161main ()
27162{
27163return DPSInitialize ();
27164 ;
27165 return 0;
27166}
27167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 ac_cv_lib_dps_DPSInitialize=yes
27170else
cristy8b350f62009-11-15 23:12:43 +000027171 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027172fi
cristy8b350f62009-11-15 23:12:43 +000027173rm -f core conftest.err conftest.$ac_objext \
27174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027175LIBS=$ac_check_lib_save_LIBS
27176fi
cristy8b350f62009-11-15 23:12:43 +000027177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027179if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 have_libdps='yes'
27181else
27182 have_libdps='no'
27183fi
27184
27185 if test "$have_libdps" = 'yes'; then
27186 LIBDPS_XT='-lXt'
27187 fi
27188 fi
27189 if test "$have_libdps" = 'yes'; then
27190 passed=`expr $passed + 1`
27191 else
27192 failed=`expr $failed + 1`
27193 fi
cristy8b350f62009-11-15 23:12:43 +000027194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027195$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027196if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027197 $as_echo_n "(cached) " >&6
27198else
27199 ac_check_lib_save_LIBS=$LIBS
27200LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027202/* end confdefs.h. */
27203
27204/* Override any GCC internal prototype to avoid an error.
27205 Use char because int might match the return type of a GCC
27206 builtin and then its argument prototype would still apply. */
27207#ifdef __cplusplus
27208extern "C"
27209#endif
27210char XDPSPixelsPerPoint ();
27211int
27212main ()
27213{
27214return XDPSPixelsPerPoint ();
27215 ;
27216 return 0;
27217}
27218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027220 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27221else
cristy8b350f62009-11-15 23:12:43 +000027222 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027223fi
cristy8b350f62009-11-15 23:12:43 +000027224rm -f core conftest.err conftest.$ac_objext \
27225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027226LIBS=$ac_check_lib_save_LIBS
27227fi
cristy8b350f62009-11-15 23:12:43 +000027228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027229$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027230if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027231 passed=`expr $passed + 1`
27232else
27233 failed=`expr $failed + 1`
27234fi
27235
cristy8b350f62009-11-15 23:12:43 +000027236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027237$as_echo_n "checking if DPS package is complete... " >&6; }
27238 if test $passed -gt 0; then
27239 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo "no -- some components failed test" >&6; }
27242 have_dps='no (failed tests)'
27243 CPPFLAGS="$PERSIST_CPPFLAGS"
27244 else
27245 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27246 LIBS="$DPS_LIBS $LIBS"
27247
cristy8b350f62009-11-15 23:12:43 +000027248$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027249
cristy8b350f62009-11-15 23:12:43 +000027250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027251$as_echo "yes" >&6; }
27252 have_dps='yes'
27253 fi
27254 else
cristy8b350f62009-11-15 23:12:43 +000027255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo "no" >&6; }
27257 CPPFLAGS=$PERSIST_CPPFLAGS
27258 fi
27259fi
cristy73bd4a52010-10-05 11:24:23 +000027260 if test "$have_dps" = 'yes'; then
27261 DPS_DELEGATE_TRUE=
27262 DPS_DELEGATE_FALSE='#'
27263else
27264 DPS_DELEGATE_TRUE='#'
27265 DPS_DELEGATE_FALSE=
27266fi
27267
cristy3ed852e2009-09-05 21:47:34 +000027268
27269
27270
27271#
27272# Check for DJVU delegate library.
27273#
27274
27275# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027276if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 withval=$with_djvu; with_djvu=$withval
27278else
27279 with_djvu='yes'
27280fi
27281
27282
27283if test "$with_djvu" != 'yes'; then
27284 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27285fi
27286
27287have_djvu='no'
27288DJVU_LIBS=''
27289if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027291$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo "" >&6; }
27296 failed=0
27297 passed=0
cristy8b350f62009-11-15 23:12:43 +000027298 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 +000027299if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 passed=`expr $passed + 1`
27301else
27302 failed=`expr $failed + 1`
27303fi
27304
27305
cristy8b350f62009-11-15 23:12:43 +000027306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027308if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 $as_echo_n "(cached) " >&6
27310else
27311 ac_check_lib_save_LIBS=$LIBS
27312LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027314/* end confdefs.h. */
27315
27316/* Override any GCC internal prototype to avoid an error.
27317 Use char because int might match the return type of a GCC
27318 builtin and then its argument prototype would still apply. */
27319#ifdef __cplusplus
27320extern "C"
27321#endif
27322char ddjvu_context_create ();
27323int
27324main ()
27325{
27326return ddjvu_context_create ();
27327 ;
27328 return 0;
27329}
27330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27333else
cristy8b350f62009-11-15 23:12:43 +000027334 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027335fi
cristy8b350f62009-11-15 23:12:43 +000027336rm -f core conftest.err conftest.$ac_objext \
27337 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027338LIBS=$ac_check_lib_save_LIBS
27339fi
cristy8b350f62009-11-15 23:12:43 +000027340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027342if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 passed=`expr $passed + 1`
27344else
27345 failed=`expr $failed + 1`
27346fi
27347
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo_n "checking if DJVU package is complete... " >&6; }
27350 if test $passed -gt 0; then
27351 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027353$as_echo "no -- some components failed test" >&6; }
27354 have_djvu='no (failed tests)'
27355 else
27356 DJVU_LIBS='-ldjvulibre'
27357 LIBS="$DJVU_LIBS $LIBS"
27358
cristy8b350f62009-11-15 23:12:43 +000027359$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027360
cristy8b350f62009-11-15 23:12:43 +000027361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo "yes" >&6; }
27363 have_djvu='yes'
27364 fi
27365 else
cristy8b350f62009-11-15 23:12:43 +000027366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027367$as_echo "no" >&6; }
27368 fi
27369fi
cristy73bd4a52010-10-05 11:24:23 +000027370 if test "$have_djvu" = 'yes'; then
27371 DJVU_DELEGATE_TRUE=
27372 DJVU_DELEGATE_FALSE='#'
27373else
27374 DJVU_DELEGATE_TRUE='#'
27375 DJVU_DELEGATE_FALSE=
27376fi
27377
cristy3ed852e2009-09-05 21:47:34 +000027378
27379
27380
27381#
cristy430a7312010-01-21 20:44:04 +000027382# Set DejaVu font directory.
27383#
27384
27385# Check whether --with-dejavu-font-dir was given.
27386if test "${with_dejavu_font_dir+set}" = set; then :
27387 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27388else
27389 with_dejavu_font_dir='default'
27390fi
27391
27392
27393if test "$with_dejavu_font_dir" != 'default'; then
27394 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27395fi
27396
27397
27398#
cristy3ed852e2009-09-05 21:47:34 +000027399# Check for FFTW delegate library.
27400#
27401
27402# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027403if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027404 withval=$with_fftw; with_fftw=$withval
27405else
27406 with_fftw='yes'
27407fi
27408
27409
27410if test "$with_fftw" != 'yes'; then
27411 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27412fi
27413
27414have_fftw='no'
27415FFTW_LIBS=''
27416if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027418$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027420$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo "" >&6; }
27423 failed=0
27424 passed=0
cristy8b350f62009-11-15 23:12:43 +000027425 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027426if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027427 passed=`expr $passed + 1`
27428else
27429 failed=`expr $failed + 1`
27430fi
27431
27432
cristy8b350f62009-11-15 23:12:43 +000027433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027434$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027435if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027436 $as_echo_n "(cached) " >&6
27437else
27438 ac_check_lib_save_LIBS=$LIBS
27439LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027441/* end confdefs.h. */
27442
27443/* Override any GCC internal prototype to avoid an error.
27444 Use char because int might match the return type of a GCC
27445 builtin and then its argument prototype would still apply. */
27446#ifdef __cplusplus
27447extern "C"
27448#endif
27449char fftw_execute ();
27450int
27451main ()
27452{
27453return fftw_execute ();
27454 ;
27455 return 0;
27456}
27457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027459 ac_cv_lib_fftw3_fftw_execute=yes
27460else
cristy8b350f62009-11-15 23:12:43 +000027461 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027462fi
cristy8b350f62009-11-15 23:12:43 +000027463rm -f core conftest.err conftest.$ac_objext \
27464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027465LIBS=$ac_check_lib_save_LIBS
27466fi
cristy8b350f62009-11-15 23:12:43 +000027467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027468$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027469if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027470 passed=`expr $passed + 1`
27471else
27472 failed=`expr $failed + 1`
27473fi
27474
cristy8b350f62009-11-15 23:12:43 +000027475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027476$as_echo_n "checking if FFTW package is complete... " >&6; }
27477 if test $passed -gt 0; then
27478 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027480$as_echo "no -- some components failed test" >&6; }
27481 have_fftw='no (failed tests)'
27482 else
27483 FFTW_LIBS='-lfftw3'
27484 LIBS="$FFTW_LIBS $LIBS"
27485
cristy8b350f62009-11-15 23:12:43 +000027486$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027487
cristy8b350f62009-11-15 23:12:43 +000027488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027489$as_echo "yes" >&6; }
27490 have_fftw='yes'
27491 fi
27492 else
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo "no" >&6; }
27495 fi
27496fi
cristy73bd4a52010-10-05 11:24:23 +000027497 if test "$have_fftw" = 'yes'; then
27498 FFTW_DELEGATE_TRUE=
27499 FFTW_DELEGATE_FALSE='#'
27500else
27501 FFTW_DELEGATE_TRUE='#'
27502 FFTW_DELEGATE_FALSE=
27503fi
27504
cristy3ed852e2009-09-05 21:47:34 +000027505
27506
27507
27508#
27509# Check for FlashPIX delegate library.
27510#
27511
27512# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027513if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 withval=$with_fpx; with_fpx=$withval
27515else
27516 with_fpx='yes'
27517fi
27518
27519
27520if test "$with_fpx" != 'yes'; then
27521 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27522fi
27523
27524have_fpx='no'
27525FPX_LIBS=''
27526if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo "" >&6; }
27533 failed=0
27534 passed=0
27535 ac_ext=cpp
27536ac_cpp='$CXXCPP $CPPFLAGS'
27537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27540
27541
cristy8b350f62009-11-15 23:12:43 +000027542ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027543if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027544 passed=`expr $passed + 1`
27545else
27546 failed=`expr $failed + 1`
27547fi
27548
27549
cristy8b350f62009-11-15 23:12:43 +000027550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027551$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027552if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027553 $as_echo_n "(cached) " >&6
27554else
27555 ac_check_lib_save_LIBS=$LIBS
27556LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027558/* end confdefs.h. */
27559
27560/* Override any GCC internal prototype to avoid an error.
27561 Use char because int might match the return type of a GCC
27562 builtin and then its argument prototype would still apply. */
27563#ifdef __cplusplus
27564extern "C"
27565#endif
27566char FPX_OpenImageByFilename ();
27567int
27568main ()
27569{
27570return FPX_OpenImageByFilename ();
27571 ;
27572 return 0;
27573}
27574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027575if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027576 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27577else
cristy8b350f62009-11-15 23:12:43 +000027578 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027579fi
cristy8b350f62009-11-15 23:12:43 +000027580rm -f core conftest.err conftest.$ac_objext \
27581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027582LIBS=$ac_check_lib_save_LIBS
27583fi
cristy8b350f62009-11-15 23:12:43 +000027584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027586if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027587 passed=`expr $passed + 1`
27588else
27589 failed=`expr $failed + 1`
27590fi
27591
27592 ac_ext=c
27593ac_cpp='$CPP $CPPFLAGS'
27594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27596ac_compiler_gnu=$ac_cv_c_compiler_gnu
27597
cristy8b350f62009-11-15 23:12:43 +000027598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027599$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27600 if test $passed -gt 0; then
27601 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027603$as_echo "no -- some components failed test" >&6; }
27604 have_fpx='no (failed tests)'
27605 else
27606 FPX_LIBS='-lfpx'
27607
cristy8b350f62009-11-15 23:12:43 +000027608$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027609
cristy8b350f62009-11-15 23:12:43 +000027610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027611$as_echo "yes" >&6; }
27612 have_fpx='yes'
27613 PERLMAINCC="$CXX"
27614 fi
27615 else
cristy8b350f62009-11-15 23:12:43 +000027616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027617$as_echo "no" >&6; }
27618 fi
27619fi
cristy73bd4a52010-10-05 11:24:23 +000027620 if test "$have_fpx" = 'yes'; then
27621 FPX_DELEGATE_TRUE=
27622 FPX_DELEGATE_FALSE='#'
27623else
27624 FPX_DELEGATE_TRUE='#'
27625 FPX_DELEGATE_FALSE=
27626fi
27627
cristy3ed852e2009-09-05 21:47:34 +000027628
27629
27630
27631#
27632# Check for fontconfig delegate library.
27633#
27634
27635# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027636if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 withval=$with_fontconfig; with_fontconfig=$withval
27638else
27639 with_fontconfig=$have_x
27640fi
27641
27642
27643if test "$with_fontconfig" != 'yes'; then
27644 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27645fi
27646
27647have_fontconfig='no'
27648FONTCONFIG_CFLAGS=""
27649FONTCONFIG_LIBS=""
27650FONTCONFIG_PKG=""
27651if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027653$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027654
27655pkg_failed=no
27656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27657$as_echo_n "checking for FONTCONFIG... " >&6; }
27658
27659if test -n "$FONTCONFIG_CFLAGS"; then
27660 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27661 elif test -n "$PKG_CONFIG"; then
27662 if test -n "$PKG_CONFIG" && \
27663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27664 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27665 ac_status=$?
27666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27667 test $ac_status = 0; }; then
27668 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27669else
27670 pkg_failed=yes
27671fi
27672 else
27673 pkg_failed=untried
27674fi
27675if test -n "$FONTCONFIG_LIBS"; then
27676 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27677 elif test -n "$PKG_CONFIG"; then
27678 if test -n "$PKG_CONFIG" && \
27679 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27680 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27681 ac_status=$?
27682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27683 test $ac_status = 0; }; then
27684 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27685else
27686 pkg_failed=yes
27687fi
27688 else
27689 pkg_failed=untried
27690fi
27691
27692
27693
27694if test $pkg_failed = yes; then
27695
27696if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27697 _pkg_short_errors_supported=yes
27698else
27699 _pkg_short_errors_supported=no
27700fi
27701 if test $_pkg_short_errors_supported = yes; then
27702 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27703 else
27704 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27705 fi
27706 # Put the nasty error message in config.log where it belongs
27707 echo "$FONTCONFIG_PKG_ERRORS" >&5
27708
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27710$as_echo "no" >&6; }
27711 have_fontconfig=no
27712elif test $pkg_failed = untried; then
27713 have_fontconfig=no
27714else
27715 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27716 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27718$as_echo "yes" >&6; }
27719 have_fontconfig=yes
27720fi
cristy8b350f62009-11-15 23:12:43 +000027721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo "" >&6; }
27723fi
27724
27725if test "$have_fontconfig" = 'yes'; then
27726
cristy8b350f62009-11-15 23:12:43 +000027727$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027728
cristyd09bcf92010-03-25 03:04:45 +000027729 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027730 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027731 fi
cristy3ed852e2009-09-05 21:47:34 +000027732fi
27733
cristy73bd4a52010-10-05 11:24:23 +000027734 if test "$have_fontconfig" = 'yes'; then
27735 FONTCONFIG_DELEGATE_TRUE=
27736 FONTCONFIG_DELEGATE_FALSE='#'
27737else
27738 FONTCONFIG_DELEGATE_TRUE='#'
27739 FONTCONFIG_DELEGATE_FALSE=
27740fi
27741
cristy3ed852e2009-09-05 21:47:34 +000027742
27743
27744
27745
27746#
27747# Check for freetype delegate library.
27748#
27749
27750# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027751if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 withval=$with_freetype; with_freetype=$withval
27753else
27754 with_freetype='yes'
27755fi
27756
27757
27758
27759if test "$with_freetype" != 'yes'; then
27760 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27761fi
27762
27763have_freetype='no'
27764FREETYPE_LIBS=''
27765if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027767$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027769$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027771$as_echo "" >&6; }
27772 failed=0
27773 passed=0
cristy66291112009-10-03 22:44:36 +000027774 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027775 PERSIST_CPPFLAGS="$CPPFLAGS"
27776 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27777 :
27778 else
27779 freetype_config=''
27780 for ac_prog in freetype-config
27781do
27782 # Extract the first word of "$ac_prog", so it can be a program name with args.
27783set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027786if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 $as_echo_n "(cached) " >&6
27788else
27789 if test -n "$freetype_config"; then
27790 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27791else
27792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27793for as_dir in $PATH
27794do
27795 IFS=$as_save_IFS
27796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27799 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027801 break 2
27802 fi
27803done
cristy8b350f62009-11-15 23:12:43 +000027804 done
cristy3ed852e2009-09-05 21:47:34 +000027805IFS=$as_save_IFS
27806
27807fi
27808fi
27809freetype_config=$ac_cv_prog_freetype_config
27810if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027812$as_echo "$freetype_config" >&6; }
27813else
cristy8b350f62009-11-15 23:12:43 +000027814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027815$as_echo "no" >&6; }
27816fi
27817
27818
27819 test -n "$freetype_config" && break
27820done
27821 if test -n "$freetype_config"; then
27822 freetype_cflags=`$freetype_config --cflags`
27823 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027824 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027825 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27826 fi
27827 fi
27828
27829 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027831$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027832if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 $as_echo_n "(cached) " >&6
27834else
27835 ac_check_lib_save_LIBS=$LIBS
27836LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027838/* end confdefs.h. */
27839
27840/* Override any GCC internal prototype to avoid an error.
27841 Use char because int might match the return type of a GCC
27842 builtin and then its argument prototype would still apply. */
27843#ifdef __cplusplus
27844extern "C"
27845#endif
27846char FT_Init_FreeType ();
27847int
27848main ()
27849{
27850return FT_Init_FreeType ();
27851 ;
27852 return 0;
27853}
27854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 ac_cv_lib_freetype_FT_Init_FreeType=yes
27857else
cristy8b350f62009-11-15 23:12:43 +000027858 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027859fi
cristy8b350f62009-11-15 23:12:43 +000027860rm -f core conftest.err conftest.$ac_objext \
27861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027862LIBS=$ac_check_lib_save_LIBS
27863fi
cristy8b350f62009-11-15 23:12:43 +000027864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027866if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 FREETYPE_LIBS='-lfreetype'
27868fi
27869
27870 if test "$FREETYPE_LIBS" != ''; then
27871 passed=`expr $passed + 1`
27872 else
27873 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027874 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027875 fi
27876 fi
27877
cristy8b350f62009-11-15 23:12:43 +000027878 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027879if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027880 FT2BUILD_H='#include <ft2build.h>'
27881else
27882 ft2build=''
27883fi
27884
27885
cristy8b350f62009-11-15 23:12:43 +000027886 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27887"
cristyda16f162011-02-19 23:52:17 +000027888if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 have_freetype_h='yes'
27890else
27891 have_freetype_h='no'
27892fi
27893
27894
27895 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27896 passed=`expr $passed + 1`
27897 else
27898 failed=`expr $failed + 1`
27899 CPPFLAGS="$PERSIST_CPPFLAGS"
27900 fi
27901
cristy8b350f62009-11-15 23:12:43 +000027902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027903$as_echo_n "checking if FreeType package is complete... " >&6; }
27904 if test $passed -gt 0; then
27905 if test $failed -gt 0; then
27906 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027908$as_echo "no -- some components failed test" >&6; }
27909 have_freetype='no (failed tests)'
27910 else
27911 LIBS="$FREETYPE_LIBS $LIBS"
27912
cristy8b350f62009-11-15 23:12:43 +000027913$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027914
27915 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27916
cristy8b350f62009-11-15 23:12:43 +000027917$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027918
27919 fi
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo "yes" >&6; }
27922 have_freetype='yes'
27923 fi
27924 else
cristy8b350f62009-11-15 23:12:43 +000027925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027926$as_echo "no" >&6; }
27927 fi
27928fi
cristy73bd4a52010-10-05 11:24:23 +000027929 if test "$have_freetype" = 'yes'; then
27930 FREETYPE_DELEGATE_TRUE=
27931 FREETYPE_DELEGATE_FALSE='#'
27932else
27933 FREETYPE_DELEGATE_TRUE='#'
27934 FREETYPE_DELEGATE_FALSE=
27935fi
27936
cristy3ed852e2009-09-05 21:47:34 +000027937
27938
27939
27940
27941#
27942# Check for Ghostscript library or framework.
27943#
27944# Test for iapi.h & test for gsapi_new_instance in -lgs
27945# or -framework Ghostscript
27946
27947
27948# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027949if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027950 withval=$with_gslib; with_gslib=$withval
27951else
27952 with_gslib='no'
27953fi
27954
27955
cristyb7931f12009-09-25 10:22:21 +000027956gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027957if test "$with_gslib" != 'yes'; then
27958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27959fi
27960
27961have_gslib='no'
27962GS_LIBS=''
27963if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027970 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027971 failed=0
27972 passed=0
cristy8b350f62009-11-15 23:12:43 +000027973 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 +000027974if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027975 passed=`expr $passed + 1`
27976else
27977 failed=`expr $failed + 1`
27978fi
27979
27980
cristy8b350f62009-11-15 23:12:43 +000027981 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 +000027982if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 passed=`expr $passed + 1`
27984else
27985 failed=`expr $failed + 1`
27986fi
27987
27988
cristy73bd4a52010-10-05 11:24:23 +000027989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27990$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027991if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027992 $as_echo_n "(cached) " >&6
27993else
27994 ac_check_framework_save_LIBS=$LIBS
27995LIBS="-framework Ghostscript $LIBS"
27996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27997/* end confdefs.h. */
27998
27999/* Override any GCC internal prototype to avoid an error.
28000 Use char because int might match the return type of a GCC
28001 builtin and then its argument prototype would still apply. */
28002#ifdef __cplusplus
28003extern "C"
28004#endif
28005char gsapi_new_instance ();
28006int
28007main ()
28008{
28009return gsapi_new_instance ();
28010 ;
28011 return 0;
28012}
28013_ACEOF
28014if ac_fn_c_try_link "$LINENO"; then :
28015 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28016else
28017 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28018fi
28019rm -f core conftest.err conftest.$ac_objext \
28020 conftest$ac_exeext conftest.$ac_ext
28021LIBS=$ac_check_framework_save_LIBS
28022fi
28023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28024$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28025if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28026 framework=`expr $framework + 1`
28027else
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028029$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028030if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028031 $as_echo_n "(cached) " >&6
28032else
28033 ac_check_lib_save_LIBS=$LIBS
28034LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028036/* end confdefs.h. */
28037
28038/* Override any GCC internal prototype to avoid an error.
28039 Use char because int might match the return type of a GCC
28040 builtin and then its argument prototype would still apply. */
28041#ifdef __cplusplus
28042extern "C"
28043#endif
28044char gsapi_new_instance ();
28045int
28046main ()
28047{
28048return gsapi_new_instance ();
28049 ;
28050 return 0;
28051}
28052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028054 ac_cv_lib_gs_gsapi_new_instance=yes
28055else
cristy8b350f62009-11-15 23:12:43 +000028056 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028057fi
cristy8b350f62009-11-15 23:12:43 +000028058rm -f core conftest.err conftest.$ac_objext \
28059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028060LIBS=$ac_check_lib_save_LIBS
28061fi
cristy8b350f62009-11-15 23:12:43 +000028062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028063$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028064if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 passed=`expr $passed + 1`
28066else
28067 failed=`expr $failed + 1`
28068fi
cristy73bd4a52010-10-05 11:24:23 +000028069
28070fi
cristy8b350f62009-11-15 23:12:43 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28073 if test $passed -gt 0; then
28074 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo "no -- some components failed test" >&6; }
28077 have_gslib='no (failed tests)'
28078 else
28079 if test $framework -gt 0; then
28080 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028081 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo "yes, using framework." >&6; }
28084 else
cristy8b350f62009-11-15 23:12:43 +000028085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028086$as_echo "yes, using library." >&6; }
28087 GS_LIBS='-lgs'
28088 fi
28089 LIBS="$GS_LIBS $LIBS"
28090
cristy8b350f62009-11-15 23:12:43 +000028091$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028092
28093 have_gslib='yes'
28094 fi
28095 else
cristy8b350f62009-11-15 23:12:43 +000028096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028097$as_echo "no" >&6; }
28098 fi
28099fi
cristy73bd4a52010-10-05 11:24:23 +000028100 if test "$have_gslib" = 'yes'; then
28101 GS_DELEGATE_TRUE=
28102 GS_DELEGATE_FALSE='#'
28103else
28104 GS_DELEGATE_TRUE='#'
28105 GS_DELEGATE_FALSE=
28106fi
28107
cristy3ed852e2009-09-05 21:47:34 +000028108
28109
28110# Set default font search path
28111
28112# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028113if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 withval=$with_fontpath; with_fontpath=$withval
28115else
28116 with_fontpath=''
28117fi
28118
28119
28120if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28121 with_fontpath=''
28122else
28123
28124cat >>confdefs.h <<_ACEOF
28125#define MAGICK_FONT_PATH "$with_fontpath"
28126_ACEOF
28127
28128fi
28129if test "$with_fontpath=" != ''; then
28130 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28131fi
28132
28133# Set Ghostscript font directory
28134
28135# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028136if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028137 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28138else
28139 with_gs_font_dir='default'
28140fi
28141
28142
28143if test "$with_gs_font_dir" != 'default'; then
28144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28145fi
28146
28147
28148#
28149# Check for GVC delegate library.
28150#
28151
28152# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028153if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028154 withval=$with_gvc; with_gvc=$withval
28155else
28156 with_gvc='yes'
28157fi
28158
28159
28160if test "$with_gvc" != 'yes'; then
28161 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28162fi
28163
28164GVC_PKG=""
28165if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028167$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028168
28169pkg_failed=no
28170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28171$as_echo_n "checking for GVC... " >&6; }
28172
28173if test -n "$GVC_CFLAGS"; then
28174 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28175 elif test -n "$PKG_CONFIG"; then
28176 if test -n "$PKG_CONFIG" && \
28177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28178 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28179 ac_status=$?
28180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28181 test $ac_status = 0; }; then
28182 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28183else
28184 pkg_failed=yes
28185fi
28186 else
28187 pkg_failed=untried
28188fi
28189if test -n "$GVC_LIBS"; then
28190 pkg_cv_GVC_LIBS="$GVC_LIBS"
28191 elif test -n "$PKG_CONFIG"; then
28192 if test -n "$PKG_CONFIG" && \
28193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28194 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28195 ac_status=$?
28196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28197 test $ac_status = 0; }; then
28198 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28199else
28200 pkg_failed=yes
28201fi
28202 else
28203 pkg_failed=untried
28204fi
28205
28206
28207
28208if test $pkg_failed = yes; then
28209
28210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28211 _pkg_short_errors_supported=yes
28212else
28213 _pkg_short_errors_supported=no
28214fi
28215 if test $_pkg_short_errors_supported = yes; then
28216 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28217 else
28218 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28219 fi
28220 # Put the nasty error message in config.log where it belongs
28221 echo "$GVC_PKG_ERRORS" >&5
28222
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28224$as_echo "no" >&6; }
28225 have_gvc=no
28226elif test $pkg_failed = untried; then
28227 have_gvc=no
28228else
28229 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28230 GVC_LIBS=$pkg_cv_GVC_LIBS
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28232$as_echo "yes" >&6; }
28233 have_gvc=yes
28234fi
cristy8b350f62009-11-15 23:12:43 +000028235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028236$as_echo "" >&6; }
28237fi
28238
28239if test "$have_gvc" = 'yes'; then
28240
cristy8b350f62009-11-15 23:12:43 +000028241$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028242
28243 if test "$with_modules" = 'no'; then
28244 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28245 fi
28246fi
28247
cristy73bd4a52010-10-05 11:24:23 +000028248 if test "$have_gvc" = 'yes'; then
28249 GVC_DELEGATE_TRUE=
28250 GVC_DELEGATE_FALSE='#'
28251else
28252 GVC_DELEGATE_TRUE='#'
28253 GVC_DELEGATE_FALSE=
28254fi
28255
cristy3ed852e2009-09-05 21:47:34 +000028256
28257
28258
28259
28260#
28261# Check for JBIG delegate library.
28262#
28263
28264
28265# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028266if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028267 withval=$with_jbig; with_jbig=$withval
28268else
28269 with_jbig='yes'
28270fi
28271
28272
28273have_jbig='no'
28274JBIG_LIBS=''
28275if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028277$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028279$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028281$as_echo "" >&6; }
28282 failed=0
28283 passed=0
cristy8b350f62009-11-15 23:12:43 +000028284 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028285if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028286 passed=`expr $passed + 1`
28287else
28288 failed=`expr $failed + 1`
28289fi
28290
28291
cristy8b350f62009-11-15 23:12:43 +000028292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028294if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028295 $as_echo_n "(cached) " >&6
28296else
28297 ac_check_lib_save_LIBS=$LIBS
28298LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028300/* end confdefs.h. */
28301
28302/* Override any GCC internal prototype to avoid an error.
28303 Use char because int might match the return type of a GCC
28304 builtin and then its argument prototype would still apply. */
28305#ifdef __cplusplus
28306extern "C"
28307#endif
28308char jbg_dec_init ();
28309int
28310main ()
28311{
28312return jbg_dec_init ();
28313 ;
28314 return 0;
28315}
28316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 ac_cv_lib_jbig_jbg_dec_init=yes
28319else
cristy8b350f62009-11-15 23:12:43 +000028320 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028321fi
cristy8b350f62009-11-15 23:12:43 +000028322rm -f core conftest.err conftest.$ac_objext \
28323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028324LIBS=$ac_check_lib_save_LIBS
28325fi
cristy8b350f62009-11-15 23:12:43 +000028326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028327$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028328if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028329 passed=`expr $passed + 1`
28330else
28331 failed=`expr $failed + 1`
28332fi
28333
cristy8b350f62009-11-15 23:12:43 +000028334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028335$as_echo_n "checking if JBIG package is complete... " >&6; }
28336 if test $passed -gt 0; then
28337 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028339$as_echo "no -- some components failed test" >&6; }
28340 have_jbig='no (failed tests)'
28341 else
28342 JBIG_LIBS='-ljbig'
28343 LIBS="$JBIG_LIBS $LIBS"
28344
cristy8b350f62009-11-15 23:12:43 +000028345$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028346
cristy8b350f62009-11-15 23:12:43 +000028347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028348$as_echo "yes" >&6; }
28349 have_jbig='yes'
28350 fi
28351 else
cristy8b350f62009-11-15 23:12:43 +000028352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028353$as_echo "no" >&6; }
28354 fi
28355fi
cristy73bd4a52010-10-05 11:24:23 +000028356 if test "$have_jbig" = 'yes'; then
28357 JBIG_DELEGATE_TRUE=
28358 JBIG_DELEGATE_FALSE='#'
28359else
28360 JBIG_DELEGATE_TRUE='#'
28361 JBIG_DELEGATE_FALSE=
28362fi
28363
cristy3ed852e2009-09-05 21:47:34 +000028364
28365
28366
28367#
28368# Check for JPEG delegate library.
28369#
28370
28371# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028372if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028373 withval=$with_jpeg; with_jpeg=$withval
28374else
28375 with_jpeg='yes'
28376fi
28377
28378
28379if test "$with_jpeg" != 'yes'; then
28380 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28381fi
28382
28383have_jpeg='no'
28384JPEG_LIBS=''
28385if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028387$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028389$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo "" >&6; }
28392 failed=0
28393 passed=0
cristy8b350f62009-11-15 23:12:43 +000028394 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028395if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 passed=`expr $passed + 1`
28397else
28398 failed=`expr $failed + 1`
28399fi
28400
28401
cristy8b350f62009-11-15 23:12:43 +000028402 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028403if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028404 passed=`expr $passed + 1`
28405else
28406 failed=`expr $failed + 1`
28407fi
28408
28409
cristy8b350f62009-11-15 23:12:43 +000028410 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028411if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028412 passed=`expr $passed + 1`
28413else
28414 failed=`expr $failed + 1`
28415fi
28416
28417
cristy8b350f62009-11-15 23:12:43 +000028418 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028419if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 passed=`expr $passed + 1`
28421else
28422 failed=`expr $failed + 1`
28423fi
28424
28425
cristy8b350f62009-11-15 23:12:43 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028427$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028428if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028429 $as_echo_n "(cached) " >&6
28430else
28431 ac_check_lib_save_LIBS=$LIBS
28432LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028434/* end confdefs.h. */
28435
28436/* Override any GCC internal prototype to avoid an error.
28437 Use char because int might match the return type of a GCC
28438 builtin and then its argument prototype would still apply. */
28439#ifdef __cplusplus
28440extern "C"
28441#endif
28442char jpeg_read_header ();
28443int
28444main ()
28445{
28446return jpeg_read_header ();
28447 ;
28448 return 0;
28449}
28450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028452 ac_cv_lib_jpeg_jpeg_read_header=yes
28453else
cristy8b350f62009-11-15 23:12:43 +000028454 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028455fi
cristy8b350f62009-11-15 23:12:43 +000028456rm -f core conftest.err conftest.$ac_objext \
28457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028458LIBS=$ac_check_lib_save_LIBS
28459fi
cristy8b350f62009-11-15 23:12:43 +000028460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028461$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028462if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028463 passed=`expr $passed + 1`
28464else
28465 failed=`expr $failed + 1`
28466fi
28467
28468
28469# Test for compatible JPEG library
28470if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028472$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028473if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028474 $as_echo_n "(cached) " >&6
28475else
cristy8b350f62009-11-15 23:12:43 +000028476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028477/* end confdefs.h. */
28478#include <stdio.h>
28479#include <stdlib.h>
28480#include <jpeglib.h>
28481
28482int
28483main ()
28484{
28485
28486#if JPEG_LIB_VERSION < 62
28487#error IJG JPEG library must be version 6b or newer!
28488#endif
28489return 0;
28490
28491 ;
28492 return 0;
28493}
28494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028495if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028496 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28497else
cristy8b350f62009-11-15 23:12:43 +000028498 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028499fi
cristy3ed852e2009-09-05 21:47:34 +000028500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28501fi
cristy8b350f62009-11-15 23:12:43 +000028502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028503$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28504fi
cristy8b350f62009-11-15 23:12:43 +000028505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028506$as_echo_n "checking if JPEG package is complete... " >&6; }
28507 if test $passed -gt 0; then
28508 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028510$as_echo "no -- some components failed test" >&6; }
28511 have_jpeg='no (failed tests)'
28512 else
28513 JPEG_LIBS='-ljpeg'
28514 LIBS="$JPEG_LIBS $LIBS"
28515
cristy8b350f62009-11-15 23:12:43 +000028516$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028517
cristy8b350f62009-11-15 23:12:43 +000028518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028519$as_echo "yes" >&6; }
28520 have_jpeg='yes'
28521 fi
28522 else
cristy8b350f62009-11-15 23:12:43 +000028523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028524$as_echo "no" >&6; }
28525 fi
28526fi
cristy73bd4a52010-10-05 11:24:23 +000028527 if test "$have_jpeg" = 'yes'; then
28528 JPEG_DELEGATE_TRUE=
28529 JPEG_DELEGATE_FALSE='#'
28530else
28531 JPEG_DELEGATE_TRUE='#'
28532 JPEG_DELEGATE_FALSE=
28533fi
28534
cristy3ed852e2009-09-05 21:47:34 +000028535
28536
28537
28538#
28539# Check for JPEG Version 2 delegate library.
28540#
28541
28542# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028543if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028544 withval=$with_jp2; with_jp2=$withval
28545else
28546 with_jp2='yes'
28547fi
28548
28549
28550if test "$with_jp2" != 'yes'; then
28551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28552fi
28553
28554have_jp2='no'
28555JP2_LIBS=''
28556if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028560$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo "" >&6; }
28563 failed=0
28564 passed=0
cristy8b350f62009-11-15 23:12:43 +000028565 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 +000028566if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028567 passed=`expr $passed + 1`
28568else
28569 failed=`expr $failed + 1`
28570fi
28571
28572
cristy8b350f62009-11-15 23:12:43 +000028573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028574$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028575if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028576 $as_echo_n "(cached) " >&6
28577else
28578 ac_check_lib_save_LIBS=$LIBS
28579LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028581/* end confdefs.h. */
28582
28583/* Override any GCC internal prototype to avoid an error.
28584 Use char because int might match the return type of a GCC
28585 builtin and then its argument prototype would still apply. */
28586#ifdef __cplusplus
28587extern "C"
28588#endif
28589char jas_stream_fopen ();
28590int
28591main ()
28592{
28593return jas_stream_fopen ();
28594 ;
28595 return 0;
28596}
28597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028598if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028599 ac_cv_lib_jasper_jas_stream_fopen=yes
28600else
cristy8b350f62009-11-15 23:12:43 +000028601 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028602fi
cristy8b350f62009-11-15 23:12:43 +000028603rm -f core conftest.err conftest.$ac_objext \
28604 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028605LIBS=$ac_check_lib_save_LIBS
28606fi
cristy8b350f62009-11-15 23:12:43 +000028607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028608$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028609if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028610 passed=`expr $passed + 1`
28611else
28612 failed=`expr $failed + 1`
28613fi
28614
cristy8b350f62009-11-15 23:12:43 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028616$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28617 if test $passed -gt 0; then
28618 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028620$as_echo "no -- some components failed test" >&6; }
28621 have_jp2='no (failed tests)'
28622 else
28623 JP2_LIBS='-ljasper'
28624 LIBS="$JP2_LIBS $LIBS"
28625
cristy8b350f62009-11-15 23:12:43 +000028626$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028627
cristy8b350f62009-11-15 23:12:43 +000028628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028629$as_echo "yes" >&6; }
28630 have_jp2='yes'
28631 fi
28632 else
cristy8b350f62009-11-15 23:12:43 +000028633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028634$as_echo "no" >&6; }
28635 fi
28636fi
cristy73bd4a52010-10-05 11:24:23 +000028637 if test "$have_jp2" = 'yes'; then
28638 JP2_DELEGATE_TRUE=
28639 JP2_DELEGATE_FALSE='#'
28640else
28641 JP2_DELEGATE_TRUE='#'
28642 JP2_DELEGATE_FALSE=
28643fi
28644
cristy3ed852e2009-09-05 21:47:34 +000028645
28646
28647
28648#
28649# Check for LCMS delegate library.
28650#
cristy71203402010-06-18 13:12:03 +000028651# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028652
28653# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028654if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028655 withval=$with_lcms; with_lcms=$withval
28656else
28657 with_lcms='yes'
28658fi
28659
cristy71203402010-06-18 13:12:03 +000028660if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028661 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28662fi
28663
cristy71203402010-06-18 13:12:03 +000028664# Disable LCMS2.
28665
28666# Check whether --with-lcms2 was given.
28667if test "${with_lcms2+set}" = set; then :
28668 withval=$with_lcms2; with_lcms2=$withval
28669else
28670 with_lcms2='yes'
28671fi
28672
28673if test "$with_lcms2" != 'yes' ; then
28674 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28675fi
28676
28677have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028678LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028679if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28683$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028685$as_echo "" >&6; }
28686 failed=0
28687 passed=0
28688 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028689
28690 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028691 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028692if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028693 have_lcms_header='yes'
28694fi
28695
28696
28697 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028698
28699$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28700
cristy71203402010-06-18 13:12:03 +000028701 passed=`expr $passed + 1`
28702 fi
28703
28704 # Check for <lcms2/lcms2.h)
28705 if test "$have_lcms_header" != 'yes'; then
28706 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 +000028707if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028708 have_lcms_header='yes'
28709fi
28710
28711
cristy71203402010-06-18 13:12:03 +000028712 if test "$have_lcms_header" = 'yes'; then
28713 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028714
cristy71203402010-06-18 13:12:03 +000028715$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028716
cristy71203402010-06-18 13:12:03 +000028717 fi
cristyd09bcf92010-03-25 03:04:45 +000028718 fi
cristy71203402010-06-18 13:12:03 +000028719
28720 # Failed to find lcms header?
28721 if test "$have_lcms_header" != 'yes'; then
28722 failed=`expr $failed + 1`
28723 fi
28724
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28726$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028727if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028728 $as_echo_n "(cached) " >&6
28729else
28730 ac_check_lib_save_LIBS=$LIBS
28731LIBS="-llcms2 $LIBS"
28732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28733/* end confdefs.h. */
28734
28735/* Override any GCC internal prototype to avoid an error.
28736 Use char because int might match the return type of a GCC
28737 builtin and then its argument prototype would still apply. */
28738#ifdef __cplusplus
28739extern "C"
28740#endif
cristy71203402010-06-18 13:12:03 +000028741char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028742int
28743main ()
28744{
cristy71203402010-06-18 13:12:03 +000028745return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028746 ;
28747 return 0;
28748}
28749_ACEOF
28750if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028751 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028752else
cristy71203402010-06-18 13:12:03 +000028753 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028754fi
28755rm -f core conftest.err conftest.$ac_objext \
28756 conftest$ac_exeext conftest.$ac_ext
28757LIBS=$ac_check_lib_save_LIBS
28758fi
cristy71203402010-06-18 13:12:03 +000028759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28760$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028761if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028762 passed=`expr $passed + 1`
28763else
28764 failed=`expr $failed + 1`
28765fi
28766
cristy71203402010-06-18 13:12:03 +000028767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28768$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028769 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028770 if test $failed -gt 0; then
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028772$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028773 have_lcms2='no (failed tests)'
28774 else
28775 LCMS_LIBS='-llcms2'
28776 LIBS="$LCMS_LIBS $LIBS"
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028778$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028779 have_lcms2='yes'
28780 fi
cristyd09bcf92010-03-25 03:04:45 +000028781 else
cristy71203402010-06-18 13:12:03 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028783$as_echo "no" >&6; }
28784 fi
28785fi
28786
cristy71203402010-06-18 13:12:03 +000028787#
28788# Check for LCMS v1 (1.11 or later)
28789#
28790if test $have_lcms2 = 'yes'; then
28791 with_lcms='no'
28792fi
28793
28794have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028795if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28797$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28799$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28801$as_echo "" >&6; }
28802 failed=0
28803 passed=0
28804 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028805
28806 # Check for <lcms.h>
28807 if test "$have_lcms_header" != 'yes'; then
28808 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028809if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028810 have_lcms_header='yes'
28811fi
28812
28813
cristy71203402010-06-18 13:12:03 +000028814 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028815 passed=`expr $passed + 1`
28816
cristy8b350f62009-11-15 23:12:43 +000028817$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028818
cristy71203402010-06-18 13:12:03 +000028819 fi
28820 fi
28821
28822 # Check for <lcms/lcms.h>
28823 if test "$have_lcms_header" != 'yes'; then
28824 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 +000028825if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028826 have_lcms_header='yes'
28827fi
28828
28829
cristy71203402010-06-18 13:12:03 +000028830 if test "$have_lcms_header" = 'yes'; then
28831 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028832
cristy8b350f62009-11-15 23:12:43 +000028833$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028834
cristy71203402010-06-18 13:12:03 +000028835 fi
cristy3ed852e2009-09-05 21:47:34 +000028836 fi
cristy71203402010-06-18 13:12:03 +000028837
28838 # Failed to find lcms header?
28839 if test "$have_lcms_header" != 'yes'; then
28840 failed=`expr $failed + 1`
28841 fi
28842
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28844$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028845if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028846 $as_echo_n "(cached) " >&6
28847else
28848 ac_check_lib_save_LIBS=$LIBS
28849LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028851/* end confdefs.h. */
28852
28853/* Override any GCC internal prototype to avoid an error.
28854 Use char because int might match the return type of a GCC
28855 builtin and then its argument prototype would still apply. */
28856#ifdef __cplusplus
28857extern "C"
28858#endif
cristy71203402010-06-18 13:12:03 +000028859char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028860int
28861main ()
28862{
cristy71203402010-06-18 13:12:03 +000028863return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028864 ;
28865 return 0;
28866}
28867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028868if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028869 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028870else
cristy71203402010-06-18 13:12:03 +000028871 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028872fi
cristy8b350f62009-11-15 23:12:43 +000028873rm -f core conftest.err conftest.$ac_objext \
28874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028875LIBS=$ac_check_lib_save_LIBS
28876fi
cristy71203402010-06-18 13:12:03 +000028877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28878$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028879if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028880 passed=`expr $passed + 1`
28881else
28882 failed=`expr $failed + 1`
28883fi
28884
cristy8b350f62009-11-15 23:12:43 +000028885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028886$as_echo_n "checking if LCMS package is complete... " >&6; }
28887 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028888 if test $failed -gt 0; then
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028890$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028891 have_lcms='no (failed tests)'
28892 else
28893 LCMS_LIBS='-llcms'
28894 LIBS="$LCMS_LIBS $LIBS"
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028896$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028897 have_lcms='yes'
28898 fi
cristy3ed852e2009-09-05 21:47:34 +000028899 else
cristy71203402010-06-18 13:12:03 +000028900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028901$as_echo "no" >&6; }
28902 fi
28903fi
cristy71203402010-06-18 13:12:03 +000028904
cristy73bd4a52010-10-05 11:24:23 +000028905 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28906 LCMS_DELEGATE_TRUE=
28907 LCMS_DELEGATE_FALSE='#'
28908else
28909 LCMS_DELEGATE_TRUE='#'
28910 LCMS_DELEGATE_FALSE=
28911fi
28912
cristy71203402010-06-18 13:12:03 +000028913if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28914
28915$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28916
28917fi
28918
cristy3ed852e2009-09-05 21:47:34 +000028919
28920
28921
28922#
28923# Check for the LQR (Liquid Rescale) delegate library.
28924#
28925
28926# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028927if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028928 withval=$with_lqr; with_lqr=$withval
28929else
28930 with_lqr='yes'
28931fi
28932
28933
28934if test "$with_lqr" != 'yes'; then
28935 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28936fi
28937
28938have_lqr='no'
28939LQR_CFLAGS=""
28940LQR_LIBS=""
28941LQR_PKG=""
28942if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028944$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028945
28946pkg_failed=no
28947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28948$as_echo_n "checking for LQR... " >&6; }
28949
28950if test -n "$LQR_CFLAGS"; then
28951 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28952 elif test -n "$PKG_CONFIG"; then
28953 if test -n "$PKG_CONFIG" && \
28954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28955 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28956 ac_status=$?
28957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28958 test $ac_status = 0; }; then
28959 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28960else
28961 pkg_failed=yes
28962fi
28963 else
28964 pkg_failed=untried
28965fi
28966if test -n "$LQR_LIBS"; then
28967 pkg_cv_LQR_LIBS="$LQR_LIBS"
28968 elif test -n "$PKG_CONFIG"; then
28969 if test -n "$PKG_CONFIG" && \
28970 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28971 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28972 ac_status=$?
28973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28974 test $ac_status = 0; }; then
28975 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28976else
28977 pkg_failed=yes
28978fi
28979 else
28980 pkg_failed=untried
28981fi
28982
28983
28984
28985if test $pkg_failed = yes; then
28986
28987if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28988 _pkg_short_errors_supported=yes
28989else
28990 _pkg_short_errors_supported=no
28991fi
28992 if test $_pkg_short_errors_supported = yes; then
28993 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28994 else
28995 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28996 fi
28997 # Put the nasty error message in config.log where it belongs
28998 echo "$LQR_PKG_ERRORS" >&5
28999
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29001$as_echo "no" >&6; }
29002 have_lqr=no
29003elif test $pkg_failed = untried; then
29004 have_lqr=no
29005else
29006 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29007 LQR_LIBS=$pkg_cv_LQR_LIBS
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29009$as_echo "yes" >&6; }
29010 have_lqr=yes
29011fi
cristy8b350f62009-11-15 23:12:43 +000029012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029013$as_echo "" >&6; }
29014fi
29015
29016if test "$have_lqr" = 'yes'; then
29017
cristy8b350f62009-11-15 23:12:43 +000029018$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029019
29020 CFLAGS="$LQR_CFLAGS $CFLAGS"
29021fi
29022
cristy73bd4a52010-10-05 11:24:23 +000029023 if test "$have_lqr" = 'yes'; then
29024 LQR_DELEGATE_TRUE=
29025 LQR_DELEGATE_FALSE='#'
29026else
29027 LQR_DELEGATE_TRUE='#'
29028 LQR_DELEGATE_FALSE=
29029fi
29030
cristy3ed852e2009-09-05 21:47:34 +000029031
29032
29033
29034
cristyfbb0ef02010-12-19 02:32:11 +000029035# Disable LZMA (lzma library)
29036
29037# Check whether --with-lzma was given.
29038if test "${with_lzma+set}" = set; then :
29039 withval=$with_lzma; with_lzma=$withval
29040else
29041 with_lzma='yes'
29042fi
29043
29044if test "$with_lzma" != 'yes' ; then
29045 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29046fi
29047
29048#
29049# Check for LZMA
29050#
29051have_lzma='no'
29052LZMA_LIBS=''
29053if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29055$as_echo "-------------------------------------------------------------" >&6; }
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29057$as_echo_n "checking for LZMA... " >&6; }
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29059$as_echo "" >&6; }
29060 failed=0
29061 passed=0
29062 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029063if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029064 passed=`expr $passed + 1`
29065else
29066 failed=`expr $failed + 1`
29067fi
29068
29069
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29071$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029072if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029073 $as_echo_n "(cached) " >&6
29074else
29075 ac_check_lib_save_LIBS=$LIBS
29076LIBS="-llzma $LIBS"
29077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29078/* end confdefs.h. */
29079
29080/* Override any GCC internal prototype to avoid an error.
29081 Use char because int might match the return type of a GCC
29082 builtin and then its argument prototype would still apply. */
29083#ifdef __cplusplus
29084extern "C"
29085#endif
29086char lzma_code ();
29087int
29088main ()
29089{
29090return lzma_code ();
29091 ;
29092 return 0;
29093}
29094_ACEOF
29095if ac_fn_c_try_link "$LINENO"; then :
29096 ac_cv_lib_lzma_lzma_code=yes
29097else
29098 ac_cv_lib_lzma_lzma_code=no
29099fi
29100rm -f core conftest.err conftest.$ac_objext \
29101 conftest$ac_exeext conftest.$ac_ext
29102LIBS=$ac_check_lib_save_LIBS
29103fi
29104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29105$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029106if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029107 passed=`expr $passed + 1`
29108else
29109 failed=`expr $failed + 1`
29110fi
29111
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29113$as_echo_n "checking if LZMA package is complete... " >&6; }
29114 if test $passed -gt 0; then
29115 if test $failed -gt 0; then
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29117$as_echo "no -- some components failed test" >&6; }
29118 have_lzma='no (failed tests)'
29119 else
29120 LZMA_LIBS='-llzma'
29121 LIBS="$LZMA_LIBS $LIBS"
29122
29123$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29124
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29126$as_echo "yes" >&6; }
29127 have_lzma='yes'
29128 fi
29129 else
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29131$as_echo "no" >&6; }
29132 fi
29133fi
29134 if test "$have_lzma" = 'yes'; then
29135 LZMA_DELEGATE_TRUE=
29136 LZMA_DELEGATE_FALSE='#'
29137else
29138 LZMA_DELEGATE_TRUE='#'
29139 LZMA_DELEGATE_FALSE=
29140fi
29141
29142
29143
29144
cristy3ed852e2009-09-05 21:47:34 +000029145#
29146# Check for the OpenEXR delegate library.
29147#
29148
29149# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029150if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029151 withval=$with_openexr; with_openexr=$withval
29152else
29153 with_openexr='yes'
29154fi
29155
29156
29157if test "$with_openexr" != 'yes'; then
29158 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29159fi
29160
29161have_openexr='no'
29162OPENEXR_CFLAGS=""
29163OPENEXR_LIBS=""
29164OPENEXR_PKG=""
29165if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029167$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029168
29169pkg_failed=no
29170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29171$as_echo_n "checking for OPENEXR... " >&6; }
29172
29173if test -n "$OPENEXR_CFLAGS"; then
29174 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29175 elif test -n "$PKG_CONFIG"; then
29176 if test -n "$PKG_CONFIG" && \
29177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29178 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29179 ac_status=$?
29180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29181 test $ac_status = 0; }; then
29182 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29183else
29184 pkg_failed=yes
29185fi
29186 else
29187 pkg_failed=untried
29188fi
29189if test -n "$OPENEXR_LIBS"; then
29190 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29191 elif test -n "$PKG_CONFIG"; then
29192 if test -n "$PKG_CONFIG" && \
29193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29194 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29195 ac_status=$?
29196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29197 test $ac_status = 0; }; then
29198 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29199else
29200 pkg_failed=yes
29201fi
29202 else
29203 pkg_failed=untried
29204fi
29205
29206
29207
29208if test $pkg_failed = yes; then
29209
29210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29211 _pkg_short_errors_supported=yes
29212else
29213 _pkg_short_errors_supported=no
29214fi
29215 if test $_pkg_short_errors_supported = yes; then
29216 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29217 else
29218 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29219 fi
29220 # Put the nasty error message in config.log where it belongs
29221 echo "$OPENEXR_PKG_ERRORS" >&5
29222
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29224$as_echo "no" >&6; }
29225 have_openexr=no
29226elif test $pkg_failed = untried; then
29227 have_openexr=no
29228else
29229 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29230 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29232$as_echo "yes" >&6; }
29233 have_openexr=yes
29234fi
cristy8b350f62009-11-15 23:12:43 +000029235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029236$as_echo "" >&6; }
29237fi
29238
29239if test "$have_openexr" = 'yes'; then
29240
cristy8b350f62009-11-15 23:12:43 +000029241$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029242
29243 if test "$with_modules" = 'no'; then
29244 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29245 fi
29246fi
29247
cristy73bd4a52010-10-05 11:24:23 +000029248 if test "$have_openexr" = 'yes'; then
29249 OPENEXR_DELEGATE_TRUE=
29250 OPENEXR_DELEGATE_FALSE='#'
29251else
29252 OPENEXR_DELEGATE_TRUE='#'
29253 OPENEXR_DELEGATE_FALSE=
29254fi
29255
cristy3ed852e2009-09-05 21:47:34 +000029256
29257
29258
29259
29260#
29261# Check for PNG delegate library.
29262#
29263
29264# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029265if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029266 withval=$with_png; with_png=$withval
29267else
29268 with_png='yes'
29269fi
29270
29271
29272if test "$with_png" != 'yes'; then
29273 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29274fi
29275
29276have_png='no'
29277PNG_LIBS=''
29278if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029280$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029284$as_echo "" >&6; }
29285 failed=0
29286 passed=0
cristy8b350f62009-11-15 23:12:43 +000029287 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029288if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029289 passed=`expr $passed + 1`
29290else
29291 failed=`expr $failed + 1`
29292fi
29293
29294
cristy8b350f62009-11-15 23:12:43 +000029295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029296$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029297if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029298 $as_echo_n "(cached) " >&6
29299else
29300 ac_check_lib_save_LIBS=$LIBS
29301LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029303/* end confdefs.h. */
29304
29305/* Override any GCC internal prototype to avoid an error.
29306 Use char because int might match the return type of a GCC
29307 builtin and then its argument prototype would still apply. */
29308#ifdef __cplusplus
29309extern "C"
29310#endif
29311char png_get_io_ptr ();
29312int
29313main ()
29314{
29315return png_get_io_ptr ();
29316 ;
29317 return 0;
29318}
29319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029321 ac_cv_lib_png_png_get_io_ptr=yes
29322else
cristy8b350f62009-11-15 23:12:43 +000029323 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029324fi
cristy8b350f62009-11-15 23:12:43 +000029325rm -f core conftest.err conftest.$ac_objext \
29326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029327LIBS=$ac_check_lib_save_LIBS
29328fi
cristy8b350f62009-11-15 23:12:43 +000029329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029330$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029331if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029332 passed=`expr $passed + 1`
29333else
29334 failed=`expr $failed + 1`
29335fi
29336
cristy8b350f62009-11-15 23:12:43 +000029337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029338$as_echo_n "checking if PNG package is complete... " >&6; }
29339 if test $passed -gt 0; then
29340 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029342$as_echo "no -- some components failed test" >&6; }
29343 have_png='no (failed tests)'
29344 else
29345 PNG_LIBS='-lpng'
29346 LIBS="$PNG_LIBS $LIBS"
29347
cristy8b350f62009-11-15 23:12:43 +000029348$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029349
cristy8b350f62009-11-15 23:12:43 +000029350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029351$as_echo "yes" >&6; }
29352 have_png='yes'
29353 fi
29354 else
cristy8b350f62009-11-15 23:12:43 +000029355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029356$as_echo "no" >&6; }
29357 fi
29358fi
cristy73bd4a52010-10-05 11:24:23 +000029359 if test "$have_png" = 'yes'; then
29360 PNG_DELEGATE_TRUE=
29361 PNG_DELEGATE_FALSE='#'
29362else
29363 PNG_DELEGATE_TRUE='#'
29364 PNG_DELEGATE_FALSE=
29365fi
29366
cristy3ed852e2009-09-05 21:47:34 +000029367
29368
29369
29370#
29371# Check for RSVG delegate library.
29372#
29373
29374# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029375if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029376 withval=$with_rsvg; with_rsvg=$withval
29377else
29378 with_rsvg=$have_x
29379fi
29380
29381
29382if test "$with_rsvg" != 'yes'; then
29383 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29384fi
29385
29386have_rsvg='no'
29387have_cairo='no'
29388RSVG_CFLAGS=""
29389RSVG_LIBS=""
29390RSVG_PKG=""
29391if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029393$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029394
29395pkg_failed=no
29396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29397$as_echo_n "checking for RSVG... " >&6; }
29398
29399if test -n "$RSVG_CFLAGS"; then
29400 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29401 elif test -n "$PKG_CONFIG"; then
29402 if test -n "$PKG_CONFIG" && \
29403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29404 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29405 ac_status=$?
29406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29407 test $ac_status = 0; }; then
29408 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29409else
29410 pkg_failed=yes
29411fi
29412 else
29413 pkg_failed=untried
29414fi
29415if test -n "$RSVG_LIBS"; then
29416 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29417 elif test -n "$PKG_CONFIG"; then
29418 if test -n "$PKG_CONFIG" && \
29419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29420 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29421 ac_status=$?
29422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29423 test $ac_status = 0; }; then
29424 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29425else
29426 pkg_failed=yes
29427fi
29428 else
29429 pkg_failed=untried
29430fi
29431
29432
29433
29434if test $pkg_failed = yes; then
29435
29436if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29437 _pkg_short_errors_supported=yes
29438else
29439 _pkg_short_errors_supported=no
29440fi
29441 if test $_pkg_short_errors_supported = yes; then
29442 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29443 else
29444 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29445 fi
29446 # Put the nasty error message in config.log where it belongs
29447 echo "$RSVG_PKG_ERRORS" >&5
29448
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29450$as_echo "no" >&6; }
29451 have_rsvg=no
29452elif test $pkg_failed = untried; then
29453 have_rsvg=no
29454else
29455 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29456 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29458$as_echo "yes" >&6; }
29459 have_rsvg=yes
29460fi
cristy8b350f62009-11-15 23:12:43 +000029461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029462$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029463
29464pkg_failed=no
29465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29466$as_echo_n "checking for CAIRO_SVG... " >&6; }
29467
29468if test -n "$CAIRO_SVG_CFLAGS"; then
29469 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29470 elif test -n "$PKG_CONFIG"; then
29471 if test -n "$PKG_CONFIG" && \
29472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29473 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29474 ac_status=$?
29475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29476 test $ac_status = 0; }; then
29477 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29478else
29479 pkg_failed=yes
29480fi
29481 else
29482 pkg_failed=untried
29483fi
29484if test -n "$CAIRO_SVG_LIBS"; then
29485 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29486 elif test -n "$PKG_CONFIG"; then
29487 if test -n "$PKG_CONFIG" && \
29488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29489 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29490 ac_status=$?
29491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29492 test $ac_status = 0; }; then
29493 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29494else
29495 pkg_failed=yes
29496fi
29497 else
29498 pkg_failed=untried
29499fi
29500
29501
29502
29503if test $pkg_failed = yes; then
29504
29505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29506 _pkg_short_errors_supported=yes
29507else
29508 _pkg_short_errors_supported=no
29509fi
29510 if test $_pkg_short_errors_supported = yes; then
29511 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29512 else
29513 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29514 fi
29515 # Put the nasty error message in config.log where it belongs
29516 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29517
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29519$as_echo "no" >&6; }
29520 have_cairo=no
29521elif test $pkg_failed = untried; then
29522 have_cairo=no
29523else
29524 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29525 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29527$as_echo "yes" >&6; }
29528 have_cairo=yes
29529fi
cristy8b350f62009-11-15 23:12:43 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029531$as_echo "" >&6; }
29532fi
29533
29534if test "$have_rsvg" = 'yes'; then
29535
cristy8b350f62009-11-15 23:12:43 +000029536$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029537
29538 if test "$with_modules" = 'no'; then
29539 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29540 fi
29541fi
29542
29543if test "$have_cairo" = 'yes'; then
29544
cristy8b350f62009-11-15 23:12:43 +000029545$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029546
29547 if test "$with_modules" = 'no'; then
29548 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29549 fi
29550fi
29551
cristy73bd4a52010-10-05 11:24:23 +000029552 if test "$have_rsvg" = 'yes'; then
29553 RSVG_DELEGATE_TRUE=
29554 RSVG_DELEGATE_FALSE='#'
29555else
29556 RSVG_DELEGATE_TRUE='#'
29557 RSVG_DELEGATE_FALSE=
29558fi
29559
29560 if test "$have_cairo" = 'yes'; then
29561 CAIRO_DELEGATE_TRUE=
29562 CAIRO_DELEGATE_FALSE='#'
29563else
29564 CAIRO_DELEGATE_TRUE='#'
29565 CAIRO_DELEGATE_FALSE=
29566fi
29567
cristy3ed852e2009-09-05 21:47:34 +000029568
29569
29570
29571
29572#
29573# Check for TIFF delegate library.
29574#
29575
29576# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029577if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029578 withval=$with_tiff; with_tiff=$withval
29579else
29580 with_tiff='yes'
29581fi
29582
29583
29584if test "$with_tiff" != 'yes'; then
29585 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29586fi
29587
29588have_tiff='no'
29589TIFF_LIBS=''
29590if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029592$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029594$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029596$as_echo "" >&6; }
29597 failed=0
29598 passed=0
cristy8b350f62009-11-15 23:12:43 +000029599 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029600if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029601 passed=`expr $passed + 1`
29602else
29603 failed=`expr $failed + 1`
29604fi
29605
29606
cristy8b350f62009-11-15 23:12:43 +000029607 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029608if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029609 passed=`expr $passed + 1`
29610else
29611 failed=`expr $failed + 1`
29612fi
29613
29614
cristy8b350f62009-11-15 23:12:43 +000029615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029616$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029617if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029618 $as_echo_n "(cached) " >&6
29619else
29620 ac_check_lib_save_LIBS=$LIBS
29621LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029623/* end confdefs.h. */
29624
29625/* Override any GCC internal prototype to avoid an error.
29626 Use char because int might match the return type of a GCC
29627 builtin and then its argument prototype would still apply. */
29628#ifdef __cplusplus
29629extern "C"
29630#endif
29631char TIFFOpen ();
29632int
29633main ()
29634{
29635return TIFFOpen ();
29636 ;
29637 return 0;
29638}
29639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029640if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029641 ac_cv_lib_tiff_TIFFOpen=yes
29642else
cristy8b350f62009-11-15 23:12:43 +000029643 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029644fi
cristy8b350f62009-11-15 23:12:43 +000029645rm -f core conftest.err conftest.$ac_objext \
29646 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029647LIBS=$ac_check_lib_save_LIBS
29648fi
cristy8b350f62009-11-15 23:12:43 +000029649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029650$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029651if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029652 passed=`expr $passed + 1`
29653else
29654 failed=`expr $failed + 1`
29655fi
29656
cristy8b350f62009-11-15 23:12:43 +000029657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029659if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029660 $as_echo_n "(cached) " >&6
29661else
29662 ac_check_lib_save_LIBS=$LIBS
29663LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029665/* end confdefs.h. */
29666
29667/* Override any GCC internal prototype to avoid an error.
29668 Use char because int might match the return type of a GCC
29669 builtin and then its argument prototype would still apply. */
29670#ifdef __cplusplus
29671extern "C"
29672#endif
29673char TIFFClientOpen ();
29674int
29675main ()
29676{
29677return TIFFClientOpen ();
29678 ;
29679 return 0;
29680}
29681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029683 ac_cv_lib_tiff_TIFFClientOpen=yes
29684else
cristy8b350f62009-11-15 23:12:43 +000029685 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029686fi
cristy8b350f62009-11-15 23:12:43 +000029687rm -f core conftest.err conftest.$ac_objext \
29688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029689LIBS=$ac_check_lib_save_LIBS
29690fi
cristy8b350f62009-11-15 23:12:43 +000029691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029692$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029693if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029694 passed=`expr $passed + 1`
29695else
29696 failed=`expr $failed + 1`
29697fi
29698
cristyb97f1002010-07-26 14:02:57 +000029699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29700$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029701if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029702 $as_echo_n "(cached) " >&6
29703else
29704 ac_check_lib_save_LIBS=$LIBS
29705LIBS="-ltiff $LIBS"
29706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29707/* end confdefs.h. */
29708
29709/* Override any GCC internal prototype to avoid an error.
29710 Use char because int might match the return type of a GCC
29711 builtin and then its argument prototype would still apply. */
29712#ifdef __cplusplus
29713extern "C"
29714#endif
29715char TIFFIsBigEndian ();
29716int
29717main ()
29718{
29719return TIFFIsBigEndian ();
29720 ;
29721 return 0;
29722}
29723_ACEOF
29724if ac_fn_c_try_link "$LINENO"; then :
29725 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29726else
29727 ac_cv_lib_tiff_TIFFIsBigEndian=no
29728fi
29729rm -f core conftest.err conftest.$ac_objext \
29730 conftest$ac_exeext conftest.$ac_ext
29731LIBS=$ac_check_lib_save_LIBS
29732fi
29733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29734$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029735if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000029736 passed=`expr $passed + 1`
29737else
29738 failed=`expr $failed + 1`
29739fi
29740
cristy8b350f62009-11-15 23:12:43 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029742$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029743if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029744 $as_echo_n "(cached) " >&6
29745else
29746 ac_check_lib_save_LIBS=$LIBS
29747LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029749/* end confdefs.h. */
29750
29751/* Override any GCC internal prototype to avoid an error.
29752 Use char because int might match the return type of a GCC
29753 builtin and then its argument prototype would still apply. */
29754#ifdef __cplusplus
29755extern "C"
29756#endif
29757char TIFFIsByteSwapped ();
29758int
29759main ()
29760{
29761return TIFFIsByteSwapped ();
29762 ;
29763 return 0;
29764}
29765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029767 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29768else
cristy8b350f62009-11-15 23:12:43 +000029769 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029770fi
cristy8b350f62009-11-15 23:12:43 +000029771rm -f core conftest.err conftest.$ac_objext \
29772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029773LIBS=$ac_check_lib_save_LIBS
29774fi
cristy8b350f62009-11-15 23:12:43 +000029775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029776$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029777if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029778 passed=`expr $passed + 1`
29779else
29780 failed=`expr $failed + 1`
29781fi
29782
cristy8b350f62009-11-15 23:12:43 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029784$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029785if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029786 $as_echo_n "(cached) " >&6
29787else
29788 ac_check_lib_save_LIBS=$LIBS
29789LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029791/* end confdefs.h. */
29792
29793/* Override any GCC internal prototype to avoid an error.
29794 Use char because int might match the return type of a GCC
29795 builtin and then its argument prototype would still apply. */
29796#ifdef __cplusplus
29797extern "C"
29798#endif
29799char TIFFReadRGBATile ();
29800int
29801main ()
29802{
29803return TIFFReadRGBATile ();
29804 ;
29805 return 0;
29806}
29807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029808if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029809 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29810else
cristy8b350f62009-11-15 23:12:43 +000029811 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029812fi
cristy8b350f62009-11-15 23:12:43 +000029813rm -f core conftest.err conftest.$ac_objext \
29814 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029815LIBS=$ac_check_lib_save_LIBS
29816fi
cristy8b350f62009-11-15 23:12:43 +000029817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029818$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029819if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029820 passed=`expr $passed + 1`
29821else
29822 failed=`expr $failed + 1`
29823fi
29824
cristy8b350f62009-11-15 23:12:43 +000029825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029826$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029827if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029828 $as_echo_n "(cached) " >&6
29829else
29830 ac_check_lib_save_LIBS=$LIBS
29831LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029833/* end confdefs.h. */
29834
29835/* Override any GCC internal prototype to avoid an error.
29836 Use char because int might match the return type of a GCC
29837 builtin and then its argument prototype would still apply. */
29838#ifdef __cplusplus
29839extern "C"
29840#endif
29841char TIFFReadRGBAStrip ();
29842int
29843main ()
29844{
29845return TIFFReadRGBAStrip ();
29846 ;
29847 return 0;
29848}
29849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029851 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29852else
cristy8b350f62009-11-15 23:12:43 +000029853 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029854fi
cristy8b350f62009-11-15 23:12:43 +000029855rm -f core conftest.err conftest.$ac_objext \
29856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029857LIBS=$ac_check_lib_save_LIBS
29858fi
cristy8b350f62009-11-15 23:12:43 +000029859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029860$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029861if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029862 passed=`expr $passed + 1`
29863else
29864 failed=`expr $failed + 1`
29865fi
29866
cristy8b350f62009-11-15 23:12:43 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029868$as_echo_n "checking if TIFF package is complete... " >&6; }
29869 if test $passed -gt 0; then
29870 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029872$as_echo "no -- some components failed test" >&6; }
29873 have_tiff='no (failed tests)'
29874 else
29875 TIFF_LIBS='-ltiff'
29876 LIBS="$TIFF_LIBS $LIBS"
29877
cristy8b350f62009-11-15 23:12:43 +000029878$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029879
cristy8b350f62009-11-15 23:12:43 +000029880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029881$as_echo "yes" >&6; }
29882 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029883 for ac_header in tiffconf.h
29884do :
29885 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029886if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029887 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029888#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029889_ACEOF
29890
29891fi
29892
29893done
29894
cristy8b350f62009-11-15 23:12:43 +000029895 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029896 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29897 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029898do :
29899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29900ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029901if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029902 cat >>confdefs.h <<_ACEOF
29903#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29904_ACEOF
29905
29906fi
29907done
29908
29909 fi
29910 else
cristy8b350f62009-11-15 23:12:43 +000029911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029912$as_echo "no" >&6; }
29913 fi
29914fi
cristy73bd4a52010-10-05 11:24:23 +000029915 if test "$have_tiff" = 'yes'; then
29916 TIFF_DELEGATE_TRUE=
29917 TIFF_DELEGATE_FALSE='#'
29918else
29919 TIFF_DELEGATE_TRUE='#'
29920 TIFF_DELEGATE_FALSE=
29921fi
29922
cristy3ed852e2009-09-05 21:47:34 +000029923
29924
29925
29926#
cristyb1860752011-03-14 00:27:46 +000029927# Check for WEBP delegate library.
29928#
29929
29930# Check whether --with-webp was given.
29931if test "${with_webp+set}" = set; then :
29932 withval=$with_webp; with_webp=$withval
29933else
29934 with_webp='yes'
29935fi
29936
29937
29938if test "$with_webp" != 'yes'; then
29939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
29940fi
29941
29942have_webp='no'
29943WEBP_LIBS=''
29944if test "$with_webp" != 'no'; then
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29946$as_echo "-------------------------------------------------------------" >&6; }
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
29948$as_echo_n "checking for WEBP... " >&6; }
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29950$as_echo "" >&6; }
29951 failed=0
29952 passed=0
29953 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
29954if test "x$ac_cv_header_webp_decode_h" = xyes; then :
29955 passed=`expr $passed + 1`
29956else
29957 failed=`expr $failed + 1`
29958fi
29959
29960
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
29962$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
29963if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
29964 $as_echo_n "(cached) " >&6
29965else
29966 ac_check_lib_save_LIBS=$LIBS
29967LIBS="-lwebp $LIBS"
29968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29969/* end confdefs.h. */
29970
29971/* Override any GCC internal prototype to avoid an error.
29972 Use char because int might match the return type of a GCC
29973 builtin and then its argument prototype would still apply. */
29974#ifdef __cplusplus
29975extern "C"
29976#endif
29977char WebPDecodeRGB ();
29978int
29979main ()
29980{
29981return WebPDecodeRGB ();
29982 ;
29983 return 0;
29984}
29985_ACEOF
29986if ac_fn_c_try_link "$LINENO"; then :
29987 ac_cv_lib_webp_WebPDecodeRGB=yes
29988else
29989 ac_cv_lib_webp_WebPDecodeRGB=no
29990fi
29991rm -f core conftest.err conftest.$ac_objext \
29992 conftest$ac_exeext conftest.$ac_ext
29993LIBS=$ac_check_lib_save_LIBS
29994fi
29995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
29996$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
29997if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
29998 passed=`expr $passed + 1`
29999else
30000 failed=`expr $failed + 1`
30001fi
30002
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30004$as_echo_n "checking if WEBP package is complete... " >&6; }
30005 if test $passed -gt 0; then
30006 if test $failed -gt 0; then
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30008$as_echo "no -- some components failed test" >&6; }
30009 have_webp='no (failed tests)'
30010 else
30011 WEBP_LIBS='-lwebp'
30012 LIBS="$WEBP_LIBS $LIBS"
30013
30014$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30015
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30017$as_echo "yes" >&6; }
30018 have_webp='yes'
30019 fi
30020 else
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30022$as_echo "no" >&6; }
30023 fi
30024fi
30025 if test "$have_webp" = 'yes'; then
30026 WEBP_DELEGATE_TRUE=
30027 WEBP_DELEGATE_FALSE='#'
30028else
30029 WEBP_DELEGATE_TRUE='#'
30030 WEBP_DELEGATE_FALSE=
30031fi
30032
30033
30034
30035
30036#
cristy3ed852e2009-09-05 21:47:34 +000030037# Set Windows font directory.
30038#
30039
30040# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030041if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030042 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30043else
30044 with_windows_font_dir=''
30045fi
30046
30047if test "$with_windows_font_dir" != '' ; then
30048 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30049fi
30050
30051
30052#
30053# Check for WMF delegate library.
30054#
30055
30056# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030057if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030058 withval=$with_wmf; with_wmf=$withval
30059else
cristy8d63d1d2010-01-06 20:38:37 +000030060 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030061fi
30062
30063
30064if test "$with_wmf" != 'yes'; then
30065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30066fi
30067
30068have_wmf='no'
30069WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030070if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030072$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030074$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030076$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000030077 failed=0
30078 passed=0
30079 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 +000030080if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030081 passed=`expr $passed + 1`
30082else
30083 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030084fi
30085
30086
cristy735e8942010-04-02 20:32:57 +000030087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30088$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030089if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030090 $as_echo_n "(cached) " >&6
30091else
30092 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000030093LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030095/* end confdefs.h. */
30096
30097/* Override any GCC internal prototype to avoid an error.
30098 Use char because int might match the return type of a GCC
30099 builtin and then its argument prototype would still apply. */
30100#ifdef __cplusplus
30101extern "C"
30102#endif
cristy735e8942010-04-02 20:32:57 +000030103char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030104int
30105main ()
30106{
cristy735e8942010-04-02 20:32:57 +000030107return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030108 ;
30109 return 0;
30110}
30111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030112if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030113 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030114else
cristy735e8942010-04-02 20:32:57 +000030115 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030116fi
cristy8b350f62009-11-15 23:12:43 +000030117rm -f core conftest.err conftest.$ac_objext \
30118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030119LIBS=$ac_check_lib_save_LIBS
30120fi
cristy735e8942010-04-02 20:32:57 +000030121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30122$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030123if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030124 passed=`expr $passed + 1`
30125else
30126 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030127fi
30128
cristy735e8942010-04-02 20:32:57 +000030129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30130$as_echo_n "checking if WMF package is complete... " >&6; }
30131 if test $passed -gt 0; then
30132 if test $failed -gt 0; then
30133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30134$as_echo "no -- some components failed test" >&6; }
30135 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030136 else
cristy735e8942010-04-02 20:32:57 +000030137 WMF_LIBS='-lwmf -lwmflite'
30138 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030139
cristy8b350f62009-11-15 23:12:43 +000030140$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030141
cristy735e8942010-04-02 20:32:57 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030144 have_wmf='yes'
30145 fi
cristy3ed852e2009-09-05 21:47:34 +000030146 else
cristy8b350f62009-11-15 23:12:43 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030148$as_echo "no" >&6; }
30149 fi
30150fi
cristy73bd4a52010-10-05 11:24:23 +000030151 if test "$have_wmf" = 'yes'; then
30152 WMF_DELEGATE_TRUE=
30153 WMF_DELEGATE_FALSE='#'
30154else
30155 WMF_DELEGATE_TRUE='#'
30156 WMF_DELEGATE_FALSE=
30157fi
30158
cristy3ed852e2009-09-05 21:47:34 +000030159
30160
30161
30162
cristy735e8942010-04-02 20:32:57 +000030163
cristy3ed852e2009-09-05 21:47:34 +000030164#
30165# Check for XML delegate library.
30166#
30167
30168# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030169if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030170 withval=$with_xml; with_xml=$withval
30171else
30172 with_xml=$have_x
30173fi
30174
30175
30176if test "$with_xml" != 'yes' ; then
30177 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30178fi
30179
30180have_xml='no'
30181XML_LIBS=''
30182if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030184$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030186$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030188$as_echo "" >&6; }
30189 PERSIST_LDFLAGS=$LDFLAGS
30190 PERSIST_CPPFLAGS=$CPPFLAGS
30191 xml2_config=''
30192 for ac_prog in xml2-config
30193do
30194 # Extract the first word of "$ac_prog", so it can be a program name with args.
30195set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030198if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030199 $as_echo_n "(cached) " >&6
30200else
30201 if test -n "$xml2_config"; then
30202 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30203else
30204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30205for as_dir in $PATH
30206do
30207 IFS=$as_save_IFS
30208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30211 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030213 break 2
30214 fi
30215done
cristy8b350f62009-11-15 23:12:43 +000030216 done
cristy3ed852e2009-09-05 21:47:34 +000030217IFS=$as_save_IFS
30218
30219fi
30220fi
30221xml2_config=$ac_cv_prog_xml2_config
30222if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030224$as_echo "$xml2_config" >&6; }
30225else
cristy8b350f62009-11-15 23:12:43 +000030226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030227$as_echo "no" >&6; }
30228fi
30229
30230
30231 test -n "$xml2_config" && break
30232done
30233 if test -n "$xml2_config"; then
30234 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30235 # the shared library installed under /usr/lib, whereas the package
30236 # installs itself under $prefix/libxml and $prefix/lib.
30237 xml2_prefix=`xml2-config --prefix`
30238 if test -d "${xml2_prefix}/include/libxml2"; then
30239 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30240 fi
30241 if test "${xml2_prefix}" != '/usr'; then
30242 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30243 fi
30244 fi
30245 failed=0
30246 passed=0
cristy8b350f62009-11-15 23:12:43 +000030247 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 +000030248if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030249 passed=`expr $passed + 1`
30250else
30251 failed=`expr $failed + 1`
30252fi
30253
30254
cristy8b350f62009-11-15 23:12:43 +000030255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030256$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030257if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030258 $as_echo_n "(cached) " >&6
30259else
30260 ac_check_lib_save_LIBS=$LIBS
30261LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030263/* end confdefs.h. */
30264
30265/* Override any GCC internal prototype to avoid an error.
30266 Use char because int might match the return type of a GCC
30267 builtin and then its argument prototype would still apply. */
30268#ifdef __cplusplus
30269extern "C"
30270#endif
30271char xmlParseExternalEntity ();
30272int
30273main ()
30274{
30275return xmlParseExternalEntity ();
30276 ;
30277 return 0;
30278}
30279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030280if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030281 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30282else
cristy8b350f62009-11-15 23:12:43 +000030283 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030284fi
cristy8b350f62009-11-15 23:12:43 +000030285rm -f core conftest.err conftest.$ac_objext \
30286 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030287LIBS=$ac_check_lib_save_LIBS
30288fi
cristy8b350f62009-11-15 23:12:43 +000030289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030290$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030291if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030292 passed=`expr $passed + 1`
30293else
30294 failed=`expr $failed + 1`
30295fi
30296
cristy8b350f62009-11-15 23:12:43 +000030297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030298$as_echo_n "checking if XML package is complete... " >&6; }
30299 if test $passed -gt 0; then
30300 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030302$as_echo "no -- some components failed test" >&6; }
30303 have_xml='no (failed tests)'
30304 LDFLAGS="$PERSIST_LDFLAGS"
30305 CPPFLAGS="$PERSIST_CPPFLAGS"
30306 else
30307 XML_LIBS='-lxml2'
30308 LIBS="$XML_LIBS $LIBS"
30309
cristy8b350f62009-11-15 23:12:43 +000030310$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030311
cristy8b350f62009-11-15 23:12:43 +000030312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030313$as_echo "yes" >&6; }
30314 have_xml='yes'
30315 fi
30316 else
cristy8b350f62009-11-15 23:12:43 +000030317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030318$as_echo "no" >&6; }
30319 fi
30320fi
cristy73bd4a52010-10-05 11:24:23 +000030321 if test "$have_xml" = 'yes'; then
30322 XML_DELEGATE_TRUE=
30323 XML_DELEGATE_FALSE='#'
30324else
30325 XML_DELEGATE_TRUE='#'
30326 XML_DELEGATE_FALSE=
30327fi
30328
cristy3ed852e2009-09-05 21:47:34 +000030329
30330
30331
30332# Substitute compiler name to build/link PerlMagick
30333#
30334
30335
30336#
30337# Configure install Paths
30338#
30339
30340# Subdirectory under lib to place ImageMagick lib files
30341LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30342
30343cat >>confdefs.h <<_ACEOF
30344#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30345_ACEOF
30346
30347
30348# Path to ImageMagick bin directory
30349EXECUTABLE_PATH="${BIN_DIR}"
30350DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30351case "${build_os}" in
30352 mingw* )
30353 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30354 ;;
30355esac
30356
30357cat >>confdefs.h <<_ACEOF
30358#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30359_ACEOF
30360
30361
30362
30363# Path to ImageMagick lib
30364LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30365DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30366case "${build_os}" in
30367 mingw* )
30368 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30369 ;;
30370esac
30371
30372cat >>confdefs.h <<_ACEOF
30373#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30374_ACEOF
30375
30376
30377
30378# Subdirectory under lib to place ImageMagick configuration files
30379CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30380
30381cat >>confdefs.h <<_ACEOF
30382#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30383_ACEOF
30384
30385CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30386DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30387case "${build_os}" in
30388 mingw* )
30389 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30390 ;;
30391esac
30392
30393cat >>confdefs.h <<_ACEOF
30394#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30395_ACEOF
30396
30397
30398
30399#
30400# Subdirectory under lib to place ImageMagick coder module files
30401CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30402
30403cat >>confdefs.h <<_ACEOF
30404#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30405_ACEOF
30406
30407CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30408DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30409case "${build_os}" in
30410 mingw* )
30411 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30412 ;;
30413esac
30414
30415cat >>confdefs.h <<_ACEOF
30416#define CODER_PATH "$DEFINE_CODER_PATH"
30417_ACEOF
30418
30419
30420
30421#
30422# Subdirectory under lib to place ImageMagick filter module files
30423FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30424
30425cat >>confdefs.h <<_ACEOF
30426#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30427_ACEOF
30428
30429FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30430DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30431case "${build_os}" in
30432 mingw* )
30433 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30434 ;;
30435esac
30436
30437cat >>confdefs.h <<_ACEOF
30438#define FILTER_PATH "$DEFINE_FILTER_PATH"
30439_ACEOF
30440
30441
30442
30443#
30444# Path to ImageMagick documentation files
30445DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30446DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
30447DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
30448case "${build_os}" in
30449 mingw* )
30450 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30451 ;;
30452esac
30453
30454cat >>confdefs.h <<_ACEOF
30455#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30456_ACEOF
30457
30458
30459
30460#
30461# Path to ImageMagick share files
30462SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30463SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30464DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
30465case "${build_os}" in
30466 mingw* )
30467 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
30468 ;;
30469esac
30470
30471cat >>confdefs.h <<_ACEOF
30472#define SHARE_PATH "$DEFINE_SHARE_PATH"
30473_ACEOF
30474
30475
30476
30477# Subdirectory under share to place ImageMagick configuration files
30478SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30479
30480cat >>confdefs.h <<_ACEOF
30481#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
30482_ACEOF
30483
30484SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
30485DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
30486case "${build_os}" in
30487 mingw* )
30488 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
30489 ;;
30490esac
30491
30492cat >>confdefs.h <<_ACEOF
30493#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
30494_ACEOF
30495
30496
30497
30498#
30499# program_transform_name is formed for use in a Makefile, so create a
30500# modified version for use in a shell script.
30501configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30502
30503# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030505$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030507$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "" >&6; }
30510AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030511BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030512BZIPDelegateDefault='bzip2'
30513BrowseDelegateDefault='xdg-open'
30514CGMDecodeDelegateDefault='ralcgm'
30515CatDelegateDefault='cat'
30516DNGDecodeDelegateDefault='ufraw-batch'
30517GVCDecodeDelegateDefault='dot'
30518DVIDecodeDelegateDefault='dvips'
30519EchoDelegateDefault='echo'
30520EditorDelegateDefault='xterm'
30521FIGDecodeDelegateDefault='fig2dev'
30522ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30523DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30524MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30525GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000030526HPGLDecodeDelegateDefault='hp2xx'
30527HTMLDecodeDelegateDefault='html2ps'
30528ILBMDecodeDelegateDefault='ilbmtoppm'
30529ILBMEncodeDelegateDefault='ppmtoilbm'
30530LPDelegateDefault='lp'
30531LPRDelegateDefault='lpr'
30532LZWDecodeDelegateDefault='uncompress'
30533LZWEncodeDelegateDefault='compress'
30534LaunchDelegateDefault='gimp'
30535MANDelegateDefault='groff'
30536MPEGDecodeDelegateDefault='ffmpeg'
30537MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030538MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030539MVDelegateDefault='mv'
30540PCLDelegateDefault='pcl6'
30541PGPDecodeDelegateDefault='pgpv'
30542POVDelegateDefault='povray'
30543if test "$native_win32_build" = 'yes'; then
30544 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030545elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030546 PSDelegateDefault='gsc'
30547else
30548 PSDelegateDefault='gs'
30549fi
30550RLEEncodeDelegateDefault='rawtorle'
30551RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030552RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030553SCANDecodeDelegateDefault='scanimage'
30554TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030555UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000030556WMFDecodeDelegateDefault='wmf2eps'
30557WWWDecodeDelegateDefault='curl'
30558XPSDelegateDefault='gxps'
30559ZipDelegateDefault='gzip'
30560
30561# Search for delegates
30562# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30563set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030565$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030566if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030567 $as_echo_n "(cached) " >&6
30568else
30569 case $AutotraceDecodeDelegate in
30570 [\\/]* | ?:[\\/]*)
30571 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30572 ;;
30573 *)
30574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30575for as_dir in $PATH
30576do
30577 IFS=$as_save_IFS
30578 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30581 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030583 break 2
30584 fi
30585done
cristy8b350f62009-11-15 23:12:43 +000030586 done
cristy3ed852e2009-09-05 21:47:34 +000030587IFS=$as_save_IFS
30588
30589 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30590 ;;
30591esac
30592fi
30593AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30594if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030596$as_echo "$AutotraceDecodeDelegate" >&6; }
30597else
cristy8b350f62009-11-15 23:12:43 +000030598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030599$as_echo "no" >&6; }
30600fi
30601
30602
cristy3ed852e2009-09-05 21:47:34 +000030603# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30604set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030607if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030608 $as_echo_n "(cached) " >&6
30609else
30610 case $BlenderDecodeDelegate in
30611 [\\/]* | ?:[\\/]*)
30612 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30613 ;;
30614 *)
30615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30616for as_dir in $PATH
30617do
30618 IFS=$as_save_IFS
30619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30622 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030624 break 2
30625 fi
30626done
cristy8b350f62009-11-15 23:12:43 +000030627 done
cristy3ed852e2009-09-05 21:47:34 +000030628IFS=$as_save_IFS
30629
30630 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30631 ;;
30632esac
30633fi
30634BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30635if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030637$as_echo "$BlenderDecodeDelegate" >&6; }
30638else
cristy8b350f62009-11-15 23:12:43 +000030639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030640$as_echo "no" >&6; }
30641fi
30642
30643
30644# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30645set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030648if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030649 $as_echo_n "(cached) " >&6
30650else
30651 case $BZIPDelegate in
30652 [\\/]* | ?:[\\/]*)
30653 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30654 ;;
30655 *)
30656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30657for as_dir in $PATH
30658do
30659 IFS=$as_save_IFS
30660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30663 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030665 break 2
30666 fi
30667done
cristy8b350f62009-11-15 23:12:43 +000030668 done
cristy3ed852e2009-09-05 21:47:34 +000030669IFS=$as_save_IFS
30670
30671 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30672 ;;
30673esac
30674fi
30675BZIPDelegate=$ac_cv_path_BZIPDelegate
30676if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030678$as_echo "$BZIPDelegate" >&6; }
30679else
cristy8b350f62009-11-15 23:12:43 +000030680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030681$as_echo "no" >&6; }
30682fi
30683
30684
30685# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30686set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030689if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030690 $as_echo_n "(cached) " >&6
30691else
30692 case $BrowseDelegate in
30693 [\\/]* | ?:[\\/]*)
30694 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30695 ;;
30696 *)
30697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30698for as_dir in $PATH
30699do
30700 IFS=$as_save_IFS
30701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30704 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030706 break 2
30707 fi
30708done
cristy8b350f62009-11-15 23:12:43 +000030709 done
cristy3ed852e2009-09-05 21:47:34 +000030710IFS=$as_save_IFS
30711
30712 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30713 ;;
30714esac
30715fi
30716BrowseDelegate=$ac_cv_path_BrowseDelegate
30717if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030719$as_echo "$BrowseDelegate" >&6; }
30720else
cristy8b350f62009-11-15 23:12:43 +000030721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030722$as_echo "no" >&6; }
30723fi
30724
30725
30726# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30727set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030730if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030731 $as_echo_n "(cached) " >&6
30732else
30733 case $CGMDecodeDelegate in
30734 [\\/]* | ?:[\\/]*)
30735 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30736 ;;
30737 *)
30738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30739for as_dir in $PATH
30740do
30741 IFS=$as_save_IFS
30742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30745 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030747 break 2
30748 fi
30749done
cristy8b350f62009-11-15 23:12:43 +000030750 done
cristy3ed852e2009-09-05 21:47:34 +000030751IFS=$as_save_IFS
30752
30753 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30754 ;;
30755esac
30756fi
30757CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30758if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030760$as_echo "$CGMDecodeDelegate" >&6; }
30761else
cristy8b350f62009-11-15 23:12:43 +000030762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030763$as_echo "no" >&6; }
30764fi
30765
30766
30767# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30768set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030771if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030772 $as_echo_n "(cached) " >&6
30773else
30774 case $CatDelegate in
30775 [\\/]* | ?:[\\/]*)
30776 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30777 ;;
30778 *)
30779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30780for as_dir in $PATH
30781do
30782 IFS=$as_save_IFS
30783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30786 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030788 break 2
30789 fi
30790done
cristy8b350f62009-11-15 23:12:43 +000030791 done
cristy3ed852e2009-09-05 21:47:34 +000030792IFS=$as_save_IFS
30793
30794 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30795 ;;
30796esac
30797fi
30798CatDelegate=$ac_cv_path_CatDelegate
30799if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030801$as_echo "$CatDelegate" >&6; }
30802else
cristy8b350f62009-11-15 23:12:43 +000030803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030804$as_echo "no" >&6; }
30805fi
30806
30807
30808# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30809set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030812if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030813 $as_echo_n "(cached) " >&6
30814else
30815 case $DNGDecodeDelegate in
30816 [\\/]* | ?:[\\/]*)
30817 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30818 ;;
30819 *)
30820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30821for as_dir in $PATH
30822do
30823 IFS=$as_save_IFS
30824 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30827 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030829 break 2
30830 fi
30831done
cristy8b350f62009-11-15 23:12:43 +000030832 done
cristy3ed852e2009-09-05 21:47:34 +000030833IFS=$as_save_IFS
30834
30835 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30836 ;;
30837esac
30838fi
30839DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30840if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030842$as_echo "$DNGDecodeDelegate" >&6; }
30843else
cristy8b350f62009-11-15 23:12:43 +000030844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030845$as_echo "no" >&6; }
30846fi
30847
30848
30849# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30850set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030853if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030854 $as_echo_n "(cached) " >&6
30855else
30856 case $GVCDecodeDelegate in
30857 [\\/]* | ?:[\\/]*)
30858 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30859 ;;
30860 *)
30861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30862for as_dir in $PATH
30863do
30864 IFS=$as_save_IFS
30865 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30868 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030870 break 2
30871 fi
30872done
cristy8b350f62009-11-15 23:12:43 +000030873 done
cristy3ed852e2009-09-05 21:47:34 +000030874IFS=$as_save_IFS
30875
30876 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30877 ;;
30878esac
30879fi
30880GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30881if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030883$as_echo "$GVCDecodeDelegate" >&6; }
30884else
cristy8b350f62009-11-15 23:12:43 +000030885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030886$as_echo "no" >&6; }
30887fi
30888
30889
30890# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30891set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030894if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030895 $as_echo_n "(cached) " >&6
30896else
30897 case $DVIDecodeDelegate in
30898 [\\/]* | ?:[\\/]*)
30899 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30900 ;;
30901 *)
30902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30903for as_dir in $PATH
30904do
30905 IFS=$as_save_IFS
30906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30909 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030911 break 2
30912 fi
30913done
cristy8b350f62009-11-15 23:12:43 +000030914 done
cristy3ed852e2009-09-05 21:47:34 +000030915IFS=$as_save_IFS
30916
30917 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30918 ;;
30919esac
30920fi
30921DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30922if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030924$as_echo "$DVIDecodeDelegate" >&6; }
30925else
cristy8b350f62009-11-15 23:12:43 +000030926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030927$as_echo "no" >&6; }
30928fi
30929
30930
30931# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30932set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030935if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030936 $as_echo_n "(cached) " >&6
30937else
30938 case $EchoDelegate in
30939 [\\/]* | ?:[\\/]*)
30940 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30941 ;;
30942 *)
30943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30944for as_dir in $PATH
30945do
30946 IFS=$as_save_IFS
30947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30950 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030952 break 2
30953 fi
30954done
cristy8b350f62009-11-15 23:12:43 +000030955 done
cristy3ed852e2009-09-05 21:47:34 +000030956IFS=$as_save_IFS
30957
30958 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30959 ;;
30960esac
30961fi
30962EchoDelegate=$ac_cv_path_EchoDelegate
30963if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030965$as_echo "$EchoDelegate" >&6; }
30966else
cristy8b350f62009-11-15 23:12:43 +000030967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030968$as_echo "no" >&6; }
30969fi
30970
30971
30972# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30973set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030975$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030976if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030977 $as_echo_n "(cached) " >&6
30978else
30979 case $EditorDelegate in
30980 [\\/]* | ?:[\\/]*)
30981 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30982 ;;
30983 *)
30984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30985for as_dir in $PATH
30986do
30987 IFS=$as_save_IFS
30988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30991 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030993 break 2
30994 fi
30995done
cristy8b350f62009-11-15 23:12:43 +000030996 done
cristy3ed852e2009-09-05 21:47:34 +000030997IFS=$as_save_IFS
30998
30999 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31000 ;;
31001esac
31002fi
31003EditorDelegate=$ac_cv_path_EditorDelegate
31004if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031006$as_echo "$EditorDelegate" >&6; }
31007else
cristy8b350f62009-11-15 23:12:43 +000031008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031009$as_echo "no" >&6; }
31010fi
31011
31012
31013# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31014set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031017if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031018 $as_echo_n "(cached) " >&6
31019else
31020 case $FIGDecodeDelegate in
31021 [\\/]* | ?:[\\/]*)
31022 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31023 ;;
31024 *)
31025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31026for as_dir in $PATH
31027do
31028 IFS=$as_save_IFS
31029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31032 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031034 break 2
31035 fi
31036done
cristy8b350f62009-11-15 23:12:43 +000031037 done
cristy3ed852e2009-09-05 21:47:34 +000031038IFS=$as_save_IFS
31039
31040 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31041 ;;
31042esac
31043fi
31044FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31045if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031047$as_echo "$FIGDecodeDelegate" >&6; }
31048else
cristy8b350f62009-11-15 23:12:43 +000031049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031050$as_echo "no" >&6; }
31051fi
31052
31053
31054# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31055set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031057$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031058if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031059 $as_echo_n "(cached) " >&6
31060else
31061 case $ConvertDelegate in
31062 [\\/]* | ?:[\\/]*)
31063 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31064 ;;
31065 *)
31066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31067for as_dir in $PATH
31068do
31069 IFS=$as_save_IFS
31070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31073 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031075 break 2
31076 fi
31077done
cristy8b350f62009-11-15 23:12:43 +000031078 done
cristy3ed852e2009-09-05 21:47:34 +000031079IFS=$as_save_IFS
31080
31081 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31082 ;;
31083esac
31084fi
31085ConvertDelegate=$ac_cv_path_ConvertDelegate
31086if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031088$as_echo "$ConvertDelegate" >&6; }
31089else
cristy8b350f62009-11-15 23:12:43 +000031090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031091$as_echo "no" >&6; }
31092fi
31093
31094
31095# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31096set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031099if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031100 $as_echo_n "(cached) " >&6
31101else
31102 case $DisplayDelegate in
31103 [\\/]* | ?:[\\/]*)
31104 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31105 ;;
31106 *)
31107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31108for as_dir in $PATH
31109do
31110 IFS=$as_save_IFS
31111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31114 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031116 break 2
31117 fi
31118done
cristy8b350f62009-11-15 23:12:43 +000031119 done
cristy3ed852e2009-09-05 21:47:34 +000031120IFS=$as_save_IFS
31121
31122 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31123 ;;
31124esac
31125fi
31126DisplayDelegate=$ac_cv_path_DisplayDelegate
31127if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031129$as_echo "$DisplayDelegate" >&6; }
31130else
cristy8b350f62009-11-15 23:12:43 +000031131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031132$as_echo "no" >&6; }
31133fi
31134
31135
31136# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31137set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031140if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031141 $as_echo_n "(cached) " >&6
31142else
31143 case $MogrifyDelegate in
31144 [\\/]* | ?:[\\/]*)
31145 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31146 ;;
31147 *)
31148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31149for as_dir in $PATH
31150do
31151 IFS=$as_save_IFS
31152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31155 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031157 break 2
31158 fi
31159done
cristy8b350f62009-11-15 23:12:43 +000031160 done
cristy3ed852e2009-09-05 21:47:34 +000031161IFS=$as_save_IFS
31162
31163 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31164 ;;
31165esac
31166fi
31167MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31168if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031170$as_echo "$MogrifyDelegate" >&6; }
31171else
cristy8b350f62009-11-15 23:12:43 +000031172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031173$as_echo "no" >&6; }
31174fi
31175
31176
31177# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31178set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031181if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031182 $as_echo_n "(cached) " >&6
31183else
31184 case $GnuplotDecodeDelegate in
31185 [\\/]* | ?:[\\/]*)
31186 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31187 ;;
31188 *)
31189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31190for as_dir in $PATH
31191do
31192 IFS=$as_save_IFS
31193 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31196 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031198 break 2
31199 fi
31200done
cristy8b350f62009-11-15 23:12:43 +000031201 done
cristy3ed852e2009-09-05 21:47:34 +000031202IFS=$as_save_IFS
31203
31204 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31205 ;;
31206esac
31207fi
31208GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31209if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211$as_echo "$GnuplotDecodeDelegate" >&6; }
31212else
cristy8b350f62009-11-15 23:12:43 +000031213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031214$as_echo "no" >&6; }
31215fi
31216
31217
cristy3ed852e2009-09-05 21:47:34 +000031218# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31219set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031221$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031222if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031223 $as_echo_n "(cached) " >&6
31224else
31225 case $HPGLDecodeDelegate in
31226 [\\/]* | ?:[\\/]*)
31227 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31228 ;;
31229 *)
31230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31231for as_dir in $PATH
31232do
31233 IFS=$as_save_IFS
31234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31237 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031239 break 2
31240 fi
31241done
cristy8b350f62009-11-15 23:12:43 +000031242 done
cristy3ed852e2009-09-05 21:47:34 +000031243IFS=$as_save_IFS
31244
31245 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31246 ;;
31247esac
31248fi
31249HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31250if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo "$HPGLDecodeDelegate" >&6; }
31253else
cristy8b350f62009-11-15 23:12:43 +000031254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031255$as_echo "no" >&6; }
31256fi
31257
31258
31259# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31260set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031263if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031264 $as_echo_n "(cached) " >&6
31265else
31266 case $HTMLDecodeDelegate in
31267 [\\/]* | ?:[\\/]*)
31268 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31269 ;;
31270 *)
31271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31272for as_dir in $PATH
31273do
31274 IFS=$as_save_IFS
31275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31278 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031280 break 2
31281 fi
31282done
cristy8b350f62009-11-15 23:12:43 +000031283 done
cristy3ed852e2009-09-05 21:47:34 +000031284IFS=$as_save_IFS
31285
31286 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31287 ;;
31288esac
31289fi
31290HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31291if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293$as_echo "$HTMLDecodeDelegate" >&6; }
31294else
cristy8b350f62009-11-15 23:12:43 +000031295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031296$as_echo "no" >&6; }
31297fi
31298
31299
31300# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31301set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031304if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031305 $as_echo_n "(cached) " >&6
31306else
31307 case $ILBMDecodeDelegate in
31308 [\\/]* | ?:[\\/]*)
31309 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31310 ;;
31311 *)
31312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31313for as_dir in $PATH
31314do
31315 IFS=$as_save_IFS
31316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31319 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031321 break 2
31322 fi
31323done
cristy8b350f62009-11-15 23:12:43 +000031324 done
cristy3ed852e2009-09-05 21:47:34 +000031325IFS=$as_save_IFS
31326
31327 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31328 ;;
31329esac
31330fi
31331ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31332if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334$as_echo "$ILBMDecodeDelegate" >&6; }
31335else
cristy8b350f62009-11-15 23:12:43 +000031336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031337$as_echo "no" >&6; }
31338fi
31339
31340
31341# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31342set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031345if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031346 $as_echo_n "(cached) " >&6
31347else
31348 case $ILBMEncodeDelegate in
31349 [\\/]* | ?:[\\/]*)
31350 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31351 ;;
31352 *)
31353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31354for as_dir in $PATH
31355do
31356 IFS=$as_save_IFS
31357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31360 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031362 break 2
31363 fi
31364done
cristy8b350f62009-11-15 23:12:43 +000031365 done
cristy3ed852e2009-09-05 21:47:34 +000031366IFS=$as_save_IFS
31367
31368 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31369 ;;
31370esac
31371fi
31372ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31373if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031375$as_echo "$ILBMEncodeDelegate" >&6; }
31376else
cristy8b350f62009-11-15 23:12:43 +000031377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031378$as_echo "no" >&6; }
31379fi
31380
31381
31382# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31383set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031386if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031387 $as_echo_n "(cached) " >&6
31388else
31389 case $LPDelegate in
31390 [\\/]* | ?:[\\/]*)
31391 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31392 ;;
31393 *)
31394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31395for as_dir in $PATH
31396do
31397 IFS=$as_save_IFS
31398 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31401 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031403 break 2
31404 fi
31405done
cristy8b350f62009-11-15 23:12:43 +000031406 done
cristy3ed852e2009-09-05 21:47:34 +000031407IFS=$as_save_IFS
31408
31409 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31410 ;;
31411esac
31412fi
31413LPDelegate=$ac_cv_path_LPDelegate
31414if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo "$LPDelegate" >&6; }
31417else
cristy8b350f62009-11-15 23:12:43 +000031418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031419$as_echo "no" >&6; }
31420fi
31421
31422
31423# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31424set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031427if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031428 $as_echo_n "(cached) " >&6
31429else
31430 case $LPRDelegate in
31431 [\\/]* | ?:[\\/]*)
31432 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31433 ;;
31434 *)
31435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31436for as_dir in $PATH
31437do
31438 IFS=$as_save_IFS
31439 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31442 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031444 break 2
31445 fi
31446done
cristy8b350f62009-11-15 23:12:43 +000031447 done
cristy3ed852e2009-09-05 21:47:34 +000031448IFS=$as_save_IFS
31449
31450 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31451 ;;
31452esac
31453fi
31454LPRDelegate=$ac_cv_path_LPRDelegate
31455if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457$as_echo "$LPRDelegate" >&6; }
31458else
cristy8b350f62009-11-15 23:12:43 +000031459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031460$as_echo "no" >&6; }
31461fi
31462
31463
31464# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31465set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031467$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031468if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031469 $as_echo_n "(cached) " >&6
31470else
31471 case $LZWDecodeDelegate in
31472 [\\/]* | ?:[\\/]*)
31473 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31474 ;;
31475 *)
31476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31477for as_dir in $PATH
31478do
31479 IFS=$as_save_IFS
31480 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31483 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031485 break 2
31486 fi
31487done
cristy8b350f62009-11-15 23:12:43 +000031488 done
cristy3ed852e2009-09-05 21:47:34 +000031489IFS=$as_save_IFS
31490
31491 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31492 ;;
31493esac
31494fi
31495LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31496if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498$as_echo "$LZWDecodeDelegate" >&6; }
31499else
cristy8b350f62009-11-15 23:12:43 +000031500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031501$as_echo "no" >&6; }
31502fi
31503
31504
31505# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31506set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031509if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031510 $as_echo_n "(cached) " >&6
31511else
31512 case $LZWEncodeDelegate in
31513 [\\/]* | ?:[\\/]*)
31514 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31515 ;;
31516 *)
31517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31518for as_dir in $PATH
31519do
31520 IFS=$as_save_IFS
31521 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31524 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031526 break 2
31527 fi
31528done
cristy8b350f62009-11-15 23:12:43 +000031529 done
cristy3ed852e2009-09-05 21:47:34 +000031530IFS=$as_save_IFS
31531
31532 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31533 ;;
31534esac
31535fi
31536LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31537if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo "$LZWEncodeDelegate" >&6; }
31540else
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo "no" >&6; }
31543fi
31544
31545
31546# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31547set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031550if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031551 $as_echo_n "(cached) " >&6
31552else
31553 case $LaunchDelegate in
31554 [\\/]* | ?:[\\/]*)
31555 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31556 ;;
31557 *)
31558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31559for as_dir in $PATH
31560do
31561 IFS=$as_save_IFS
31562 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31565 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031567 break 2
31568 fi
31569done
cristy8b350f62009-11-15 23:12:43 +000031570 done
cristy3ed852e2009-09-05 21:47:34 +000031571IFS=$as_save_IFS
31572
31573 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31574 ;;
31575esac
31576fi
31577LaunchDelegate=$ac_cv_path_LaunchDelegate
31578if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031580$as_echo "$LaunchDelegate" >&6; }
31581else
cristy8b350f62009-11-15 23:12:43 +000031582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031583$as_echo "no" >&6; }
31584fi
31585
31586
31587# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31588set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031591if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031592 $as_echo_n "(cached) " >&6
31593else
31594 case $MANDelegate in
31595 [\\/]* | ?:[\\/]*)
31596 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31597 ;;
31598 *)
31599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31600for as_dir in $PATH
31601do
31602 IFS=$as_save_IFS
31603 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31606 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031608 break 2
31609 fi
31610done
cristy8b350f62009-11-15 23:12:43 +000031611 done
cristy3ed852e2009-09-05 21:47:34 +000031612IFS=$as_save_IFS
31613
31614 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31615 ;;
31616esac
31617fi
31618MANDelegate=$ac_cv_path_MANDelegate
31619if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031621$as_echo "$MANDelegate" >&6; }
31622else
cristy8b350f62009-11-15 23:12:43 +000031623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031624$as_echo "no" >&6; }
31625fi
31626
31627
31628# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31629set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031632if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031633 $as_echo_n "(cached) " >&6
31634else
31635 case $MPEGDecodeDelegate in
31636 [\\/]* | ?:[\\/]*)
31637 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31638 ;;
31639 *)
31640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31641for as_dir in $PATH
31642do
31643 IFS=$as_save_IFS
31644 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31647 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031649 break 2
31650 fi
31651done
cristy8b350f62009-11-15 23:12:43 +000031652 done
cristy3ed852e2009-09-05 21:47:34 +000031653IFS=$as_save_IFS
31654
31655 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31656 ;;
31657esac
31658fi
31659MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31660if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031662$as_echo "$MPEGDecodeDelegate" >&6; }
31663else
cristy8b350f62009-11-15 23:12:43 +000031664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031665$as_echo "no" >&6; }
31666fi
31667
31668
31669# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31670set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031673if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031674 $as_echo_n "(cached) " >&6
31675else
31676 case $MPEGEncodeDelegate in
31677 [\\/]* | ?:[\\/]*)
31678 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31679 ;;
31680 *)
31681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31682for as_dir in $PATH
31683do
31684 IFS=$as_save_IFS
31685 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31688 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031690 break 2
31691 fi
31692done
cristy8b350f62009-11-15 23:12:43 +000031693 done
cristy3ed852e2009-09-05 21:47:34 +000031694IFS=$as_save_IFS
31695
31696 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31697 ;;
31698esac
31699fi
31700MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31701if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031703$as_echo "$MPEGEncodeDelegate" >&6; }
31704else
cristy8b350f62009-11-15 23:12:43 +000031705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031706$as_echo "no" >&6; }
31707fi
31708
31709
cristy935c86e2010-06-05 23:50:07 +000031710# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31711set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31713$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031714if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031715 $as_echo_n "(cached) " >&6
31716else
31717 case $MrSIDDecodeDelegate in
31718 [\\/]* | ?:[\\/]*)
31719 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31720 ;;
31721 *)
31722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31723for as_dir in $PATH
31724do
31725 IFS=$as_save_IFS
31726 test -z "$as_dir" && as_dir=.
31727 for ac_exec_ext in '' $ac_executable_extensions; do
31728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31729 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31731 break 2
31732 fi
31733done
31734 done
31735IFS=$as_save_IFS
31736
31737 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31738 ;;
31739esac
31740fi
31741MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31742if test -n "$MrSIDDecodeDelegate"; then
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31744$as_echo "$MrSIDDecodeDelegate" >&6; }
31745else
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31747$as_echo "no" >&6; }
31748fi
31749
31750
cristy3ed852e2009-09-05 21:47:34 +000031751# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31752set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031754$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031755if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031756 $as_echo_n "(cached) " >&6
31757else
31758 case $MVDelegate in
31759 [\\/]* | ?:[\\/]*)
31760 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31761 ;;
31762 *)
31763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31764for as_dir in $PATH
31765do
31766 IFS=$as_save_IFS
31767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31770 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031772 break 2
31773 fi
31774done
cristy8b350f62009-11-15 23:12:43 +000031775 done
cristy3ed852e2009-09-05 21:47:34 +000031776IFS=$as_save_IFS
31777
31778 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31779 ;;
31780esac
31781fi
31782MVDelegate=$ac_cv_path_MVDelegate
31783if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031785$as_echo "$MVDelegate" >&6; }
31786else
cristy8b350f62009-11-15 23:12:43 +000031787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031788$as_echo "no" >&6; }
31789fi
31790
31791
31792# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31793set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031796if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031797 $as_echo_n "(cached) " >&6
31798else
31799 case $PCLDelegate in
31800 [\\/]* | ?:[\\/]*)
31801 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31802 ;;
31803 *)
31804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31805for as_dir in $PATH
31806do
31807 IFS=$as_save_IFS
31808 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31811 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031813 break 2
31814 fi
31815done
cristy8b350f62009-11-15 23:12:43 +000031816 done
cristy3ed852e2009-09-05 21:47:34 +000031817IFS=$as_save_IFS
31818
31819 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31820 ;;
31821esac
31822fi
31823PCLDelegate=$ac_cv_path_PCLDelegate
31824if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031826$as_echo "$PCLDelegate" >&6; }
31827else
cristy8b350f62009-11-15 23:12:43 +000031828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031829$as_echo "no" >&6; }
31830fi
31831
31832
31833# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31834set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031837if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031838 $as_echo_n "(cached) " >&6
31839else
31840 case $PGPDecodeDelegate in
31841 [\\/]* | ?:[\\/]*)
31842 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31843 ;;
31844 *)
31845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31846for as_dir in $PATH
31847do
31848 IFS=$as_save_IFS
31849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31852 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031854 break 2
31855 fi
31856done
cristy8b350f62009-11-15 23:12:43 +000031857 done
cristy3ed852e2009-09-05 21:47:34 +000031858IFS=$as_save_IFS
31859
31860 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31861 ;;
31862esac
31863fi
31864PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31865if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031867$as_echo "$PGPDecodeDelegate" >&6; }
31868else
cristy8b350f62009-11-15 23:12:43 +000031869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031870$as_echo "no" >&6; }
31871fi
31872
31873
31874# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31875set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031878if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031879 $as_echo_n "(cached) " >&6
31880else
31881 case $POVDelegate in
31882 [\\/]* | ?:[\\/]*)
31883 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31884 ;;
31885 *)
31886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31887for as_dir in $PATH
31888do
31889 IFS=$as_save_IFS
31890 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031891 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31893 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031895 break 2
31896 fi
31897done
cristy8b350f62009-11-15 23:12:43 +000031898 done
cristy3ed852e2009-09-05 21:47:34 +000031899IFS=$as_save_IFS
31900
31901 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31902 ;;
31903esac
31904fi
31905POVDelegate=$ac_cv_path_POVDelegate
31906if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031908$as_echo "$POVDelegate" >&6; }
31909else
cristy8b350f62009-11-15 23:12:43 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031911$as_echo "no" >&6; }
31912fi
31913
31914
31915for ac_prog in gsx gsc "$PSDelegateDefault"
31916do
31917 # Extract the first word of "$ac_prog", so it can be a program name with args.
31918set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031921if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031922 $as_echo_n "(cached) " >&6
31923else
31924 case $PSDelegate in
31925 [\\/]* | ?:[\\/]*)
31926 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31927 ;;
31928 *)
31929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31930for as_dir in $PATH
31931do
31932 IFS=$as_save_IFS
31933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31936 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031938 break 2
31939 fi
31940done
cristy8b350f62009-11-15 23:12:43 +000031941 done
cristy3ed852e2009-09-05 21:47:34 +000031942IFS=$as_save_IFS
31943
31944 ;;
31945esac
31946fi
31947PSDelegate=$ac_cv_path_PSDelegate
31948if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031950$as_echo "$PSDelegate" >&6; }
31951else
cristy8b350f62009-11-15 23:12:43 +000031952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953$as_echo "no" >&6; }
31954fi
31955
31956
31957 test -n "$PSDelegate" && break
31958done
31959test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31960
31961# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31962set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031965if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031966 $as_echo_n "(cached) " >&6
31967else
31968 case $RLEEncodeDelegate in
31969 [\\/]* | ?:[\\/]*)
31970 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31971 ;;
31972 *)
31973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31974for as_dir in $PATH
31975do
31976 IFS=$as_save_IFS
31977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31980 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982 break 2
31983 fi
31984done
cristy8b350f62009-11-15 23:12:43 +000031985 done
cristy3ed852e2009-09-05 21:47:34 +000031986IFS=$as_save_IFS
31987
31988 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31989 ;;
31990esac
31991fi
31992RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31993if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031995$as_echo "$RLEEncodeDelegate" >&6; }
31996else
cristy8b350f62009-11-15 23:12:43 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo "no" >&6; }
31999fi
32000
32001
32002# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32003set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032006if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032007 $as_echo_n "(cached) " >&6
32008else
32009 case $RMDelegate in
32010 [\\/]* | ?:[\\/]*)
32011 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32012 ;;
32013 *)
32014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32015for as_dir in $PATH
32016do
32017 IFS=$as_save_IFS
32018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32021 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032023 break 2
32024 fi
32025done
cristy8b350f62009-11-15 23:12:43 +000032026 done
cristy3ed852e2009-09-05 21:47:34 +000032027IFS=$as_save_IFS
32028
32029 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32030 ;;
32031esac
32032fi
32033RMDelegate=$ac_cv_path_RMDelegate
32034if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032036$as_echo "$RMDelegate" >&6; }
32037else
cristy8b350f62009-11-15 23:12:43 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032039$as_echo "no" >&6; }
32040fi
32041
32042
cristy4689cf02010-02-17 21:15:45 +000032043# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32044set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032047if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032048 $as_echo_n "(cached) " >&6
32049else
32050 case $RSVGDecodeDelegate in
32051 [\\/]* | ?:[\\/]*)
32052 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32053 ;;
32054 *)
32055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32056for as_dir in $PATH
32057do
32058 IFS=$as_save_IFS
32059 test -z "$as_dir" && as_dir=.
32060 for ac_exec_ext in '' $ac_executable_extensions; do
32061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32062 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32064 break 2
32065 fi
32066done
32067 done
32068IFS=$as_save_IFS
32069
32070 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32071 ;;
32072esac
32073fi
32074RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32075if test -n "$RSVGDecodeDelegate"; then
32076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32077$as_echo "$RSVGDecodeDelegate" >&6; }
32078else
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32080$as_echo "no" >&6; }
32081fi
32082
32083
cristy3ed852e2009-09-05 21:47:34 +000032084# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32085set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032088if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032089 $as_echo_n "(cached) " >&6
32090else
32091 case $SCANDecodeDelegate in
32092 [\\/]* | ?:[\\/]*)
32093 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32094 ;;
32095 *)
32096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32097for as_dir in $PATH
32098do
32099 IFS=$as_save_IFS
32100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32103 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032105 break 2
32106 fi
32107done
cristy8b350f62009-11-15 23:12:43 +000032108 done
cristy3ed852e2009-09-05 21:47:34 +000032109IFS=$as_save_IFS
32110
32111 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32112 ;;
32113esac
32114fi
32115SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32116if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo "$SCANDecodeDelegate" >&6; }
32119else
cristy8b350f62009-11-15 23:12:43 +000032120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032121$as_echo "no" >&6; }
32122fi
32123
32124
32125# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32126set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032129if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032130 $as_echo_n "(cached) " >&6
32131else
32132 case $TXTDelegate in
32133 [\\/]* | ?:[\\/]*)
32134 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32135 ;;
32136 *)
32137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32138for as_dir in $PATH
32139do
32140 IFS=$as_save_IFS
32141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32144 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032146 break 2
32147 fi
32148done
cristy8b350f62009-11-15 23:12:43 +000032149 done
cristy3ed852e2009-09-05 21:47:34 +000032150IFS=$as_save_IFS
32151
32152 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32153 ;;
32154esac
32155fi
32156TXTDelegate=$ac_cv_path_TXTDelegate
32157if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032159$as_echo "$TXTDelegate" >&6; }
32160else
cristy8b350f62009-11-15 23:12:43 +000032161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032162$as_echo "no" >&6; }
32163fi
32164
32165
cristy5ac9ac82010-07-29 13:24:24 +000032166# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32167set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032170if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032171 $as_echo_n "(cached) " >&6
32172else
32173 case $UniconvertorDelegate in
32174 [\\/]* | ?:[\\/]*)
32175 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32176 ;;
32177 *)
32178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32179for as_dir in $PATH
32180do
32181 IFS=$as_save_IFS
32182 test -z "$as_dir" && as_dir=.
32183 for ac_exec_ext in '' $ac_executable_extensions; do
32184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32185 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32187 break 2
32188 fi
32189done
32190 done
32191IFS=$as_save_IFS
32192
32193 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32194 ;;
32195esac
32196fi
32197UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32198if test -n "$UniconvertorDelegate"; then
32199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32200$as_echo "$UniconvertorDelegate" >&6; }
32201else
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32203$as_echo "no" >&6; }
32204fi
32205
32206
cristy3ed852e2009-09-05 21:47:34 +000032207# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32208set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032211if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032212 $as_echo_n "(cached) " >&6
32213else
32214 case $WMFDecodeDelegate in
32215 [\\/]* | ?:[\\/]*)
32216 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32217 ;;
32218 *)
32219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32220for as_dir in $PATH
32221do
32222 IFS=$as_save_IFS
32223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32226 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032228 break 2
32229 fi
32230done
cristy8b350f62009-11-15 23:12:43 +000032231 done
cristy3ed852e2009-09-05 21:47:34 +000032232IFS=$as_save_IFS
32233
32234 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32235 ;;
32236esac
32237fi
32238WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32239if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241$as_echo "$WMFDecodeDelegate" >&6; }
32242else
cristy8b350f62009-11-15 23:12:43 +000032243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032244$as_echo "no" >&6; }
32245fi
32246
32247
32248# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32249set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032251$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032252if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032253 $as_echo_n "(cached) " >&6
32254else
32255 case $WWWDecodeDelegate in
32256 [\\/]* | ?:[\\/]*)
32257 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32258 ;;
32259 *)
32260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32261for as_dir in $PATH
32262do
32263 IFS=$as_save_IFS
32264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32267 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032269 break 2
32270 fi
32271done
cristy8b350f62009-11-15 23:12:43 +000032272 done
cristy3ed852e2009-09-05 21:47:34 +000032273IFS=$as_save_IFS
32274
32275 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32276 ;;
32277esac
32278fi
32279WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32280if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032282$as_echo "$WWWDecodeDelegate" >&6; }
32283else
cristy8b350f62009-11-15 23:12:43 +000032284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032285$as_echo "no" >&6; }
32286fi
32287
32288
32289# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32290set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032293if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032294 $as_echo_n "(cached) " >&6
32295else
32296 case $XPSDelegate in
32297 [\\/]* | ?:[\\/]*)
32298 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32299 ;;
32300 *)
32301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32302for as_dir in $PATH
32303do
32304 IFS=$as_save_IFS
32305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32308 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032310 break 2
32311 fi
32312done
cristy8b350f62009-11-15 23:12:43 +000032313 done
cristy3ed852e2009-09-05 21:47:34 +000032314IFS=$as_save_IFS
32315
32316 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32317 ;;
32318esac
32319fi
32320XPSDelegate=$ac_cv_path_XPSDelegate
32321if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo "$XPSDelegate" >&6; }
32324else
cristy8b350f62009-11-15 23:12:43 +000032325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032326$as_echo "no" >&6; }
32327fi
32328
32329
32330# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32331set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032334if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032335 $as_echo_n "(cached) " >&6
32336else
32337 case $ZipDelegate in
32338 [\\/]* | ?:[\\/]*)
32339 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32340 ;;
32341 *)
32342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32343for as_dir in $PATH
32344do
32345 IFS=$as_save_IFS
32346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32349 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032351 break 2
32352 fi
32353done
cristy8b350f62009-11-15 23:12:43 +000032354 done
cristy3ed852e2009-09-05 21:47:34 +000032355IFS=$as_save_IFS
32356
32357 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32358 ;;
32359esac
32360fi
32361ZipDelegate=$ac_cv_path_ZipDelegate
32362if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032364$as_echo "$ZipDelegate" >&6; }
32365else
cristy8b350f62009-11-15 23:12:43 +000032366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032367$as_echo "no" >&6; }
32368fi
32369
32370
32371
32372# Prefer lpr to lp; lp needs options tacked on.
32373if test "$LPRDelegate" != no; then
32374 PrintDelegate="$LPRDelegate"
32375else
32376 PrintDelegate="$LPDelegate -c -s"
32377fi
32378
32379
32380# Installed ImageMagick utiltity paths
32381ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32382DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32383MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32384
32385# Set delegate booleans
32386have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32387have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32388have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32389have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32390have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032391have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032392have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32393have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032394have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32395have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32396
32397#
32398# Test for font directories
32399#
32400type_include_files=''
32401
cristy430a7312010-01-21 20:44:04 +000032402# Dejavu fonts.
32403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32404$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32405dejavu_font_dir=''
32406if test "${with_dejavu_font_dir}" != 'default'; then
32407 dejavu_font_dir="${with_dejavu_font_dir}/"
32408else
32409 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32410 if test -f "${font_dir}DejaVuSerif.ttf"; then
32411 dejavu_font_dir="${font_dir}"
32412 break 1
32413 fi
32414 done
32415fi
32416if test "${dejavu_font_dir}x" != 'x'; then
32417 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32419$as_echo "$dejavu_font_dir" >&6; }
32420else
32421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32422$as_echo "not found!" >&6; };
32423fi
32424
32425
cristy3ed852e2009-09-05 21:47:34 +000032426# Windows
32427windows_font_dir=''
32428if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32429 windows_font_dir="${with_windows_font_dir}/"
32430fi
cristy430a7312010-01-21 20:44:04 +000032431if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032432 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32433 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32434 fi
32435 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32436 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32437 fi
32438 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32439 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32440 fi
32441fi
cristy430a7312010-01-21 20:44:04 +000032442if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032443 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32444fi
32445
32446
32447# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032449$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32450ghostscript_font_dir=''
32451if test "${with_gs_font_dir}" != 'default'; then
32452 ghostscript_font_dir="${with_gs_font_dir}/"
32453else
32454 if test "${native_win32_build}" = 'yes'; then
32455 # Native Windows Build
32456 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32457 if test -f "${font_dir}a010013l.pfb"; then
32458 ghostscript_font_dir="$font_dir"
32459 break 1
32460 fi
32461 done
32462 if test "${PSDelegate}" != 'gswin32c'; then
32463 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32464 fi
32465 else
32466 # Linux / Mac OS X / Unix Build
32467 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
32468 if test -f "${font_dir}a010013l.pfb"; then
32469 ghostscript_font_dir="${font_dir}"
32470 break 1
32471 fi
32472 done
32473 if test "${ghostscript_font_dir}x" = 'x'; then
32474 if test "$PSDelegate" != 'gs'; then
32475 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32476 fi
32477 fi
32478 fi
32479fi
32480if test "${ghostscript_font_dir}x" != 'x'; then
32481 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032483$as_echo "$ghostscript_font_dir" >&6; }
32484else
cristy8b350f62009-11-15 23:12:43 +000032485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032486$as_echo "not found!" >&6; };
32487fi
32488
32489case "${build_os}" in
32490 mingw* )
32491 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32492 ;;
32493esac
32494
32495
32496
32497#
32498# Handle case where user doesn't want frozen paths
32499#
32500if test "$with_frozenpaths" != 'yes'; then
32501 # Re-set delegate definitions to default (no paths)
32502 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032503 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32504 BZIPDelegate="$BZIPDelegateDefault"
32505 BrowseDelegate="$BrowseDelegateDefault"
32506 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32507 CatDelegate="$CatDelegateDefault"
32508 ConvertDelegate="$ConvertDelegateDefault"
32509 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32510 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32511 EchoDelegate="$EchoDelegateDefault"
32512 EditorDelegate="$EditorDelegateDefault"
32513 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32514 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32515 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32516 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32517 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32518 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32519 LPDelegate="$LPDelegateDefault"
32520 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32521 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32522 LaunchDelegate="$LaunchDelegateDefault"
32523 MANDelegate="$MANDelegateDefault"
32524 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32525 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032526 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032527 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32528 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032529 PCLDelegate="$PCLDelegateDefault"
32530 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32531 POVDelegate="$POVDelegateDefault"
32532 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032533 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32534 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032535 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032536 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32537 ShowImageDelegate="$ShowImageDelegateDefault"
32538 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032539 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032540 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32541 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32542 XPSDelegate="$XPSDelegateDefault"
32543 ZipDelegate="$ZipDelegateDefault"
32544fi
32545
32546# Delegate substitutions
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
32581
32582
32583
32584
32585
32586
32587
32588
32589#
32590# RPM support.
32591#
32592RPM=''
32593for ac_prog in gnutar gtar tar
32594do
32595 # Extract the first word of "$ac_prog", so it can be a program name with args.
32596set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032599if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032600 $as_echo_n "(cached) " >&6
32601else
32602 if test -n "$TAR"; then
32603 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32604else
32605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32606for as_dir in $PATH
32607do
32608 IFS=$as_save_IFS
32609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32612 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032614 break 2
32615 fi
32616done
cristy8b350f62009-11-15 23:12:43 +000032617 done
cristy3ed852e2009-09-05 21:47:34 +000032618IFS=$as_save_IFS
32619
32620fi
32621fi
32622TAR=$ac_cv_prog_TAR
32623if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032625$as_echo "$TAR" >&6; }
32626else
cristy8b350f62009-11-15 23:12:43 +000032627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032628$as_echo "no" >&6; }
32629fi
32630
32631
32632 test -n "$TAR" && break
32633done
32634
32635for ac_prog in perl
32636do
32637 # Extract the first word of "$ac_prog", so it can be a program name with args.
32638set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032641if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032642 $as_echo_n "(cached) " >&6
32643else
32644 if test -n "$PERL"; then
32645 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32646else
32647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32648for as_dir in $PATH
32649do
32650 IFS=$as_save_IFS
32651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32654 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656 break 2
32657 fi
32658done
cristy8b350f62009-11-15 23:12:43 +000032659 done
cristy3ed852e2009-09-05 21:47:34 +000032660IFS=$as_save_IFS
32661
32662fi
32663fi
32664PERL=$ac_cv_prog_PERL
32665if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032667$as_echo "$PERL" >&6; }
32668else
cristy8b350f62009-11-15 23:12:43 +000032669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032670$as_echo "no" >&6; }
32671fi
32672
32673
32674 test -n "$PERL" && break
32675done
32676
32677for ac_prog in rpmbuild rpm
32678do
32679 # Extract the first word of "$ac_prog", so it can be a program name with args.
32680set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032683if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032684 $as_echo_n "(cached) " >&6
32685else
32686 if test -n "$RPM"; then
32687 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32688else
32689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32690for as_dir in $PATH
32691do
32692 IFS=$as_save_IFS
32693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32696 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032698 break 2
32699 fi
32700done
cristy8b350f62009-11-15 23:12:43 +000032701 done
cristy3ed852e2009-09-05 21:47:34 +000032702IFS=$as_save_IFS
32703
32704fi
32705fi
32706RPM=$ac_cv_prog_RPM
32707if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709$as_echo "$RPM" >&6; }
32710else
cristy8b350f62009-11-15 23:12:43 +000032711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032712$as_echo "no" >&6; }
32713fi
32714
32715
32716 test -n "$RPM" && break
32717done
32718
32719
cristy73bd4a52010-10-05 11:24:23 +000032720ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32721
32722
32723AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32724
32725
32726AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32727
32728
32729AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32730
32731
32732 if test "x$RPM" != "x" ; then
32733 RPM_DELEGATE_TRUE=
32734 RPM_DELEGATE_FALSE='#'
32735else
32736 RPM_DELEGATE_TRUE='#'
32737 RPM_DELEGATE_FALSE=
32738fi
32739
cristy3ed852e2009-09-05 21:47:34 +000032740
32741#
32742# 7ZIP support (http://p7zip.sourceforge.net/)
32743#
32744P7ZIP=''
32745for ac_prog in 7za
32746do
32747 # Extract the first word of "$ac_prog", so it can be a program name with args.
32748set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032751if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032752 $as_echo_n "(cached) " >&6
32753else
32754 if test -n "$P7ZIP"; then
32755 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32756else
32757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32758for as_dir in $PATH
32759do
32760 IFS=$as_save_IFS
32761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32764 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766 break 2
32767 fi
32768done
cristy8b350f62009-11-15 23:12:43 +000032769 done
cristy3ed852e2009-09-05 21:47:34 +000032770IFS=$as_save_IFS
32771
32772fi
32773fi
32774P7ZIP=$ac_cv_prog_P7ZIP
32775if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032777$as_echo "$P7ZIP" >&6; }
32778else
cristy8b350f62009-11-15 23:12:43 +000032779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032780$as_echo "no" >&6; }
32781fi
32782
32783
32784 test -n "$P7ZIP" && break
32785done
32786
32787
cristy73bd4a52010-10-05 11:24:23 +000032788 if test "x$P7ZIP" != "x" ; then
32789 P7ZIP_DELEGATE_TRUE=
32790 P7ZIP_DELEGATE_FALSE='#'
32791else
32792 P7ZIP_DELEGATE_TRUE='#'
32793 P7ZIP_DELEGATE_FALSE=
32794fi
32795
cristy3ed852e2009-09-05 21:47:34 +000032796
32797#
32798# ZIP support (http://www.info-zip.org/Zip.html)
32799#
32800ZIP=''
32801for ac_prog in zip
32802do
32803 # Extract the first word of "$ac_prog", so it can be a program name with args.
32804set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032807if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032808 $as_echo_n "(cached) " >&6
32809else
32810 if test -n "$ZIP"; then
32811 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32812else
32813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32814for as_dir in $PATH
32815do
32816 IFS=$as_save_IFS
32817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32820 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032822 break 2
32823 fi
32824done
cristy8b350f62009-11-15 23:12:43 +000032825 done
cristy3ed852e2009-09-05 21:47:34 +000032826IFS=$as_save_IFS
32827
32828fi
32829fi
32830ZIP=$ac_cv_prog_ZIP
32831if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032833$as_echo "$ZIP" >&6; }
32834else
cristy8b350f62009-11-15 23:12:43 +000032835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo "no" >&6; }
32837fi
32838
32839
32840 test -n "$ZIP" && break
32841done
32842
32843
cristy73bd4a52010-10-05 11:24:23 +000032844 if test "x$ZIP" != "x" ; then
32845 ZIP_DELEGATE_TRUE=
32846 ZIP_DELEGATE_FALSE='#'
32847else
32848 ZIP_DELEGATE_TRUE='#'
32849 ZIP_DELEGATE_FALSE=
32850fi
32851
cristy3ed852e2009-09-05 21:47:34 +000032852
32853#
32854# GhostPCL related configuration.
32855#
32856PCLColorDevice=ppmraw
32857PCLCMYKDevice=bmpsep8
32858PCLMonoDevice=pbmraw
32859if test -z "$PCLVersion"; then
32860 PCLVersion='unknown'
32861fi
32862if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032868$as_echo "" >&6; }
32869 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032871$as_echo_n "checking for pcl color device... " >&6; }
32872 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32873 :
32874 else
32875 PCLColorDevice=ppmraw
32876 fi
cristy8b350f62009-11-15 23:12:43 +000032877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032878$as_echo "$PCLColorDevice" >&6; }
32879
32880 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo_n "checking for pcl CMYK device... " >&6; }
32883 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32884 :
32885 else
32886 PCLCMYKDevice=$PCLColorDevice
32887 fi
cristy8b350f62009-11-15 23:12:43 +000032888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo "$PCLCMYKDevice" >&6; }
32890
32891 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032893$as_echo_n "checking for pcl mono device... " >&6; }
32894 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32895 :
32896 else
32897 PCLMonoDevice=$PCLColorDevice
32898 fi
cristy8b350f62009-11-15 23:12:43 +000032899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo "$PCLMonoDevice" >&6; }
32901fi
32902
32903
32904
32905
32906
32907
32908#
32909# GhostXPS related configuration.
32910#
32911XPSColorDevice=ppmraw
32912XPSCMYKDevice=bmpsep8
32913XPSMonoDevice=pbmraw
32914if test -z "$XPSVersion"; then
32915 XPSVersion='unknown'
32916fi
32917if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032919$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo "" >&6; }
32924 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926$as_echo_n "checking for xps color device... " >&6; }
32927 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32928 :
32929 else
32930 XPSColorDevice=ppmraw
32931 fi
cristy8b350f62009-11-15 23:12:43 +000032932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo "$XPSColorDevice" >&6; }
32934
32935 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032937$as_echo_n "checking for xps CMYK device... " >&6; }
32938 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32939 :
32940 else
32941 XPSCMYKDevice=$XPSColorDevice
32942 fi
cristy8b350f62009-11-15 23:12:43 +000032943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032944$as_echo "$XPSCMYKDevice" >&6; }
32945
32946 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo_n "checking for xps mono device... " >&6; }
32949 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32950 :
32951 else
32952 XPSMonoDevice=$XPSColorDevice
32953 fi
cristy8b350f62009-11-15 23:12:43 +000032954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo "$XPSMonoDevice" >&6; }
32956fi
32957
32958
32959
32960
32961
32962
32963#
32964# Ghostscript related configuration.
32965#
cristya97426c2011-02-04 01:41:27 +000032966GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032967GSColorDevice=pnmraw
32968GSCMYKDevice=pam
32969GSMonoDevice=pbmraw
32970GSPDFDevice=pdfwrite
32971GSPSDevice=pswrite
32972GSEPSDevice=epswrite
32973GSVersion='unknown'
32974if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032978$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo_n "checking for Ghostscript version... " >&6; }
32983 if GSVersion=`$PSDelegate --version`; then
32984 :
32985 else
32986 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32987 fi
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo "$GSVersion" >&6; }
32990
32991 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo_n "checking for gs alpha device... " >&6; }
32994 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32995 :
32996 else
32997 GSAlphaDevice=pnmraw
32998 fi
cristy8b350f62009-11-15 23:12:43 +000032999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000$as_echo "$GSAlphaDevice" >&6; }
33001
33002 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033004$as_echo_n "checking for gs color device... " >&6; }
33005 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33006 :
33007 else
33008 GSColorDevice=pnmraw
33009 fi
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo "$GSColorDevice" >&6; }
33012
33013 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo_n "checking for gs CMYK device... " >&6; }
33016 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33017 :
33018 else
33019 GSCMYKDevice=bmpsep8
33020 fi
cristy8b350f62009-11-15 23:12:43 +000033021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033022$as_echo "$GSCMYKDevice" >&6; }
33023
33024 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026$as_echo_n "checking for gs mono device... " >&6; }
33027 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33028 :
33029 else
33030 GSMonoDevice=$GSColorDevice
33031 fi
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "$GSMonoDevice" >&6; }
33034
33035 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo_n "checking for gs PDF writing device... " >&6; }
33038 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33039 :
33040 else
33041 GSPDFDevice=nodevice
33042 fi
cristy8b350f62009-11-15 23:12:43 +000033043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo "$GSPDFDevice" >&6; }
33045
33046 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo_n "checking for gs PS writing device... " >&6; }
33049 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33050 :
33051 else
33052 GSPSDevice=nodevice
33053 fi
cristy8b350f62009-11-15 23:12:43 +000033054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo "$GSPSDevice" >&6; }
33056
33057 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059$as_echo_n "checking for gs EPS writing device... " >&6; }
33060 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33061 :
33062 else
33063 GSEPSDevice=nodevice
33064 fi
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo "$GSEPSDevice" >&6; }
33067fi
33068
33069
33070
33071
33072
33073
33074
33075
33076
33077
33078#
33079# PerlMagick-related configuration
33080#
33081
33082# Look for PERL if PerlMagick requested
33083# If name/path of desired PERL interpreter is specified, look for that one first
33084have_perl='no'
33085if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033091$as_echo "" >&6; }
33092 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033095if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033096 $as_echo_n "(cached) " >&6
33097else
33098 ac_cv_path_PERL="$with_perl"
33099fi
cristy8b350f62009-11-15 23:12:43 +000033100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033101$as_echo "$ac_cv_path_PERL" >&6; };
33102 PERL=$ac_cv_path_PERL
33103 have_perl="$ac_cv_path_PERL"
33104 else
33105 for ac_prog in perl perl5
33106do
33107 # Extract the first word of "$ac_prog", so it can be a program name with args.
33108set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033111if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033112 $as_echo_n "(cached) " >&6
33113else
33114 case $PERL in
33115 [\\/]* | ?:[\\/]*)
33116 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33117 ;;
33118 *)
33119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33120for as_dir in $PATH
33121do
33122 IFS=$as_save_IFS
33123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33126 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128 break 2
33129 fi
33130done
cristy8b350f62009-11-15 23:12:43 +000033131 done
cristy3ed852e2009-09-05 21:47:34 +000033132IFS=$as_save_IFS
33133
33134 ;;
33135esac
33136fi
33137PERL=$ac_cv_path_PERL
33138if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140$as_echo "$PERL" >&6; }
33141else
cristy8b350f62009-11-15 23:12:43 +000033142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033143$as_echo "no" >&6; }
33144fi
33145
33146
33147 test -n "$PERL" && break
33148done
33149 if test "$ac_cv_path_PERL"; then
33150 have_perl="$ac_cv_path_PERL"
33151 fi
33152 fi
33153fi
33154
cristy949301e2010-01-06 01:38:40 +000033155if test "$with_perl" != 'yes' ; then
33156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33157fi
33158
33159PERL_SUPPORTS_DESTDIR='no'
33160
cristy3ed852e2009-09-05 21:47:34 +000033161with_perl_static='no'
33162with_perl_dynamic='no'
33163if test "$have_perl" != 'no'; then
33164 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33165 with_perl_static='yes'
33166 fi
33167 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33168 with_perl_dynamic='yes'
33169 fi
33170 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033171
33172
33173
33174
33175 if test -n "$PERL"; then :
33176
33177 ax_perl_version="5.8.1"
33178
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33180$as_echo_n "checking for perl version... " >&6; }
33181
33182 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33183
33184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33185$as_echo "$perl_version" >&6; }
33186
33187 PERL_VERSION=$perl_version
33188
33189
33190
33191
33192
33193 # Used to indicate true or false condition
33194 ax_compare_version=false
33195
33196 # Convert the two version strings to be compared into a format that
33197 # allows a simple string comparison. The end result is that a version
33198 # string of the form 1.12.5-r617 will be converted to the form
33199 # 0001001200050617. In other words, each number is zero padded to four
33200 # digits, and non digits are removed.
33201
33202 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33203 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33204 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33205 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33206 -e 's/[^0-9]//g'`
33207
33208
33209 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33210 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33211 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33212 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33213 -e 's/[^0-9]//g'`
33214
33215
33216 ax_compare_version=`echo "x$ax_compare_version_A
33217x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33218
33219
33220
33221 if test "$ax_compare_version" = "true" ; then
33222
33223 :
33224 PERL_SUPPORTS_DESTDIR='yes'
33225
33226 else
33227 :
33228 PERL_SUPPORTS_DESTDIR='no'
33229
33230 fi
33231
33232
33233else
33234
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33236$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33237 PERL_SUPPORTS_DESTDIR='no'
33238
cristy3ed852e2009-09-05 21:47:34 +000033239fi
cristy73bd4a52010-10-05 11:24:23 +000033240
33241fi
33242 if test "$have_perl" != 'no'; then
33243 WITH_PERL_TRUE=
33244 WITH_PERL_FALSE='#'
33245else
33246 WITH_PERL_TRUE='#'
33247 WITH_PERL_FALSE=
33248fi
33249
33250 if test $with_perl_static = 'yes'; then
33251 WITH_PERL_STATIC_TRUE=
33252 WITH_PERL_STATIC_FALSE='#'
33253else
33254 WITH_PERL_STATIC_TRUE='#'
33255 WITH_PERL_STATIC_FALSE=
33256fi
33257
33258 if test $with_perl_dynamic = 'yes'; then
33259 WITH_PERL_DYNAMIC_TRUE=
33260 WITH_PERL_DYNAMIC_FALSE='#'
33261else
33262 WITH_PERL_DYNAMIC_TRUE='#'
33263 WITH_PERL_DYNAMIC_FALSE=
33264fi
33265
cristy3ed852e2009-09-05 21:47:34 +000033266
33267
33268# Determine path to pick up MagickCore library from for use with building PerlMagick
33269MAGICKCORE_PATH="${LIB_DIR}"
33270if test $with_perl_static = 'yes'; then
33271 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33272 libtool_objdir=$objdir
33273
33274 # Linker search path to library, followed by -lMagickCore
33275 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33276fi
33277
33278
33279# Create a simple string containing format names for all delegate libraries
33280DELEGATES=''
33281if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33282if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33283if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33284if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33285if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33286if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33287if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33288if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33289if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33290if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33291if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33292if test "$have_jpeg" = 'yes'; then
33293 DELEGATES="$DELEGATES jpeg";
33294 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33295fi
33296if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033297if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033298if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33299if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033300if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033301if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33302if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33303if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33304if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33305if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33306if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33307if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33308if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33309if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33310
33311
33312
33313#
33314# Handle special compiler flags
33315#
33316
33317# Add '-p' if prof source profiling support enabled
33318if test "$enable_prof" = 'yes'; then
33319 CFLAGS="-p $CFLAGS"
33320 CXXFLAGS="-p $CXXFLAGS"
33321 LDFLAGS="-p $LDFLAGS"
33322fi
33323
33324# Add '-pg' if gprof source profiling support enabled
33325if test "$enable_gprof" = 'yes'; then
33326 CFLAGS="-pg $CFLAGS"
33327 CXXFLAGS="-pg $CXXFLAGS"
33328 LDFLAGS="-pg $LDFLAGS"
33329fi
33330
33331# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33332# This is a gcc-specific feature
33333if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033336if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033337 $as_echo_n "(cached) " >&6
33338else
33339 ac_check_lib_save_LIBS=$LIBS
33340LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033342/* end confdefs.h. */
33343
33344/* Override any GCC internal prototype to avoid an error.
33345 Use char because int might match the return type of a GCC
33346 builtin and then its argument prototype would still apply. */
33347#ifdef __cplusplus
33348extern "C"
33349#endif
33350char _gcov_init ();
33351int
33352main ()
33353{
33354return _gcov_init ();
33355 ;
33356 return 0;
33357}
33358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033360 ac_cv_lib_gcov__gcov_init=yes
33361else
cristy8b350f62009-11-15 23:12:43 +000033362 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033363fi
cristy8b350f62009-11-15 23:12:43 +000033364rm -f core conftest.err conftest.$ac_objext \
33365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033366LIBS=$ac_check_lib_save_LIBS
33367fi
cristy8b350f62009-11-15 23:12:43 +000033368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033370if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033371 cat >>confdefs.h <<_ACEOF
33372#define HAVE_LIBGCOV 1
33373_ACEOF
33374
33375 LIBS="-lgcov $LIBS"
33376
33377fi
33378
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033381if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033382 $as_echo_n "(cached) " >&6
33383else
33384 ac_check_lib_save_LIBS=$LIBS
33385LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033387/* end confdefs.h. */
33388
33389/* Override any GCC internal prototype to avoid an error.
33390 Use char because int might match the return type of a GCC
33391 builtin and then its argument prototype would still apply. */
33392#ifdef __cplusplus
33393extern "C"
33394#endif
33395char __gcov_init ();
33396int
33397main ()
33398{
33399return __gcov_init ();
33400 ;
33401 return 0;
33402}
33403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033405 ac_cv_lib_gcov___gcov_init=yes
33406else
cristy8b350f62009-11-15 23:12:43 +000033407 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033408fi
cristy8b350f62009-11-15 23:12:43 +000033409rm -f core conftest.err conftest.$ac_objext \
33410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033411LIBS=$ac_check_lib_save_LIBS
33412fi
cristy8b350f62009-11-15 23:12:43 +000033413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033414$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033415if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033416 cat >>confdefs.h <<_ACEOF
33417#define HAVE_LIBGCOV 1
33418_ACEOF
33419
33420 LIBS="-lgcov $LIBS"
33421
33422fi
33423
33424 case "$target_os" in
33425 darwin*)
33426 OSX_GCOV_LDFLAG="-Wl,-single_module"
33427 ;;
33428 *)
33429 OSX_GCOV_LDFLAG=""
33430 ;;
33431 esac
33432
33433 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33434 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33435 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33436fi
33437
33438#
33439# Build library dependency list for libMagickCore
33440#
33441
33442MAGICK_LIBLTDL='' # Libltdl for build
33443MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33444MAGICK_LTDLDEPS='' # extra libltdl dependencies
33445if test "$with_ltdl" != 'no'
33446then
33447 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33448 MAGICK_API_LIBLTDL='-lltdl'
33449 fi
33450 MAGICK_LIBLTDL=${LIBLTDL}
33451 MAGICK_LTDLDEPS=${LTDLDEPS}
33452fi
33453
33454
33455
33456if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033457 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 +000033458else
cristyb1860752011-03-14 00:27:46 +000033459 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 +000033460fi
33461
33462
33463#
33464# Remove extraneous spaces from output variables (asthetic)
33465#
33466X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33467X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33468X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33469X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33470
33471CC=`echo $CC | sed -e 's/ */ /g'`
33472CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33473CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33474CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33475DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33476DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33477LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33478TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33479MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33480#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33481
33482# Pass only user-provided LIBS as "global" libraries
33483LIBS=$USER_LIBS
33484
33485#AC_SUBST(CPPFLAGS)
33486
33487#AC_SUBST(LDFLAGS)
33488#AC_SUBST(X_PRE_LIBS)
33489#AC_SUBST(X_LIBS)
33490#AC_SUBST(X_EXTRA_LIBS)
33491
33492MAGICK_CFLAGS=$CFLAGS
33493MAGICK_CXXFLAGS="$CXXFLAGS"
33494MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33495MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33496MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33497MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33498
33499
33500
33501
33502
33503
33504
33505
cristyfd9dcd42010-08-08 18:07:02 +000033506
cristy3ed852e2009-09-05 21:47:34 +000033507# Set configured scripts to executable.
33508ac_config_commands="$ac_config_commands default"
33509
33510ac_config_commands="$ac_config_commands MagickCore-config.in"
33511
33512ac_config_commands="$ac_config_commands Magick-config.in"
33513
33514ac_config_commands="$ac_config_commands MagickWand-config.in"
33515
33516ac_config_commands="$ac_config_commands Wand-config.in"
33517
33518ac_config_commands="$ac_config_commands Magick++-config.in"
33519
33520ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33521
33522
cristy8b350f62009-11-15 23:12:43 +000033523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033526$as_echo "Update ImageMagick configuration" >&6; }
33527cat >confcache <<\_ACEOF
33528# This file is a shell script that caches the results of configure
33529# tests run on this system so they can be shared between configure
33530# scripts and configure runs, see configure's option --config-cache.
33531# It is not useful on other systems. If it contains results you don't
33532# want to keep, you may remove or edit it.
33533#
33534# config.status only pays attention to the cache file if you give it
33535# the --recheck option to rerun configure.
33536#
33537# `ac_cv_env_foo' variables (set or unset) will be overridden when
33538# loading this file, other *unset* `ac_cv_foo' will be assigned the
33539# following values.
33540
33541_ACEOF
33542
33543# The following way of writing the cache mishandles newlines in values,
33544# but we know of no workaround that is simple, portable, and efficient.
33545# So, we kill variables containing newlines.
33546# Ultrix sh set writes to stderr and can't be redirected directly,
33547# and sets the high bit in the cache file unless we assign to the vars.
33548(
33549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33550 eval ac_val=\$$ac_var
33551 case $ac_val in #(
33552 *${as_nl}*)
33553 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033554 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033555$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33556 esac
33557 case $ac_var in #(
33558 _ | IFS | as_nl) ;; #(
33559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033560 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033561 esac ;;
33562 esac
33563 done
33564
33565 (set) 2>&1 |
33566 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33567 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033568 # `set' does not quote correctly, so add quotes: double-quote
33569 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033570 sed -n \
33571 "s/'/'\\\\''/g;
33572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33573 ;; #(
33574 *)
33575 # `set' quotes correctly as required by POSIX, so do not add quotes.
33576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33577 ;;
33578 esac |
33579 sort
33580) |
33581 sed '
33582 /^ac_cv_env_/b end
33583 t clear
33584 :clear
33585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33586 t end
33587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33588 :end' >>confcache
33589if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33590 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033591 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033592 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033593$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033594 if test ! -f "$cache_file" || test -h "$cache_file"; then
33595 cat confcache >"$cache_file"
33596 else
33597 case $cache_file in #(
33598 */* | ?:*)
33599 mv -f confcache "$cache_file"$$ &&
33600 mv -f "$cache_file"$$ "$cache_file" ;; #(
33601 *)
33602 mv -f confcache "$cache_file" ;;
33603 esac
33604 fi
33605 fi
cristy3ed852e2009-09-05 21:47:34 +000033606 else
cristy8b350f62009-11-15 23:12:43 +000033607 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033608$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33609 fi
33610fi
33611rm -f confcache
33612
33613test "x$prefix" = xNONE && prefix=$ac_default_prefix
33614# Let make expand exec_prefix.
33615test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33616
33617DEFS=-DHAVE_CONFIG_H
33618
33619ac_libobjs=
33620ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033621U=
cristy3ed852e2009-09-05 21:47:34 +000033622for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33623 # 1. Remove the extension, and $U if already installed.
33624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33627 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033630done
33631LIBOBJS=$ac_libobjs
33632
33633LTLIBOBJS=$ac_ltlibobjs
33634
33635
cristy73bd4a52010-10-05 11:24:23 +000033636 if test -n "$EXEEXT"; then
33637 am__EXEEXT_TRUE=
33638 am__EXEEXT_FALSE='#'
33639else
33640 am__EXEEXT_TRUE='#'
33641 am__EXEEXT_FALSE=
33642fi
cristy3ed852e2009-09-05 21:47:34 +000033643
cristy73bd4a52010-10-05 11:24:23 +000033644if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033645 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033646Usually this means the macro was only invoked conditionally." "$LINENO" 5
33647fi
33648if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033649 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033650Usually this means the macro was only invoked conditionally." "$LINENO" 5
33651fi
33652if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033653 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033654Usually this means the macro was only invoked conditionally." "$LINENO" 5
33655fi
33656if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033657 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033658Usually this means the macro was only invoked conditionally." "$LINENO" 5
33659fi
33660if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033661 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033662Usually this means the macro was only invoked conditionally." "$LINENO" 5
33663fi
33664if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033665 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033666Usually this means the macro was only invoked conditionally." "$LINENO" 5
33667fi
33668if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033669 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033670Usually this means the macro was only invoked conditionally." "$LINENO" 5
33671fi
33672if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033673 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033674Usually this means the macro was only invoked conditionally." "$LINENO" 5
33675fi
cristy73bd4a52010-10-05 11:24:23 +000033676if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033677 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033678Usually this means the macro was only invoked conditionally." "$LINENO" 5
33679fi
33680if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033681 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033682Usually this means the macro was only invoked conditionally." "$LINENO" 5
33683fi
33684LT_CONFIG_H=config/config.h
33685
33686 _ltdl_libobjs=
33687 _ltdl_ltlibobjs=
33688 if test -n "$_LT_LIBOBJS"; then
33689 # Remove the extension.
33690 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33691 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33692 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33693 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33694 done
33695 fi
33696 ltdl_LIBOBJS=$_ltdl_libobjs
33697
33698 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33699
33700
33701if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033702 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033703Usually this means the macro was only invoked conditionally." "$LINENO" 5
33704fi
33705if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033706 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033707Usually this means the macro was only invoked conditionally." "$LINENO" 5
33708fi
33709if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033710 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033711Usually this means the macro was only invoked conditionally." "$LINENO" 5
33712fi
33713if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033714 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033715Usually this means the macro was only invoked conditionally." "$LINENO" 5
33716fi
33717
33718if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033719 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033720Usually this means the macro was only invoked conditionally." "$LINENO" 5
33721fi
33722if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033723 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033724Usually this means the macro was only invoked conditionally." "$LINENO" 5
33725fi
33726if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033727 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033728Usually this means the macro was only invoked conditionally." "$LINENO" 5
33729fi
33730if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033731 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033732Usually this means the macro was only invoked conditionally." "$LINENO" 5
33733fi
33734if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033735 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033736Usually this means the macro was only invoked conditionally." "$LINENO" 5
33737fi
33738if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033739 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033740Usually this means the macro was only invoked conditionally." "$LINENO" 5
33741fi
33742if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033743 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033744Usually this means the macro was only invoked conditionally." "$LINENO" 5
33745fi
33746if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033747 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033748Usually this means the macro was only invoked conditionally." "$LINENO" 5
33749fi
33750if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033751 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033752Usually this means the macro was only invoked conditionally." "$LINENO" 5
33753fi
33754if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033755 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033756Usually this means the macro was only invoked conditionally." "$LINENO" 5
33757fi
33758if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033759 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033760Usually this means the macro was only invoked conditionally." "$LINENO" 5
33761fi
33762if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033763 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033764Usually this means the macro was only invoked conditionally." "$LINENO" 5
33765fi
33766if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033767 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033768Usually this means the macro was only invoked conditionally." "$LINENO" 5
33769fi
33770if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033771 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033772Usually this means the macro was only invoked conditionally." "$LINENO" 5
33773fi
33774if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033775 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033776Usually this means the macro was only invoked conditionally." "$LINENO" 5
33777fi
33778if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033779 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033780Usually this means the macro was only invoked conditionally." "$LINENO" 5
33781fi
33782if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033783 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033784Usually this means the macro was only invoked conditionally." "$LINENO" 5
33785fi
33786if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033787 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033788Usually this means the macro was only invoked conditionally." "$LINENO" 5
33789fi
33790if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033791 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033792Usually this means the macro was only invoked conditionally." "$LINENO" 5
33793fi
33794if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033795 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033796Usually this means the macro was only invoked conditionally." "$LINENO" 5
33797fi
cristyfbb0ef02010-12-19 02:32:11 +000033798if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33799 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33800Usually this means the macro was only invoked conditionally." "$LINENO" 5
33801fi
cristy73bd4a52010-10-05 11:24:23 +000033802if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033803 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033804Usually this means the macro was only invoked conditionally." "$LINENO" 5
33805fi
33806if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033807 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033808Usually this means the macro was only invoked conditionally." "$LINENO" 5
33809fi
33810if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033811 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033812Usually this means the macro was only invoked conditionally." "$LINENO" 5
33813fi
33814if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033815 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033816Usually this means the macro was only invoked conditionally." "$LINENO" 5
33817fi
33818if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033819 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033820Usually this means the macro was only invoked conditionally." "$LINENO" 5
33821fi
cristyb1860752011-03-14 00:27:46 +000033822if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
33823 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
33824Usually this means the macro was only invoked conditionally." "$LINENO" 5
33825fi
cristy73bd4a52010-10-05 11:24:23 +000033826if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033827 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033828Usually this means the macro was only invoked conditionally." "$LINENO" 5
33829fi
33830if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033831 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033832Usually this means the macro was only invoked conditionally." "$LINENO" 5
33833fi
33834if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033835 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033836Usually this means the macro was only invoked conditionally." "$LINENO" 5
33837fi
33838if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033839 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033840Usually this means the macro was only invoked conditionally." "$LINENO" 5
33841fi
33842if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033843 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033844Usually this means the macro was only invoked conditionally." "$LINENO" 5
33845fi
33846if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033847 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033848Usually this means the macro was only invoked conditionally." "$LINENO" 5
33849fi
33850if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033851 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033852Usually this means the macro was only invoked conditionally." "$LINENO" 5
33853fi
33854if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033855 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033856Usually this means the macro was only invoked conditionally." "$LINENO" 5
33857fi
cristy3ed852e2009-09-05 21:47:34 +000033858
cristyda16f162011-02-19 23:52:17 +000033859: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033860ac_write_fail=0
33861ac_clean_files_save=$ac_clean_files
33862ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033863{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033865as_write_fail=0
33866cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033867#! $SHELL
33868# Generated by $as_me.
33869# Run this file to recreate the current configuration.
33870# Compiler output produced by configure, useful for debugging
33871# configure, is in config.log if it exists.
33872
33873debug=false
33874ac_cs_recheck=false
33875ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033876
cristy8b350f62009-11-15 23:12:43 +000033877SHELL=\${CONFIG_SHELL-$SHELL}
33878export SHELL
33879_ASEOF
33880cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33881## -------------------- ##
33882## M4sh Initialization. ##
33883## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033884
33885# Be more Bourne compatible
33886DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033887if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033888 emulate sh
33889 NULLCMD=:
33890 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33891 # is contrary to our usage. Disable this feature.
33892 alias -g '${1+"$@"}'='"$@"'
33893 setopt NO_GLOB_SUBST
33894else
cristy8b350f62009-11-15 23:12:43 +000033895 case `(set -o) 2>/dev/null` in #(
33896 *posix*) :
33897 set -o posix ;; #(
33898 *) :
33899 ;;
cristy3ed852e2009-09-05 21:47:34 +000033900esac
cristy3ed852e2009-09-05 21:47:34 +000033901fi
33902
33903
cristy3ed852e2009-09-05 21:47:34 +000033904as_nl='
33905'
33906export as_nl
33907# Printing a long string crashes Solaris 7 /usr/bin/printf.
33908as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33909as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33910as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033911# Prefer a ksh shell builtin over an external printf program on Solaris,
33912# but without wasting forks for bash or zsh.
33913if test -z "$BASH_VERSION$ZSH_VERSION" \
33914 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33915 as_echo='print -r --'
33916 as_echo_n='print -rn --'
33917elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033918 as_echo='printf %s\n'
33919 as_echo_n='printf %s'
33920else
33921 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33922 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33923 as_echo_n='/usr/ucb/echo -n'
33924 else
33925 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33926 as_echo_n_body='eval
33927 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033928 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033929 *"$as_nl"*)
33930 expr "X$arg" : "X\\(.*\\)$as_nl";
33931 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33932 esac;
33933 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33934 '
33935 export as_echo_n_body
33936 as_echo_n='sh -c $as_echo_n_body as_echo'
33937 fi
33938 export as_echo_body
33939 as_echo='sh -c $as_echo_body as_echo'
33940fi
33941
33942# The user is always right.
33943if test "${PATH_SEPARATOR+set}" != set; then
33944 PATH_SEPARATOR=:
33945 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33946 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33947 PATH_SEPARATOR=';'
33948 }
33949fi
33950
cristy3ed852e2009-09-05 21:47:34 +000033951
33952# IFS
33953# We need space, tab and new line, in precisely that order. Quoting is
33954# there to prevent editors from complaining about space-tab.
33955# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33956# splitting by setting IFS to empty value.)
33957IFS=" "" $as_nl"
33958
33959# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033960as_myself=
cristy8b350f62009-11-15 23:12:43 +000033961case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033962 *[\\/]* ) as_myself=$0 ;;
33963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33964for as_dir in $PATH
33965do
33966 IFS=$as_save_IFS
33967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33969 done
cristy3ed852e2009-09-05 21:47:34 +000033970IFS=$as_save_IFS
33971
33972 ;;
33973esac
33974# We did not find ourselves, most probably we were run as `sh COMMAND'
33975# in which case we are not to be found in the path.
33976if test "x$as_myself" = x; then
33977 as_myself=$0
33978fi
33979if test ! -f "$as_myself"; then
33980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033981 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033982fi
33983
cristy8b350f62009-11-15 23:12:43 +000033984# Unset variables that we do not need and which cause bugs (e.g. in
33985# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33986# suppresses any "Segmentation fault" message there. '((' could
33987# trigger a bug in pdksh 5.2.14.
33988for as_var in BASH_ENV ENV MAIL MAILPATH
33989do eval test x\${$as_var+set} = xset \
33990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033991done
33992PS1='$ '
33993PS2='> '
33994PS4='+ '
33995
33996# NLS nuisances.
33997LC_ALL=C
33998export LC_ALL
33999LANGUAGE=C
34000export LANGUAGE
34001
cristy8b350f62009-11-15 23:12:43 +000034002# CDPATH.
34003(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34004
34005
cristy98dddb52010-11-04 00:30:15 +000034006# as_fn_error STATUS ERROR [LINENO LOG_FD]
34007# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000034008# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34009# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000034010# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034011as_fn_error ()
34012{
cristy98dddb52010-11-04 00:30:15 +000034013 as_status=$1; test $as_status -eq 0 && as_status=1
34014 if test "$4"; then
34015 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034017 fi
cristy98dddb52010-11-04 00:30:15 +000034018 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034019 as_fn_exit $as_status
34020} # as_fn_error
34021
34022
34023# as_fn_set_status STATUS
34024# -----------------------
34025# Set $? to STATUS, without forking.
34026as_fn_set_status ()
34027{
34028 return $1
34029} # as_fn_set_status
34030
34031# as_fn_exit STATUS
34032# -----------------
34033# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34034as_fn_exit ()
34035{
34036 set +e
34037 as_fn_set_status $1
34038 exit $1
34039} # as_fn_exit
34040
34041# as_fn_unset VAR
34042# ---------------
34043# Portably unset VAR.
34044as_fn_unset ()
34045{
34046 { eval $1=; unset $1;}
34047}
34048as_unset=as_fn_unset
34049# as_fn_append VAR VALUE
34050# ----------------------
34051# Append the text in VALUE to the end of the definition contained in VAR. Take
34052# advantage of any shell optimizations that allow amortized linear growth over
34053# repeated appends, instead of the typical quadratic growth present in naive
34054# implementations.
34055if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34056 eval 'as_fn_append ()
34057 {
34058 eval $1+=\$2
34059 }'
34060else
34061 as_fn_append ()
34062 {
34063 eval $1=\$$1\$2
34064 }
34065fi # as_fn_append
34066
34067# as_fn_arith ARG...
34068# ------------------
34069# Perform arithmetic evaluation on the ARGs, and store the result in the
34070# global $as_val. Take advantage of shells that can avoid forks. The arguments
34071# must be portable across $(()) and expr.
34072if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34073 eval 'as_fn_arith ()
34074 {
34075 as_val=$(( $* ))
34076 }'
34077else
34078 as_fn_arith ()
34079 {
34080 as_val=`expr "$@" || test $? -eq 1`
34081 }
34082fi # as_fn_arith
34083
34084
cristy3ed852e2009-09-05 21:47:34 +000034085if expr a : '\(a\)' >/dev/null 2>&1 &&
34086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34087 as_expr=expr
34088else
34089 as_expr=false
34090fi
34091
34092if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34093 as_basename=basename
34094else
34095 as_basename=false
34096fi
34097
cristy8b350f62009-11-15 23:12:43 +000034098if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34099 as_dirname=dirname
34100else
34101 as_dirname=false
34102fi
cristy3ed852e2009-09-05 21:47:34 +000034103
cristy3ed852e2009-09-05 21:47:34 +000034104as_me=`$as_basename -- "$0" ||
34105$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34106 X"$0" : 'X\(//\)$' \| \
34107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34108$as_echo X/"$0" |
34109 sed '/^.*\/\([^/][^/]*\)\/*$/{
34110 s//\1/
34111 q
34112 }
34113 /^X\/\(\/\/\)$/{
34114 s//\1/
34115 q
34116 }
34117 /^X\/\(\/\).*/{
34118 s//\1/
34119 q
34120 }
34121 s/.*/./; q'`
34122
cristy8b350f62009-11-15 23:12:43 +000034123# Avoid depending upon Character Ranges.
34124as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34125as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34126as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34127as_cr_digits='0123456789'
34128as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034129
34130ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034131case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034132-n*)
cristy8b350f62009-11-15 23:12:43 +000034133 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034135 xy) ECHO_C='\c';;
34136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34137 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034138 esac;;
34139*)
34140 ECHO_N='-n';;
34141esac
cristy3ed852e2009-09-05 21:47:34 +000034142
34143rm -f conf$$ conf$$.exe conf$$.file
34144if test -d conf$$.dir; then
34145 rm -f conf$$.dir/conf$$.file
34146else
34147 rm -f conf$$.dir
34148 mkdir conf$$.dir 2>/dev/null
34149fi
34150if (echo >conf$$.file) 2>/dev/null; then
34151 if ln -s conf$$.file conf$$ 2>/dev/null; then
34152 as_ln_s='ln -s'
34153 # ... but there are two gotchas:
34154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34156 # In both cases, we have to default to `cp -p'.
34157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34158 as_ln_s='cp -p'
34159 elif ln conf$$.file conf$$ 2>/dev/null; then
34160 as_ln_s=ln
34161 else
34162 as_ln_s='cp -p'
34163 fi
34164else
34165 as_ln_s='cp -p'
34166fi
34167rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34168rmdir conf$$.dir 2>/dev/null
34169
cristy8b350f62009-11-15 23:12:43 +000034170
34171# as_fn_mkdir_p
34172# -------------
34173# Create "$as_dir" as a directory, including parents if necessary.
34174as_fn_mkdir_p ()
34175{
34176
34177 case $as_dir in #(
34178 -*) as_dir=./$as_dir;;
34179 esac
34180 test -d "$as_dir" || eval $as_mkdir_p || {
34181 as_dirs=
34182 while :; do
34183 case $as_dir in #(
34184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34185 *) as_qdir=$as_dir;;
34186 esac
34187 as_dirs="'$as_qdir' $as_dirs"
34188 as_dir=`$as_dirname -- "$as_dir" ||
34189$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34190 X"$as_dir" : 'X\(//\)[^/]' \| \
34191 X"$as_dir" : 'X\(//\)$' \| \
34192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34193$as_echo X"$as_dir" |
34194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34195 s//\1/
34196 q
34197 }
34198 /^X\(\/\/\)[^/].*/{
34199 s//\1/
34200 q
34201 }
34202 /^X\(\/\/\)$/{
34203 s//\1/
34204 q
34205 }
34206 /^X\(\/\).*/{
34207 s//\1/
34208 q
34209 }
34210 s/.*/./; q'`
34211 test -d "$as_dir" && break
34212 done
34213 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034214 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034215
34216
34217} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034218if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034219 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034220else
34221 test -d ./-p && rmdir ./-p
34222 as_mkdir_p=false
34223fi
34224
34225if test -x / >/dev/null 2>&1; then
34226 as_test_x='test -x'
34227else
34228 if ls -dL / >/dev/null 2>&1; then
34229 as_ls_L_option=L
34230 else
34231 as_ls_L_option=
34232 fi
34233 as_test_x='
34234 eval sh -c '\''
34235 if test -d "$1"; then
34236 test -d "$1/.";
34237 else
cristy8b350f62009-11-15 23:12:43 +000034238 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034239 -*)set "./$1";;
34240 esac;
cristy8b350f62009-11-15 23:12:43 +000034241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034242 ???[sx]*):;;*)false;;esac;fi
34243 '\'' sh
34244 '
34245fi
34246as_executable_p=$as_test_x
34247
34248# Sed expression to map a string onto a valid CPP name.
34249as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34250
34251# Sed expression to map a string onto a valid variable name.
34252as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34253
34254
34255exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034256## ----------------------------------- ##
34257## Main body of $CONFIG_STATUS script. ##
34258## ----------------------------------- ##
34259_ASEOF
34260test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034261
cristy8b350f62009-11-15 23:12:43 +000034262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34263# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034264# report actual input values of CONFIG_FILES etc. instead of their
34265# values after options handling.
34266ac_log="
cristyee742642011-02-26 02:49:59 +000034267This file was extended by ImageMagick $as_me 6.6.8, which was
cristyda16f162011-02-19 23:52:17 +000034268generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034269
34270 CONFIG_FILES = $CONFIG_FILES
34271 CONFIG_HEADERS = $CONFIG_HEADERS
34272 CONFIG_LINKS = $CONFIG_LINKS
34273 CONFIG_COMMANDS = $CONFIG_COMMANDS
34274 $ $0 $@
34275
34276on `(hostname || uname -n) 2>/dev/null | sed 1q`
34277"
34278
34279_ACEOF
34280
34281case $ac_config_files in *"
34282"*) set x $ac_config_files; shift; ac_config_files=$*;;
34283esac
34284
34285case $ac_config_headers in *"
34286"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34287esac
34288
34289
34290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34291# Files that config.status was made for.
34292config_files="$ac_config_files"
34293config_headers="$ac_config_headers"
34294config_commands="$ac_config_commands"
34295
34296_ACEOF
34297
34298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34299ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034300\`$as_me' instantiates files and other configuration actions
34301from templates according to the current configuration. Unless the files
34302and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034303
cristy8b350f62009-11-15 23:12:43 +000034304Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034305
34306 -h, --help print this help, then exit
34307 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034308 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034309 -q, --quiet, --silent
34310 do not print progress messages
34311 -d, --debug don't remove temporary files
34312 --recheck update $as_me by reconfiguring in the same conditions
34313 --file=FILE[:TEMPLATE]
34314 instantiate the configuration file FILE
34315 --header=FILE[:TEMPLATE]
34316 instantiate the configuration header FILE
34317
34318Configuration files:
34319$config_files
34320
34321Configuration headers:
34322$config_headers
34323
34324Configuration commands:
34325$config_commands
34326
cristy8b350f62009-11-15 23:12:43 +000034327Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034328
34329_ACEOF
34330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034331ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034332ac_cs_version="\\
cristyee742642011-02-26 02:49:59 +000034333ImageMagick config.status 6.6.8
cristyda16f162011-02-19 23:52:17 +000034334configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034335 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034336
cristy98dddb52010-11-04 00:30:15 +000034337Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034338This config.status script is free software; the Free Software Foundation
34339gives unlimited permission to copy, distribute and modify it."
34340
34341ac_pwd='$ac_pwd'
34342srcdir='$srcdir'
34343INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034344MKDIR_P='$MKDIR_P'
34345AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034346test -n "\$AWK" || AWK=awk
34347_ACEOF
34348
34349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34350# The default lists apply if the user does not specify any file.
34351ac_need_defaults=:
34352while test $# != 0
34353do
34354 case $1 in
cristyda16f162011-02-19 23:52:17 +000034355 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34358 ac_shift=:
34359 ;;
cristyda16f162011-02-19 23:52:17 +000034360 --*=)
34361 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34362 ac_optarg=
34363 ac_shift=:
34364 ;;
cristy3ed852e2009-09-05 21:47:34 +000034365 *)
34366 ac_option=$1
34367 ac_optarg=$2
34368 ac_shift=shift
34369 ;;
34370 esac
34371
34372 case $ac_option in
34373 # Handling of the options.
34374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34375 ac_cs_recheck=: ;;
34376 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34377 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034378 --config | --confi | --conf | --con | --co | --c )
34379 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034380 --debug | --debu | --deb | --de | --d | -d )
34381 debug=: ;;
34382 --file | --fil | --fi | --f )
34383 $ac_shift
34384 case $ac_optarg in
34385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034386 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034387 esac
cristy8b350f62009-11-15 23:12:43 +000034388 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034389 ac_need_defaults=false;;
34390 --header | --heade | --head | --hea )
34391 $ac_shift
34392 case $ac_optarg in
34393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34394 esac
cristy8b350f62009-11-15 23:12:43 +000034395 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034396 ac_need_defaults=false;;
34397 --he | --h)
34398 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034399 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034400Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034401 --help | --hel | -h )
34402 $as_echo "$ac_cs_usage"; exit ;;
34403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34405 ac_cs_silent=: ;;
34406
34407 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034408 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034409Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034410
cristy8b350f62009-11-15 23:12:43 +000034411 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034412 ac_need_defaults=false ;;
34413
34414 esac
34415 shift
34416done
34417
34418ac_configure_extra_args=
34419
34420if $ac_cs_silent; then
34421 exec 6>/dev/null
34422 ac_configure_extra_args="$ac_configure_extra_args --silent"
34423fi
34424
34425_ACEOF
34426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34427if \$ac_cs_recheck; then
34428 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34429 shift
34430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34431 CONFIG_SHELL='$SHELL'
34432 export CONFIG_SHELL
34433 exec "\$@"
34434fi
34435
34436_ACEOF
34437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34438exec 5>>config.log
34439{
34440 echo
34441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34442## Running $as_me. ##
34443_ASBOX
34444 $as_echo "$ac_log"
34445} >&5
34446
34447_ACEOF
34448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034449#
34450# INIT-COMMANDS
34451#
34452PACKAGE="$PACKAGE"
34453AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34454
34455
34456# The HP-UX ksh and POSIX shell print the target directory to stdout
34457# if CDPATH is set.
34458(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34459
34460sed_quote_subst='$sed_quote_subst'
34461double_quote_subst='$double_quote_subst'
34462delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034463SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34464Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34465GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34466EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34467FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34468SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34469ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34470LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34471macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34472macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34473AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34474DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34475OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34476enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34477enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34478pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34479enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34480host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34481host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34482host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34483build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34484build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34485build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34486NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34487LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34488max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34489ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34490exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34491lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34492lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34493lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034494lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34495lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034496reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34497reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34498deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34499file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034500file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34501want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34502sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034503AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34504AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034505archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034506STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34507RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34508old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34509old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34510old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34511lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34512CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34513CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34514compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34515GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34516lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34517lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34518lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34519lt_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 +000034520nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34521lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034522objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34523MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34524lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034525lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034526lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034527lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34528lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34529need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034530MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034531DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34532NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34533LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34534OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34535OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34536libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34537shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34538extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34539archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34540enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34541export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34542whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34543compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34544old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34545old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34546archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34547archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34548module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34549module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34550with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34551allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34552no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34553hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34554hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34555hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34556hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34557hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34558hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34559hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34560hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34561inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34562link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034563always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34564export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34565exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34566include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34567prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034568postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034569file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34570variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34571need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34572need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34573version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34574runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34575shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34576shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34577libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34578library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34579soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34580install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34581postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34582postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34583finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34584finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34585hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34586sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34587sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34588hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34589enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34590enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34591enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34592old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34593striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34594compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34595predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34596postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34597predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34598postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34599compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34600LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34601reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34602reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34603old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34604compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34605GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34606lt_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 +000034607lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034608lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034609lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34610lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34611archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34612enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34613export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34614whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34615compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34616old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34617old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34618archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34619archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34620module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34621module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34622with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34623allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34624no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34625hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34626hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34627hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34628hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34629hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34630hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34631hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34632hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34633inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34634link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034635always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34636export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34637exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34638include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34639prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034640postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034641file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34642hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34643compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34644predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34645postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34646predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34647postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34648compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034649
34650LTCC='$LTCC'
34651LTCFLAGS='$LTCFLAGS'
34652compiler='$compiler_DEFAULT'
34653
cristy0c60a692010-11-04 01:09:47 +000034654# A function that is used when there is no print builtin or printf.
34655func_fallback_echo ()
34656{
34657 eval 'cat <<_LTECHO_EOF
34658\$1
34659_LTECHO_EOF'
34660}
34661
cristy73bd4a52010-10-05 11:24:23 +000034662# Quote evaled strings.
34663for var in SED \
34664GREP \
34665EGREP \
34666FGREP \
cristy0c60a692010-11-04 01:09:47 +000034667SHELL \
34668ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034669LD \
cristy0c60a692010-11-04 01:09:47 +000034670AS \
34671DLLTOOL \
34672OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034673NM \
34674LN_S \
34675lt_SP2NL \
34676lt_NL2SP \
34677reload_flag \
34678deplibs_check_method \
34679file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034680file_magic_glob \
34681want_nocaseglob \
34682sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034683AR \
34684AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034685archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034686STRIP \
34687RANLIB \
34688CC \
34689CFLAGS \
34690compiler \
34691lt_cv_sys_global_symbol_pipe \
34692lt_cv_sys_global_symbol_to_cdecl \
34693lt_cv_sys_global_symbol_to_c_name_address \
34694lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034695nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034696lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034697lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034698lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034699lt_prog_compiler_static \
34700lt_cv_prog_compiler_c_o \
34701need_locks \
cristyda16f162011-02-19 23:52:17 +000034702MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034703DSYMUTIL \
34704NMEDIT \
34705LIPO \
34706OTOOL \
34707OTOOL64 \
34708shrext_cmds \
34709export_dynamic_flag_spec \
34710whole_archive_flag_spec \
34711compiler_needs_object \
34712with_gnu_ld \
34713allow_undefined_flag \
34714no_undefined_flag \
34715hardcode_libdir_flag_spec \
34716hardcode_libdir_flag_spec_ld \
34717hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034718exclude_expsyms \
34719include_expsyms \
34720file_list_spec \
34721variables_saved_for_relink \
34722libname_spec \
34723library_names_spec \
34724soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034725install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034726finish_eval \
34727old_striplib \
34728striplib \
34729compiler_lib_search_dirs \
34730predep_objects \
34731postdep_objects \
34732predeps \
34733postdeps \
34734compiler_lib_search_path \
34735LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034736reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034737compiler_CXX \
34738lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034739lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034740lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034741lt_prog_compiler_static_CXX \
34742lt_cv_prog_compiler_c_o_CXX \
34743export_dynamic_flag_spec_CXX \
34744whole_archive_flag_spec_CXX \
34745compiler_needs_object_CXX \
34746with_gnu_ld_CXX \
34747allow_undefined_flag_CXX \
34748no_undefined_flag_CXX \
34749hardcode_libdir_flag_spec_CXX \
34750hardcode_libdir_flag_spec_ld_CXX \
34751hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034752exclude_expsyms_CXX \
34753include_expsyms_CXX \
34754file_list_spec_CXX \
34755compiler_lib_search_dirs_CXX \
34756predep_objects_CXX \
34757postdep_objects_CXX \
34758predeps_CXX \
34759postdeps_CXX \
34760compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034761 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034762 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034763 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034764 ;;
34765 *)
34766 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34767 ;;
34768 esac
34769done
34770
34771# Double-quote double-evaled strings.
34772for var in reload_cmds \
34773old_postinstall_cmds \
34774old_postuninstall_cmds \
34775old_archive_cmds \
34776extract_expsyms_cmds \
34777old_archive_from_new_cmds \
34778old_archive_from_expsyms_cmds \
34779archive_cmds \
34780archive_expsym_cmds \
34781module_cmds \
34782module_expsym_cmds \
34783export_symbols_cmds \
34784prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034785postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034786postinstall_cmds \
34787postuninstall_cmds \
34788finish_cmds \
34789sys_lib_search_path_spec \
34790sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034791reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034792old_archive_cmds_CXX \
34793old_archive_from_new_cmds_CXX \
34794old_archive_from_expsyms_cmds_CXX \
34795archive_cmds_CXX \
34796archive_expsym_cmds_CXX \
34797module_cmds_CXX \
34798module_expsym_cmds_CXX \
34799export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034800prelink_cmds_CXX \
34801postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034802 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034803 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034805 ;;
34806 *)
34807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34808 ;;
34809 esac
34810done
34811
cristy73bd4a52010-10-05 11:24:23 +000034812ac_aux_dir='$ac_aux_dir'
34813xsi_shell='$xsi_shell'
34814lt_shell_append='$lt_shell_append'
34815
34816# See if we are running on zsh, and set the options which allow our
34817# commands through without removal of \ escapes INIT.
34818if test -n "\${ZSH_VERSION+set}" ; then
34819 setopt NO_GLOB_SUBST
34820fi
34821
34822
34823 PACKAGE='$PACKAGE'
34824 VERSION='$VERSION'
34825 TIMESTAMP='$TIMESTAMP'
34826 RM='$RM'
34827 ofile='$ofile'
34828
34829
34830
34831
34832
34833
cristy3ed852e2009-09-05 21:47:34 +000034834_ACEOF
34835
34836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34837
34838# Handling of arguments.
34839for ac_config_target in $ac_config_targets
34840do
34841 case $ac_config_target in
34842 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034843 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034844 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34845 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34846 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34847 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34848 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034849 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034850 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34851 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34852 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34853 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34854 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34855 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34856 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34857 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34858 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34859 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34860 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34861 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34862 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34863 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34864 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34865 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34866 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34867 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34868 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34869 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34870 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34871 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34872 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34873 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34874 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34875 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34876 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34877 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34878 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34879 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34880 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34881 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34882 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034883 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34884 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034885 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34886 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34887 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34888 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34889 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34890 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34891 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34892
cristy98dddb52010-11-04 00:30:15 +000034893 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034894 esac
34895done
34896
34897
34898# If the user did not use the arguments to specify the items to instantiate,
34899# then the envvar interface is used. Set only those that are not.
34900# We use the long form for the default assignment because of an extremely
34901# bizarre bug on SunOS 4.1.3.
34902if $ac_need_defaults; then
34903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34904 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34905 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34906fi
34907
34908# Have a temporary directory for convenience. Make it in the build tree
34909# simply because there is no reason against having it here, and in addition,
34910# creating and moving files from /tmp can sometimes cause problems.
34911# Hook for its removal unless debugging.
34912# Note that there is a small window in which the directory will not be cleaned:
34913# after its creation but before its name has been assigned to `$tmp'.
34914$debug ||
34915{
cristyda16f162011-02-19 23:52:17 +000034916 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034917 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034918 : "${ac_tmp:=$tmp}"
34919 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034920' 0
cristy8b350f62009-11-15 23:12:43 +000034921 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034922}
34923# Create a (secure) tmp directory for tmp files.
34924
34925{
34926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034927 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034928} ||
34929{
34930 tmp=./conf$$-$RANDOM
34931 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034932} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034933ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034934
34935# Set up the scripts for CONFIG_FILES section.
34936# No need to generate them if there are no CONFIG_FILES.
34937# This happens for instance with `./config.status config.h'.
34938if test -n "$CONFIG_FILES"; then
34939
34940
cristy8b350f62009-11-15 23:12:43 +000034941ac_cr=`echo X | tr X '\015'`
34942# On cygwin, bash can eat \r inside `` if the user requested igncr.
34943# But we know of no other shell where ac_cr would be empty at this
34944# point, so we can use a bashism as a fallback.
34945if test "x$ac_cr" = x; then
34946 eval ac_cr=\$\'\\r\'
34947fi
cristy3ed852e2009-09-05 21:47:34 +000034948ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34949if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034950 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034951else
34952 ac_cs_awk_cr=$ac_cr
34953fi
34954
cristyda16f162011-02-19 23:52:17 +000034955echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034956_ACEOF
34957
34958
34959{
34960 echo "cat >conf$$subs.awk <<_ACEOF" &&
34961 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34962 echo "_ACEOF"
34963} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34965ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034966ac_delim='%!_!# '
34967for ac_last_try in false false false false false :; do
34968 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034970
34971 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34972 if test $ac_delim_n = $ac_delim_num; then
34973 break
34974 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034976 else
34977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34978 fi
34979done
34980rm -f conf$$subs.sh
34981
34982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000034983cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034984_ACEOF
34985sed -n '
34986h
34987s/^/S["/; s/!.*/"]=/
34988p
34989g
34990s/^[^!]*!//
34991:repl
34992t repl
34993s/'"$ac_delim"'$//
34994t delim
34995:nl
34996h
cristycd4c5312009-11-22 01:19:08 +000034997s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034998t more1
34999s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35000p
35001n
35002b repl
35003:more1
35004s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35005p
35006g
35007s/.\{148\}//
35008t nl
35009:delim
35010h
cristycd4c5312009-11-22 01:19:08 +000035011s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035012t more2
35013s/["\\]/\\&/g; s/^/"/; s/$/"/
35014p
35015b
35016:more2
35017s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35018p
35019g
35020s/.\{148\}//
35021t delim
35022' <conf$$subs.awk | sed '
35023/^[^""]/{
35024 N
35025 s/\n//
35026}
35027' >>$CONFIG_STATUS || ac_write_fail=1
35028rm -f conf$$subs.awk
35029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35030_ACAWK
cristyda16f162011-02-19 23:52:17 +000035031cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035032 for (key in S) S_is_set[key] = 1
35033 FS = ""
35034
35035}
35036{
35037 line = $ 0
35038 nfields = split(line, field, "@")
35039 substed = 0
35040 len = length(field[1])
35041 for (i = 2; i < nfields; i++) {
35042 key = field[i]
35043 keylen = length(key)
35044 if (S_is_set[key]) {
35045 value = S[key]
35046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35047 len += length(value) + length(field[++i])
35048 substed = 1
35049 } else
35050 len += 1 + keylen
35051 }
35052
35053 print line
35054}
35055
35056_ACAWK
35057_ACEOF
35058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35059if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35060 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35061else
35062 cat
cristyda16f162011-02-19 23:52:17 +000035063fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035064 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035065_ACEOF
35066
cristy98dddb52010-11-04 00:30:15 +000035067# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35068# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035069# trailing colons and then remove the whole line if VPATH becomes empty
35070# (actually we leave an empty line to preserve line numbers).
35071if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035072 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35073h
35074s///
35075s/^/:/
35076s/[ ]*$/:/
35077s/:\$(srcdir):/:/g
35078s/:\${srcdir}:/:/g
35079s/:@srcdir@:/:/g
35080s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035081s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035082x
35083s/\(=[ ]*\).*/\1/
35084G
35085s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035086s/^[^=]*=[ ]*$//
35087}'
35088fi
35089
35090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35091fi # test -n "$CONFIG_FILES"
35092
35093# Set up the scripts for CONFIG_HEADERS section.
35094# No need to generate them if there are no CONFIG_HEADERS.
35095# This happens for instance with `./config.status Makefile'.
35096if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035097cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035098BEGIN {
35099_ACEOF
35100
35101# Transform confdefs.h into an awk script `defines.awk', embedded as
35102# here-document in config.status, that substitutes the proper values into
35103# config.h.in to produce config.h.
35104
35105# Create a delimiter string that does not exist in confdefs.h, to ease
35106# handling of long lines.
35107ac_delim='%!_!# '
35108for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035109 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35110 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035111 break
35112 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035113 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035114 else
35115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35116 fi
35117done
35118
35119# For the awk script, D is an array of macro values keyed by name,
35120# likewise P contains macro parameters if any. Preserve backslash
35121# newline sequences.
35122
35123ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35124sed -n '
35125s/.\{148\}/&'"$ac_delim"'/g
35126t rset
35127:rset
35128s/^[ ]*#[ ]*define[ ][ ]*/ /
35129t def
35130d
35131:def
35132s/\\$//
35133t bsnl
35134s/["\\]/\\&/g
35135s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35136D["\1"]=" \3"/p
35137s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35138d
35139:bsnl
35140s/["\\]/\\&/g
35141s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35142D["\1"]=" \3\\\\\\n"\\/p
35143t cont
35144s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35145t cont
35146d
35147:cont
35148n
35149s/.\{148\}/&'"$ac_delim"'/g
35150t clear
35151:clear
35152s/\\$//
35153t bsnlc
35154s/["\\]/\\&/g; s/^/"/; s/$/"/p
35155d
35156:bsnlc
35157s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35158b cont
35159' <confdefs.h | sed '
35160s/'"$ac_delim"'/"\\\
35161"/g' >>$CONFIG_STATUS || ac_write_fail=1
35162
35163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35164 for (key in D) D_is_set[key] = 1
35165 FS = ""
35166}
35167/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35168 line = \$ 0
35169 split(line, arg, " ")
35170 if (arg[1] == "#") {
35171 defundef = arg[2]
35172 mac1 = arg[3]
35173 } else {
35174 defundef = substr(arg[1], 2)
35175 mac1 = arg[2]
35176 }
35177 split(mac1, mac2, "(") #)
35178 macro = mac2[1]
35179 prefix = substr(line, 1, index(line, defundef) - 1)
35180 if (D_is_set[macro]) {
35181 # Preserve the white space surrounding the "#".
35182 print prefix "define", macro P[macro] D[macro]
35183 next
35184 } else {
35185 # Replace #undef with comments. This is necessary, for example,
35186 # in the case of _POSIX_SOURCE, which is predefined and required
35187 # on some systems where configure will not decide to define it.
35188 if (defundef == "undef") {
35189 print "/*", prefix defundef, macro, "*/"
35190 next
35191 }
35192 }
35193}
35194{ print }
35195_ACAWK
35196_ACEOF
35197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035198 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035199fi # test -n "$CONFIG_HEADERS"
35200
35201
35202eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35203shift
35204for ac_tag
35205do
35206 case $ac_tag in
35207 :[FHLC]) ac_mode=$ac_tag; continue;;
35208 esac
35209 case $ac_mode$ac_tag in
35210 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035211 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035212 :[FH]-) ac_tag=-:-;;
35213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35214 esac
35215 ac_save_IFS=$IFS
35216 IFS=:
35217 set x $ac_tag
35218 IFS=$ac_save_IFS
35219 shift
35220 ac_file=$1
35221 shift
35222
35223 case $ac_mode in
35224 :L) ac_source=$1;;
35225 :[FH])
35226 ac_file_inputs=
35227 for ac_f
35228 do
35229 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035230 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035231 *) # Look for the file first in the build tree, then in the source tree
35232 # (if the path is not absolute). The absolute path cannot be DOS-style,
35233 # because $ac_f cannot contain `:'.
35234 test -f "$ac_f" ||
35235 case $ac_f in
35236 [\\/$]*) false;;
35237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35238 esac ||
cristy98dddb52010-11-04 00:30:15 +000035239 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035240 esac
35241 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035242 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035243 done
35244
35245 # Let's still pretend it is `configure' which instantiates (i.e., don't
35246 # use $as_me), people would be surprised to read:
35247 # /* config.h. Generated by config.status. */
35248 configure_input='Generated from '`
35249 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35250 `' by configure.'
35251 if test x"$ac_file" != x-; then
35252 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035254$as_echo "$as_me: creating $ac_file" >&6;}
35255 fi
35256 # Neutralize special characters interpreted by sed in replacement strings.
35257 case $configure_input in #(
35258 *\&* | *\|* | *\\* )
35259 ac_sed_conf_input=`$as_echo "$configure_input" |
35260 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35261 *) ac_sed_conf_input=$configure_input;;
35262 esac
35263
35264 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035265 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035267 esac
35268 ;;
35269 esac
35270
35271 ac_dir=`$as_dirname -- "$ac_file" ||
35272$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35273 X"$ac_file" : 'X\(//\)[^/]' \| \
35274 X"$ac_file" : 'X\(//\)$' \| \
35275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35276$as_echo X"$ac_file" |
35277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35278 s//\1/
35279 q
35280 }
35281 /^X\(\/\/\)[^/].*/{
35282 s//\1/
35283 q
35284 }
35285 /^X\(\/\/\)$/{
35286 s//\1/
35287 q
35288 }
35289 /^X\(\/\).*/{
35290 s//\1/
35291 q
35292 }
35293 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035294 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035295 ac_builddir=.
35296
35297case "$ac_dir" in
35298.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35299*)
35300 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35301 # A ".." for each directory in $ac_dir_suffix.
35302 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35303 case $ac_top_builddir_sub in
35304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35306 esac ;;
35307esac
35308ac_abs_top_builddir=$ac_pwd
35309ac_abs_builddir=$ac_pwd$ac_dir_suffix
35310# for backward compatibility:
35311ac_top_builddir=$ac_top_build_prefix
35312
35313case $srcdir in
35314 .) # We are building in place.
35315 ac_srcdir=.
35316 ac_top_srcdir=$ac_top_builddir_sub
35317 ac_abs_top_srcdir=$ac_pwd ;;
35318 [\\/]* | ?:[\\/]* ) # Absolute name.
35319 ac_srcdir=$srcdir$ac_dir_suffix;
35320 ac_top_srcdir=$srcdir
35321 ac_abs_top_srcdir=$srcdir ;;
35322 *) # Relative name.
35323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35324 ac_top_srcdir=$ac_top_build_prefix$srcdir
35325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35326esac
35327ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35328
35329
35330 case $ac_mode in
35331 :F)
35332 #
35333 # CONFIG_FILE
35334 #
35335
35336 case $INSTALL in
35337 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35338 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35339 esac
cristy73bd4a52010-10-05 11:24:23 +000035340 ac_MKDIR_P=$MKDIR_P
35341 case $MKDIR_P in
35342 [\\/$]* | ?:[\\/]* ) ;;
35343 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35344 esac
cristy3ed852e2009-09-05 21:47:34 +000035345_ACEOF
35346
35347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35348# If the template does not know about datarootdir, expand it.
35349# FIXME: This hack should be removed a few years after 2.60.
35350ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035351ac_sed_dataroot='
35352/datarootdir/ {
35353 p
35354 q
35355}
35356/@datadir@/p
35357/@docdir@/p
35358/@infodir@/p
35359/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035360/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035361case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35362*datarootdir*) ac_datarootdir_seen=yes;;
35363*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035365$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35366_ACEOF
35367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35368 ac_datarootdir_hack='
35369 s&@datadir@&$datadir&g
35370 s&@docdir@&$docdir&g
35371 s&@infodir@&$infodir&g
35372 s&@localedir@&$localedir&g
35373 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035374 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035375esac
35376_ACEOF
35377
35378# Neutralize VPATH when `$srcdir' = `.'.
35379# Shell code in configure.ac might set extrasub.
35380# FIXME: do we really want to maintain this feature?
35381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35382ac_sed_extra="$ac_vpsub
35383$extrasub
35384_ACEOF
35385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35386:t
35387/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35388s|@configure_input@|$ac_sed_conf_input|;t t
35389s&@top_builddir@&$ac_top_builddir_sub&;t t
35390s&@top_build_prefix@&$ac_top_build_prefix&;t t
35391s&@srcdir@&$ac_srcdir&;t t
35392s&@abs_srcdir@&$ac_abs_srcdir&;t t
35393s&@top_srcdir@&$ac_top_srcdir&;t t
35394s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35395s&@builddir@&$ac_builddir&;t t
35396s&@abs_builddir@&$ac_abs_builddir&;t t
35397s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35398s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035399s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035400$ac_datarootdir_hack
35401"
cristyda16f162011-02-19 23:52:17 +000035402eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35403 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035404
35405test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035406 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35408 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035410which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035411$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035412which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035413
cristyda16f162011-02-19 23:52:17 +000035414 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035415 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035416 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35417 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035418 esac \
cristy98dddb52010-11-04 00:30:15 +000035419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035420 ;;
35421 :H)
35422 #
35423 # CONFIG_HEADER
35424 #
35425 if test x"$ac_file" != x-; then
35426 {
35427 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035428 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35429 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035431 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035432 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035433$as_echo "$as_me: $ac_file is unchanged" >&6;}
35434 else
35435 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035436 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035438 fi
35439 else
35440 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035441 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035442 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035443 fi
cristy73bd4a52010-10-05 11:24:23 +000035444# Compute "$ac_file"'s index in $config_headers.
35445_am_arg="$ac_file"
35446_am_stamp_count=1
35447for _am_header in $config_headers :; do
35448 case $_am_header in
35449 $_am_arg | $_am_arg:* )
35450 break ;;
35451 * )
35452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35453 esac
35454done
35455echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35456$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35457 X"$_am_arg" : 'X\(//\)[^/]' \| \
35458 X"$_am_arg" : 'X\(//\)$' \| \
35459 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35460$as_echo X"$_am_arg" |
35461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35462 s//\1/
35463 q
35464 }
35465 /^X\(\/\/\)[^/].*/{
35466 s//\1/
35467 q
35468 }
35469 /^X\(\/\/\)$/{
35470 s//\1/
35471 q
35472 }
35473 /^X\(\/\).*/{
35474 s//\1/
35475 q
35476 }
35477 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035478 ;;
35479
cristy8b350f62009-11-15 23:12:43 +000035480 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035481$as_echo "$as_me: executing $ac_file commands" >&6;}
35482 ;;
35483 esac
35484
35485
35486 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035487 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35488ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35489ac_prefix_conf_PKG=`echo MagickCore`
35490ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35491ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35492ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35493if test ".$ac_prefix_conf_INP" = "."; then
35494 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35495 case "$ac_file" in
35496 *.h) ac_prefix_conf_INP=$ac_file ;;
35497 *)
35498 esac
35499 test ".$ac_prefix_conf_INP" != "." && break
35500 done
35501fi
35502if test ".$ac_prefix_conf_INP" = "."; then
35503 case "$ac_prefix_conf_OUT" in
35504 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35505 ;;
35506 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35507 ;;
35508 *) ac_prefix_conf_INP=config.h
35509 ;;
35510 esac
35511fi
35512if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035513 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035514else
35515 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35516 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35517 fi fi
35518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35519$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35520 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035521 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35522 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35523 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35524 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35525 $as_echo "#endif/" >> conftest.prefix
35526 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35527 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35528 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035529 # now executing _script on _DEF input to create _OUT output file
35530 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35531 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35532 echo ' ' >>$tmp/pconfig.h
35533 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35534
35535 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35536 echo ' ' >>$tmp/pconfig.h
35537 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35538 echo "#endif" >>$tmp/pconfig.h
35539 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35540 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35541$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35542 else
35543 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35544$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35545 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35546 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35547 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35548$as_echo X"$ac_prefix_conf_OUT" |
35549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35550 s//\1/
35551 q
35552 }
35553 /^X\(\/\/\)[^/].*/{
35554 s//\1/
35555 q
35556 }
35557 /^X\(\/\/\)$/{
35558 s//\1/
35559 q
35560 }
35561 /^X\(\/\).*/{
35562 s//\1/
35563 q
35564 }
35565 s/.*/./; q'`
35566 as_dir="$ac_dir"; as_fn_mkdir_p
35567 rm -f "$ac_prefix_conf_OUT"
35568 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35569 fi
35570 cp conftest.prefix _configs.sed
35571 else
cristy98dddb52010-11-04 00:30:15 +000035572 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 +000035573 fi
35574 rm -f conftest.*
35575fi
35576 ;;
35577 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35578 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35579 # are listed without --file. Let's play safe and only enable the eval
35580 # if we detect the quoting.
35581 case $CONFIG_FILES in
35582 *\'*) eval set x "$CONFIG_FILES" ;;
35583 *) set x $CONFIG_FILES ;;
35584 esac
35585 shift
35586 for mf
35587 do
35588 # Strip MF so we end up with the name of the file.
35589 mf=`echo "$mf" | sed -e 's/:.*$//'`
35590 # Check whether this is an Automake generated Makefile or not.
35591 # We used to match only the files named `Makefile.in', but
35592 # some people rename them; so instead we look at the file content.
35593 # Grep'ing the first line is not enough: some people post-process
35594 # each Makefile.in and add a new line on top of each file to say so.
35595 # Grep'ing the whole file is not good either: AIX grep has a line
35596 # limit of 2048, but all sed's we know have understand at least 4000.
35597 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35598 dirpart=`$as_dirname -- "$mf" ||
35599$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35600 X"$mf" : 'X\(//\)[^/]' \| \
35601 X"$mf" : 'X\(//\)$' \| \
35602 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35603$as_echo X"$mf" |
35604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35605 s//\1/
35606 q
35607 }
35608 /^X\(\/\/\)[^/].*/{
35609 s//\1/
35610 q
35611 }
35612 /^X\(\/\/\)$/{
35613 s//\1/
35614 q
35615 }
35616 /^X\(\/\).*/{
35617 s//\1/
35618 q
35619 }
35620 s/.*/./; q'`
35621 else
35622 continue
35623 fi
35624 # Extract the definition of DEPDIR, am__include, and am__quote
35625 # from the Makefile without running `make'.
35626 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35627 test -z "$DEPDIR" && continue
35628 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35629 test -z "am__include" && continue
35630 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35631 # When using ansi2knr, U may be empty or an underscore; expand it
35632 U=`sed -n 's/^U = //p' < "$mf"`
35633 # Find all dependency output files, they are included files with
35634 # $(DEPDIR) in their names. We invoke sed twice because it is the
35635 # simplest approach to changing $(DEPDIR) to its actual value in the
35636 # expansion.
35637 for file in `sed -n "
35638 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35639 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35640 # Make sure the directory exists.
35641 test -f "$dirpart/$file" && continue
35642 fdir=`$as_dirname -- "$file" ||
35643$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35644 X"$file" : 'X\(//\)[^/]' \| \
35645 X"$file" : 'X\(//\)$' \| \
35646 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35647$as_echo X"$file" |
35648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35649 s//\1/
35650 q
35651 }
35652 /^X\(\/\/\)[^/].*/{
35653 s//\1/
35654 q
35655 }
35656 /^X\(\/\/\)$/{
35657 s//\1/
35658 q
35659 }
35660 /^X\(\/\).*/{
35661 s//\1/
35662 q
35663 }
35664 s/.*/./; q'`
35665 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35666 # echo "creating $dirpart/$file"
35667 echo '# dummy' > "$dirpart/$file"
35668 done
35669 done
35670}
35671 ;;
35672 "libtool":C)
35673
35674 # See if we are running on zsh, and set the options which allow our
35675 # commands through without removal of \ escapes.
35676 if test -n "${ZSH_VERSION+set}" ; then
35677 setopt NO_GLOB_SUBST
35678 fi
35679
35680 cfgfile="${ofile}T"
35681 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35682 $RM "$cfgfile"
35683
35684 cat <<_LT_EOF >> "$cfgfile"
35685#! $SHELL
35686
35687# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35688# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35689# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35690# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35691#
35692# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035693# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35694# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035695# Written by Gordon Matzigkeit, 1996
35696#
35697# This file is part of GNU Libtool.
35698#
35699# GNU Libtool is free software; you can redistribute it and/or
35700# modify it under the terms of the GNU General Public License as
35701# published by the Free Software Foundation; either version 2 of
35702# the License, or (at your option) any later version.
35703#
35704# As a special exception to the GNU General Public License,
35705# if you distribute this file as part of a program or library that
35706# is built using GNU Libtool, you may include this file under the
35707# same distribution terms that you use for the rest of that program.
35708#
35709# GNU Libtool is distributed in the hope that it will be useful,
35710# but WITHOUT ANY WARRANTY; without even the implied warranty of
35711# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35712# GNU General Public License for more details.
35713#
35714# You should have received a copy of the GNU General Public License
35715# along with GNU Libtool; see the file COPYING. If not, a copy
35716# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35717# obtained by writing to the Free Software Foundation, Inc.,
35718# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35719
35720
35721# The names of the tagged configurations supported by this script.
35722available_tags="CXX "
35723
35724# ### BEGIN LIBTOOL CONFIG
35725
35726# A sed program that does not truncate output.
35727SED=$lt_SED
35728
35729# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35730Xsed="\$SED -e 1s/^X//"
35731
35732# A grep program that handles long lines.
35733GREP=$lt_GREP
35734
35735# An ERE matcher.
35736EGREP=$lt_EGREP
35737
35738# A literal string matcher.
35739FGREP=$lt_FGREP
35740
cristy0c60a692010-11-04 01:09:47 +000035741# Shell to use when invoking shell scripts.
35742SHELL=$lt_SHELL
35743
35744# An echo program that protects backslashes.
35745ECHO=$lt_ECHO
35746
cristy73bd4a52010-10-05 11:24:23 +000035747# Which release of libtool.m4 was used?
35748macro_version=$macro_version
35749macro_revision=$macro_revision
35750
35751# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035752AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035753
35754# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035755DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035756
35757# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035758OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035759
35760# Whether or not to build shared libraries.
35761build_libtool_libs=$enable_shared
35762
35763# Whether or not to build static libraries.
35764build_old_libs=$enable_static
35765
35766# What type of objects to build.
35767pic_mode=$pic_mode
35768
35769# Whether or not to optimize for fast installation.
35770fast_install=$enable_fast_install
35771
35772# The host system.
35773host_alias=$host_alias
35774host=$host
35775host_os=$host_os
35776
35777# The build system.
35778build_alias=$build_alias
35779build=$build
35780build_os=$build_os
35781
35782# A BSD- or MS-compatible name lister.
35783NM=$lt_NM
35784
35785# Whether we need soft or hard links.
35786LN_S=$lt_LN_S
35787
35788# What is the maximum length of a command?
35789max_cmd_len=$max_cmd_len
35790
35791# Object file suffix (normally "o").
35792objext=$ac_objext
35793
35794# Executable file suffix (normally "").
35795exeext=$exeext
35796
35797# whether the shell understands "unset".
35798lt_unset=$lt_unset
35799
35800# turn spaces into newlines.
35801SP2NL=$lt_lt_SP2NL
35802
35803# turn newlines into spaces.
35804NL2SP=$lt_lt_NL2SP
35805
cristyda16f162011-02-19 23:52:17 +000035806# convert \$build file names to \$host format.
35807to_host_file_cmd=$lt_cv_to_host_file_cmd
35808
35809# convert \$build files to toolchain format.
35810to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35811
cristy73bd4a52010-10-05 11:24:23 +000035812# Method to check whether dependent libraries are shared objects.
35813deplibs_check_method=$lt_deplibs_check_method
35814
cristyda16f162011-02-19 23:52:17 +000035815# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035816file_magic_cmd=$lt_file_magic_cmd
35817
cristyda16f162011-02-19 23:52:17 +000035818# How to find potential files when deplibs_check_method = "file_magic".
35819file_magic_glob=$lt_file_magic_glob
35820
35821# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35822want_nocaseglob=$lt_want_nocaseglob
35823
35824# Command to associate shared and link libraries.
35825sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35826
cristy73bd4a52010-10-05 11:24:23 +000035827# The archiver.
35828AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035829
35830# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035831AR_FLAGS=$lt_AR_FLAGS
35832
cristyda16f162011-02-19 23:52:17 +000035833# How to feed a file listing to the archiver.
35834archiver_list_spec=$lt_archiver_list_spec
35835
cristy73bd4a52010-10-05 11:24:23 +000035836# A symbol stripping program.
35837STRIP=$lt_STRIP
35838
35839# Commands used to install an old-style archive.
35840RANLIB=$lt_RANLIB
35841old_postinstall_cmds=$lt_old_postinstall_cmds
35842old_postuninstall_cmds=$lt_old_postuninstall_cmds
35843
cristy0c60a692010-11-04 01:09:47 +000035844# Whether to use a lock for old archive extraction.
35845lock_old_archive_extraction=$lock_old_archive_extraction
35846
cristy73bd4a52010-10-05 11:24:23 +000035847# A C compiler.
35848LTCC=$lt_CC
35849
35850# LTCC compiler flags.
35851LTCFLAGS=$lt_CFLAGS
35852
35853# Take the output of nm and produce a listing of raw symbols and C names.
35854global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35855
35856# Transform the output of nm in a proper C declaration.
35857global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35858
35859# Transform the output of nm in a C name address pair.
35860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35861
35862# Transform the output of nm in a C name address pair when lib prefix is needed.
35863global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35864
cristyda16f162011-02-19 23:52:17 +000035865# Specify filename containing input files for \$NM.
35866nm_file_list_spec=$lt_nm_file_list_spec
35867
35868# The root where to search for dependent libraries,and in which our libraries should be installed.
35869lt_sysroot=$lt_sysroot
35870
cristy73bd4a52010-10-05 11:24:23 +000035871# The name of the directory that contains temporary libtool files.
35872objdir=$objdir
35873
cristy73bd4a52010-10-05 11:24:23 +000035874# Used to examine libraries when file_magic_cmd begins with "file".
35875MAGIC_CMD=$MAGIC_CMD
35876
35877# Must we lock files when doing compilation?
35878need_locks=$lt_need_locks
35879
cristyda16f162011-02-19 23:52:17 +000035880# Manifest tool.
35881MANIFEST_TOOL=$lt_MANIFEST_TOOL
35882
cristy73bd4a52010-10-05 11:24:23 +000035883# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35884DSYMUTIL=$lt_DSYMUTIL
35885
35886# Tool to change global to local symbols on Mac OS X.
35887NMEDIT=$lt_NMEDIT
35888
35889# Tool to manipulate fat objects and archives on Mac OS X.
35890LIPO=$lt_LIPO
35891
35892# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35893OTOOL=$lt_OTOOL
35894
35895# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35896OTOOL64=$lt_OTOOL64
35897
35898# Old archive suffix (normally "a").
35899libext=$libext
35900
35901# Shared library suffix (normally ".so").
35902shrext_cmds=$lt_shrext_cmds
35903
35904# The commands to extract the exported symbol list from a shared archive.
35905extract_expsyms_cmds=$lt_extract_expsyms_cmds
35906
35907# Variables whose values should be saved in libtool wrapper scripts and
35908# restored at link time.
35909variables_saved_for_relink=$lt_variables_saved_for_relink
35910
35911# Do we need the "lib" prefix for modules?
35912need_lib_prefix=$need_lib_prefix
35913
35914# Do we need a version for libraries?
35915need_version=$need_version
35916
35917# Library versioning type.
35918version_type=$version_type
35919
35920# Shared library runtime path variable.
35921runpath_var=$runpath_var
35922
35923# Shared library path variable.
35924shlibpath_var=$shlibpath_var
35925
35926# Is shlibpath searched before the hard-coded library search path?
35927shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35928
35929# Format of library name prefix.
35930libname_spec=$lt_libname_spec
35931
35932# List of archive names. First name is the real one, the rest are links.
35933# The last name is the one that the linker finds with -lNAME
35934library_names_spec=$lt_library_names_spec
35935
35936# The coded name of the library, if different from the real name.
35937soname_spec=$lt_soname_spec
35938
cristy0c60a692010-11-04 01:09:47 +000035939# Permission mode override for installation of shared libraries.
35940install_override_mode=$lt_install_override_mode
35941
cristy73bd4a52010-10-05 11:24:23 +000035942# Command to use after installation of a shared archive.
35943postinstall_cmds=$lt_postinstall_cmds
35944
35945# Command to use after uninstallation of a shared archive.
35946postuninstall_cmds=$lt_postuninstall_cmds
35947
35948# Commands used to finish a libtool library installation in a directory.
35949finish_cmds=$lt_finish_cmds
35950
35951# As "finish_cmds", except a single script fragment to be evaled but
35952# not shown.
35953finish_eval=$lt_finish_eval
35954
35955# Whether we should hardcode library paths into libraries.
35956hardcode_into_libs=$hardcode_into_libs
35957
35958# Compile-time system search path for libraries.
35959sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35960
35961# Run-time system search path for libraries.
35962sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35963
35964# Whether dlopen is supported.
35965dlopen_support=$enable_dlopen
35966
35967# Whether dlopen of programs is supported.
35968dlopen_self=$enable_dlopen_self
35969
35970# Whether dlopen of statically linked programs is supported.
35971dlopen_self_static=$enable_dlopen_self_static
35972
35973# Commands to strip libraries.
35974old_striplib=$lt_old_striplib
35975striplib=$lt_striplib
35976
35977
35978# The linker used to build libraries.
35979LD=$lt_LD
35980
cristy0c60a692010-11-04 01:09:47 +000035981# How to create reloadable object files.
35982reload_flag=$lt_reload_flag
35983reload_cmds=$lt_reload_cmds
35984
cristy73bd4a52010-10-05 11:24:23 +000035985# Commands used to build an old-style archive.
35986old_archive_cmds=$lt_old_archive_cmds
35987
35988# A language specific compiler.
35989CC=$lt_compiler
35990
35991# Is the compiler the GNU compiler?
35992with_gcc=$GCC
35993
35994# Compiler flag to turn off builtin functions.
35995no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35996
cristy73bd4a52010-10-05 11:24:23 +000035997# Additional compiler flags for building library objects.
35998pic_flag=$lt_lt_prog_compiler_pic
35999
cristyda16f162011-02-19 23:52:17 +000036000# How to pass a linker flag through the compiler.
36001wl=$lt_lt_prog_compiler_wl
36002
cristy73bd4a52010-10-05 11:24:23 +000036003# Compiler flag to prevent dynamic linking.
36004link_static_flag=$lt_lt_prog_compiler_static
36005
36006# Does compiler simultaneously support -c and -o options?
36007compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36008
36009# Whether or not to add -lc for building shared libraries.
36010build_libtool_need_lc=$archive_cmds_need_lc
36011
36012# Whether or not to disallow shared libs when runtime libs are static.
36013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36014
36015# Compiler flag to allow reflexive dlopens.
36016export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36017
36018# Compiler flag to generate shared objects directly from archives.
36019whole_archive_flag_spec=$lt_whole_archive_flag_spec
36020
36021# Whether the compiler copes with passing no objects directly.
36022compiler_needs_object=$lt_compiler_needs_object
36023
36024# Create an old-style archive from a shared archive.
36025old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36026
36027# Create a temporary old-style archive to link instead of a shared archive.
36028old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36029
36030# Commands used to build a shared archive.
36031archive_cmds=$lt_archive_cmds
36032archive_expsym_cmds=$lt_archive_expsym_cmds
36033
36034# Commands used to build a loadable module if different from building
36035# a shared archive.
36036module_cmds=$lt_module_cmds
36037module_expsym_cmds=$lt_module_expsym_cmds
36038
36039# Whether we are building with GNU ld or not.
36040with_gnu_ld=$lt_with_gnu_ld
36041
36042# Flag that allows shared libraries with undefined symbols to be built.
36043allow_undefined_flag=$lt_allow_undefined_flag
36044
36045# Flag that enforces no undefined symbols.
36046no_undefined_flag=$lt_no_undefined_flag
36047
36048# Flag to hardcode \$libdir into a binary during linking.
36049# This must work even if \$libdir does not exist
36050hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36051
36052# If ld is used when linking, flag to hardcode \$libdir into a binary
36053# during linking. This must work even if \$libdir does not exist.
36054hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36055
36056# Whether we need a single "-rpath" flag with a separated argument.
36057hardcode_libdir_separator=$lt_hardcode_libdir_separator
36058
36059# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36060# DIR into the resulting binary.
36061hardcode_direct=$hardcode_direct
36062
36063# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36064# DIR into the resulting binary and the resulting library dependency is
36065# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36066# library is relocated.
36067hardcode_direct_absolute=$hardcode_direct_absolute
36068
36069# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36070# into the resulting binary.
36071hardcode_minus_L=$hardcode_minus_L
36072
36073# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36074# into the resulting binary.
36075hardcode_shlibpath_var=$hardcode_shlibpath_var
36076
36077# Set to "yes" if building a shared library automatically hardcodes DIR
36078# into the library and all subsequent libraries and executables linked
36079# against it.
36080hardcode_automatic=$hardcode_automatic
36081
36082# Set to yes if linker adds runtime paths of dependent libraries
36083# to runtime path list.
36084inherit_rpath=$inherit_rpath
36085
36086# Whether libtool must link a program against all its dependency libraries.
36087link_all_deplibs=$link_all_deplibs
36088
cristy73bd4a52010-10-05 11:24:23 +000036089# Set to "yes" if exported symbols are required.
36090always_export_symbols=$always_export_symbols
36091
36092# The commands to list exported symbols.
36093export_symbols_cmds=$lt_export_symbols_cmds
36094
36095# Symbols that should not be listed in the preloaded symbols.
36096exclude_expsyms=$lt_exclude_expsyms
36097
36098# Symbols that must always be exported.
36099include_expsyms=$lt_include_expsyms
36100
36101# Commands necessary for linking programs (against libraries) with templates.
36102prelink_cmds=$lt_prelink_cmds
36103
cristyda16f162011-02-19 23:52:17 +000036104# Commands necessary for finishing linking programs.
36105postlink_cmds=$lt_postlink_cmds
36106
cristy73bd4a52010-10-05 11:24:23 +000036107# Specify filename containing input files.
36108file_list_spec=$lt_file_list_spec
36109
36110# How to hardcode a shared library path into an executable.
36111hardcode_action=$hardcode_action
36112
36113# The directories searched by this compiler when creating a shared library.
36114compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36115
36116# Dependencies to place before and after the objects being linked to
36117# create a shared library.
36118predep_objects=$lt_predep_objects
36119postdep_objects=$lt_postdep_objects
36120predeps=$lt_predeps
36121postdeps=$lt_postdeps
36122
36123# The library search path used internally by the compiler when linking
36124# a shared library.
36125compiler_lib_search_path=$lt_compiler_lib_search_path
36126
36127# ### END LIBTOOL CONFIG
36128
36129_LT_EOF
36130
36131 case $host_os in
36132 aix3*)
36133 cat <<\_LT_EOF >> "$cfgfile"
36134# AIX sometimes has problems with the GCC collect2 program. For some
36135# reason, if we set the COLLECT_NAMES environment variable, the problems
36136# vanish in a puff of smoke.
36137if test "X${COLLECT_NAMES+set}" != Xset; then
36138 COLLECT_NAMES=
36139 export COLLECT_NAMES
36140fi
36141_LT_EOF
36142 ;;
36143 esac
36144
36145
36146ltmain="$ac_aux_dir/ltmain.sh"
36147
36148
36149 # We use sed instead of cat because bash on DJGPP gets confused if
36150 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36151 # text mode, it properly converts lines to CR/LF. This bash problem
36152 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036153 sed '$q' "$ltmain" >> "$cfgfile" \
36154 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036155
cristyda16f162011-02-19 23:52:17 +000036156 if test x"$xsi_shell" = xyes; then
36157 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36158func_dirname ()\
36159{\
36160\ case ${1} in\
36161\ */*) func_dirname_result="${1%/*}${2}" ;;\
36162\ * ) func_dirname_result="${3}" ;;\
36163\ esac\
36164} # Extended-shell func_dirname 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_basename ()$/,/^} # func_basename /c\
36171func_basename ()\
36172{\
36173\ func_basename_result="${1##*/}"\
36174} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36175 && mv -f "$cfgfile.tmp" "$cfgfile" \
36176 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36177test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036178
36179
cristyda16f162011-02-19 23:52:17 +000036180 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36181func_dirname_and_basename ()\
36182{\
36183\ case ${1} in\
36184\ */*) func_dirname_result="${1%/*}${2}" ;;\
36185\ * ) func_dirname_result="${3}" ;;\
36186\ esac\
36187\ func_basename_result="${1##*/}"\
36188} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36189 && mv -f "$cfgfile.tmp" "$cfgfile" \
36190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36191test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036192
cristyda16f162011-02-19 23:52:17 +000036193
36194 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36195func_stripname ()\
36196{\
36197\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36198\ # positional parameters, so assign one to ordinary parameter first.\
36199\ func_stripname_result=${3}\
36200\ func_stripname_result=${func_stripname_result#"${1}"}\
36201\ func_stripname_result=${func_stripname_result%"${2}"}\
36202} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36203 && mv -f "$cfgfile.tmp" "$cfgfile" \
36204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36205test 0 -eq $? || _lt_function_replace_fail=:
36206
36207
36208 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36209func_split_long_opt ()\
36210{\
36211\ func_split_long_opt_name=${1%%=*}\
36212\ func_split_long_opt_arg=${1#*=}\
36213} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36214 && mv -f "$cfgfile.tmp" "$cfgfile" \
36215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36216test 0 -eq $? || _lt_function_replace_fail=:
36217
36218
36219 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36220func_split_short_opt ()\
36221{\
36222\ func_split_short_opt_arg=${1#??}\
36223\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36224} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36225 && mv -f "$cfgfile.tmp" "$cfgfile" \
36226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36227test 0 -eq $? || _lt_function_replace_fail=:
36228
36229
36230 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36231func_lo2o ()\
36232{\
36233\ case ${1} in\
36234\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36235\ *) func_lo2o_result=${1} ;;\
36236\ esac\
36237} # Extended-shell func_lo2o 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_xform ()$/,/^} # func_xform /c\
36244func_xform ()\
36245{\
36246 func_xform_result=${1%.*}.lo\
36247} # Extended-shell func_xform 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_arith ()$/,/^} # func_arith /c\
36254func_arith ()\
36255{\
36256 func_arith_result=$(( $* ))\
36257} # Extended-shell func_arith 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
36262
36263 sed -e '/^func_len ()$/,/^} # func_len /c\
36264func_len ()\
36265{\
36266 func_len_result=${#1}\
36267} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36268 && mv -f "$cfgfile.tmp" "$cfgfile" \
36269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36270test 0 -eq $? || _lt_function_replace_fail=:
36271
36272fi
36273
36274if test x"$lt_shell_append" = xyes; then
36275 sed -e '/^func_append ()$/,/^} # func_append /c\
36276func_append ()\
36277{\
36278 eval "${1}+=\\${2}"\
36279} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36280 && mv -f "$cfgfile.tmp" "$cfgfile" \
36281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36282test 0 -eq $? || _lt_function_replace_fail=:
36283
36284
36285 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36286func_append_quoted ()\
36287{\
36288\ func_quote_for_eval "${2}"\
36289\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36290} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36291 && mv -f "$cfgfile.tmp" "$cfgfile" \
36292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36293test 0 -eq $? || _lt_function_replace_fail=:
36294
36295
36296 # Save a `func_append' function call where possible by direct use of '+='
36297 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36298 && mv -f "$cfgfile.tmp" "$cfgfile" \
36299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36300 test 0 -eq $? || _lt_function_replace_fail=:
36301else
36302 # Save a `func_append' function call even when '+=' is not available
36303 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36304 && mv -f "$cfgfile.tmp" "$cfgfile" \
36305 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36306 test 0 -eq $? || _lt_function_replace_fail=:
36307fi
36308
36309if test x"$_lt_function_replace_fail" = x":"; then
36310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36311$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36312fi
36313
36314
36315 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036316 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36317 chmod +x "$ofile"
36318
36319
36320 cat <<_LT_EOF >> "$ofile"
36321
36322# ### BEGIN LIBTOOL TAG CONFIG: CXX
36323
36324# The linker used to build libraries.
36325LD=$lt_LD_CXX
36326
cristy0c60a692010-11-04 01:09:47 +000036327# How to create reloadable object files.
36328reload_flag=$lt_reload_flag_CXX
36329reload_cmds=$lt_reload_cmds_CXX
36330
cristy73bd4a52010-10-05 11:24:23 +000036331# Commands used to build an old-style archive.
36332old_archive_cmds=$lt_old_archive_cmds_CXX
36333
36334# A language specific compiler.
36335CC=$lt_compiler_CXX
36336
36337# Is the compiler the GNU compiler?
36338with_gcc=$GCC_CXX
36339
36340# Compiler flag to turn off builtin functions.
36341no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36342
cristy73bd4a52010-10-05 11:24:23 +000036343# Additional compiler flags for building library objects.
36344pic_flag=$lt_lt_prog_compiler_pic_CXX
36345
cristyda16f162011-02-19 23:52:17 +000036346# How to pass a linker flag through the compiler.
36347wl=$lt_lt_prog_compiler_wl_CXX
36348
cristy73bd4a52010-10-05 11:24:23 +000036349# Compiler flag to prevent dynamic linking.
36350link_static_flag=$lt_lt_prog_compiler_static_CXX
36351
36352# Does compiler simultaneously support -c and -o options?
36353compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36354
36355# Whether or not to add -lc for building shared libraries.
36356build_libtool_need_lc=$archive_cmds_need_lc_CXX
36357
36358# Whether or not to disallow shared libs when runtime libs are static.
36359allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36360
36361# Compiler flag to allow reflexive dlopens.
36362export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36363
36364# Compiler flag to generate shared objects directly from archives.
36365whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36366
36367# Whether the compiler copes with passing no objects directly.
36368compiler_needs_object=$lt_compiler_needs_object_CXX
36369
36370# Create an old-style archive from a shared archive.
36371old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36372
36373# Create a temporary old-style archive to link instead of a shared archive.
36374old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36375
36376# Commands used to build a shared archive.
36377archive_cmds=$lt_archive_cmds_CXX
36378archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36379
36380# Commands used to build a loadable module if different from building
36381# a shared archive.
36382module_cmds=$lt_module_cmds_CXX
36383module_expsym_cmds=$lt_module_expsym_cmds_CXX
36384
36385# Whether we are building with GNU ld or not.
36386with_gnu_ld=$lt_with_gnu_ld_CXX
36387
36388# Flag that allows shared libraries with undefined symbols to be built.
36389allow_undefined_flag=$lt_allow_undefined_flag_CXX
36390
36391# Flag that enforces no undefined symbols.
36392no_undefined_flag=$lt_no_undefined_flag_CXX
36393
36394# Flag to hardcode \$libdir into a binary during linking.
36395# This must work even if \$libdir does not exist
36396hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36397
36398# If ld is used when linking, flag to hardcode \$libdir into a binary
36399# during linking. This must work even if \$libdir does not exist.
36400hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36401
36402# Whether we need a single "-rpath" flag with a separated argument.
36403hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36404
36405# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36406# DIR into the resulting binary.
36407hardcode_direct=$hardcode_direct_CXX
36408
36409# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36410# DIR into the resulting binary and the resulting library dependency is
36411# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36412# library is relocated.
36413hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36414
36415# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36416# into the resulting binary.
36417hardcode_minus_L=$hardcode_minus_L_CXX
36418
36419# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36420# into the resulting binary.
36421hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36422
36423# Set to "yes" if building a shared library automatically hardcodes DIR
36424# into the library and all subsequent libraries and executables linked
36425# against it.
36426hardcode_automatic=$hardcode_automatic_CXX
36427
36428# Set to yes if linker adds runtime paths of dependent libraries
36429# to runtime path list.
36430inherit_rpath=$inherit_rpath_CXX
36431
36432# Whether libtool must link a program against all its dependency libraries.
36433link_all_deplibs=$link_all_deplibs_CXX
36434
cristy73bd4a52010-10-05 11:24:23 +000036435# Set to "yes" if exported symbols are required.
36436always_export_symbols=$always_export_symbols_CXX
36437
36438# The commands to list exported symbols.
36439export_symbols_cmds=$lt_export_symbols_cmds_CXX
36440
36441# Symbols that should not be listed in the preloaded symbols.
36442exclude_expsyms=$lt_exclude_expsyms_CXX
36443
36444# Symbols that must always be exported.
36445include_expsyms=$lt_include_expsyms_CXX
36446
36447# Commands necessary for linking programs (against libraries) with templates.
36448prelink_cmds=$lt_prelink_cmds_CXX
36449
cristyda16f162011-02-19 23:52:17 +000036450# Commands necessary for finishing linking programs.
36451postlink_cmds=$lt_postlink_cmds_CXX
36452
cristy73bd4a52010-10-05 11:24:23 +000036453# Specify filename containing input files.
36454file_list_spec=$lt_file_list_spec_CXX
36455
36456# How to hardcode a shared library path into an executable.
36457hardcode_action=$hardcode_action_CXX
36458
36459# The directories searched by this compiler when creating a shared library.
36460compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36461
36462# Dependencies to place before and after the objects being linked to
36463# create a shared library.
36464predep_objects=$lt_predep_objects_CXX
36465postdep_objects=$lt_postdep_objects_CXX
36466predeps=$lt_predeps_CXX
36467postdeps=$lt_postdeps_CXX
36468
36469# The library search path used internally by the compiler when linking
36470# a shared library.
36471compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36472
36473# ### END LIBTOOL TAG CONFIG: CXX
36474_LT_EOF
36475
36476 ;;
cristy3ed852e2009-09-05 21:47:34 +000036477 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36478 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36479 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36480 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36481 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36482 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36483
36484 esac
36485done # for ac_tag
36486
36487
cristy8b350f62009-11-15 23:12:43 +000036488as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036489_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036490ac_clean_files=$ac_clean_files_save
36491
36492test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036493 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036494
36495
36496# configure is writing to config.log, and then calls config.status.
36497# config.status does its own redirection, appending to config.log.
36498# Unfortunately, on DOS this fails, as config.log is still kept open
36499# by configure, so config.status won't be able to write to it; its
36500# output is simply discarded. So we exec the FD to /dev/null,
36501# effectively closing config.log, so it can be properly (re)opened and
36502# appended to by config.status. When coming back to configure, we
36503# need to make the FD available again.
36504if test "$no_create" != yes; then
36505 ac_cs_success=:
36506 ac_config_status_args=
36507 test "$silent" = yes &&
36508 ac_config_status_args="$ac_config_status_args --quiet"
36509 exec 5>/dev/null
36510 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36511 exec 5>>config.log
36512 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36513 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036514 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036515fi
36516if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036518$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36519fi
36520
36521
36522rm -f magick-version
36523
cristy430a7312010-01-21 20:44:04 +000036524result_dejavu_font_dir='none'
36525if test "${dejavu_font_dir}x" != 'x'; then
36526 result_dejavu_font_dir=$dejavu_font_dir
36527fi
36528
cristy3ed852e2009-09-05 21:47:34 +000036529result_ghostscript_font_dir='none'
36530if test "${ghostscript_font_dir}x" != 'x'; then
36531 result_ghostscript_font_dir=$ghostscript_font_dir
36532fi
36533
36534result_windows_font_dir='none'
36535if test "${windows_font_dir}x" != 'x'; then
36536 result_windows_font_dir=${windows_font_dir}
36537fi
36538
cristy8b350f62009-11-15 23:12:43 +000036539{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036540ImageMagick is configured as follows. Please verify that this configuration
36541matches your expectations.
36542
36543Host system type: $host
36544Build system type: $build
36545
36546 Option Value
36547-------------------------------------------------------------------------------
36548Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36549Static libraries --enable-static=$enable_static $libtool_build_static_libs
36550Module support --with-modules=$with_modules $with_modules
36551GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36552Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36553High Dynamic Range Imagery
36554 --enable-hdri=$enable_hdri $enable_hdri
36555
36556Delegate Configuration:
36557BZLIB --with-bzlib=$with_bzlib $have_bzlib
36558Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036559Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036560DJVU --with-djvu=$with_djvu $have_djvu
36561DPS --with-dps=$with_dps $have_dps
36562FFTW --with-fftw=$with_fftw $have_fftw
36563FlashPIX --with-fpx=$with_fpx $have_fpx
36564FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36565FreeType --with-freetype=$with_freetype $have_freetype
36566GhostPCL None $PCLDelegate ($PCLVersion)
36567GhostXPS None $XPSDelegate ($XPSVersion)
36568Ghostscript None $PSDelegate ($GSVersion)
36569Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36570Ghostscript lib --with-gslib=$with_gslib $have_gslib
36571Graphviz --with-gvc=$with_gvc $have_gvc
36572JBIG --with-jbig=$with_jbig $have_jbig
36573JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36574JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036575LCMS v1 --with-lcms=$with_lcms $have_lcms
36576LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036577LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036578LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036579Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36580OpenEXR --with-openexr=$with_openexr $have_openexr
36581PERL --with-perl=$with_perl $have_perl
36582PNG --with-png=$with_png $have_png
36583RSVG --with-rsvg=$with_rsvg $have_rsvg
36584TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036585WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036586Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36587WMF --with-wmf=$with_wmf $have_wmf
36588X11 --with-x=$with_x $have_x
36589XML --with-xml=$with_xml $have_xml
36590ZLIB --with-zlib=$with_zlib $have_zlib
36591
36592X11 Configuration:
36593 X_CFLAGS = $X_CFLAGS
36594 X_PRE_LIBS = $X_PRE_LIBS
36595 X_LIBS = $X_LIBS
36596 X_EXTRA_LIBS = $X_EXTRA_LIBS
36597
36598Options used to compile and link:
36599 PREFIX = $PREFIX_DIR
36600 EXEC-PREFIX = $EXEC_PREFIX_DIR
36601 VERSION = $PACKAGE_VERSION
36602 CC = $CC
36603 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036604 CPPFLAGS = $MAGICK_CPPFLAGS
36605 PCFLAGS = $MAGICK_PCFLAGS
36606 DEFS = $DEFS
36607 LDFLAGS = $LDFLAGS
36608 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36609 LIBS = $MAGICK_LIBS
36610 CXX = $CXX
36611 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036612 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036613" >&5
36614$as_echo "
36615ImageMagick is configured as follows. Please verify that this configuration
36616matches your expectations.
36617
36618Host system type: $host
36619Build system type: $build
36620
36621 Option Value
36622-------------------------------------------------------------------------------
36623Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36624Static libraries --enable-static=$enable_static $libtool_build_static_libs
36625Module support --with-modules=$with_modules $with_modules
36626GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36627Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36628High Dynamic Range Imagery
36629 --enable-hdri=$enable_hdri $enable_hdri
36630
36631Delegate Configuration:
36632BZLIB --with-bzlib=$with_bzlib $have_bzlib
36633Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036634Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036635DJVU --with-djvu=$with_djvu $have_djvu
36636DPS --with-dps=$with_dps $have_dps
36637FFTW --with-fftw=$with_fftw $have_fftw
36638FlashPIX --with-fpx=$with_fpx $have_fpx
36639FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36640FreeType --with-freetype=$with_freetype $have_freetype
36641GhostPCL None $PCLDelegate ($PCLVersion)
36642GhostXPS None $XPSDelegate ($XPSVersion)
36643Ghostscript None $PSDelegate ($GSVersion)
36644Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36645Ghostscript lib --with-gslib=$with_gslib $have_gslib
36646Graphviz --with-gvc=$with_gvc $have_gvc
36647JBIG --with-jbig=$with_jbig $have_jbig
36648JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36649JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036650LCMS v1 --with-lcms=$with_lcms $have_lcms
36651LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036652LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036653LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036654Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36655OpenEXR --with-openexr=$with_openexr $have_openexr
36656PERL --with-perl=$with_perl $have_perl
36657PNG --with-png=$with_png $have_png
36658RSVG --with-rsvg=$with_rsvg $have_rsvg
36659TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036660WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036661Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36662WMF --with-wmf=$with_wmf $have_wmf
36663X11 --with-x=$with_x $have_x
36664XML --with-xml=$with_xml $have_xml
36665ZLIB --with-zlib=$with_zlib $have_zlib
36666
36667X11 Configuration:
36668 X_CFLAGS = $X_CFLAGS
36669 X_PRE_LIBS = $X_PRE_LIBS
36670 X_LIBS = $X_LIBS
36671 X_EXTRA_LIBS = $X_EXTRA_LIBS
36672
36673Options used to compile and link:
36674 PREFIX = $PREFIX_DIR
36675 EXEC-PREFIX = $EXEC_PREFIX_DIR
36676 VERSION = $PACKAGE_VERSION
36677 CC = $CC
36678 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036679 CPPFLAGS = $MAGICK_CPPFLAGS
36680 PCFLAGS = $MAGICK_PCFLAGS
36681 DEFS = $DEFS
36682 LDFLAGS = $LDFLAGS
36683 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36684 LIBS = $MAGICK_LIBS
36685 CXX = $CXX
36686 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036687 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036688" >&6; }