blob: 2675ca6aaf15bace6567b9eb3ef40879ab2bb38e [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
cristy23f7a922010-10-11 00:27:48 +0000684WEBPDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000685UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000686TXTDelegate
687SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000688RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000689RMDelegate
690RLEEncodeDelegate
691PSDelegate
692POVDelegate
693PGPDecodeDelegate
694PCLDelegate
695MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000696MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000697MPEGEncodeDelegate
698MPEGDecodeDelegate
699MANDelegate
700LaunchDelegate
701LZWEncodeDelegate
702LZWDecodeDelegate
703LPRDelegate
704LPDelegate
705ILBMEncodeDelegate
706ILBMDecodeDelegate
707HTMLDecodeDelegate
708HPGLDecodeDelegate
709HDRDecodeDelegate
710GnuplotDecodeDelegate
711MogrifyDelegate
712DisplayDelegate
713ConvertDelegate
714FIGDecodeDelegate
715EditorDelegate
716EchoDelegate
717DVIDecodeDelegate
718GVCDecodeDelegate
719DNGDecodeDelegate
720CatDelegate
721CGMDecodeDelegate
722BrowseDelegate
723BZIPDelegate
724BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725AutotraceDecodeDelegate
726SHARE_CONFIGURE_PATH
727SHARE_PATH
728DOCUMENTATION_PATH
729FILTER_PATH
730CODER_PATH
731CONFIGURE_PATH
732LIBRARY_PATH
733EXECUTABLE_PATH
734PERLMAINCC
735XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000736XML_DELEGATE_FALSE
737XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000738xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
838UINTPTR_T
839UINTMAX_T
840UINT64_T
841INT64_T
842UINT32_T
843INT32_T
844UINT16_T
845INT16_T
846UINT8_T
847INT8_T
848LIBRARY_EXTRA_CPPFLAGS
849MODULE_EXTRA_CPPFLAGS
850LIBSTDCLDFLAGS
851PERL_MAKE_OPTIONS
852QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000853MAINT
854MAINTAINER_MODE_FALSE
855MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856MAGICK_HDRI
857DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000858WITH_LTDL_FALSE
859WITH_LTDL_TRUE
860WITH_MODULES_FALSE
861WITH_MODULES_TRUE
862WITH_SHARED_LIBS_FALSE
863WITH_SHARED_LIBS_TRUE
864LTDLOPEN
865LT_CONFIG_H
866CONVENIENCE_LTDL_FALSE
867CONVENIENCE_LTDL_TRUE
868INSTALL_LTDL_FALSE
869INSTALL_LTDL_TRUE
870ARGZ_H
871sys_symbol_underscore
872LIBADD_DL
873LT_DLPREOPEN
874LIBADD_DLD_LINK
875LIBADD_SHL_LOAD
876LIBADD_DLOPEN
877LT_DLLOADERS
878INCLTDL
879LTDLINCL
880LTDLDEPS
881LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000882LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000883CXXCPP
884OTOOL64
885OTOOL
886LIPO
887NMEDIT
888DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000889MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000890RANLIB
cristyda16f162011-02-19 23:52:17 +0000891ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000892AR
893NM
894ac_ct_DUMPBIN
895DUMPBIN
896LIBTOOL
897OBJDUMP
898DLLTOOL
899AS
cristy3ed852e2009-09-05 21:47:34 +0000900LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000901CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000902CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000903OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000904PTHREAD_CFLAGS
905PTHREAD_LIBS
906PTHREAD_CC
907ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000908WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000909USING_CL_FALSE
910USING_CL_TRUE
911CYGWIN_BUILD_FALSE
912CYGWIN_BUILD_TRUE
913WIN32_NATIVE_BUILD_FALSE
914WIN32_NATIVE_BUILD_TRUE
915WINGDI32_DELEGATE_FALSE
916WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000917GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000918PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000919LN_S
cristy3ed852e2009-09-05 21:47:34 +0000920LD
cristy73bd4a52010-10-05 11:24:23 +0000921FGREP
922SED
923am__fastdepCXX_FALSE
924am__fastdepCXX_TRUE
925CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000926ac_ct_CXX
927CXXFLAGS
928CXX
cristya0b81c32010-01-22 02:54:33 +0000929EGREP
930GREP
931CPP
cristy73bd4a52010-10-05 11:24:23 +0000932am__fastdepCC_FALSE
933am__fastdepCC_TRUE
934CCDEPMODE
935AMDEPBACKSLASH
936AMDEP_FALSE
937AMDEP_TRUE
938am__quote
939am__include
940DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000941OBJEXT
942EXEEXT
943ac_ct_CC
944CPPFLAGS
945LDFLAGS
946CFLAGS
947CC
948DIRSEP
949MAGICK_FILTER_MODULE_PATH
950MAGICK_CONFIGURE_BUILD_PATH
951MAGICK_CONFIGURE_SRC_PATH
952MAGICK_CODER_MODULE_PATH
953MAN_DIR
954INFO_DIR
955PERSISTINCLUDE_DIR
956INCLUDE_DIR
957LIB_DIR
958LOCALSTATE_DIR
959SHAREDSTATE_DIR
960SYSCONF_DIR
961DATA_DIR
962LIBEXEC_DIR
963SBIN_DIR
964BIN_DIR
965EXEC_PREFIX_DIR
966PREFIX_DIR
967CONFIG_STATUS_DEPENDENCIES
968MAGICK_LIB_VERSION_NUMBER
969MAGICK_LIB_VERSION_TEXT
970MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000971AM_BACKSLASH
972AM_DEFAULT_VERBOSITY
973am__untar
974am__tar
975AMTAR
976am__leading_dot
977SET_MAKE
978AWK
979mkdir_p
980MKDIR_P
981INSTALL_STRIP_PROGRAM
982STRIP
983install_sh
984MAKEINFO
985AUTOHEADER
986AUTOMAKE
987AUTOCONF
988ACLOCAL
989VERSION
990PACKAGE
991CYGPATH_W
992am__isrc
993INSTALL_DATA
994INSTALL_SCRIPT
995INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000996PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000997PACKAGE_RELEASE_DATE
998PACKAGE_LIB_VERSION_NUMBER
999PACKAGE_LIB_VERSION
1000PACKAGE_CHANGE_DATE
1001PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001002MAGICK_LIBRARY_VERSION_INFO
1003MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001004MAGICK_LIBRARY_AGE
1005MAGICK_LIBRARY_REVISION
1006MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001007MAGICK_TARGET_OS
1008MAGICK_TARGET_VENDOR
1009MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001010target_os
1011target_vendor
1012target_cpu
1013target
1014host_os
1015host_vendor
1016host_cpu
1017host
1018build_os
1019build_vendor
1020build_cpu
1021build
1022CONFIGURE_ARGS
1023DISTCHECK_CONFIG_FLAGS
1024target_alias
1025host_alias
1026build_alias
1027LIBS
1028ECHO_T
1029ECHO_N
1030ECHO_C
1031DEFS
1032mandir
1033localedir
1034libdir
1035psdir
1036pdfdir
1037dvidir
1038htmldir
1039infodir
1040docdir
1041oldincludedir
1042includedir
1043localstatedir
1044sharedstatedir
1045sysconfdir
1046datadir
1047datarootdir
1048libexecdir
1049sbindir
1050bindir
1051program_transform_name
1052prefix
1053exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001054PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001055PACKAGE_BUGREPORT
1056PACKAGE_STRING
1057PACKAGE_VERSION
1058PACKAGE_TARNAME
1059PACKAGE_NAME
1060PATH_SEPARATOR
1061SHELL'
1062ac_subst_files=''
1063ac_user_opts='
1064enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001065enable_silent_rules
1066enable_dependency_tracking
1067with_gnu_ld
1068with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001069enable_bounds_checking
1070enable_osx_universal_binary
1071with_threads
1072enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001073enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001074enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001075enable_shared
1076enable_static
1077with_pic
1078enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001079with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001080enable_libtool_lock
1081with_included_ltdl
1082with_ltdl_include
1083with_ltdl_lib
1084enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001085with_modules
1086enable_delegate_build
1087enable_deprecated
1088enable_installed
1089enable_cipher
1090enable_embeddable
1091enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001092enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001093enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001094enable_ccmalloc
1095enable_efence
1096enable_prof
1097enable_gprof
1098enable_gcov
1099with_method_prefix
1100with_quantum_depth
1101with_cache
1102with_frozenpaths
1103with_magick_plus_plus
1104with_perl
1105with_perl_options
1106with_umem
1107with_libstdc
1108with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001109with_x
cristy3ed852e2009-09-05 21:47:34 +00001110with_zlib
1111with_autotrace
1112with_dps
1113with_djvu
cristy430a7312010-01-21 20:44:04 +00001114with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001115with_fftw
1116with_fpx
1117with_fontconfig
1118with_freetype
1119with_gslib
1120with_fontpath
1121with_gs_font_dir
1122with_gvc
1123with_jbig
1124with_jpeg
1125with_jp2
1126with_lcms
cristy71203402010-06-18 13:12:03 +00001127with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001128with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001129with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001130with_openexr
1131with_png
1132with_rsvg
1133with_tiff
1134with_windows_font_dir
1135with_wmf
1136with_xml
1137'
1138 ac_precious_vars='build_alias
1139host_alias
1140target_alias
1141CC
1142CFLAGS
1143LDFLAGS
1144LIBS
1145CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001146CPP
cristy3ed852e2009-09-05 21:47:34 +00001147CXX
1148CXXFLAGS
1149CCC
cristy73bd4a52010-10-05 11:24:23 +00001150PKG_CONFIG
1151CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001152XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001153AUTOTRACE_CFLAGS
1154AUTOTRACE_LIBS
1155FONTCONFIG_CFLAGS
1156FONTCONFIG_LIBS
1157GVC_CFLAGS
1158GVC_LIBS
1159LQR_CFLAGS
1160LQR_LIBS
1161OPENEXR_CFLAGS
1162OPENEXR_LIBS
1163RSVG_CFLAGS
1164RSVG_LIBS
1165CAIRO_SVG_CFLAGS
1166CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001167
1168
1169# Initialize some variables set by options.
1170ac_init_help=
1171ac_init_version=false
1172ac_unrecognized_opts=
1173ac_unrecognized_sep=
1174# The variables have the same names as the options, with
1175# dashes changed to underlines.
1176cache_file=/dev/null
1177exec_prefix=NONE
1178no_create=
1179no_recursion=
1180prefix=NONE
1181program_prefix=NONE
1182program_suffix=NONE
1183program_transform_name=s,x,x,
1184silent=
1185site=
1186srcdir=
1187verbose=
1188x_includes=NONE
1189x_libraries=NONE
1190
1191# Installation directory options.
1192# These are left unexpanded so users can "make install exec_prefix=/foo"
1193# and all the variables that are supposed to be based on exec_prefix
1194# by default will actually change.
1195# Use braces instead of parens because sh, perl, etc. also accept them.
1196# (The list follows the same order as the GNU Coding Standards.)
1197bindir='${exec_prefix}/bin'
1198sbindir='${exec_prefix}/sbin'
1199libexecdir='${exec_prefix}/libexec'
1200datarootdir='${prefix}/share'
1201datadir='${datarootdir}'
1202sysconfdir='${prefix}/etc'
1203sharedstatedir='${prefix}/com'
1204localstatedir='${prefix}/var'
1205includedir='${prefix}/include'
1206oldincludedir='/usr/include'
1207docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1208infodir='${datarootdir}/info'
1209htmldir='${docdir}'
1210dvidir='${docdir}'
1211pdfdir='${docdir}'
1212psdir='${docdir}'
1213libdir='${exec_prefix}/lib'
1214localedir='${datarootdir}/locale'
1215mandir='${datarootdir}/man'
1216
1217ac_prev=
1218ac_dashdash=
1219for ac_option
1220do
1221 # If the previous option needs an argument, assign it.
1222 if test -n "$ac_prev"; then
1223 eval $ac_prev=\$ac_option
1224 ac_prev=
1225 continue
1226 fi
1227
1228 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001229 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1230 *=) ac_optarg= ;;
1231 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001232 esac
1233
1234 # Accept the important Cygnus configure options, so we can diagnose typos.
1235
1236 case $ac_dashdash$ac_option in
1237 --)
1238 ac_dashdash=yes ;;
1239
1240 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1241 ac_prev=bindir ;;
1242 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1243 bindir=$ac_optarg ;;
1244
1245 -build | --build | --buil | --bui | --bu)
1246 ac_prev=build_alias ;;
1247 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1248 build_alias=$ac_optarg ;;
1249
1250 -cache-file | --cache-file | --cache-fil | --cache-fi \
1251 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1252 ac_prev=cache_file ;;
1253 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1254 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1255 cache_file=$ac_optarg ;;
1256
1257 --config-cache | -C)
1258 cache_file=config.cache ;;
1259
1260 -datadir | --datadir | --datadi | --datad)
1261 ac_prev=datadir ;;
1262 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1263 datadir=$ac_optarg ;;
1264
1265 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1266 | --dataroo | --dataro | --datar)
1267 ac_prev=datarootdir ;;
1268 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1269 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1270 datarootdir=$ac_optarg ;;
1271
1272 -disable-* | --disable-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001276 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"enable_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval enable_$ac_useropt=no ;;
1287
1288 -docdir | --docdir | --docdi | --doc | --do)
1289 ac_prev=docdir ;;
1290 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1291 docdir=$ac_optarg ;;
1292
1293 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1294 ac_prev=dvidir ;;
1295 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1296 dvidir=$ac_optarg ;;
1297
1298 -enable-* | --enable-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001302 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307"enable_$ac_useropt"
1308"*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval enable_$ac_useropt=\$ac_optarg ;;
1313
1314 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1315 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1316 | --exec | --exe | --ex)
1317 ac_prev=exec_prefix ;;
1318 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1319 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1320 | --exec=* | --exe=* | --ex=*)
1321 exec_prefix=$ac_optarg ;;
1322
1323 -gas | --gas | --ga | --g)
1324 # Obsolete; use --with-gas.
1325 with_gas=yes ;;
1326
1327 -help | --help | --hel | --he | -h)
1328 ac_init_help=long ;;
1329 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1330 ac_init_help=recursive ;;
1331 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1332 ac_init_help=short ;;
1333
1334 -host | --host | --hos | --ho)
1335 ac_prev=host_alias ;;
1336 -host=* | --host=* | --hos=* | --ho=*)
1337 host_alias=$ac_optarg ;;
1338
1339 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1340 ac_prev=htmldir ;;
1341 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1342 | --ht=*)
1343 htmldir=$ac_optarg ;;
1344
1345 -includedir | --includedir | --includedi | --included | --include \
1346 | --includ | --inclu | --incl | --inc)
1347 ac_prev=includedir ;;
1348 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1349 | --includ=* | --inclu=* | --incl=* | --inc=*)
1350 includedir=$ac_optarg ;;
1351
1352 -infodir | --infodir | --infodi | --infod | --info | --inf)
1353 ac_prev=infodir ;;
1354 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1355 infodir=$ac_optarg ;;
1356
1357 -libdir | --libdir | --libdi | --libd)
1358 ac_prev=libdir ;;
1359 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1360 libdir=$ac_optarg ;;
1361
1362 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1363 | --libexe | --libex | --libe)
1364 ac_prev=libexecdir ;;
1365 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1366 | --libexe=* | --libex=* | --libe=*)
1367 libexecdir=$ac_optarg ;;
1368
1369 -localedir | --localedir | --localedi | --localed | --locale)
1370 ac_prev=localedir ;;
1371 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1372 localedir=$ac_optarg ;;
1373
1374 -localstatedir | --localstatedir | --localstatedi | --localstated \
1375 | --localstate | --localstat | --localsta | --localst | --locals)
1376 ac_prev=localstatedir ;;
1377 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1378 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1379 localstatedir=$ac_optarg ;;
1380
1381 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1382 ac_prev=mandir ;;
1383 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1384 mandir=$ac_optarg ;;
1385
1386 -nfp | --nfp | --nf)
1387 # Obsolete; use --without-fp.
1388 with_fp=no ;;
1389
1390 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1391 | --no-cr | --no-c | -n)
1392 no_create=yes ;;
1393
1394 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1395 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1396 no_recursion=yes ;;
1397
1398 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1399 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1400 | --oldin | --oldi | --old | --ol | --o)
1401 ac_prev=oldincludedir ;;
1402 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1403 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1404 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1405 oldincludedir=$ac_optarg ;;
1406
1407 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1408 ac_prev=prefix ;;
1409 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1410 prefix=$ac_optarg ;;
1411
1412 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1413 | --program-pre | --program-pr | --program-p)
1414 ac_prev=program_prefix ;;
1415 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1416 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1417 program_prefix=$ac_optarg ;;
1418
1419 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1420 | --program-suf | --program-su | --program-s)
1421 ac_prev=program_suffix ;;
1422 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1423 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1424 program_suffix=$ac_optarg ;;
1425
1426 -program-transform-name | --program-transform-name \
1427 | --program-transform-nam | --program-transform-na \
1428 | --program-transform-n | --program-transform- \
1429 | --program-transform | --program-transfor \
1430 | --program-transfo | --program-transf \
1431 | --program-trans | --program-tran \
1432 | --progr-tra | --program-tr | --program-t)
1433 ac_prev=program_transform_name ;;
1434 -program-transform-name=* | --program-transform-name=* \
1435 | --program-transform-nam=* | --program-transform-na=* \
1436 | --program-transform-n=* | --program-transform-=* \
1437 | --program-transform=* | --program-transfor=* \
1438 | --program-transfo=* | --program-transf=* \
1439 | --program-trans=* | --program-tran=* \
1440 | --progr-tra=* | --program-tr=* | --program-t=*)
1441 program_transform_name=$ac_optarg ;;
1442
1443 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1444 ac_prev=pdfdir ;;
1445 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1446 pdfdir=$ac_optarg ;;
1447
1448 -psdir | --psdir | --psdi | --psd | --ps)
1449 ac_prev=psdir ;;
1450 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1451 psdir=$ac_optarg ;;
1452
1453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1454 | -silent | --silent | --silen | --sile | --sil)
1455 silent=yes ;;
1456
1457 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1458 ac_prev=sbindir ;;
1459 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1460 | --sbi=* | --sb=*)
1461 sbindir=$ac_optarg ;;
1462
1463 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1464 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1465 | --sharedst | --shareds | --shared | --share | --shar \
1466 | --sha | --sh)
1467 ac_prev=sharedstatedir ;;
1468 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1469 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1470 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1471 | --sha=* | --sh=*)
1472 sharedstatedir=$ac_optarg ;;
1473
1474 -site | --site | --sit)
1475 ac_prev=site ;;
1476 -site=* | --site=* | --sit=*)
1477 site=$ac_optarg ;;
1478
1479 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1480 ac_prev=srcdir ;;
1481 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1482 srcdir=$ac_optarg ;;
1483
1484 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1485 | --syscon | --sysco | --sysc | --sys | --sy)
1486 ac_prev=sysconfdir ;;
1487 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1488 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1489 sysconfdir=$ac_optarg ;;
1490
1491 -target | --target | --targe | --targ | --tar | --ta | --t)
1492 ac_prev=target_alias ;;
1493 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1494 target_alias=$ac_optarg ;;
1495
1496 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1497 verbose=yes ;;
1498
1499 -version | --version | --versio | --versi | --vers | -V)
1500 ac_init_version=: ;;
1501
1502 -with-* | --with-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001506 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1510 *"
1511"with_$ac_useropt"
1512"*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval with_$ac_useropt=\$ac_optarg ;;
1517
1518 -without-* | --without-*)
1519 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1520 # Reject names that are not valid shell variable names.
1521 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001522 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001523 ac_useropt_orig=$ac_useropt
1524 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1525 case $ac_user_opts in
1526 *"
1527"with_$ac_useropt"
1528"*) ;;
1529 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1530 ac_unrecognized_sep=', ';;
1531 esac
1532 eval with_$ac_useropt=no ;;
1533
1534 --x)
1535 # Obsolete; use --with-x.
1536 with_x=yes ;;
1537
1538 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1539 | --x-incl | --x-inc | --x-in | --x-i)
1540 ac_prev=x_includes ;;
1541 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1542 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1543 x_includes=$ac_optarg ;;
1544
1545 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1546 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1547 ac_prev=x_libraries ;;
1548 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1549 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1550 x_libraries=$ac_optarg ;;
1551
cristy98dddb52010-11-04 00:30:15 +00001552 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1553Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001554 ;;
1555
1556 *=*)
1557 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1558 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001559 case $ac_envvar in #(
1560 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001561 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001562 esac
cristy3ed852e2009-09-05 21:47:34 +00001563 eval $ac_envvar=\$ac_optarg
1564 export $ac_envvar ;;
1565
1566 *)
1567 # FIXME: should be removed in autoconf 3.0.
1568 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1569 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1570 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001571 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001572 ;;
1573
1574 esac
1575done
1576
1577if test -n "$ac_prev"; then
1578 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001580fi
1581
1582if test -n "$ac_unrecognized_opts"; then
1583 case $enable_option_checking in
1584 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001585 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001586 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1587 esac
1588fi
1589
1590# Check all directory arguments for consistency.
1591for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1592 datadir sysconfdir sharedstatedir localstatedir includedir \
1593 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1594 libdir localedir mandir
1595do
1596 eval ac_val=\$$ac_var
1597 # Remove trailing slashes.
1598 case $ac_val in
1599 */ )
1600 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1601 eval $ac_var=\$ac_val;;
1602 esac
1603 # Be sure to have absolute directory names.
1604 case $ac_val in
1605 [\\/$]* | ?:[\\/]* ) continue;;
1606 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1607 esac
cristy98dddb52010-11-04 00:30:15 +00001608 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001609done
1610
1611# There might be people who depend on the old broken behavior: `$host'
1612# used to hold the argument of --host etc.
1613# FIXME: To remove some day.
1614build=$build_alias
1615host=$host_alias
1616target=$target_alias
1617
1618# FIXME: To remove some day.
1619if test "x$host_alias" != x; then
1620 if test "x$build_alias" = x; then
1621 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001622 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1623 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001624 elif test "x$build_alias" != "x$host_alias"; then
1625 cross_compiling=yes
1626 fi
1627fi
1628
1629ac_tool_prefix=
1630test -n "$host_alias" && ac_tool_prefix=$host_alias-
1631
1632test "$silent" = yes && exec 6>/dev/null
1633
1634
1635ac_pwd=`pwd` && test -n "$ac_pwd" &&
1636ac_ls_di=`ls -di .` &&
1637ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001638 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001639test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001640 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001641
1642
1643# Find the source files, if location was not specified.
1644if test -z "$srcdir"; then
1645 ac_srcdir_defaulted=yes
1646 # Try the directory containing this script, then the parent directory.
1647 ac_confdir=`$as_dirname -- "$as_myself" ||
1648$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1649 X"$as_myself" : 'X\(//\)[^/]' \| \
1650 X"$as_myself" : 'X\(//\)$' \| \
1651 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1652$as_echo X"$as_myself" |
1653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1654 s//\1/
1655 q
1656 }
1657 /^X\(\/\/\)[^/].*/{
1658 s//\1/
1659 q
1660 }
1661 /^X\(\/\/\)$/{
1662 s//\1/
1663 q
1664 }
1665 /^X\(\/\).*/{
1666 s//\1/
1667 q
1668 }
1669 s/.*/./; q'`
1670 srcdir=$ac_confdir
1671 if test ! -r "$srcdir/$ac_unique_file"; then
1672 srcdir=..
1673 fi
1674else
1675 ac_srcdir_defaulted=no
1676fi
1677if test ! -r "$srcdir/$ac_unique_file"; then
1678 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001679 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001680fi
1681ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1682ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001683 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001684 pwd)`
1685# When building in place, set srcdir=.
1686if test "$ac_abs_confdir" = "$ac_pwd"; then
1687 srcdir=.
1688fi
1689# Remove unnecessary trailing slashes from srcdir.
1690# Double slashes in file names in object file debugging info
1691# mess up M-x gdb in Emacs.
1692case $srcdir in
1693*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1694esac
1695for ac_var in $ac_precious_vars; do
1696 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1697 eval ac_env_${ac_var}_value=\$${ac_var}
1698 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1699 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1700done
1701
1702#
1703# Report the --help message.
1704#
1705if test "$ac_init_help" = "long"; then
1706 # Omit some internal or obsolete options to make the list less imposing.
1707 # This message is too long to be a string in the A/UX 3.1 sh.
1708 cat <<_ACEOF
cristyee742642011-02-26 02:49:59 +00001709\`configure' configures ImageMagick 6.6.8 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001710
1711Usage: $0 [OPTION]... [VAR=VALUE]...
1712
1713To assign environment variables (e.g., CC, CFLAGS...), specify them as
1714VAR=VALUE. See below for descriptions of some of the useful variables.
1715
1716Defaults for the options are specified in brackets.
1717
1718Configuration:
1719 -h, --help display this help and exit
1720 --help=short display options specific to this package
1721 --help=recursive display the short help of all the included packages
1722 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001723 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001724 --cache-file=FILE cache test results in FILE [disabled]
1725 -C, --config-cache alias for \`--cache-file=config.cache'
1726 -n, --no-create do not create output files
1727 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1728
1729Installation directories:
1730 --prefix=PREFIX install architecture-independent files in PREFIX
1731 [$ac_default_prefix]
1732 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1733 [PREFIX]
1734
1735By default, \`make install' will install all the files in
1736\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1737an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1738for instance \`--prefix=\$HOME'.
1739
1740For better control, use the options below.
1741
1742Fine tuning of the installation directories:
1743 --bindir=DIR user executables [EPREFIX/bin]
1744 --sbindir=DIR system admin executables [EPREFIX/sbin]
1745 --libexecdir=DIR program executables [EPREFIX/libexec]
1746 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1747 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1748 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1749 --libdir=DIR object code libraries [EPREFIX/lib]
1750 --includedir=DIR C header files [PREFIX/include]
1751 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1752 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1753 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1754 --infodir=DIR info documentation [DATAROOTDIR/info]
1755 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1756 --mandir=DIR man documentation [DATAROOTDIR/man]
1757 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1758 --htmldir=DIR html documentation [DOCDIR]
1759 --dvidir=DIR dvi documentation [DOCDIR]
1760 --pdfdir=DIR pdf documentation [DOCDIR]
1761 --psdir=DIR ps documentation [DOCDIR]
1762_ACEOF
1763
1764 cat <<\_ACEOF
1765
cristy73bd4a52010-10-05 11:24:23 +00001766Program names:
1767 --program-prefix=PREFIX prepend PREFIX to installed program names
1768 --program-suffix=SUFFIX append SUFFIX to installed program names
1769 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1770
cristy3ed852e2009-09-05 21:47:34 +00001771X features:
1772 --x-includes=DIR X include files are in DIR
1773 --x-libraries=DIR X library files are in DIR
1774
1775System types:
1776 --build=BUILD configure for building on BUILD [guessed]
1777 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1778 --target=TARGET configure for building compilers for TARGET [HOST]
1779_ACEOF
1780fi
1781
1782if test -n "$ac_init_help"; then
1783 case $ac_init_help in
cristyee742642011-02-26 02:49:59 +00001784 short | recursive ) echo "Configuration of ImageMagick 6.6.8:";;
cristy3ed852e2009-09-05 21:47:34 +00001785 esac
1786 cat <<\_ACEOF
1787
1788Optional Features:
1789 --disable-option-checking ignore unrecognized --enable/--with options
1790 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1791 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001792 --enable-silent-rules less verbose build output (undo: `make V=1')
1793 --disable-silent-rules verbose build output (undo: `make V=0')
1794 --disable-dependency-tracking speeds up one-time build
1795 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001796 --bounds-checking enable run-time bounds-checking
1797 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001798 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001799 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001800 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001802 --enable-shared[=PKGS] build shared libraries [default=yes]
1803 --enable-static[=PKGS] build static libraries [default=yes]
1804 --enable-fast-install[=PKGS]
1805 optimize for fast installation [default=yes]
1806 --disable-libtool-lock avoid locking (might break parallel builds)
1807 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001808 --enable-delegate-build look for delegate libraries in build directory
1809 --disable-deprecated exclude deprecated methods in MagickCore and
1810 MagickWand API's
1811 --disable-installed Formally install ImageMagick under PREFIX
1812 --disable-cipher disable enciphering and deciphering image pixels
1813 --enable-embeddable enable self-contained, embeddable,
1814 zero-configuration ImageMagick
1815 --enable-hdri accurately represent the wide range of intensity
1816 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001817 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001818 --enable-maintainer-mode enable make rules and dependencies not useful
1819 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001820 --enable-ccmalloc enable 'ccmalloc' memory debug support
1821 --enable-efence enable 'efence' memory debug support
1822 --enable-prof enable 'prof' profiling support
1823 --enable-gprof enable 'gprof' profiling support
1824 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001825 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001826
1827Optional Packages:
1828 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1829 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001830 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1831 --with-dmalloc use dmalloc, as in
1832 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001833 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001834 --with-pic try to use only PIC/non-PIC objects [default=use
1835 both]
cristyda16f162011-02-19 23:52:17 +00001836 --with-sysroot=DIR Search for dependent libraries within DIR
1837 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001838 --with-included-ltdl use the GNU ltdl sources included here
1839 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1840 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001841 --with-modules enable building dynamically loadable modules
1842 --with-method-prefix=PREFIX
1843 prefix MagickCore API methods
1844 --with-quantum-depth=DEPTH
1845 number of bits in a pixel quantum (default 16)
1846 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1847 memory)
1848 --with-frozenpaths freeze delegate paths
1849 --without-magick-plus-plus
1850 disable build/install of Magick++
1851 --with-perl enable build/install of PerlMagick
1852 --with-perl-options=OPTIONS
1853 options to pass on command-line when generating
1854 PerlMagick's build file
1855 --with-umem enable umem memory allocation library support
1856 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1857 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001858 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001859 --without-zlib disable ZLIB support
1860 --with-autotrace enable autotrace support
1861 --without-dps disable Display Postscript support
1862 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001863 --with-dejavu-font-dir=DIR
1864 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001865 --without-fftw disable FFTW support
1866 --without-fpx disable FlashPIX support
1867 --without-fontconfig disable fontconfig support
1868 --without-freetype disable Freetype support
1869 --without-gslib enable Ghostscript library support
1870 --with-fontpath=DIR prepend to default font search path
1871 --with-gs-font-dir=DIR Ghostscript font directory
1872 --without-gvc disable GVC support
1873 --without-jbig disable JBIG support
1874 --without-jpeg disable JPEG support
1875 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001876 --without-lcms disable lcms (v1.1X) support
1877 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001878 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001879 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001880 --without-openexr disable OpenEXR support
1881 --without-png disable PNG support
1882 --without-rsvg disable RSVG support
1883 --without-tiff disable TIFF support
1884 --with-windows-font-dir=DIR
1885 directory containing MS-Windows fonts
1886 --without-wmf disable WMF support
1887 --without-xml disable XML support
1888
1889Some influential environment variables:
1890 CC C compiler command
1891 CFLAGS C compiler flags
1892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1893 nonstandard directory <lib dir>
1894 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001895 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001896 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001897 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001898 CXX C++ compiler command
1899 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001900 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001901 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001902 XMKMF Path to xmkmf, Makefile generator for X Window System
1903 AUTOTRACE_CFLAGS
1904 C compiler flags for AUTOTRACE, overriding pkg-config
1905 AUTOTRACE_LIBS
1906 linker flags for AUTOTRACE, overriding pkg-config
1907 FONTCONFIG_CFLAGS
1908 C compiler flags for FONTCONFIG, overriding pkg-config
1909 FONTCONFIG_LIBS
1910 linker flags for FONTCONFIG, overriding pkg-config
1911 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1912 GVC_LIBS linker flags for GVC, overriding pkg-config
1913 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1914 LQR_LIBS linker flags for LQR, overriding pkg-config
1915 OPENEXR_CFLAGS
1916 C compiler flags for OPENEXR, overriding pkg-config
1917 OPENEXR_LIBS
1918 linker flags for OPENEXR, overriding pkg-config
1919 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1920 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1921 CAIRO_SVG_CFLAGS
1922 C compiler flags for CAIRO_SVG, overriding pkg-config
1923 CAIRO_SVG_LIBS
1924 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001925
1926Use these variables to override the choices made by `configure' or to help
1927it to find libraries and programs with nonstandard names/locations.
1928
1929Report bugs to <http://www.imagemagick.org>.
1930_ACEOF
1931ac_status=$?
1932fi
1933
1934if test "$ac_init_help" = "recursive"; then
1935 # If there are subdirs, report their specific --help.
1936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1937 test -d "$ac_dir" ||
1938 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1939 continue
1940 ac_builddir=.
1941
1942case "$ac_dir" in
1943.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1944*)
1945 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1946 # A ".." for each directory in $ac_dir_suffix.
1947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1948 case $ac_top_builddir_sub in
1949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1951 esac ;;
1952esac
1953ac_abs_top_builddir=$ac_pwd
1954ac_abs_builddir=$ac_pwd$ac_dir_suffix
1955# for backward compatibility:
1956ac_top_builddir=$ac_top_build_prefix
1957
1958case $srcdir in
1959 .) # We are building in place.
1960 ac_srcdir=.
1961 ac_top_srcdir=$ac_top_builddir_sub
1962 ac_abs_top_srcdir=$ac_pwd ;;
1963 [\\/]* | ?:[\\/]* ) # Absolute name.
1964 ac_srcdir=$srcdir$ac_dir_suffix;
1965 ac_top_srcdir=$srcdir
1966 ac_abs_top_srcdir=$srcdir ;;
1967 *) # Relative name.
1968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1969 ac_top_srcdir=$ac_top_build_prefix$srcdir
1970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1971esac
1972ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1973
1974 cd "$ac_dir" || { ac_status=$?; continue; }
1975 # Check for guested configure.
1976 if test -f "$ac_srcdir/configure.gnu"; then
1977 echo &&
1978 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1979 elif test -f "$ac_srcdir/configure"; then
1980 echo &&
1981 $SHELL "$ac_srcdir/configure" --help=recursive
1982 else
1983 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1984 fi || ac_status=$?
1985 cd "$ac_pwd" || { ac_status=$?; break; }
1986 done
1987fi
1988
1989test -n "$ac_init_help" && exit $ac_status
1990if $ac_init_version; then
1991 cat <<\_ACEOF
cristyee742642011-02-26 02:49:59 +00001992ImageMagick configure 6.6.8
cristyda16f162011-02-19 23:52:17 +00001993generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00001994
cristy98dddb52010-11-04 00:30:15 +00001995Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001996This configure script is free software; the Free Software Foundation
1997gives unlimited permission to copy, distribute and modify it.
1998_ACEOF
1999 exit
2000fi
cristy8b350f62009-11-15 23:12:43 +00002001
2002## ------------------------ ##
2003## Autoconf initialization. ##
2004## ------------------------ ##
2005
2006# ac_fn_c_try_compile LINENO
2007# --------------------------
2008# Try to compile conftest.$ac_ext, and return whether this succeeded.
2009ac_fn_c_try_compile ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 rm -f conftest.$ac_objext
2013 if { { ac_try="$ac_compile"
2014case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2017esac
2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019$as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_compile") 2>conftest.err
2021 ac_status=$?
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2026 fi
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest.$ac_objext; then :
2032 ac_retval=0
2033else
2034 $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 ac_retval=1
2038fi
cristyda16f162011-02-19 23:52:17 +00002039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002040 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002041
2042} # ac_fn_c_try_compile
2043
cristy95646052009-11-28 23:05:30 +00002044# ac_fn_c_try_cpp LINENO
2045# ----------------------
2046# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_c_try_cpp ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 if { { ac_try="$ac_cpp conftest.$ac_ext"
2051case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054esac
2055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056$as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2058 ac_status=$?
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2063 fi
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002065 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2067 test ! -s conftest.err
2068 }; then :
2069 ac_retval=0
2070else
2071 $as_echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=1
2075fi
cristyda16f162011-02-19 23:52:17 +00002076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002077 as_fn_set_status $ac_retval
2078
2079} # ac_fn_c_try_cpp
2080
cristy8b350f62009-11-15 23:12:43 +00002081# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2082# -------------------------------------------------------
2083# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2084# the include files in INCLUDES and setting the cache variable VAR
2085# accordingly.
2086ac_fn_c_check_header_mongrel ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002089 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002092if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002093 $as_echo_n "(cached) " >&6
2094fi
2095eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098else
2099 # Is the header compilable?
2100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2101$as_echo_n "checking $2 usability... " >&6; }
2102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105#include <$2>
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_header_compiler=yes
2109else
2110 ac_header_compiler=no
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2114$as_echo "$ac_header_compiler" >&6; }
2115
2116# Is the header present?
2117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2118$as_echo_n "checking $2 presence... " >&6; }
2119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121#include <$2>
2122_ACEOF
2123if ac_fn_c_try_cpp "$LINENO"; then :
2124 ac_header_preproc=yes
2125else
2126 ac_header_preproc=no
2127fi
cristyda16f162011-02-19 23:52:17 +00002128rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2130$as_echo "$ac_header_preproc" >&6; }
2131
2132# So? What about this header?
2133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2134 yes:no: )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2136$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139 ;;
2140 no:yes:* )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2142$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2144$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2146$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2148$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002151( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002152## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002153## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002154 ) | sed "s/^/$as_me: WARNING: /" >&2
2155 ;;
2156esac
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2158$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002159if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002160 $as_echo_n "(cached) " >&6
2161else
2162 eval "$3=\$ac_header_compiler"
2163fi
2164eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166$as_echo "$ac_res" >&6; }
2167fi
cristyda16f162011-02-19 23:52:17 +00002168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002169
2170} # ac_fn_c_check_header_mongrel
2171
2172# ac_fn_c_try_run LINENO
2173# ----------------------
2174# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2175# that executables *can* be run.
2176ac_fn_c_try_run ()
2177{
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if { { ac_try="$ac_link"
2180case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183esac
2184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185$as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>&5
2187 ac_status=$?
2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2190 { { case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193esac
2194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195$as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_try") 2>&5
2197 ac_status=$?
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; }; }; then :
2200 ac_retval=0
2201else
2202 $as_echo "$as_me: program exited with status $ac_status" >&5
2203 $as_echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=$ac_status
2207fi
2208 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002210 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002211
2212} # ac_fn_c_try_run
2213
2214# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2215# -------------------------------------------------------
2216# Tests whether HEADER exists and can be compiled using the include files in
2217# INCLUDES, setting the cache variable VAR accordingly.
2218ac_fn_c_check_header_compile ()
2219{
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002223if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002224 $as_echo_n "(cached) " >&6
2225else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h. */
2228$4
2229#include <$2>
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$3=yes"
2233else
2234 eval "$3=no"
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002242
2243} # ac_fn_c_check_header_compile
2244
cristya0b81c32010-01-22 02:54:33 +00002245# ac_fn_cxx_try_compile LINENO
2246# ----------------------------
2247# Try to compile conftest.$ac_ext, and return whether this succeeded.
2248ac_fn_cxx_try_compile ()
2249{
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext
2252 if { { ac_try="$ac_compile"
2253case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256esac
2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258$as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_compile") 2>conftest.err
2260 ac_status=$?
2261 if test -s conftest.err; then
2262 grep -v '^ *+' conftest.err >conftest.er1
2263 cat conftest.er1 >&5
2264 mv -f conftest.er1 conftest.err
2265 fi
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_cxx_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest.$ac_objext; then :
2271 ac_retval=0
2272else
2273 $as_echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 ac_retval=1
2277fi
cristyda16f162011-02-19 23:52:17 +00002278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002279 as_fn_set_status $ac_retval
2280
2281} # ac_fn_cxx_try_compile
2282
cristy8b350f62009-11-15 23:12:43 +00002283# ac_fn_c_try_link LINENO
2284# -----------------------
2285# Try to link conftest.$ac_ext, and return whether this succeeded.
2286ac_fn_c_try_link ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext conftest$ac_exeext
2290 if { { ac_try="$ac_link"
2291case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296$as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_link") 2>conftest.err
2298 ac_status=$?
2299 if test -s conftest.err; then
2300 grep -v '^ *+' conftest.err >conftest.er1
2301 cat conftest.er1 >&5
2302 mv -f conftest.er1 conftest.err
2303 fi
2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305 test $ac_status = 0; } && {
2306 test -z "$ac_c_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest$ac_exeext && {
2309 test "$cross_compiling" = yes ||
2310 $as_test_x conftest$ac_exeext
2311 }; then :
2312 ac_retval=0
2313else
2314 $as_echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317 ac_retval=1
2318fi
2319 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2320 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2321 # interfere with the next link command; also delete a directory that is
2322 # left behind by Apple's compiler. We do this before executing the actions.
2323 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002325 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002326
2327} # ac_fn_c_try_link
2328
cristy73bd4a52010-10-05 11:24:23 +00002329# ac_fn_c_check_func LINENO FUNC VAR
2330# ----------------------------------
2331# Tests whether FUNC exists, setting the cache variable VAR accordingly
2332ac_fn_c_check_func ()
2333{
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002337if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002338 $as_echo_n "(cached) " >&6
2339else
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341/* end confdefs.h. */
2342/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2344#define $2 innocuous_$2
2345
2346/* System header to define __stub macros and hopefully few prototypes,
2347 which can conflict with char $2 (); below.
2348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2349 <limits.h> exists even on freestanding compilers. */
2350
2351#ifdef __STDC__
2352# include <limits.h>
2353#else
2354# include <assert.h>
2355#endif
2356
2357#undef $2
2358
2359/* Override any GCC internal prototype to avoid an error.
2360 Use char because int might match the return type of a GCC
2361 builtin and then its argument prototype would still apply. */
2362#ifdef __cplusplus
2363extern "C"
2364#endif
2365char $2 ();
2366/* The GNU C library defines this for functions which it implements
2367 to always fail with ENOSYS. Some functions are actually named
2368 something starting with __ and the normal name is an alias. */
2369#if defined __stub_$2 || defined __stub___$2
2370choke me
2371#endif
2372
2373int
2374main ()
2375{
2376return $2 ();
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381if ac_fn_c_try_link "$LINENO"; then :
2382 eval "$3=yes"
2383else
2384 eval "$3=no"
2385fi
2386rm -f core conftest.err conftest.$ac_objext \
2387 conftest$ac_exeext conftest.$ac_ext
2388fi
2389eval ac_res=\$$3
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2391$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002393
2394} # ac_fn_c_check_func
2395
2396# ac_fn_cxx_try_cpp LINENO
2397# ------------------------
2398# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2399ac_fn_cxx_try_cpp ()
2400{
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 if { { ac_try="$ac_cpp conftest.$ac_ext"
2403case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406esac
2407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2408$as_echo "$ac_try_echo"; } >&5
2409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2410 ac_status=$?
2411 if test -s conftest.err; then
2412 grep -v '^ *+' conftest.err >conftest.er1
2413 cat conftest.er1 >&5
2414 mv -f conftest.er1 conftest.err
2415 fi
2416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002417 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002418 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2419 test ! -s conftest.err
2420 }; then :
2421 ac_retval=0
2422else
2423 $as_echo "$as_me: failed program was:" >&5
2424sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_retval=1
2427fi
cristyda16f162011-02-19 23:52:17 +00002428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002429 as_fn_set_status $ac_retval
2430
2431} # ac_fn_cxx_try_cpp
2432
2433# ac_fn_cxx_try_link LINENO
2434# -------------------------
2435# Try to link conftest.$ac_ext, and return whether this succeeded.
2436ac_fn_cxx_try_link ()
2437{
2438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439 rm -f conftest.$ac_objext conftest$ac_exeext
2440 if { { ac_try="$ac_link"
2441case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444esac
2445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446$as_echo "$ac_try_echo"; } >&5
2447 (eval "$ac_link") 2>conftest.err
2448 ac_status=$?
2449 if test -s conftest.err; then
2450 grep -v '^ *+' conftest.err >conftest.er1
2451 cat conftest.er1 >&5
2452 mv -f conftest.er1 conftest.err
2453 fi
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455 test $ac_status = 0; } && {
2456 test -z "$ac_cxx_werror_flag" ||
2457 test ! -s conftest.err
2458 } && test -s conftest$ac_exeext && {
2459 test "$cross_compiling" = yes ||
2460 $as_test_x conftest$ac_exeext
2461 }; then :
2462 ac_retval=0
2463else
2464 $as_echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 ac_retval=1
2468fi
2469 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2470 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2471 # interfere with the next link command; also delete a directory that is
2472 # left behind by Apple's compiler. We do this before executing the actions.
2473 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002475 as_fn_set_status $ac_retval
2476
2477} # ac_fn_cxx_try_link
2478
cristy98dddb52010-11-04 00:30:15 +00002479# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2480# ---------------------------------------------
2481# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2482# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002483ac_fn_c_check_decl ()
2484{
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002486 as_decl_name=`echo $2|sed 's/ *(.*//'`
2487 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2489$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002490if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002491 $as_echo_n "(cached) " >&6
2492else
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494/* end confdefs.h. */
2495$4
2496int
2497main ()
2498{
cristy98dddb52010-11-04 00:30:15 +00002499#ifndef $as_decl_name
2500#ifdef __cplusplus
2501 (void) $as_decl_use;
2502#else
2503 (void) $as_decl_name;
2504#endif
cristy73bd4a52010-10-05 11:24:23 +00002505#endif
2506
2507 ;
2508 return 0;
2509}
2510_ACEOF
2511if ac_fn_c_try_compile "$LINENO"; then :
2512 eval "$3=yes"
2513else
2514 eval "$3=no"
2515fi
2516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517fi
2518eval ac_res=\$$3
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2520$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002522
2523} # ac_fn_c_check_decl
2524
cristy8b350f62009-11-15 23:12:43 +00002525# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2526# -------------------------------------------
2527# Tests whether TYPE exists after having included INCLUDES, setting cache
2528# variable VAR accordingly.
2529ac_fn_c_check_type ()
2530{
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002534if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002535 $as_echo_n "(cached) " >&6
2536else
2537 eval "$3=no"
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539/* end confdefs.h. */
2540$4
2541int
2542main ()
2543{
2544if (sizeof ($2))
2545 return 0;
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550if ac_fn_c_try_compile "$LINENO"; then :
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552/* end confdefs.h. */
2553$4
2554int
2555main ()
2556{
2557if (sizeof (($2)))
2558 return 0;
2559 ;
2560 return 0;
2561}
2562_ACEOF
2563if ac_fn_c_try_compile "$LINENO"; then :
2564
2565else
2566 eval "$3=yes"
2567fi
2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569fi
2570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571fi
2572eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002576
2577} # ac_fn_c_check_type
2578
cristy92703d82010-04-26 00:18:18 +00002579# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2580# ----------------------------------------------------
2581# Tries to find if the field MEMBER exists in type AGGR, after including
2582# INCLUDES, setting cache variable VAR accordingly.
2583ac_fn_c_check_member ()
2584{
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2587$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002588if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002589 $as_echo_n "(cached) " >&6
2590else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592/* end confdefs.h. */
2593$5
2594int
2595main ()
2596{
2597static $2 ac_aggr;
2598if (ac_aggr.$3)
2599return 0;
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604if ac_fn_c_try_compile "$LINENO"; then :
2605 eval "$4=yes"
2606else
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608/* end confdefs.h. */
2609$5
2610int
2611main ()
2612{
2613static $2 ac_aggr;
2614if (sizeof ac_aggr.$3)
2615return 0;
2616 ;
2617 return 0;
2618}
2619_ACEOF
2620if ac_fn_c_try_compile "$LINENO"; then :
2621 eval "$4=yes"
2622else
2623 eval "$4=no"
2624fi
2625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628fi
2629eval ac_res=\$$4
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002633
2634} # ac_fn_c_check_member
2635
cristy8b350f62009-11-15 23:12:43 +00002636# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2637# --------------------------------------------
2638# Tries to find the compile-time value of EXPR in a program that includes
2639# INCLUDES, setting VAR accordingly. Returns whether the value could be
2640# computed
2641ac_fn_c_compute_int ()
2642{
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 if test "$cross_compiling" = yes; then
2645 # Depending upon the size, compute the lo and hi bounds.
2646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */
2648$4
2649int
2650main ()
2651{
2652static int test_array [1 - 2 * !(($2) >= 0)];
2653test_array [0] = 0
2654
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659if ac_fn_c_try_compile "$LINENO"; then :
2660 ac_lo=0 ac_mid=0
2661 while :; do
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665int
2666main ()
2667{
2668static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2669test_array [0] = 0
2670
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676 ac_hi=$ac_mid; break
2677else
2678 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2679 if test $ac_lo -le $ac_mid; then
2680 ac_lo= ac_hi=
2681 break
2682 fi
2683 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2684fi
2685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 done
2687else
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689/* end confdefs.h. */
2690$4
2691int
2692main ()
2693{
2694static int test_array [1 - 2 * !(($2) < 0)];
2695test_array [0] = 0
2696
2697 ;
2698 return 0;
2699}
2700_ACEOF
2701if ac_fn_c_try_compile "$LINENO"; then :
2702 ac_hi=-1 ac_mid=-1
2703 while :; do
2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705/* end confdefs.h. */
2706$4
2707int
2708main ()
2709{
2710static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2711test_array [0] = 0
2712
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717if ac_fn_c_try_compile "$LINENO"; then :
2718 ac_lo=$ac_mid; break
2719else
2720 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2721 if test $ac_mid -le $ac_hi; then
2722 ac_lo= ac_hi=
2723 break
2724 fi
2725 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2726fi
2727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 done
2729else
2730 ac_lo= ac_hi=
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735# Binary search between lo and hi bounds.
2736while test "x$ac_lo" != "x$ac_hi"; do
2737 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h. */
2740$4
2741int
2742main ()
2743{
2744static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2745test_array [0] = 0
2746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751if ac_fn_c_try_compile "$LINENO"; then :
2752 ac_hi=$ac_mid
2753else
2754 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2755fi
2756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757done
2758case $ac_lo in #((
2759?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2760'') ac_retval=1 ;;
2761esac
2762 else
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764/* end confdefs.h. */
2765$4
2766static long int longval () { return $2; }
2767static unsigned long int ulongval () { return $2; }
2768#include <stdio.h>
2769#include <stdlib.h>
2770int
2771main ()
2772{
2773
2774 FILE *f = fopen ("conftest.val", "w");
2775 if (! f)
2776 return 1;
2777 if (($2) < 0)
2778 {
2779 long int i = longval ();
2780 if (i != ($2))
2781 return 1;
2782 fprintf (f, "%ld", i);
2783 }
2784 else
2785 {
2786 unsigned long int i = ulongval ();
2787 if (i != ($2))
2788 return 1;
2789 fprintf (f, "%lu", i);
2790 }
2791 /* Do not output a trailing newline, as this causes \r\n confusion
2792 on some platforms. */
2793 return ferror (f) || fclose (f) != 0;
2794
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799if ac_fn_c_try_run "$LINENO"; then :
2800 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2801else
2802 ac_retval=1
2803fi
2804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2805 conftest.$ac_objext conftest.beam conftest.$ac_ext
2806rm -f conftest.val
2807
2808 fi
cristyda16f162011-02-19 23:52:17 +00002809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002810 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002811
2812} # ac_fn_c_compute_int
2813
2814# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2815# ---------------------------------------------------------
2816# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2817# the include files in INCLUDES and setting the cache variable VAR
2818# accordingly.
2819ac_fn_cxx_check_header_mongrel ()
2820{
2821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002822 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2824$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002825if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002826 $as_echo_n "(cached) " >&6
2827fi
2828eval ac_res=\$$3
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2830$as_echo "$ac_res" >&6; }
2831else
2832 # Is the header compilable?
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2834$as_echo_n "checking $2 usability... " >&6; }
2835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836/* end confdefs.h. */
2837$4
2838#include <$2>
2839_ACEOF
2840if ac_fn_cxx_try_compile "$LINENO"; then :
2841 ac_header_compiler=yes
2842else
2843 ac_header_compiler=no
2844fi
2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2847$as_echo "$ac_header_compiler" >&6; }
2848
2849# Is the header present?
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2851$as_echo_n "checking $2 presence... " >&6; }
2852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853/* end confdefs.h. */
2854#include <$2>
2855_ACEOF
2856if ac_fn_cxx_try_cpp "$LINENO"; then :
2857 ac_header_preproc=yes
2858else
2859 ac_header_preproc=no
2860fi
cristyda16f162011-02-19 23:52:17 +00002861rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2863$as_echo "$ac_header_preproc" >&6; }
2864
2865# So? What about this header?
2866case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2867 yes:no: )
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2869$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2871$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2872 ;;
2873 no:yes:* )
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2875$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2877$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2879$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2881$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2883$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002884( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002885## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002886## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002887 ) | sed "s/^/$as_me: WARNING: /" >&2
2888 ;;
2889esac
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2891$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002892if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002893 $as_echo_n "(cached) " >&6
2894else
2895 eval "$3=\$ac_header_compiler"
2896fi
2897eval ac_res=\$$3
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2899$as_echo "$ac_res" >&6; }
2900fi
cristyda16f162011-02-19 23:52:17 +00002901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002902
2903} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002904cat >config.log <<_ACEOF
2905This file contains any messages produced by compilers while
2906running configure, to aid debugging if configure makes a mistake.
2907
cristyee742642011-02-26 02:49:59 +00002908It was created by ImageMagick $as_me 6.6.8, which was
cristyda16f162011-02-19 23:52:17 +00002909generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002910
2911 $ $0 $@
2912
2913_ACEOF
2914exec 5>>config.log
2915{
2916cat <<_ASUNAME
2917## --------- ##
2918## Platform. ##
2919## --------- ##
2920
2921hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2922uname -m = `(uname -m) 2>/dev/null || echo unknown`
2923uname -r = `(uname -r) 2>/dev/null || echo unknown`
2924uname -s = `(uname -s) 2>/dev/null || echo unknown`
2925uname -v = `(uname -v) 2>/dev/null || echo unknown`
2926
2927/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2928/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2929
2930/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2931/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2932/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2933/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2934/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2935/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2936/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2937
2938_ASUNAME
2939
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002945 $as_echo "PATH: $as_dir"
2946 done
cristy3ed852e2009-09-05 21:47:34 +00002947IFS=$as_save_IFS
2948
2949} >&5
2950
2951cat >&5 <<_ACEOF
2952
2953
2954## ----------- ##
2955## Core tests. ##
2956## ----------- ##
2957
2958_ACEOF
2959
2960
2961# Keep a trace of the command line.
2962# Strip out --no-create and --no-recursion so they do not pile up.
2963# Strip out --silent because we don't want to record it for future runs.
2964# Also quote any args containing shell meta-characters.
2965# Make two passes to allow for proper duplicate-argument suppression.
2966ac_configure_args=
2967ac_configure_args0=
2968ac_configure_args1=
2969ac_must_keep_next=false
2970for ac_pass in 1 2
2971do
2972 for ac_arg
2973 do
2974 case $ac_arg in
2975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2977 | -silent | --silent | --silen | --sile | --sil)
2978 continue ;;
2979 *\'*)
2980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2981 esac
2982 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002984 2)
cristy8b350f62009-11-15 23:12:43 +00002985 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002986 if test $ac_must_keep_next = true; then
2987 ac_must_keep_next=false # Got value, back to normal.
2988 else
2989 case $ac_arg in
2990 *=* | --config-cache | -C | -disable-* | --disable-* \
2991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2993 | -with-* | --with-* | -without-* | --without-* | --x)
2994 case "$ac_configure_args0 " in
2995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2996 esac
2997 ;;
2998 -* ) ac_must_keep_next=true ;;
2999 esac
3000 fi
cristy8b350f62009-11-15 23:12:43 +00003001 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003002 ;;
3003 esac
3004 done
3005done
cristy8b350f62009-11-15 23:12:43 +00003006{ ac_configure_args0=; unset ac_configure_args0;}
3007{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003008
3009# When interrupted or exit'd, cleanup temporary files, and complete
3010# config.log. We remove comments because anyway the quotes in there
3011# would cause problems or look ugly.
3012# WARNING: Use '\'' to represent an apostrophe within the trap.
3013# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3014trap 'exit_status=$?
3015 # Save into config.log some information that might help in debugging.
3016 {
3017 echo
3018
cristy98dddb52010-11-04 00:30:15 +00003019 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003020## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003021## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003022 echo
3023 # The following way of writing the cache mishandles newlines in values,
3024(
3025 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3026 eval ac_val=\$$ac_var
3027 case $ac_val in #(
3028 *${as_nl}*)
3029 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003031$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3032 esac
3033 case $ac_var in #(
3034 _ | IFS | as_nl) ;; #(
3035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003036 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003037 esac ;;
3038 esac
3039 done
3040 (set) 2>&1 |
3041 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3042 *${as_nl}ac_space=\ *)
3043 sed -n \
3044 "s/'\''/'\''\\\\'\'''\''/g;
3045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3046 ;; #(
3047 *)
3048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3049 ;;
3050 esac |
3051 sort
3052)
3053 echo
3054
cristy98dddb52010-11-04 00:30:15 +00003055 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003056## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003057## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003058 echo
3059 for ac_var in $ac_subst_vars
3060 do
3061 eval ac_val=\$$ac_var
3062 case $ac_val in
3063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3064 esac
3065 $as_echo "$ac_var='\''$ac_val'\''"
3066 done | sort
3067 echo
3068
3069 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003070 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003071## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003072## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003073 echo
3074 for ac_var in $ac_subst_files
3075 do
3076 eval ac_val=\$$ac_var
3077 case $ac_val in
3078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3079 esac
3080 $as_echo "$ac_var='\''$ac_val'\''"
3081 done | sort
3082 echo
3083 fi
3084
3085 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003086 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003087## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003088## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003089 echo
3090 cat confdefs.h
3091 echo
3092 fi
3093 test "$ac_signal" != 0 &&
3094 $as_echo "$as_me: caught signal $ac_signal"
3095 $as_echo "$as_me: exit $exit_status"
3096 } >&5
3097 rm -f core *.core core.conftest.* &&
3098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3099 exit $exit_status
3100' 0
3101for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003103done
3104ac_signal=0
3105
3106# confdefs.h avoids OS command line length limits that DEFS can exceed.
3107rm -f -r conftest* confdefs.h
3108
cristy8b350f62009-11-15 23:12:43 +00003109$as_echo "/* confdefs.h */" > confdefs.h
3110
cristy3ed852e2009-09-05 21:47:34 +00003111# Predefined preprocessor variables.
3112
3113cat >>confdefs.h <<_ACEOF
3114#define PACKAGE_NAME "$PACKAGE_NAME"
3115_ACEOF
3116
cristy3ed852e2009-09-05 21:47:34 +00003117cat >>confdefs.h <<_ACEOF
3118#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3119_ACEOF
3120
cristy3ed852e2009-09-05 21:47:34 +00003121cat >>confdefs.h <<_ACEOF
3122#define PACKAGE_VERSION "$PACKAGE_VERSION"
3123_ACEOF
3124
cristy3ed852e2009-09-05 21:47:34 +00003125cat >>confdefs.h <<_ACEOF
3126#define PACKAGE_STRING "$PACKAGE_STRING"
3127_ACEOF
3128
cristy3ed852e2009-09-05 21:47:34 +00003129cat >>confdefs.h <<_ACEOF
3130#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3131_ACEOF
3132
cristy8b350f62009-11-15 23:12:43 +00003133cat >>confdefs.h <<_ACEOF
3134#define PACKAGE_URL "$PACKAGE_URL"
3135_ACEOF
3136
cristy3ed852e2009-09-05 21:47:34 +00003137
3138# Let the site file select an alternate cache file if it wants to.
3139# Prefer an explicitly selected file to automatically selected ones.
3140ac_site_file1=NONE
3141ac_site_file2=NONE
3142if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003143 # We do not want a PATH search for config.site.
3144 case $CONFIG_SITE in #((
3145 -*) ac_site_file1=./$CONFIG_SITE;;
3146 */*) ac_site_file1=$CONFIG_SITE;;
3147 *) ac_site_file1=./$CONFIG_SITE;;
3148 esac
cristy3ed852e2009-09-05 21:47:34 +00003149elif test "x$prefix" != xNONE; then
3150 ac_site_file1=$prefix/share/config.site
3151 ac_site_file2=$prefix/etc/config.site
3152else
3153 ac_site_file1=$ac_default_prefix/share/config.site
3154 ac_site_file2=$ac_default_prefix/etc/config.site
3155fi
3156for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3157do
3158 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003159 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003161$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3162 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003163 . "$ac_site_file" \
3164 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166as_fn_error $? "failed to load site script $ac_site_file
3167See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003168 fi
3169done
3170
3171if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003172 # Some versions of bash will fail to source /dev/null (special files
3173 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003176$as_echo "$as_me: loading cache $cache_file" >&6;}
3177 case $cache_file in
3178 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3179 *) . "./$cache_file";;
3180 esac
3181 fi
3182else
cristy8b350f62009-11-15 23:12:43 +00003183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003184$as_echo "$as_me: creating cache $cache_file" >&6;}
3185 >$cache_file
3186fi
3187
cristycd4c5312009-11-22 01:19:08 +00003188as_fn_append ac_header_list " stdlib.h"
3189as_fn_append ac_header_list " unistd.h"
3190as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003191# Check that the precious variables saved in the cache have kept the same
3192# value.
3193ac_cache_corrupted=false
3194for ac_var in $ac_precious_vars; do
3195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3196 eval ac_new_set=\$ac_env_${ac_var}_set
3197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3198 eval ac_new_val=\$ac_env_${ac_var}_value
3199 case $ac_old_set,$ac_new_set in
3200 set,)
cristy8b350f62009-11-15 23:12:43 +00003201 { $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 +00003202$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3203 ac_cache_corrupted=: ;;
3204 ,set)
cristy8b350f62009-11-15 23:12:43 +00003205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003206$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3207 ac_cache_corrupted=: ;;
3208 ,);;
3209 *)
3210 if test "x$ac_old_val" != "x$ac_new_val"; then
3211 # differences in whitespace do not lead to failure.
3212 ac_old_val_w=`echo x $ac_old_val`
3213 ac_new_val_w=`echo x $ac_new_val`
3214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003216$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3217 ac_cache_corrupted=:
3218 else
cristy8b350f62009-11-15 23:12:43 +00003219 { $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 +00003220$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3221 eval $ac_var=\$ac_old_val
3222 fi
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003226$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3227 fi;;
3228 esac
3229 # Pass precious variables to config.status.
3230 if test "$ac_new_set" = set; then
3231 case $ac_new_val in
3232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3233 *) ac_arg=$ac_var=$ac_new_val ;;
3234 esac
3235 case " $ac_configure_args " in
3236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003238 esac
3239 fi
3240done
3241if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003245$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003247fi
cristy8b350f62009-11-15 23:12:43 +00003248## -------------------- ##
3249## Main body of script. ##
3250## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003251
3252ac_ext=c
3253ac_cpp='$CPP $CPPFLAGS'
3254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257
3258
3259
3260ac_aux_dir=
3261for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003262 if test -f "$ac_dir/install-sh"; then
3263 ac_aux_dir=$ac_dir
3264 ac_install_sh="$ac_aux_dir/install-sh -c"
3265 break
3266 elif test -f "$ac_dir/install.sh"; then
3267 ac_aux_dir=$ac_dir
3268 ac_install_sh="$ac_aux_dir/install.sh -c"
3269 break
3270 elif test -f "$ac_dir/shtool"; then
3271 ac_aux_dir=$ac_dir
3272 ac_install_sh="$ac_aux_dir/shtool install -c"
3273 break
3274 fi
cristy3ed852e2009-09-05 21:47:34 +00003275done
3276if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003277 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003278fi
3279
3280# These three variables are undocumented and unsupported,
3281# and are intended to be withdrawn in a future Autoconf release.
3282# They can cause serious problems if a builder's source tree is in a directory
3283# whose full name contains unusual characters.
3284ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3285ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3286ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3287
3288
3289
3290
3291ac_config_headers="$ac_config_headers config/config.h"
3292
cristy24fc1fe2010-10-23 21:13:01 +00003293
cristy73bd4a52010-10-05 11:24:23 +00003294ac_config_commands="$ac_config_commands magick/magick-config.h"
3295
cristy430a7312010-01-21 20:44:04 +00003296ac_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 +00003297
3298
3299#
3300# Save initial user-tunable values
3301#
3302USER_LIBS=$LIBS
3303for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3304 eval isset=\${$var+set}
3305 if test "$isset" = 'set'; then
3306 eval val=$`echo $var`
3307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3308 fi
3309done
3310
3311
3312CONFIGURE_ARGS="$0 ${ac_configure_args}"
3313
3314
3315# Source file containing package/library versioning information.
3316. ${srcdir}/version.sh
3317
cristy15a88782010-01-31 23:24:49 +00003318echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003319# Make sure we can run config.sub.
3320$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003321 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003322
cristy8b350f62009-11-15 23:12:43 +00003323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003324$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003325if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003326 $as_echo_n "(cached) " >&6
3327else
3328 ac_build_alias=$build_alias
3329test "x$ac_build_alias" = x &&
3330 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3331test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003332 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003333ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003334 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003335
3336fi
cristy8b350f62009-11-15 23:12:43 +00003337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo "$ac_cv_build" >&6; }
3339case $ac_cv_build in
3340*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003341*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003342esac
3343build=$ac_cv_build
3344ac_save_IFS=$IFS; IFS='-'
3345set x $ac_cv_build
3346shift
3347build_cpu=$1
3348build_vendor=$2
3349shift; shift
3350# Remember, the first character of IFS is used to create $*,
3351# except with old shells:
3352build_os=$*
3353IFS=$ac_save_IFS
3354case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3355
3356
cristy8b350f62009-11-15 23:12:43 +00003357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003358$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003359if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003360 $as_echo_n "(cached) " >&6
3361else
3362 if test "x$host_alias" = x; then
3363 ac_cv_host=$ac_cv_build
3364else
3365 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003366 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003367fi
3368
3369fi
cristy8b350f62009-11-15 23:12:43 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo "$ac_cv_host" >&6; }
3372case $ac_cv_host in
3373*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003374*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003375esac
3376host=$ac_cv_host
3377ac_save_IFS=$IFS; IFS='-'
3378set x $ac_cv_host
3379shift
3380host_cpu=$1
3381host_vendor=$2
3382shift; shift
3383# Remember, the first character of IFS is used to create $*,
3384# except with old shells:
3385host_os=$*
3386IFS=$ac_save_IFS
3387case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3388
3389
cristy8b350f62009-11-15 23:12:43 +00003390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003391$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003392if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003393 $as_echo_n "(cached) " >&6
3394else
3395 if test "x$target_alias" = x; then
3396 ac_cv_target=$ac_cv_host
3397else
3398 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003399 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003400fi
3401
3402fi
cristy8b350f62009-11-15 23:12:43 +00003403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003404$as_echo "$ac_cv_target" >&6; }
3405case $ac_cv_target in
3406*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003407*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003408esac
3409target=$ac_cv_target
3410ac_save_IFS=$IFS; IFS='-'
3411set x $ac_cv_target
3412shift
3413target_cpu=$1
3414target_vendor=$2
3415shift; shift
3416# Remember, the first character of IFS is used to create $*,
3417# except with old shells:
3418target_os=$*
3419IFS=$ac_save_IFS
3420case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3421
3422
3423# The aliases save the names the user supplied, while $host etc.
3424# will get canonicalized.
3425test -n "$target_alias" &&
3426 test "$program_prefix$program_suffix$program_transform_name" = \
3427 NONENONEs,x,x, &&
3428 program_prefix=${target_alias}-
3429
cristy837d6dc2010-02-27 01:16:57 +00003430
3431
3432
3433
cristy3225a072010-04-17 01:47:28 +00003434MAGICK_TARGET_CPU=$target_cpu
3435
3436
3437MAGICK_TARGET_VENDOR=$target_vendor
3438
3439
3440MAGICK_TARGET_OS=$target_os
3441
3442
cristy3ed852e2009-09-05 21:47:34 +00003443# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003444MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3445
3446MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3447
cristy3ed852e2009-09-05 21:47:34 +00003448
3449
3450# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3452$as_echo_n "checking whether build environment is sane... " >&6; }
3453# Just in case
3454sleep 1
3455echo timestamp > conftest.file
3456# Reject unsafe characters in $srcdir or the absolute working directory
3457# name. Accept space and tab only in the latter.
3458am_lf='
3459'
3460case `pwd` in
3461 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003463esac
3464case $srcdir in
3465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003466 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003467esac
cristy3ed852e2009-09-05 21:47:34 +00003468
cristy73bd4a52010-10-05 11:24:23 +00003469# Do `set' in a subshell so we don't clobber the current shell's
3470# arguments. Must try -L first in case configure is actually a
3471# symlink; some systems play weird games with the mod time of symlinks
3472# (eg FreeBSD returns the mod time of the symlink's containing
3473# directory).
3474if (
3475 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3476 if test "$*" = "X"; then
3477 # -L didn't work.
3478 set X `ls -t "$srcdir/configure" conftest.file`
3479 fi
3480 rm -f conftest.file
3481 if test "$*" != "X $srcdir/configure conftest.file" \
3482 && test "$*" != "X conftest.file $srcdir/configure"; then
3483
3484 # If neither matched, then we have a broken ls. This can happen
3485 # if, for instance, CONFIG_SHELL is bash and it inherits a
3486 # broken ls alias from the environment. This has actually
3487 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003488 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003489alias in your environment" "$LINENO" 5
3490 fi
3491
3492 test "$2" = conftest.file
3493 )
3494then
3495 # Ok.
3496 :
3497else
cristy98dddb52010-11-04 00:30:15 +00003498 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003499Check your system clock" "$LINENO" 5
3500fi
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3502$as_echo "yes" >&6; }
3503
3504am__api_version='1.11'
3505
3506# Find a good install program. We prefer a C program (faster),
3507# so one script is as good as another. But avoid the broken or
3508# incompatible versions:
3509# SysV /etc/install, /usr/sbin/install
3510# SunOS /usr/etc/install
3511# IRIX /sbin/install
3512# AIX /bin/install
3513# AmigaOS /C/install, which installs bootblocks on floppy discs
3514# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3515# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3516# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3517# OS/2's system install, which has a completely different semantic
3518# ./install, which can be erroneously created by make from ./install.sh.
3519# Reject install programs that cannot install multiple files.
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3521$as_echo_n "checking for a BSD-compatible install... " >&6; }
3522if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003523if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003524 $as_echo_n "(cached) " >&6
3525else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 # Account for people who put trailing slashes in PATH elements.
3532case $as_dir/ in #((
3533 ./ | .// | /[cC]/* | \
3534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3535 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3536 /usr/ucb/* ) ;;
3537 *)
3538 # OSF1 and SCO ODT 3.0 have their own names for install.
3539 # Don't use installbsd from OSF since it installs stuff as root
3540 # by default.
3541 for ac_prog in ginstall scoinst install; do
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3544 if test $ac_prog = install &&
3545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3546 # AIX install. It has an incompatible calling convention.
3547 :
3548 elif test $ac_prog = install &&
3549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3550 # program-specific install script used by HP pwplus--don't use.
3551 :
3552 else
3553 rm -rf conftest.one conftest.two conftest.dir
3554 echo one > conftest.one
3555 echo two > conftest.two
3556 mkdir conftest.dir
3557 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3558 test -s conftest.one && test -s conftest.two &&
3559 test -s conftest.dir/conftest.one &&
3560 test -s conftest.dir/conftest.two
3561 then
3562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3563 break 3
3564 fi
3565 fi
3566 fi
3567 done
3568 done
3569 ;;
3570esac
3571
3572 done
3573IFS=$as_save_IFS
3574
3575rm -rf conftest.one conftest.two conftest.dir
3576
3577fi
3578 if test "${ac_cv_path_install+set}" = set; then
3579 INSTALL=$ac_cv_path_install
3580 else
3581 # As a last resort, use the slow shell script. Don't cache a
3582 # value for INSTALL within a source directory, because that will
3583 # break other packages using the cache if that directory is
3584 # removed, or if the value is a relative name.
3585 INSTALL=$ac_install_sh
3586 fi
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3589$as_echo "$INSTALL" >&6; }
3590
3591# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3592# It thinks the first close brace ends the variable substitution.
3593test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3594
3595test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3596
3597test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3598
3599test "$program_prefix" != NONE &&
3600 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3601# Use a double $ so make ignores it.
3602test "$program_suffix" != NONE &&
3603 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3604# Double any \ or $.
3605# By default was `s,x,x', remove it if useless.
3606ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3607program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3608
3609# expand $ac_aux_dir to an absolute path
3610am_aux_dir=`cd $ac_aux_dir && pwd`
3611
3612if test x"${MISSING+set}" != xset; then
3613 case $am_aux_dir in
3614 *\ * | *\ *)
3615 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3616 *)
3617 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3618 esac
3619fi
3620# Use eval to expand $SHELL
3621if eval "$MISSING --run true"; then
3622 am_missing_run="$MISSING --run "
3623else
3624 am_missing_run=
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3626$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3627fi
3628
3629if test x"${install_sh}" != xset; then
3630 case $am_aux_dir in
3631 *\ * | *\ *)
3632 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3633 *)
3634 install_sh="\${SHELL} $am_aux_dir/install-sh"
3635 esac
3636fi
3637
3638# Installed binaries are usually stripped using `strip' when the user
3639# run `make install-strip'. However `strip' might not be the right
3640# tool to use in cross-compilation environments, therefore Automake
3641# will honor the `STRIP' environment variable to overrule this program.
3642if test "$cross_compiling" != no; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3645set dummy ${ac_tool_prefix}strip; ac_word=$2
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003648if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003649 $as_echo_n "(cached) " >&6
3650else
3651 if test -n "$STRIP"; then
3652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665done
3666 done
3667IFS=$as_save_IFS
3668
3669fi
3670fi
3671STRIP=$ac_cv_prog_STRIP
3672if test -n "$STRIP"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3674$as_echo "$STRIP" >&6; }
3675else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677$as_echo "no" >&6; }
3678fi
3679
3680
3681fi
3682if test -z "$ac_cv_prog_STRIP"; then
3683 ac_ct_STRIP=$STRIP
3684 # Extract the first word of "strip", so it can be a program name with args.
3685set dummy strip; ac_word=$2
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003688if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003689 $as_echo_n "(cached) " >&6
3690else
3691 if test -n "$ac_ct_STRIP"; then
3692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_ac_ct_STRIP="strip"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706 done
3707IFS=$as_save_IFS
3708
3709fi
3710fi
3711ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3712if test -n "$ac_ct_STRIP"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3714$as_echo "$ac_ct_STRIP" >&6; }
3715else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717$as_echo "no" >&6; }
3718fi
3719
3720 if test "x$ac_ct_STRIP" = x; then
3721 STRIP=":"
3722 else
3723 case $cross_compiling:$ac_tool_warned in
3724yes:)
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727ac_tool_warned=yes ;;
3728esac
3729 STRIP=$ac_ct_STRIP
3730 fi
3731else
3732 STRIP="$ac_cv_prog_STRIP"
3733fi
3734
3735fi
3736INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3737
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3739$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3740if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003741 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003742 $as_echo_n "(cached) " >&6
3743else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_prog in mkdir gmkdir; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3752 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3753 'mkdir (GNU coreutils) '* | \
3754 'mkdir (coreutils) '* | \
3755 'mkdir (fileutils) '4.1*)
3756 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3757 break 3;;
3758 esac
3759 done
3760 done
3761 done
3762IFS=$as_save_IFS
3763
3764fi
3765
3766 test -d ./--version && rmdir ./--version
3767 if test "${ac_cv_path_mkdir+set}" = set; then
3768 MKDIR_P="$ac_cv_path_mkdir -p"
3769 else
3770 # As a last resort, use the slow shell script. Don't cache a
3771 # value for MKDIR_P within a source directory, because that will
3772 # break other packages using the cache if that directory is
3773 # removed, or if the value is a relative name.
3774 MKDIR_P="$ac_install_sh -d"
3775 fi
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3778$as_echo "$MKDIR_P" >&6; }
3779
3780mkdir_p="$MKDIR_P"
3781case $mkdir_p in
3782 [\\/$]* | ?:[\\/]*) ;;
3783 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3784esac
3785
3786for ac_prog in gawk mawk nawk awk
3787do
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789set dummy $ac_prog; ac_word=$2
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003792if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003793 $as_echo_n "(cached) " >&6
3794else
3795 if test -n "$AWK"; then
3796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3797else
3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_AWK="$ac_prog"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809done
3810 done
3811IFS=$as_save_IFS
3812
3813fi
3814fi
3815AWK=$ac_cv_prog_AWK
3816if test -n "$AWK"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3818$as_echo "$AWK" >&6; }
3819else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821$as_echo "no" >&6; }
3822fi
3823
3824
3825 test -n "$AWK" && break
3826done
3827
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3829$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3830set x ${MAKE-make}
3831ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003832if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003833 $as_echo_n "(cached) " >&6
3834else
3835 cat >conftest.make <<\_ACEOF
3836SHELL = /bin/sh
3837all:
3838 @echo '@@@%%%=$(MAKE)=@@@%%%'
3839_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003840# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003841case `${MAKE-make} -f conftest.make 2>/dev/null` in
3842 *@@@%%%=?*=@@@%%%*)
3843 eval ac_cv_prog_make_${ac_make}_set=yes;;
3844 *)
3845 eval ac_cv_prog_make_${ac_make}_set=no;;
3846esac
3847rm -f conftest.make
3848fi
3849if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3851$as_echo "yes" >&6; }
3852 SET_MAKE=
3853else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856 SET_MAKE="MAKE=${MAKE-make}"
3857fi
3858
3859rm -rf .tst 2>/dev/null
3860mkdir .tst 2>/dev/null
3861if test -d .tst; then
3862 am__leading_dot=.
3863else
3864 am__leading_dot=_
3865fi
3866rmdir .tst 2>/dev/null
3867
3868if test "`cd $srcdir && pwd`" != "`pwd`"; then
3869 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3870 # is not polluted with repeated "-I."
3871 am__isrc=' -I$(srcdir)'
3872 # test to see if srcdir already configured
3873 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003874 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003875 fi
3876fi
3877
3878# test whether we have cygpath
3879if test -z "$CYGPATH_W"; then
3880 if (cygpath --version) >/dev/null 2>/dev/null; then
3881 CYGPATH_W='cygpath -w'
3882 else
3883 CYGPATH_W=echo
3884 fi
3885fi
3886
3887
3888# Define the identity of the package.
3889 PACKAGE=$PACKAGE_NAME
3890 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3891
3892
3893# Some tools Automake needs.
3894
3895ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3896
3897
3898AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3899
3900
3901AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3902
3903
3904AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3905
3906
3907MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3908
3909# We need awk for the "check" target. The system "awk" is bad on
3910# some platforms.
3911# Always define AMTAR for backward compatibility.
3912
3913AMTAR=${AMTAR-"${am_missing_run}tar"}
3914
3915am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3916
3917
3918
3919
3920
cristy3ed852e2009-09-05 21:47:34 +00003921
3922# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003923# Check whether --enable-silent-rules was given.
3924if test "${enable_silent_rules+set}" = set; then :
3925 enableval=$enable_silent_rules;
3926fi
3927
3928case $enable_silent_rules in
3929yes) AM_DEFAULT_VERBOSITY=0;;
3930no) AM_DEFAULT_VERBOSITY=1;;
3931*) AM_DEFAULT_VERBOSITY=0;;
3932esac
3933AM_BACKSLASH='\'
3934
cristy3ed852e2009-09-05 21:47:34 +00003935
3936MAGICK_LIB_VERSION="0x"
3937if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3938 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3939fi
3940MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3941if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3942 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3943fi
3944MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3945if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3946 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3947fi
3948MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3949
3950
3951# Definition used to define MagickLibVersionText in version.h
3952MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3953
3954
3955# Definition used to define MagickLibVersionNumber in version.h
3956MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3957
3958
3959# Regenerate config.status if ChangeLog or version.sh is updated.
3960CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3961
3962
3963PERLMAINCC=$CC
3964
3965MAGICK_CFLAGS=''
3966MAGICK_CPPFLAGS=$CPPFLAGS_USER
3967MAGICK_PCFLAGS=$CPPFLAGS_USER
3968MAGICK_LDFLAGS=''
3969MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003970MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003971
3972#
3973# Evaluate shell variable equivalents to Makefile directory variables
3974#
3975if test "x$prefix" = xNONE; then
3976 prefix=$ac_default_prefix
3977fi
3978# Let make expand exec_prefix.
3979if test "x$exec_prefix" = xNONE; then
3980 exec_prefix='${prefix}'
3981fi
3982
3983#
3984eval "eval PREFIX_DIR=${prefix}"
3985
3986eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3987
3988eval "eval BIN_DIR=$bindir"
3989
3990eval "eval SBIN_DIR=$sbindir"
3991
3992eval "eval LIBEXEC_DIR=$libexecdir"
3993
3994eval "eval DATA_DIR=$datadir"
3995
3996eval "eval SYSCONF_DIR=$sysconfdir"
3997
3998eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3999
4000eval "eval LOCALSTATE_DIR=$localstatedir"
4001
4002eval "eval LIB_DIR=$libdir"
4003
4004eval "eval INCLUDE_DIR=$includedir"
4005
4006eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4007
4008eval "eval INFO_DIR=$infodir"
4009
4010eval "eval MAN_DIR=$mandir"
4011
4012
4013# Get full paths to source and build directories
4014srcdirfull="`cd $srcdir && pwd`"
4015builddir="`pwd`"
4016
4017#
4018# Compute variables useful for running uninstalled software.
4019#
4020MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4021MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4022MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4023MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4024DIRSEP=':'
4025case "${build_os}" in
4026 mingw* )
4027 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4028 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4029 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4030 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4031 DIRSEP=';'
4032 ;;
4033esac
4034case "${host_os}" in
4035 mingw* )
4036 DIRSEP=';'
4037 ;;
4038esac
4039
4040
4041
4042
4043
4044
cristya0b81c32010-01-22 02:54:33 +00004045
4046#
4047# Enable OS features.
4048#
cristy73bd4a52010-10-05 11:24:23 +00004049DEPDIR="${am__leading_dot}deps"
4050
4051ac_config_commands="$ac_config_commands depfiles"
4052
4053
4054am_make=${MAKE-make}
4055cat > confinc << 'END'
4056am__doit:
4057 @echo this is the am__doit target
4058.PHONY: am__doit
4059END
4060# If we don't find an include directive, just comment out the code.
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4062$as_echo_n "checking for style of include used by $am_make... " >&6; }
4063am__include="#"
4064am__quote=
4065_am_result=none
4066# First try GNU make style include.
4067echo "include confinc" > confmf
4068# Ignore all kinds of additional output from `make'.
4069case `$am_make -s -f confmf 2> /dev/null` in #(
4070*the\ am__doit\ target*)
4071 am__include=include
4072 am__quote=
4073 _am_result=GNU
4074 ;;
4075esac
4076# Now try BSD make style include.
4077if test "$am__include" = "#"; then
4078 echo '.include "confinc"' > confmf
4079 case `$am_make -s -f confmf 2> /dev/null` in #(
4080 *the\ am__doit\ target*)
4081 am__include=.include
4082 am__quote="\""
4083 _am_result=BSD
4084 ;;
4085 esac
4086fi
4087
4088
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4090$as_echo "$_am_result" >&6; }
4091rm -f confinc confmf
4092
4093# Check whether --enable-dependency-tracking was given.
4094if test "${enable_dependency_tracking+set}" = set; then :
4095 enableval=$enable_dependency_tracking;
4096fi
4097
4098if test "x$enable_dependency_tracking" != xno; then
4099 am_depcomp="$ac_aux_dir/depcomp"
4100 AMDEPBACKSLASH='\'
4101fi
4102 if test "x$enable_dependency_tracking" != xno; then
4103 AMDEP_TRUE=
4104 AMDEP_FALSE='#'
4105else
4106 AMDEP_TRUE='#'
4107 AMDEP_FALSE=
4108fi
4109
4110
cristy3ed852e2009-09-05 21:47:34 +00004111ac_ext=c
4112ac_cpp='$CPP $CPPFLAGS'
4113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4118set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004121if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004122 $as_echo_n "(cached) " >&6
4123else
4124 if test -n "$CC"; then
4125 ac_cv_prog_CC="$CC" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004136 break 2
4137 fi
4138done
cristy8b350f62009-11-15 23:12:43 +00004139 done
cristy3ed852e2009-09-05 21:47:34 +00004140IFS=$as_save_IFS
4141
4142fi
4143fi
4144CC=$ac_cv_prog_CC
4145if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004147$as_echo "$CC" >&6; }
4148else
cristy8b350f62009-11-15 23:12:43 +00004149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004150$as_echo "no" >&6; }
4151fi
4152
4153
4154fi
4155if test -z "$ac_cv_prog_CC"; then
4156 ac_ct_CC=$CC
4157 # Extract the first word of "gcc", so it can be a program name with args.
4158set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004160$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004161if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004162 $as_echo_n "(cached) " >&6
4163else
4164 if test -n "$ac_ct_CC"; then
4165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4166else
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004176 break 2
4177 fi
4178done
cristy8b350f62009-11-15 23:12:43 +00004179 done
cristy3ed852e2009-09-05 21:47:34 +00004180IFS=$as_save_IFS
4181
4182fi
4183fi
4184ac_ct_CC=$ac_cv_prog_ac_ct_CC
4185if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004187$as_echo "$ac_ct_CC" >&6; }
4188else
cristy8b350f62009-11-15 23:12:43 +00004189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004190$as_echo "no" >&6; }
4191fi
4192
4193 if test "x$ac_ct_CC" = x; then
4194 CC=""
4195 else
4196 case $cross_compiling:$ac_tool_warned in
4197yes:)
cristy8b350f62009-11-15 23:12:43 +00004198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4200ac_tool_warned=yes ;;
4201esac
4202 CC=$ac_ct_CC
4203 fi
4204else
4205 CC="$ac_cv_prog_CC"
4206fi
4207
4208if test -z "$CC"; then
4209 if test -n "$ac_tool_prefix"; then
4210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4211set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004214if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004215 $as_echo_n "(cached) " >&6
4216else
4217 if test -n "$CC"; then
4218 ac_cv_prog_CC="$CC" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004229 break 2
4230 fi
4231done
cristy8b350f62009-11-15 23:12:43 +00004232 done
cristy3ed852e2009-09-05 21:47:34 +00004233IFS=$as_save_IFS
4234
4235fi
4236fi
4237CC=$ac_cv_prog_CC
4238if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004240$as_echo "$CC" >&6; }
4241else
cristy8b350f62009-11-15 23:12:43 +00004242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004243$as_echo "no" >&6; }
4244fi
4245
4246
4247 fi
4248fi
4249if test -z "$CC"; then
4250 # Extract the first word of "cc", so it can be a program name with args.
4251set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004254if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004255 $as_echo_n "(cached) " >&6
4256else
4257 if test -n "$CC"; then
4258 ac_cv_prog_CC="$CC" # Let the user override the test.
4259else
4260 ac_prog_rejected=no
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4269 ac_prog_rejected=yes
4270 continue
4271 fi
4272 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004274 break 2
4275 fi
4276done
cristy8b350f62009-11-15 23:12:43 +00004277 done
cristy3ed852e2009-09-05 21:47:34 +00004278IFS=$as_save_IFS
4279
4280if test $ac_prog_rejected = yes; then
4281 # We found a bogon in the path, so make sure we never use it.
4282 set dummy $ac_cv_prog_CC
4283 shift
4284 if test $# != 0; then
4285 # We chose a different compiler from the bogus one.
4286 # However, it has the same basename, so the bogon will be chosen
4287 # first if we set CC to just the basename; use the full file name.
4288 shift
4289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4290 fi
4291fi
4292fi
4293fi
4294CC=$ac_cv_prog_CC
4295if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004297$as_echo "$CC" >&6; }
4298else
cristy8b350f62009-11-15 23:12:43 +00004299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004300$as_echo "no" >&6; }
4301fi
4302
4303
4304fi
4305if test -z "$CC"; then
4306 if test -n "$ac_tool_prefix"; then
4307 for ac_prog in cl.exe
4308 do
4309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004313if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004314 $as_echo_n "(cached) " >&6
4315else
4316 if test -n "$CC"; then
4317 ac_cv_prog_CC="$CC" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004328 break 2
4329 fi
4330done
cristy8b350f62009-11-15 23:12:43 +00004331 done
cristy3ed852e2009-09-05 21:47:34 +00004332IFS=$as_save_IFS
4333
4334fi
4335fi
4336CC=$ac_cv_prog_CC
4337if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004339$as_echo "$CC" >&6; }
4340else
cristy8b350f62009-11-15 23:12:43 +00004341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004342$as_echo "no" >&6; }
4343fi
4344
4345
4346 test -n "$CC" && break
4347 done
4348fi
4349if test -z "$CC"; then
4350 ac_ct_CC=$CC
4351 for ac_prog in cl.exe
4352do
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004357if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004358 $as_echo_n "(cached) " >&6
4359else
4360 if test -n "$ac_ct_CC"; then
4361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004372 break 2
4373 fi
4374done
cristy8b350f62009-11-15 23:12:43 +00004375 done
cristy3ed852e2009-09-05 21:47:34 +00004376IFS=$as_save_IFS
4377
4378fi
4379fi
4380ac_ct_CC=$ac_cv_prog_ac_ct_CC
4381if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004383$as_echo "$ac_ct_CC" >&6; }
4384else
cristy8b350f62009-11-15 23:12:43 +00004385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004386$as_echo "no" >&6; }
4387fi
4388
4389
4390 test -n "$ac_ct_CC" && break
4391done
4392
4393 if test "x$ac_ct_CC" = x; then
4394 CC=""
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397yes:)
cristy8b350f62009-11-15 23:12:43 +00004398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400ac_tool_warned=yes ;;
4401esac
4402 CC=$ac_ct_CC
4403 fi
4404fi
4405
4406fi
4407
4408
cristy8b350f62009-11-15 23:12:43 +00004409test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004411as_fn_error $? "no acceptable C compiler found in \$PATH
4412See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004413
4414# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004415$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416set X $ac_compile
4417ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004418for ac_option in --version -v -V -qversion; do
4419 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004420case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
cristy8b350f62009-11-15 23:12:43 +00004424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004427 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004428 if test -s conftest.err; then
4429 sed '10a\
4430... rest of stderr output deleted ...
4431 10q' conftest.err >conftest.er1
4432 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004433 fi
cristycd4c5312009-11-22 01:19:08 +00004434 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }
4437done
cristy3ed852e2009-09-05 21:47:34 +00004438
cristy8b350f62009-11-15 23:12:43 +00004439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004440/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004441
cristy3ed852e2009-09-05 21:47:34 +00004442int
4443main ()
4444{
4445
4446 ;
4447 return 0;
4448}
4449_ACEOF
4450ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004451ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004452# Try to create an executable without -o first, disregard a.out.
4453# It will help us diagnose broken compilers, and finding out an intuition
4454# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4456$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004457ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4458
4459# The possible output files:
4460ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4461
4462ac_rmfiles=
4463for ac_file in $ac_files
4464do
4465 case $ac_file in
4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4467 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4468 esac
4469done
4470rm -f $ac_rmfiles
4471
cristy8b350f62009-11-15 23:12:43 +00004472if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004473case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476esac
cristy8b350f62009-11-15 23:12:43 +00004477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004479 (eval "$ac_link_default") 2>&5
4480 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004483 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4484# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4485# in a Makefile. We should not override ac_cv_exeext if it was cached,
4486# so that the user can short-circuit this test for compilers unknown to
4487# Autoconf.
4488for ac_file in $ac_files ''
4489do
4490 test -f "$ac_file" || continue
4491 case $ac_file in
4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4493 ;;
4494 [ab].out )
4495 # We found the default executable, but exeext='' is most
4496 # certainly right.
4497 break;;
4498 *.* )
cristy8b350f62009-11-15 23:12:43 +00004499 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004500 then :; else
4501 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4502 fi
4503 # We set ac_cv_exeext here because the later test for it is not
4504 # safe: cross compilers may not add the suffix if given an `-o'
4505 # argument, so we may need to know it at that point already.
4506 # Even if this section looks crufty: it has the advantage of
4507 # actually working.
4508 break;;
4509 * )
4510 break;;
4511 esac
4512done
4513test "$ac_cv_exeext" = no && ac_cv_exeext=
4514
4515else
4516 ac_file=''
4517fi
cristy8b350f62009-11-15 23:12:43 +00004518if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520$as_echo "no" >&6; }
4521$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004522sed 's/^/| /' conftest.$ac_ext >&5
4523
cristy8b350f62009-11-15 23:12:43 +00004524{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004526as_fn_error 77 "C compiler cannot create executables
4527See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004528else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004531fi
cristycd4c5312009-11-22 01:19:08 +00004532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4533$as_echo_n "checking for C compiler default output file name... " >&6; }
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4535$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004536ac_exeext=$ac_cv_exeext
4537
cristycd4c5312009-11-22 01:19:08 +00004538rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004539ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004541$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004542if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004543case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
cristy8b350f62009-11-15 23:12:43 +00004547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4548$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004549 (eval "$ac_link") 2>&5
4550 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4554# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4555# work properly (i.e., refer to `conftest.exe'), while it won't with
4556# `rm'.
4557for ac_file in conftest.exe conftest conftest.*; do
4558 test -f "$ac_file" || continue
4559 case $ac_file in
4560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4562 break;;
4563 * ) break;;
4564 esac
4565done
4566else
cristy8b350f62009-11-15 23:12:43 +00004567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004569as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4570See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004571fi
cristycd4c5312009-11-22 01:19:08 +00004572rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "$ac_cv_exeext" >&6; }
4575
4576rm -f conftest.$ac_ext
4577EXEEXT=$ac_cv_exeext
4578ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h. */
4581#include <stdio.h>
4582int
4583main ()
4584{
4585FILE *f = fopen ("conftest.out", "w");
4586 return ferror (f) || fclose (f) != 0;
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
4592ac_clean_files="$ac_clean_files conftest.out"
4593# Check that the compiler produces executables we can run. If not, either
4594# the compiler is broken, or we cross compile.
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4596$as_echo_n "checking whether we are cross compiling... " >&6; }
4597if test "$cross_compiling" != yes; then
4598 { { ac_try="$ac_link"
4599case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602esac
4603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4604$as_echo "$ac_try_echo"; } >&5
4605 (eval "$ac_link") 2>&5
4606 ac_status=$?
4607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608 test $ac_status = 0; }
4609 if { ac_try='./conftest$ac_cv_exeext'
4610 { { case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_try") 2>&5
4617 ac_status=$?
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }; }; then
4620 cross_compiling=no
4621 else
4622 if test "$cross_compiling" = maybe; then
4623 cross_compiling=yes
4624 else
4625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004627as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004628If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004629See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004630 fi
4631 fi
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4634$as_echo "$cross_compiling" >&6; }
4635
4636rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4637ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004640if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004641 $as_echo_n "(cached) " >&6
4642else
cristy8b350f62009-11-15 23:12:43 +00004643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004644/* end confdefs.h. */
4645
4646int
4647main ()
4648{
4649
4650 ;
4651 return 0;
4652}
4653_ACEOF
4654rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004655if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004656case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659esac
cristy8b350f62009-11-15 23:12:43 +00004660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004662 (eval "$ac_compile") 2>&5
4663 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004666 for ac_file in conftest.o conftest.obj conftest.*; do
4667 test -f "$ac_file" || continue;
4668 case $ac_file in
4669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4670 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4671 break;;
4672 esac
4673done
4674else
4675 $as_echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
cristy8b350f62009-11-15 23:12:43 +00004678{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004680as_fn_error $? "cannot compute suffix of object files: cannot compile
4681See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004682fi
cristy3ed852e2009-09-05 21:47:34 +00004683rm -f conftest.$ac_cv_objext conftest.$ac_ext
4684fi
cristy8b350f62009-11-15 23:12:43 +00004685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686$as_echo "$ac_cv_objext" >&6; }
4687OBJEXT=$ac_cv_objext
4688ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004691if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004692 $as_echo_n "(cached) " >&6
4693else
cristy8b350f62009-11-15 23:12:43 +00004694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004695/* end confdefs.h. */
4696
4697int
4698main ()
4699{
4700#ifndef __GNUC__
4701 choke me
4702#endif
4703
4704 ;
4705 return 0;
4706}
4707_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004708if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004709 ac_compiler_gnu=yes
4710else
cristy8b350f62009-11-15 23:12:43 +00004711 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004712fi
cristy3ed852e2009-09-05 21:47:34 +00004713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714ac_cv_c_compiler_gnu=$ac_compiler_gnu
4715
4716fi
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4719if test $ac_compiler_gnu = yes; then
4720 GCC=yes
4721else
4722 GCC=
4723fi
4724ac_test_CFLAGS=${CFLAGS+set}
4725ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004728if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004729 $as_echo_n "(cached) " >&6
4730else
4731 ac_save_c_werror_flag=$ac_c_werror_flag
4732 ac_c_werror_flag=yes
4733 ac_cv_prog_cc_g=no
4734 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004736/* end confdefs.h. */
4737
4738int
4739main ()
4740{
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004746if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004747 ac_cv_prog_cc_g=yes
4748else
cristy8b350f62009-11-15 23:12:43 +00004749 CFLAGS=""
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004751/* end confdefs.h. */
4752
4753int
4754main ()
4755{
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004761if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004762
cristy8b350f62009-11-15 23:12:43 +00004763else
4764 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004765 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004767/* end confdefs.h. */
4768
4769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004777if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004778 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004779fi
cristy3ed852e2009-09-05 21:47:34 +00004780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781fi
cristy3ed852e2009-09-05 21:47:34 +00004782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
cristy3ed852e2009-09-05 21:47:34 +00004784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786fi
cristy8b350f62009-11-15 23:12:43 +00004787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004788$as_echo "$ac_cv_prog_cc_g" >&6; }
4789if test "$ac_test_CFLAGS" = set; then
4790 CFLAGS=$ac_save_CFLAGS
4791elif test $ac_cv_prog_cc_g = yes; then
4792 if test "$GCC" = yes; then
4793 CFLAGS="-g -O2"
4794 else
4795 CFLAGS="-g"
4796 fi
4797else
4798 if test "$GCC" = yes; then
4799 CFLAGS="-O2"
4800 else
4801 CFLAGS=
4802 fi
4803fi
cristy8b350f62009-11-15 23:12:43 +00004804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004805$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004806if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004807 $as_echo_n "(cached) " >&6
4808else
4809 ac_cv_prog_cc_c89=no
4810ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004812/* end confdefs.h. */
4813#include <stdarg.h>
4814#include <stdio.h>
4815#include <sys/types.h>
4816#include <sys/stat.h>
4817/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4818struct buf { int x; };
4819FILE * (*rcsopen) (struct buf *, struct stat *, int);
4820static char *e (p, i)
4821 char **p;
4822 int i;
4823{
4824 return p[i];
4825}
4826static char *f (char * (*g) (char **, int), char **p, ...)
4827{
4828 char *s;
4829 va_list v;
4830 va_start (v,p);
4831 s = g (p, va_arg (v,int));
4832 va_end (v);
4833 return s;
4834}
4835
4836/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4837 function prototypes and stuff, but not '\xHH' hex character constants.
4838 These don't provoke an error unfortunately, instead are silently treated
4839 as 'x'. The following induces an error, until -std is added to get
4840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4841 array size at least. It's necessary to write '\x00'==0 to get something
4842 that's true only with -std. */
4843int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4844
4845/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4846 inside strings and character constants. */
4847#define FOO(x) 'x'
4848int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4849
4850int test (int i, double x);
4851struct s1 {int (*f) (int a);};
4852struct s2 {int (*f) (double a);};
4853int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4854int argc;
4855char **argv;
4856int
4857main ()
4858{
4859return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4860 ;
4861 return 0;
4862}
4863_ACEOF
4864for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4865 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4866do
4867 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004868 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004869 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004870fi
cristy3ed852e2009-09-05 21:47:34 +00004871rm -f core conftest.err conftest.$ac_objext
4872 test "x$ac_cv_prog_cc_c89" != "xno" && break
4873done
4874rm -f conftest.$ac_ext
4875CC=$ac_save_CC
4876
4877fi
4878# AC_CACHE_VAL
4879case "x$ac_cv_prog_cc_c89" in
4880 x)
cristy8b350f62009-11-15 23:12:43 +00004881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004882$as_echo "none needed" >&6; } ;;
4883 xno)
cristy8b350f62009-11-15 23:12:43 +00004884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo "unsupported" >&6; } ;;
4886 *)
4887 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004889$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4890esac
cristy8b350f62009-11-15 23:12:43 +00004891if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004892
cristy8b350f62009-11-15 23:12:43 +00004893fi
cristy3ed852e2009-09-05 21:47:34 +00004894
4895ac_ext=c
4896ac_cpp='$CPP $CPPFLAGS'
4897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004900
cristy73bd4a52010-10-05 11:24:23 +00004901depcc="$CC" am_compiler_list=
4902
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4904$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004905if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004906 $as_echo_n "(cached) " >&6
4907else
4908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4909 # We make a subdir and do the tests there. Otherwise we can end up
4910 # making bogus files that we don't know about and never remove. For
4911 # instance it was reported that on HP-UX the gcc test will end up
4912 # making a dummy file named `D' -- because `-MD' means `put the output
4913 # in D'.
4914 mkdir conftest.dir
4915 # Copy depcomp to subdir because otherwise we won't find it if we're
4916 # using a relative directory.
4917 cp "$am_depcomp" conftest.dir
4918 cd conftest.dir
4919 # We will build objects and dependencies in a subdirectory because
4920 # it helps to detect inapplicable dependency modes. For instance
4921 # both Tru64's cc and ICC support -MD to output dependencies as a
4922 # side effect of compilation, but ICC will put the dependencies in
4923 # the current directory while Tru64 will put them in the object
4924 # directory.
4925 mkdir sub
4926
4927 am_cv_CC_dependencies_compiler_type=none
4928 if test "$am_compiler_list" = ""; then
4929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4930 fi
4931 am__universal=false
4932 case " $depcc " in #(
4933 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4934 esac
4935
4936 for depmode in $am_compiler_list; do
4937 # Setup a source with many dependencies, because some compilers
4938 # like to wrap large dependency lists on column 80 (with \), and
4939 # we should not choose a depcomp mode which is confused by this.
4940 #
4941 # We need to recreate these files for each test, as the compiler may
4942 # overwrite some of them when testing with obscure command lines.
4943 # This happens at least with the AIX C compiler.
4944 : > sub/conftest.c
4945 for i in 1 2 3 4 5 6; do
4946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4947 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4948 # Solaris 8's {/usr,}/bin/sh.
4949 touch sub/conftst$i.h
4950 done
4951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4952
4953 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4954 # mode. It turns out that the SunPro C++ compiler does not properly
4955 # handle `-M -o', and we need to detect this. Also, some Intel
4956 # versions had trouble with output in subdirs
4957 am__obj=sub/conftest.${OBJEXT-o}
4958 am__minus_obj="-o $am__obj"
4959 case $depmode in
4960 gcc)
4961 # This depmode causes a compiler race in universal mode.
4962 test "$am__universal" = false || continue
4963 ;;
4964 nosideeffect)
4965 # after this tag, mechanisms are not by side-effect, so they'll
4966 # only be used when explicitly requested
4967 if test "x$enable_dependency_tracking" = xyes; then
4968 continue
4969 else
4970 break
4971 fi
4972 ;;
4973 msvisualcpp | msvcmsys)
4974 # This compiler won't grok `-c -o', but also, the minuso test has
4975 # not run yet. These depmodes are late enough in the game, and
4976 # so weak that their functioning should not be impacted.
4977 am__obj=conftest.${OBJEXT-o}
4978 am__minus_obj=
4979 ;;
4980 none) break ;;
4981 esac
4982 if depmode=$depmode \
4983 source=sub/conftest.c object=$am__obj \
4984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4986 >/dev/null 2>conftest.err &&
4987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4991 # icc doesn't choke on unknown options, it will just issue warnings
4992 # or remarks (even with -Werror). So we grep stderr for any message
4993 # that says an option was ignored or not supported.
4994 # When given -MP, icc 7.0 and 7.1 complain thusly:
4995 # icc: Command line warning: ignoring option '-M'; no argument required
4996 # The diagnosis changed in icc 8.0:
4997 # icc: Command line remark: option '-MP' not supported
4998 if (grep 'ignoring option' conftest.err ||
4999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5000 am_cv_CC_dependencies_compiler_type=$depmode
5001 break
5002 fi
5003 fi
5004 done
5005
5006 cd ..
5007 rm -rf conftest.dir
5008else
5009 am_cv_CC_dependencies_compiler_type=none
5010fi
5011
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5014$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5015CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5016
5017 if
5018 test "x$enable_dependency_tracking" != xno \
5019 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5020 am__fastdepCC_TRUE=
5021 am__fastdepCC_FALSE='#'
5022else
5023 am__fastdepCC_TRUE='#'
5024 am__fastdepCC_FALSE=
5025fi
5026
5027
cristy3ed852e2009-09-05 21:47:34 +00005028
cristya0b81c32010-01-22 02:54:33 +00005029ac_ext=c
5030ac_cpp='$CPP $CPPFLAGS'
5031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5035$as_echo_n "checking how to run the C preprocessor... " >&6; }
5036# On Suns, sometimes $CPP names a directory.
5037if test -n "$CPP" && test -d "$CPP"; then
5038 CPP=
5039fi
5040if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005041 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005042 $as_echo_n "(cached) " >&6
5043else
5044 # Double quotes because CPP needs to be expanded
5045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5046 do
5047 ac_preproc_ok=false
5048for ac_c_preproc_warn_flag in '' yes
5049do
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h. */
5058#ifdef __STDC__
5059# include <limits.h>
5060#else
5061# include <assert.h>
5062#endif
5063 Syntax error
5064_ACEOF
5065if ac_fn_c_try_cpp "$LINENO"; then :
5066
5067else
5068 # Broken: fails on valid input.
5069continue
5070fi
cristyda16f162011-02-19 23:52:17 +00005071rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005072
5073 # OK, works on sane cases. Now check whether nonexistent headers
5074 # can be detected and how.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h. */
5077#include <ac_nonexistent.h>
5078_ACEOF
5079if ac_fn_c_try_cpp "$LINENO"; then :
5080 # Broken: success on invalid input.
5081continue
5082else
5083 # Passes both tests.
5084ac_preproc_ok=:
5085break
5086fi
cristyda16f162011-02-19 23:52:17 +00005087rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005088
5089done
5090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005091rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005092if $ac_preproc_ok; then :
5093 break
5094fi
5095
5096 done
5097 ac_cv_prog_CPP=$CPP
5098
5099fi
5100 CPP=$ac_cv_prog_CPP
5101else
5102 ac_cv_prog_CPP=$CPP
5103fi
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5105$as_echo "$CPP" >&6; }
5106ac_preproc_ok=false
5107for ac_c_preproc_warn_flag in '' yes
5108do
5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h. */
5117#ifdef __STDC__
5118# include <limits.h>
5119#else
5120# include <assert.h>
5121#endif
5122 Syntax error
5123_ACEOF
5124if ac_fn_c_try_cpp "$LINENO"; then :
5125
5126else
5127 # Broken: fails on valid input.
5128continue
5129fi
cristyda16f162011-02-19 23:52:17 +00005130rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005131
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h. */
5136#include <ac_nonexistent.h>
5137_ACEOF
5138if ac_fn_c_try_cpp "$LINENO"; then :
5139 # Broken: success on invalid input.
5140continue
5141else
5142 # Passes both tests.
5143ac_preproc_ok=:
5144break
5145fi
cristyda16f162011-02-19 23:52:17 +00005146rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005147
5148done
5149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005150rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005151if $ac_preproc_ok; then :
5152
5153else
5154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005156as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5157See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005158fi
5159
5160ac_ext=c
5161ac_cpp='$CPP $CPPFLAGS'
5162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5168$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005169if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005170 $as_echo_n "(cached) " >&6
5171else
5172 if test -z "$GREP"; then
5173 ac_path_GREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in grep ggrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5184# Check for GNU ac_path_GREP and select it if it is found.
5185 # Check for GNU $ac_path_GREP
5186case `"$ac_path_GREP" --version 2>&1` in
5187*GNU*)
5188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5189*)
5190 ac_count=0
5191 $as_echo_n 0123456789 >"conftest.in"
5192 while :
5193 do
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'GREP' >> "conftest.nl"
5198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_GREP="$ac_path_GREP"
5204 ac_path_GREP_max=$ac_count
5205 fi
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210esac
5211
5212 $ac_path_GREP_found && break 3
5213 done
5214 done
5215 done
5216IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005218 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005219 fi
5220else
5221 ac_cv_path_GREP=$GREP
5222fi
5223
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5226$as_echo "$ac_cv_path_GREP" >&6; }
5227 GREP="$ac_cv_path_GREP"
5228
5229
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5231$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005232if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005233 $as_echo_n "(cached) " >&6
5234else
5235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5236 then ac_cv_path_EGREP="$GREP -E"
5237 else
5238 if test -z "$EGREP"; then
5239 ac_path_EGREP_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_prog in egrep; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5250# Check for GNU ac_path_EGREP and select it if it is found.
5251 # Check for GNU $ac_path_EGREP
5252case `"$ac_path_EGREP" --version 2>&1` in
5253*GNU*)
5254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5255*)
5256 ac_count=0
5257 $as_echo_n 0123456789 >"conftest.in"
5258 while :
5259 do
5260 cat "conftest.in" "conftest.in" >"conftest.tmp"
5261 mv "conftest.tmp" "conftest.in"
5262 cp "conftest.in" "conftest.nl"
5263 $as_echo 'EGREP' >> "conftest.nl"
5264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266 as_fn_arith $ac_count + 1 && ac_count=$as_val
5267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5268 # Best one so far, save it but keep looking for a better one
5269 ac_cv_path_EGREP="$ac_path_EGREP"
5270 ac_path_EGREP_max=$ac_count
5271 fi
5272 # 10*(2^10) chars as input seems more than enough
5273 test $ac_count -gt 10 && break
5274 done
5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276esac
5277
5278 $ac_path_EGREP_found && break 3
5279 done
5280 done
5281 done
5282IFS=$as_save_IFS
5283 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005284 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005285 fi
5286else
5287 ac_cv_path_EGREP=$EGREP
5288fi
5289
5290 fi
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5293$as_echo "$ac_cv_path_EGREP" >&6; }
5294 EGREP="$ac_cv_path_EGREP"
5295
5296
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5298$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005299if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005300 $as_echo_n "(cached) " >&6
5301else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303/* end confdefs.h. */
5304#include <stdlib.h>
5305#include <stdarg.h>
5306#include <string.h>
5307#include <float.h>
5308
5309int
5310main ()
5311{
5312
5313 ;
5314 return 0;
5315}
5316_ACEOF
5317if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_cv_header_stdc=yes
5319else
5320 ac_cv_header_stdc=no
5321fi
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323
5324if test $ac_cv_header_stdc = yes; then
5325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327/* end confdefs.h. */
5328#include <string.h>
5329
5330_ACEOF
5331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 $EGREP "memchr" >/dev/null 2>&1; then :
5333
5334else
5335 ac_cv_header_stdc=no
5336fi
5337rm -f conftest*
5338
5339fi
5340
5341if test $ac_cv_header_stdc = yes; then
5342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h. */
5345#include <stdlib.h>
5346
5347_ACEOF
5348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349 $EGREP "free" >/dev/null 2>&1; then :
5350
5351else
5352 ac_cv_header_stdc=no
5353fi
5354rm -f conftest*
5355
5356fi
5357
5358if test $ac_cv_header_stdc = yes; then
5359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5360 if test "$cross_compiling" = yes; then :
5361 :
5362else
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h. */
5365#include <ctype.h>
5366#include <stdlib.h>
5367#if ((' ' & 0x0FF) == 0x020)
5368# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5369# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5370#else
5371# define ISLOWER(c) \
5372 (('a' <= (c) && (c) <= 'i') \
5373 || ('j' <= (c) && (c) <= 'r') \
5374 || ('s' <= (c) && (c) <= 'z'))
5375# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5376#endif
5377
5378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5379int
5380main ()
5381{
5382 int i;
5383 for (i = 0; i < 256; i++)
5384 if (XOR (islower (i), ISLOWER (i))
5385 || toupper (i) != TOUPPER (i))
5386 return 2;
5387 return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_run "$LINENO"; then :
5391
5392else
5393 ac_cv_header_stdc=no
5394fi
5395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5396 conftest.$ac_objext conftest.beam conftest.$ac_ext
5397fi
5398
5399fi
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5402$as_echo "$ac_cv_header_stdc" >&6; }
5403if test $ac_cv_header_stdc = yes; then
5404
5405$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5406
5407fi
5408
5409# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5410for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5411 inttypes.h stdint.h unistd.h
5412do :
5413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5414ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5415"
cristy98dddb52010-11-04 00:30:15 +00005416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005417 cat >>confdefs.h <<_ACEOF
5418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419_ACEOF
5420
5421fi
5422
5423done
5424
5425
5426
5427 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 +00005428if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005429 MINIX=yes
5430else
5431 MINIX=
5432fi
5433
5434
5435 if test "$MINIX" = yes; then
5436
5437$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5438
5439
5440$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5441
5442
5443$as_echo "#define _MINIX 1" >>confdefs.h
5444
5445 fi
5446
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5449$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005450if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005451 $as_echo_n "(cached) " >&6
5452else
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455
5456# define __EXTENSIONS__ 1
5457 $ac_includes_default
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467 ac_cv_safe_to_define___extensions__=yes
5468else
5469 ac_cv_safe_to_define___extensions__=no
5470fi
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5474$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5475 test $ac_cv_safe_to_define___extensions__ = yes &&
5476 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5477
5478 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5479
5480 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5481
5482 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5483
5484 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5485
5486
5487
5488# Check for programs
5489ac_ext=c
5490ac_cpp='$CPP $CPPFLAGS'
5491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493ac_compiler_gnu=$ac_cv_c_compiler_gnu
5494if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5496set dummy ${ac_tool_prefix}gcc; ac_word=$2
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005499if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005500 $as_echo_n "(cached) " >&6
5501else
5502 if test -n "$CC"; then
5503 ac_cv_prog_CC="$CC" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517 done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522CC=$ac_cv_prog_CC
5523if test -n "$CC"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5525$as_echo "$CC" >&6; }
5526else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528$as_echo "no" >&6; }
5529fi
5530
5531
5532fi
5533if test -z "$ac_cv_prog_CC"; then
5534 ac_ct_CC=$CC
5535 # Extract the first word of "gcc", so it can be a program name with args.
5536set dummy gcc; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005539if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005540 $as_echo_n "(cached) " >&6
5541else
5542 if test -n "$ac_ct_CC"; then
5543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_ac_ct_CC="gcc"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556done
5557 done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562ac_ct_CC=$ac_cv_prog_ac_ct_CC
5563if test -n "$ac_ct_CC"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5565$as_echo "$ac_ct_CC" >&6; }
5566else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
5569fi
5570
5571 if test "x$ac_ct_CC" = x; then
5572 CC=""
5573 else
5574 case $cross_compiling:$ac_tool_warned in
5575yes:)
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578ac_tool_warned=yes ;;
5579esac
5580 CC=$ac_ct_CC
5581 fi
5582else
5583 CC="$ac_cv_prog_CC"
5584fi
5585
5586if test -z "$CC"; then
5587 if test -n "$ac_tool_prefix"; then
5588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5589set dummy ${ac_tool_prefix}cc; ac_word=$2
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005592if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005593 $as_echo_n "(cached) " >&6
5594else
5595 if test -n "$CC"; then
5596 ac_cv_prog_CC="$CC" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_CC="${ac_tool_prefix}cc"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609done
5610 done
5611IFS=$as_save_IFS
5612
5613fi
5614fi
5615CC=$ac_cv_prog_CC
5616if test -n "$CC"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5618$as_echo "$CC" >&6; }
5619else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624
5625 fi
5626fi
5627if test -z "$CC"; then
5628 # Extract the first word of "cc", so it can be a program name with args.
5629set dummy cc; ac_word=$2
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005632if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005633 $as_echo_n "(cached) " >&6
5634else
5635 if test -n "$CC"; then
5636 ac_cv_prog_CC="$CC" # Let the user override the test.
5637else
5638 ac_prog_rejected=no
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5647 ac_prog_rejected=yes
5648 continue
5649 fi
5650 ac_cv_prog_CC="cc"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654done
5655 done
5656IFS=$as_save_IFS
5657
5658if test $ac_prog_rejected = yes; then
5659 # We found a bogon in the path, so make sure we never use it.
5660 set dummy $ac_cv_prog_CC
5661 shift
5662 if test $# != 0; then
5663 # We chose a different compiler from the bogus one.
5664 # However, it has the same basename, so the bogon will be chosen
5665 # first if we set CC to just the basename; use the full file name.
5666 shift
5667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5668 fi
5669fi
5670fi
5671fi
5672CC=$ac_cv_prog_CC
5673if test -n "$CC"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5675$as_echo "$CC" >&6; }
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682fi
5683if test -z "$CC"; then
5684 if test -n "$ac_tool_prefix"; then
5685 for ac_prog in cl.exe
5686 do
5687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005691if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005692 $as_echo_n "(cached) " >&6
5693else
5694 if test -n "$CC"; then
5695 ac_cv_prog_CC="$CC" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708done
5709 done
5710IFS=$as_save_IFS
5711
5712fi
5713fi
5714CC=$ac_cv_prog_CC
5715if test -n "$CC"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5717$as_echo "$CC" >&6; }
5718else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721fi
5722
5723
5724 test -n "$CC" && break
5725 done
5726fi
5727if test -z "$CC"; then
5728 ac_ct_CC=$CC
5729 for ac_prog in cl.exe
5730do
5731 # Extract the first word of "$ac_prog", so it can be a program name with args.
5732set dummy $ac_prog; ac_word=$2
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005735if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005736 $as_echo_n "(cached) " >&6
5737else
5738 if test -n "$ac_ct_CC"; then
5739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_ac_ct_CC="$ac_prog"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752done
5753 done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758ac_ct_CC=$ac_cv_prog_ac_ct_CC
5759if test -n "$ac_ct_CC"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5761$as_echo "$ac_ct_CC" >&6; }
5762else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765fi
5766
5767
5768 test -n "$ac_ct_CC" && break
5769done
5770
5771 if test "x$ac_ct_CC" = x; then
5772 CC=""
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780 CC=$ac_ct_CC
5781 fi
5782fi
5783
5784fi
5785
5786
5787test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005789as_fn_error $? "no acceptable C compiler found in \$PATH
5790See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005791
5792# Provide some information about the compiler.
5793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5794set X $ac_compile
5795ac_compiler=$2
5796for ac_option in --version -v -V -qversion; do
5797 { { ac_try="$ac_compiler $ac_option >&5"
5798case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801esac
5802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5803$as_echo "$ac_try_echo"; } >&5
5804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5805 ac_status=$?
5806 if test -s conftest.err; then
5807 sed '10a\
5808... rest of stderr output deleted ...
5809 10q' conftest.err >conftest.er1
5810 cat conftest.er1 >&5
5811 fi
5812 rm -f conftest.er1 conftest.err
5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5814 test $ac_status = 0; }
5815done
5816
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5818$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005819if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005820 $as_echo_n "(cached) " >&6
5821else
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h. */
5824
5825int
5826main ()
5827{
5828#ifndef __GNUC__
5829 choke me
5830#endif
5831
5832 ;
5833 return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837 ac_compiler_gnu=yes
5838else
5839 ac_compiler_gnu=no
5840fi
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842ac_cv_c_compiler_gnu=$ac_compiler_gnu
5843
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5846$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5847if test $ac_compiler_gnu = yes; then
5848 GCC=yes
5849else
5850 GCC=
5851fi
5852ac_test_CFLAGS=${CFLAGS+set}
5853ac_save_CFLAGS=$CFLAGS
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5855$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005856if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005857 $as_echo_n "(cached) " >&6
5858else
5859 ac_save_c_werror_flag=$ac_c_werror_flag
5860 ac_c_werror_flag=yes
5861 ac_cv_prog_cc_g=no
5862 CFLAGS="-g"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865
5866int
5867main ()
5868{
5869
5870 ;
5871 return 0;
5872}
5873_ACEOF
5874if ac_fn_c_try_compile "$LINENO"; then :
5875 ac_cv_prog_cc_g=yes
5876else
5877 CFLAGS=""
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h. */
5880
5881int
5882main ()
5883{
5884
5885 ;
5886 return 0;
5887}
5888_ACEOF
5889if ac_fn_c_try_compile "$LINENO"; then :
5890
5891else
5892 ac_c_werror_flag=$ac_save_c_werror_flag
5893 CFLAGS="-g"
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h. */
5896
5897int
5898main ()
5899{
5900
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905if ac_fn_c_try_compile "$LINENO"; then :
5906 ac_cv_prog_cc_g=yes
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909fi
5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911fi
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 ac_c_werror_flag=$ac_save_c_werror_flag
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5916$as_echo "$ac_cv_prog_cc_g" >&6; }
5917if test "$ac_test_CFLAGS" = set; then
5918 CFLAGS=$ac_save_CFLAGS
5919elif test $ac_cv_prog_cc_g = yes; then
5920 if test "$GCC" = yes; then
5921 CFLAGS="-g -O2"
5922 else
5923 CFLAGS="-g"
5924 fi
5925else
5926 if test "$GCC" = yes; then
5927 CFLAGS="-O2"
5928 else
5929 CFLAGS=
5930 fi
5931fi
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5933$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005934if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005935 $as_echo_n "(cached) " >&6
5936else
5937 ac_cv_prog_cc_c89=no
5938ac_save_CC=$CC
5939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h. */
5941#include <stdarg.h>
5942#include <stdio.h>
5943#include <sys/types.h>
5944#include <sys/stat.h>
5945/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5946struct buf { int x; };
5947FILE * (*rcsopen) (struct buf *, struct stat *, int);
5948static char *e (p, i)
5949 char **p;
5950 int i;
5951{
5952 return p[i];
5953}
5954static char *f (char * (*g) (char **, int), char **p, ...)
5955{
5956 char *s;
5957 va_list v;
5958 va_start (v,p);
5959 s = g (p, va_arg (v,int));
5960 va_end (v);
5961 return s;
5962}
5963
5964/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5965 function prototypes and stuff, but not '\xHH' hex character constants.
5966 These don't provoke an error unfortunately, instead are silently treated
5967 as 'x'. The following induces an error, until -std is added to get
5968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5969 array size at least. It's necessary to write '\x00'==0 to get something
5970 that's true only with -std. */
5971int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5972
5973/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5974 inside strings and character constants. */
5975#define FOO(x) 'x'
5976int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5977
5978int test (int i, double x);
5979struct s1 {int (*f) (int a);};
5980struct s2 {int (*f) (double a);};
5981int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5982int argc;
5983char **argv;
5984int
5985main ()
5986{
5987return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5988 ;
5989 return 0;
5990}
5991_ACEOF
5992for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5994do
5995 CC="$ac_save_CC $ac_arg"
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 ac_cv_prog_cc_c89=$ac_arg
5998fi
5999rm -f core conftest.err conftest.$ac_objext
6000 test "x$ac_cv_prog_cc_c89" != "xno" && break
6001done
6002rm -f conftest.$ac_ext
6003CC=$ac_save_CC
6004
6005fi
6006# AC_CACHE_VAL
6007case "x$ac_cv_prog_cc_c89" in
6008 x)
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6010$as_echo "none needed" >&6; } ;;
6011 xno)
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6013$as_echo "unsupported" >&6; } ;;
6014 *)
6015 CC="$CC $ac_cv_prog_cc_c89"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6017$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6018esac
6019if test "x$ac_cv_prog_cc_c89" != xno; then :
6020
6021fi
6022
6023ac_ext=c
6024ac_cpp='$CPP $CPPFLAGS'
6025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027ac_compiler_gnu=$ac_cv_c_compiler_gnu
6028
cristy73bd4a52010-10-05 11:24:23 +00006029depcc="$CC" am_compiler_list=
6030
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6032$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006033if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006034 $as_echo_n "(cached) " >&6
6035else
6036 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6037 # We make a subdir and do the tests there. Otherwise we can end up
6038 # making bogus files that we don't know about and never remove. For
6039 # instance it was reported that on HP-UX the gcc test will end up
6040 # making a dummy file named `D' -- because `-MD' means `put the output
6041 # in D'.
6042 mkdir conftest.dir
6043 # Copy depcomp to subdir because otherwise we won't find it if we're
6044 # using a relative directory.
6045 cp "$am_depcomp" conftest.dir
6046 cd conftest.dir
6047 # We will build objects and dependencies in a subdirectory because
6048 # it helps to detect inapplicable dependency modes. For instance
6049 # both Tru64's cc and ICC support -MD to output dependencies as a
6050 # side effect of compilation, but ICC will put the dependencies in
6051 # the current directory while Tru64 will put them in the object
6052 # directory.
6053 mkdir sub
6054
6055 am_cv_CC_dependencies_compiler_type=none
6056 if test "$am_compiler_list" = ""; then
6057 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6058 fi
6059 am__universal=false
6060 case " $depcc " in #(
6061 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6062 esac
6063
6064 for depmode in $am_compiler_list; do
6065 # Setup a source with many dependencies, because some compilers
6066 # like to wrap large dependency lists on column 80 (with \), and
6067 # we should not choose a depcomp mode which is confused by this.
6068 #
6069 # We need to recreate these files for each test, as the compiler may
6070 # overwrite some of them when testing with obscure command lines.
6071 # This happens at least with the AIX C compiler.
6072 : > sub/conftest.c
6073 for i in 1 2 3 4 5 6; do
6074 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6075 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6076 # Solaris 8's {/usr,}/bin/sh.
6077 touch sub/conftst$i.h
6078 done
6079 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6080
6081 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6082 # mode. It turns out that the SunPro C++ compiler does not properly
6083 # handle `-M -o', and we need to detect this. Also, some Intel
6084 # versions had trouble with output in subdirs
6085 am__obj=sub/conftest.${OBJEXT-o}
6086 am__minus_obj="-o $am__obj"
6087 case $depmode in
6088 gcc)
6089 # This depmode causes a compiler race in universal mode.
6090 test "$am__universal" = false || continue
6091 ;;
6092 nosideeffect)
6093 # after this tag, mechanisms are not by side-effect, so they'll
6094 # only be used when explicitly requested
6095 if test "x$enable_dependency_tracking" = xyes; then
6096 continue
6097 else
6098 break
6099 fi
6100 ;;
6101 msvisualcpp | msvcmsys)
6102 # This compiler won't grok `-c -o', but also, the minuso test has
6103 # not run yet. These depmodes are late enough in the game, and
6104 # so weak that their functioning should not be impacted.
6105 am__obj=conftest.${OBJEXT-o}
6106 am__minus_obj=
6107 ;;
6108 none) break ;;
6109 esac
6110 if depmode=$depmode \
6111 source=sub/conftest.c object=$am__obj \
6112 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6113 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6114 >/dev/null 2>conftest.err &&
6115 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6116 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6117 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6118 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6119 # icc doesn't choke on unknown options, it will just issue warnings
6120 # or remarks (even with -Werror). So we grep stderr for any message
6121 # that says an option was ignored or not supported.
6122 # When given -MP, icc 7.0 and 7.1 complain thusly:
6123 # icc: Command line warning: ignoring option '-M'; no argument required
6124 # The diagnosis changed in icc 8.0:
6125 # icc: Command line remark: option '-MP' not supported
6126 if (grep 'ignoring option' conftest.err ||
6127 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6128 am_cv_CC_dependencies_compiler_type=$depmode
6129 break
6130 fi
6131 fi
6132 done
6133
6134 cd ..
6135 rm -rf conftest.dir
6136else
6137 am_cv_CC_dependencies_compiler_type=none
6138fi
6139
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6142$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6143CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6144
6145 if
6146 test "x$enable_dependency_tracking" != xno \
6147 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6148 am__fastdepCC_TRUE=
6149 am__fastdepCC_FALSE='#'
6150else
6151 am__fastdepCC_TRUE='#'
6152 am__fastdepCC_FALSE=
6153fi
6154
6155
cristy95646052009-11-28 23:05:30 +00006156ac_ext=cpp
6157ac_cpp='$CXXCPP $CPPFLAGS'
6158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6161if test -z "$CXX"; then
6162 if test -n "$CCC"; then
6163 CXX=$CCC
6164 else
6165 if test -n "$ac_tool_prefix"; then
6166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6167 do
6168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006172if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006173 $as_echo_n "(cached) " >&6
6174else
6175 if test -n "$CXX"; then
6176 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189done
6190 done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195CXX=$ac_cv_prog_CXX
6196if test -n "$CXX"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6198$as_echo "$CXX" >&6; }
6199else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204
6205 test -n "$CXX" && break
6206 done
6207fi
6208if test -z "$CXX"; then
6209 ac_ct_CXX=$CXX
6210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6211do
6212 # Extract the first word of "$ac_prog", so it can be a program name with args.
6213set dummy $ac_prog; ac_word=$2
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006216if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006217 $as_echo_n "(cached) " >&6
6218else
6219 if test -n "$ac_ct_CXX"; then
6220 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6221else
6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_ac_ct_CXX="$ac_prog"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233done
6234 done
6235IFS=$as_save_IFS
6236
6237fi
6238fi
6239ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6240if test -n "$ac_ct_CXX"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6242$as_echo "$ac_ct_CXX" >&6; }
6243else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245$as_echo "no" >&6; }
6246fi
6247
6248
6249 test -n "$ac_ct_CXX" && break
6250done
6251
6252 if test "x$ac_ct_CXX" = x; then
6253 CXX="g++"
6254 else
6255 case $cross_compiling:$ac_tool_warned in
6256yes:)
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259ac_tool_warned=yes ;;
6260esac
6261 CXX=$ac_ct_CXX
6262 fi
6263fi
6264
6265 fi
6266fi
6267# Provide some information about the compiler.
6268$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6269set X $ac_compile
6270ac_compiler=$2
6271for ac_option in --version -v -V -qversion; do
6272 { { ac_try="$ac_compiler $ac_option >&5"
6273case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6276esac
6277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6278$as_echo "$ac_try_echo"; } >&5
6279 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6280 ac_status=$?
6281 if test -s conftest.err; then
6282 sed '10a\
6283... rest of stderr output deleted ...
6284 10q' conftest.err >conftest.er1
6285 cat conftest.er1 >&5
6286 fi
6287 rm -f conftest.er1 conftest.err
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289 test $ac_status = 0; }
6290done
6291
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6293$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006294if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006295 $as_echo_n "(cached) " >&6
6296else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h. */
6299
6300int
6301main ()
6302{
6303#ifndef __GNUC__
6304 choke me
6305#endif
6306
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311if ac_fn_cxx_try_compile "$LINENO"; then :
6312 ac_compiler_gnu=yes
6313else
6314 ac_compiler_gnu=no
6315fi
6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6318
6319fi
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6321$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6322if test $ac_compiler_gnu = yes; then
6323 GXX=yes
6324else
6325 GXX=
6326fi
6327ac_test_CXXFLAGS=${CXXFLAGS+set}
6328ac_save_CXXFLAGS=$CXXFLAGS
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6330$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006331if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006332 $as_echo_n "(cached) " >&6
6333else
6334 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6335 ac_cxx_werror_flag=yes
6336 ac_cv_prog_cxx_g=no
6337 CXXFLAGS="-g"
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h. */
6340
6341int
6342main ()
6343{
6344
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349if ac_fn_cxx_try_compile "$LINENO"; then :
6350 ac_cv_prog_cxx_g=yes
6351else
6352 CXXFLAGS=""
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h. */
6355
6356int
6357main ()
6358{
6359
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364if ac_fn_cxx_try_compile "$LINENO"; then :
6365
6366else
6367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6368 CXXFLAGS="-g"
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h. */
6371
6372int
6373main ()
6374{
6375
6376 ;
6377 return 0;
6378}
6379_ACEOF
6380if ac_fn_cxx_try_compile "$LINENO"; then :
6381 ac_cv_prog_cxx_g=yes
6382fi
6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384fi
6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386fi
6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6391$as_echo "$ac_cv_prog_cxx_g" >&6; }
6392if test "$ac_test_CXXFLAGS" = set; then
6393 CXXFLAGS=$ac_save_CXXFLAGS
6394elif test $ac_cv_prog_cxx_g = yes; then
6395 if test "$GXX" = yes; then
6396 CXXFLAGS="-g -O2"
6397 else
6398 CXXFLAGS="-g"
6399 fi
6400else
6401 if test "$GXX" = yes; then
6402 CXXFLAGS="-O2"
6403 else
6404 CXXFLAGS=
6405 fi
6406fi
6407ac_ext=c
6408ac_cpp='$CPP $CPPFLAGS'
6409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412
cristy73bd4a52010-10-05 11:24:23 +00006413depcc="$CXX" am_compiler_list=
6414
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6416$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006417if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006418 $as_echo_n "(cached) " >&6
6419else
6420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6421 # We make a subdir and do the tests there. Otherwise we can end up
6422 # making bogus files that we don't know about and never remove. For
6423 # instance it was reported that on HP-UX the gcc test will end up
6424 # making a dummy file named `D' -- because `-MD' means `put the output
6425 # in D'.
6426 mkdir conftest.dir
6427 # Copy depcomp to subdir because otherwise we won't find it if we're
6428 # using a relative directory.
6429 cp "$am_depcomp" conftest.dir
6430 cd conftest.dir
6431 # We will build objects and dependencies in a subdirectory because
6432 # it helps to detect inapplicable dependency modes. For instance
6433 # both Tru64's cc and ICC support -MD to output dependencies as a
6434 # side effect of compilation, but ICC will put the dependencies in
6435 # the current directory while Tru64 will put them in the object
6436 # directory.
6437 mkdir sub
6438
6439 am_cv_CXX_dependencies_compiler_type=none
6440 if test "$am_compiler_list" = ""; then
6441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6442 fi
6443 am__universal=false
6444 case " $depcc " in #(
6445 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6446 esac
6447
6448 for depmode in $am_compiler_list; do
6449 # Setup a source with many dependencies, because some compilers
6450 # like to wrap large dependency lists on column 80 (with \), and
6451 # we should not choose a depcomp mode which is confused by this.
6452 #
6453 # We need to recreate these files for each test, as the compiler may
6454 # overwrite some of them when testing with obscure command lines.
6455 # This happens at least with the AIX C compiler.
6456 : > sub/conftest.c
6457 for i in 1 2 3 4 5 6; do
6458 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6459 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6460 # Solaris 8's {/usr,}/bin/sh.
6461 touch sub/conftst$i.h
6462 done
6463 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6464
6465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6466 # mode. It turns out that the SunPro C++ compiler does not properly
6467 # handle `-M -o', and we need to detect this. Also, some Intel
6468 # versions had trouble with output in subdirs
6469 am__obj=sub/conftest.${OBJEXT-o}
6470 am__minus_obj="-o $am__obj"
6471 case $depmode in
6472 gcc)
6473 # This depmode causes a compiler race in universal mode.
6474 test "$am__universal" = false || continue
6475 ;;
6476 nosideeffect)
6477 # after this tag, mechanisms are not by side-effect, so they'll
6478 # only be used when explicitly requested
6479 if test "x$enable_dependency_tracking" = xyes; then
6480 continue
6481 else
6482 break
6483 fi
6484 ;;
6485 msvisualcpp | msvcmsys)
6486 # This compiler won't grok `-c -o', but also, the minuso test has
6487 # not run yet. These depmodes are late enough in the game, and
6488 # so weak that their functioning should not be impacted.
6489 am__obj=conftest.${OBJEXT-o}
6490 am__minus_obj=
6491 ;;
6492 none) break ;;
6493 esac
6494 if depmode=$depmode \
6495 source=sub/conftest.c object=$am__obj \
6496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6497 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6498 >/dev/null 2>conftest.err &&
6499 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6500 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6501 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6502 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6503 # icc doesn't choke on unknown options, it will just issue warnings
6504 # or remarks (even with -Werror). So we grep stderr for any message
6505 # that says an option was ignored or not supported.
6506 # When given -MP, icc 7.0 and 7.1 complain thusly:
6507 # icc: Command line warning: ignoring option '-M'; no argument required
6508 # The diagnosis changed in icc 8.0:
6509 # icc: Command line remark: option '-MP' not supported
6510 if (grep 'ignoring option' conftest.err ||
6511 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6512 am_cv_CXX_dependencies_compiler_type=$depmode
6513 break
6514 fi
6515 fi
6516 done
6517
6518 cd ..
6519 rm -rf conftest.dir
6520else
6521 am_cv_CXX_dependencies_compiler_type=none
6522fi
6523
6524fi
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6526$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6527CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6528
6529 if
6530 test "x$enable_dependency_tracking" != xno \
6531 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6532 am__fastdepCXX_TRUE=
6533 am__fastdepCXX_FALSE='#'
6534else
6535 am__fastdepCXX_TRUE='#'
6536 am__fastdepCXX_FALSE=
6537fi
6538
6539
cristy8b350f62009-11-15 23:12:43 +00006540 case $ac_cv_prog_cc_stdc in #(
6541 no) :
6542 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6543 *) :
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006545$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006546if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006547 $as_echo_n "(cached) " >&6
6548else
6549 ac_cv_prog_cc_c99=no
6550ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006552/* end confdefs.h. */
6553#include <stdarg.h>
6554#include <stdbool.h>
6555#include <stdlib.h>
6556#include <wchar.h>
6557#include <stdio.h>
6558
6559// Check varargs macros. These examples are taken from C99 6.10.3.5.
6560#define debug(...) fprintf (stderr, __VA_ARGS__)
6561#define showlist(...) puts (#__VA_ARGS__)
6562#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6563static void
6564test_varargs_macros (void)
6565{
6566 int x = 1234;
6567 int y = 5678;
6568 debug ("Flag");
6569 debug ("X = %d\n", x);
6570 showlist (The first, second, and third items.);
6571 report (x>y, "x is %d but y is %d", x, y);
6572}
6573
6574// Check long long types.
6575#define BIG64 18446744073709551615ull
6576#define BIG32 4294967295ul
6577#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6578#if !BIG_OK
6579 your preprocessor is broken;
6580#endif
6581#if BIG_OK
6582#else
6583 your preprocessor is broken;
6584#endif
6585static long long int bignum = -9223372036854775807LL;
6586static unsigned long long int ubignum = BIG64;
6587
6588struct incomplete_array
6589{
6590 int datasize;
6591 double data[];
6592};
6593
6594struct named_init {
6595 int number;
6596 const wchar_t *name;
6597 double average;
6598};
6599
6600typedef const char *ccp;
6601
6602static inline int
6603test_restrict (ccp restrict text)
6604{
6605 // See if C++-style comments work.
6606 // Iterate through items via the restricted pointer.
6607 // Also check for declarations in for loops.
6608 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6609 continue;
6610 return 0;
6611}
6612
6613// Check varargs and va_copy.
6614static void
6615test_varargs (const char *format, ...)
6616{
6617 va_list args;
6618 va_start (args, format);
6619 va_list args_copy;
6620 va_copy (args_copy, args);
6621
6622 const char *str;
6623 int number;
6624 float fnumber;
6625
6626 while (*format)
6627 {
6628 switch (*format++)
6629 {
6630 case 's': // string
6631 str = va_arg (args_copy, const char *);
6632 break;
6633 case 'd': // int
6634 number = va_arg (args_copy, int);
6635 break;
6636 case 'f': // float
6637 fnumber = va_arg (args_copy, double);
6638 break;
6639 default:
6640 break;
6641 }
6642 }
6643 va_end (args_copy);
6644 va_end (args);
6645}
6646
6647int
6648main ()
6649{
6650
6651 // Check bool.
6652 _Bool success = false;
6653
6654 // Check restrict.
6655 if (test_restrict ("String literal") == 0)
6656 success = true;
6657 char *restrict newvar = "Another string";
6658
6659 // Check varargs.
6660 test_varargs ("s, d' f .", "string", 65, 34.234);
6661 test_varargs_macros ();
6662
6663 // Check flexible array members.
6664 struct incomplete_array *ia =
6665 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6666 ia->datasize = 10;
6667 for (int i = 0; i < ia->datasize; ++i)
6668 ia->data[i] = i * 1.234;
6669
6670 // Check named initializers.
6671 struct named_init ni = {
6672 .number = 34,
6673 .name = L"Test wide string",
6674 .average = 543.34343,
6675 };
6676
6677 ni.number = 58;
6678
6679 int dynamic_array[ni.number];
6680 dynamic_array[ni.number - 1] = 543;
6681
6682 // work around unused variable warnings
6683 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6684 || dynamic_array[ni.number - 1] != 543);
6685
6686 ;
6687 return 0;
6688}
6689_ACEOF
6690for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6691do
6692 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006693 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006694 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006695fi
cristy3ed852e2009-09-05 21:47:34 +00006696rm -f core conftest.err conftest.$ac_objext
6697 test "x$ac_cv_prog_cc_c99" != "xno" && break
6698done
6699rm -f conftest.$ac_ext
6700CC=$ac_save_CC
6701
6702fi
6703# AC_CACHE_VAL
6704case "x$ac_cv_prog_cc_c99" in
6705 x)
cristy8b350f62009-11-15 23:12:43 +00006706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006707$as_echo "none needed" >&6; } ;;
6708 xno)
cristy8b350f62009-11-15 23:12:43 +00006709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006710$as_echo "unsupported" >&6; } ;;
6711 *)
6712 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006714$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6715esac
cristy8b350f62009-11-15 23:12:43 +00006716if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006717 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6718else
cristy8b350f62009-11-15 23:12:43 +00006719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006720$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006721if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006722 $as_echo_n "(cached) " >&6
6723else
6724 ac_cv_prog_cc_c89=no
6725ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006727/* end confdefs.h. */
6728#include <stdarg.h>
6729#include <stdio.h>
6730#include <sys/types.h>
6731#include <sys/stat.h>
6732/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6733struct buf { int x; };
6734FILE * (*rcsopen) (struct buf *, struct stat *, int);
6735static char *e (p, i)
6736 char **p;
6737 int i;
6738{
6739 return p[i];
6740}
6741static char *f (char * (*g) (char **, int), char **p, ...)
6742{
6743 char *s;
6744 va_list v;
6745 va_start (v,p);
6746 s = g (p, va_arg (v,int));
6747 va_end (v);
6748 return s;
6749}
6750
6751/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6752 function prototypes and stuff, but not '\xHH' hex character constants.
6753 These don't provoke an error unfortunately, instead are silently treated
6754 as 'x'. The following induces an error, until -std is added to get
6755 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6756 array size at least. It's necessary to write '\x00'==0 to get something
6757 that's true only with -std. */
6758int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6759
6760/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6761 inside strings and character constants. */
6762#define FOO(x) 'x'
6763int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6764
6765int test (int i, double x);
6766struct s1 {int (*f) (int a);};
6767struct s2 {int (*f) (double a);};
6768int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6769int argc;
6770char **argv;
6771int
6772main ()
6773{
6774return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6775 ;
6776 return 0;
6777}
6778_ACEOF
6779for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6780 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6781do
6782 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006783 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006784 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006785fi
cristy3ed852e2009-09-05 21:47:34 +00006786rm -f core conftest.err conftest.$ac_objext
6787 test "x$ac_cv_prog_cc_c89" != "xno" && break
6788done
6789rm -f conftest.$ac_ext
6790CC=$ac_save_CC
6791
6792fi
6793# AC_CACHE_VAL
6794case "x$ac_cv_prog_cc_c89" in
6795 x)
cristy8b350f62009-11-15 23:12:43 +00006796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006797$as_echo "none needed" >&6; } ;;
6798 xno)
cristy8b350f62009-11-15 23:12:43 +00006799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006800$as_echo "unsupported" >&6; } ;;
6801 *)
6802 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006804$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6805esac
cristy8b350f62009-11-15 23:12:43 +00006806if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006807 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6808else
6809 ac_cv_prog_cc_stdc=no
6810fi
6811
cristy3ed852e2009-09-05 21:47:34 +00006812fi
cristy3ed852e2009-09-05 21:47:34 +00006813 ;;
6814esac
cristy8b350f62009-11-15 23:12:43 +00006815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006816$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006817 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006818 $as_echo_n "(cached) " >&6
6819fi
6820
cristy8b350f62009-11-15 23:12:43 +00006821 case $ac_cv_prog_cc_stdc in #(
6822 no) :
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6824$as_echo "unsupported" >&6; } ;; #(
6825 '') :
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6827$as_echo "none needed" >&6; } ;; #(
6828 *) :
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006830$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6831esac
6832
cristy3ed852e2009-09-05 21:47:34 +00006833ac_ext=c
6834ac_cpp='$CPP $CPPFLAGS'
6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006839$as_echo_n "checking how to run the C preprocessor... " >&6; }
6840# On Suns, sometimes $CPP names a directory.
6841if test -n "$CPP" && test -d "$CPP"; then
6842 CPP=
6843fi
6844if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006845 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006846 $as_echo_n "(cached) " >&6
6847else
6848 # Double quotes because CPP needs to be expanded
6849 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6850 do
6851 ac_preproc_ok=false
6852for ac_c_preproc_warn_flag in '' yes
6853do
6854 # Use a header file that comes with gcc, so configuring glibc
6855 # with a fresh cross-compiler works.
6856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6857 # <limits.h> exists even on freestanding compilers.
6858 # On the NeXT, cc -E runs the code through the compiler's parser,
6859 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006861/* end confdefs.h. */
6862#ifdef __STDC__
6863# include <limits.h>
6864#else
6865# include <assert.h>
6866#endif
6867 Syntax error
6868_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006869if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006870
cristy8b350f62009-11-15 23:12:43 +00006871else
cristy3ed852e2009-09-05 21:47:34 +00006872 # Broken: fails on valid input.
6873continue
6874fi
cristyda16f162011-02-19 23:52:17 +00006875rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006876
6877 # OK, works on sane cases. Now check whether nonexistent headers
6878 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006880/* end confdefs.h. */
6881#include <ac_nonexistent.h>
6882_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006883if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006884 # Broken: success on invalid input.
6885continue
6886else
cristy3ed852e2009-09-05 21:47:34 +00006887 # Passes both tests.
6888ac_preproc_ok=:
6889break
6890fi
cristyda16f162011-02-19 23:52:17 +00006891rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006892
6893done
6894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006895rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006896if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006897 break
6898fi
6899
6900 done
6901 ac_cv_prog_CPP=$CPP
6902
6903fi
6904 CPP=$ac_cv_prog_CPP
6905else
6906 ac_cv_prog_CPP=$CPP
6907fi
cristy8b350f62009-11-15 23:12:43 +00006908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006909$as_echo "$CPP" >&6; }
6910ac_preproc_ok=false
6911for ac_c_preproc_warn_flag in '' yes
6912do
6913 # Use a header file that comes with gcc, so configuring glibc
6914 # with a fresh cross-compiler works.
6915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916 # <limits.h> exists even on freestanding compilers.
6917 # On the NeXT, cc -E runs the code through the compiler's parser,
6918 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006920/* end confdefs.h. */
6921#ifdef __STDC__
6922# include <limits.h>
6923#else
6924# include <assert.h>
6925#endif
6926 Syntax error
6927_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006928if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006929
cristy8b350f62009-11-15 23:12:43 +00006930else
cristy3ed852e2009-09-05 21:47:34 +00006931 # Broken: fails on valid input.
6932continue
6933fi
cristyda16f162011-02-19 23:52:17 +00006934rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006935
6936 # OK, works on sane cases. Now check whether nonexistent headers
6937 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006939/* end confdefs.h. */
6940#include <ac_nonexistent.h>
6941_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006942if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006943 # Broken: success on invalid input.
6944continue
6945else
cristy3ed852e2009-09-05 21:47:34 +00006946 # Passes both tests.
6947ac_preproc_ok=:
6948break
6949fi
cristyda16f162011-02-19 23:52:17 +00006950rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006951
6952done
6953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006954rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006955if $ac_preproc_ok; then :
6956
cristy3ed852e2009-09-05 21:47:34 +00006957else
cristy8b350f62009-11-15 23:12:43 +00006958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006960as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6961See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006962fi
6963
6964ac_ext=c
6965ac_cpp='$CPP $CPPFLAGS'
6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969
cristy73bd4a52010-10-05 11:24:23 +00006970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6971$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006972if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006973 $as_echo_n "(cached) " >&6
6974else
6975 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6976 for ac_i in 1 2 3 4 5 6 7; do
6977 ac_script="$ac_script$as_nl$ac_script"
6978 done
6979 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6980 { ac_script=; unset ac_script;}
6981 if test -z "$SED"; then
6982 ac_path_SED_found=false
6983 # Loop through the user's path and test for each of PROGNAME-LIST
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_prog in sed gsed; do
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6992 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6993# Check for GNU ac_path_SED and select it if it is found.
6994 # Check for GNU $ac_path_SED
6995case `"$ac_path_SED" --version 2>&1` in
6996*GNU*)
6997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6998*)
6999 ac_count=0
7000 $as_echo_n 0123456789 >"conftest.in"
7001 while :
7002 do
7003 cat "conftest.in" "conftest.in" >"conftest.tmp"
7004 mv "conftest.tmp" "conftest.in"
7005 cp "conftest.in" "conftest.nl"
7006 $as_echo '' >> "conftest.nl"
7007 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7009 as_fn_arith $ac_count + 1 && ac_count=$as_val
7010 if test $ac_count -gt ${ac_path_SED_max-0}; then
7011 # Best one so far, save it but keep looking for a better one
7012 ac_cv_path_SED="$ac_path_SED"
7013 ac_path_SED_max=$ac_count
7014 fi
7015 # 10*(2^10) chars as input seems more than enough
7016 test $ac_count -gt 10 && break
7017 done
7018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7019esac
7020
7021 $ac_path_SED_found && break 3
7022 done
7023 done
7024 done
7025IFS=$as_save_IFS
7026 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007027 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007028 fi
7029else
7030 ac_cv_path_SED=$SED
7031fi
7032
7033fi
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7035$as_echo "$ac_cv_path_SED" >&6; }
7036 SED="$ac_cv_path_SED"
7037 rm -f conftest.sed
7038
7039test -z "$SED" && SED=sed
7040Xsed="$SED -e 1s/^X//"
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7053$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007054if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007055 $as_echo_n "(cached) " >&6
7056else
7057 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7058 then ac_cv_path_FGREP="$GREP -F"
7059 else
7060 if test -z "$FGREP"; then
7061 ac_path_FGREP_found=false
7062 # Loop through the user's path and test for each of PROGNAME-LIST
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_prog in fgrep; do
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7071 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7072# Check for GNU ac_path_FGREP and select it if it is found.
7073 # Check for GNU $ac_path_FGREP
7074case `"$ac_path_FGREP" --version 2>&1` in
7075*GNU*)
7076 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7077*)
7078 ac_count=0
7079 $as_echo_n 0123456789 >"conftest.in"
7080 while :
7081 do
7082 cat "conftest.in" "conftest.in" >"conftest.tmp"
7083 mv "conftest.tmp" "conftest.in"
7084 cp "conftest.in" "conftest.nl"
7085 $as_echo 'FGREP' >> "conftest.nl"
7086 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7088 as_fn_arith $ac_count + 1 && ac_count=$as_val
7089 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7090 # Best one so far, save it but keep looking for a better one
7091 ac_cv_path_FGREP="$ac_path_FGREP"
7092 ac_path_FGREP_max=$ac_count
7093 fi
7094 # 10*(2^10) chars as input seems more than enough
7095 test $ac_count -gt 10 && break
7096 done
7097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7098esac
7099
7100 $ac_path_FGREP_found && break 3
7101 done
7102 done
7103 done
7104IFS=$as_save_IFS
7105 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007106 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007107 fi
7108else
7109 ac_cv_path_FGREP=$FGREP
7110fi
7111
7112 fi
7113fi
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7115$as_echo "$ac_cv_path_FGREP" >&6; }
7116 FGREP="$ac_cv_path_FGREP"
7117
7118
7119test -z "$GREP" && GREP=grep
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
cristy0c60a692010-11-04 01:09:47 +00007137ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7138ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7139ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7140
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7142$as_echo_n "checking how to print strings... " >&6; }
7143# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007144if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007145 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7146 ECHO='print -r --'
7147elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7148 ECHO='printf %s\n'
7149else
7150 # Use this function as a fallback that always works.
7151 func_fallback_echo ()
7152 {
7153 eval 'cat <<_LTECHO_EOF
7154$1
7155_LTECHO_EOF'
7156 }
7157 ECHO='func_fallback_echo'
7158fi
7159
7160# func_echo_all arg...
7161# Invoke $ECHO with all args, space-separated.
7162func_echo_all ()
7163{
7164 $ECHO ""
7165}
7166
7167case "$ECHO" in
7168 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7169$as_echo "printf" >&6; } ;;
7170 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7171$as_echo "print -r" >&6; } ;;
7172 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7173$as_echo "cat" >&6; } ;;
7174esac
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
cristy73bd4a52010-10-05 11:24:23 +00007189
7190
7191# Check whether --with-gnu-ld was given.
7192if test "${with_gnu_ld+set}" = set; then :
7193 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7194else
7195 with_gnu_ld=no
7196fi
7197
7198ac_prog=ld
7199if test "$GCC" = yes; then
7200 # Check if gcc -print-prog-name=ld gives a path.
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7202$as_echo_n "checking for ld used by $CC... " >&6; }
7203 case $host in
7204 *-*-mingw*)
7205 # gcc leaves a trailing carriage return which upsets mingw
7206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7207 *)
7208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7209 esac
7210 case $ac_prog in
7211 # Accept absolute paths.
7212 [\\/]* | ?:[\\/]*)
7213 re_direlt='/[^/][^/]*/\.\./'
7214 # Canonicalize the pathname of ld
7215 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7216 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7217 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7218 done
7219 test -z "$LD" && LD="$ac_prog"
7220 ;;
7221 "")
7222 # If it fails, then pretend we aren't using GCC.
7223 ac_prog=ld
7224 ;;
7225 *)
7226 # If it is relative, then search for the first ld in PATH.
7227 with_gnu_ld=unknown
7228 ;;
7229 esac
7230elif test "$with_gnu_ld" = yes; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7232$as_echo_n "checking for GNU ld... " >&6; }
7233else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7235$as_echo_n "checking for non-GNU ld... " >&6; }
7236fi
cristyda16f162011-02-19 23:52:17 +00007237if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007238 $as_echo_n "(cached) " >&6
7239else
7240 if test -z "$LD"; then
7241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7242 for ac_dir in $PATH; do
7243 IFS="$lt_save_ifs"
7244 test -z "$ac_dir" && ac_dir=.
7245 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7246 lt_cv_path_LD="$ac_dir/$ac_prog"
7247 # Check to see if the program is GNU ld. I'd rather use --version,
7248 # but apparently some variants of GNU ld only accept -v.
7249 # Break only if it was the GNU/non-GNU ld that we prefer.
7250 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7251 *GNU* | *'with BFD'*)
7252 test "$with_gnu_ld" != no && break
7253 ;;
7254 *)
7255 test "$with_gnu_ld" != yes && break
7256 ;;
7257 esac
7258 fi
7259 done
7260 IFS="$lt_save_ifs"
7261else
7262 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7263fi
7264fi
7265
7266LD="$lt_cv_path_LD"
7267if test -n "$LD"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7269$as_echo "$LD" >&6; }
7270else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272$as_echo "no" >&6; }
7273fi
cristy98dddb52010-11-04 00:30:15 +00007274test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7276$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007277if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007278 $as_echo_n "(cached) " >&6
7279else
7280 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7281case `$LD -v 2>&1 </dev/null` in
7282*GNU* | *'with BFD'*)
7283 lt_cv_prog_gnu_ld=yes
7284 ;;
7285*)
7286 lt_cv_prog_gnu_ld=no
7287 ;;
7288esac
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7291$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7292with_gnu_ld=$lt_cv_prog_gnu_ld
7293
7294
7295
7296
7297
7298
7299
7300
7301
cristy3ed852e2009-09-05 21:47:34 +00007302
cristy837d6dc2010-02-27 01:16:57 +00007303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7304$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007305if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007306 $as_echo_n "(cached) " >&6
7307else
7308 ac_cv_prog_cc_c99=no
7309ac_save_CC=$CC
7310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312#include <stdarg.h>
7313#include <stdbool.h>
7314#include <stdlib.h>
7315#include <wchar.h>
7316#include <stdio.h>
7317
7318// Check varargs macros. These examples are taken from C99 6.10.3.5.
7319#define debug(...) fprintf (stderr, __VA_ARGS__)
7320#define showlist(...) puts (#__VA_ARGS__)
7321#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7322static void
7323test_varargs_macros (void)
7324{
7325 int x = 1234;
7326 int y = 5678;
7327 debug ("Flag");
7328 debug ("X = %d\n", x);
7329 showlist (The first, second, and third items.);
7330 report (x>y, "x is %d but y is %d", x, y);
7331}
7332
7333// Check long long types.
7334#define BIG64 18446744073709551615ull
7335#define BIG32 4294967295ul
7336#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7337#if !BIG_OK
7338 your preprocessor is broken;
7339#endif
7340#if BIG_OK
7341#else
7342 your preprocessor is broken;
7343#endif
7344static long long int bignum = -9223372036854775807LL;
7345static unsigned long long int ubignum = BIG64;
7346
7347struct incomplete_array
7348{
7349 int datasize;
7350 double data[];
7351};
7352
7353struct named_init {
7354 int number;
7355 const wchar_t *name;
7356 double average;
7357};
7358
7359typedef const char *ccp;
7360
7361static inline int
7362test_restrict (ccp restrict text)
7363{
7364 // See if C++-style comments work.
7365 // Iterate through items via the restricted pointer.
7366 // Also check for declarations in for loops.
7367 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7368 continue;
7369 return 0;
7370}
7371
7372// Check varargs and va_copy.
7373static void
7374test_varargs (const char *format, ...)
7375{
7376 va_list args;
7377 va_start (args, format);
7378 va_list args_copy;
7379 va_copy (args_copy, args);
7380
7381 const char *str;
7382 int number;
7383 float fnumber;
7384
7385 while (*format)
7386 {
7387 switch (*format++)
7388 {
7389 case 's': // string
7390 str = va_arg (args_copy, const char *);
7391 break;
7392 case 'd': // int
7393 number = va_arg (args_copy, int);
7394 break;
7395 case 'f': // float
7396 fnumber = va_arg (args_copy, double);
7397 break;
7398 default:
7399 break;
7400 }
7401 }
7402 va_end (args_copy);
7403 va_end (args);
7404}
7405
7406int
7407main ()
7408{
7409
7410 // Check bool.
7411 _Bool success = false;
7412
7413 // Check restrict.
7414 if (test_restrict ("String literal") == 0)
7415 success = true;
7416 char *restrict newvar = "Another string";
7417
7418 // Check varargs.
7419 test_varargs ("s, d' f .", "string", 65, 34.234);
7420 test_varargs_macros ();
7421
7422 // Check flexible array members.
7423 struct incomplete_array *ia =
7424 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7425 ia->datasize = 10;
7426 for (int i = 0; i < ia->datasize; ++i)
7427 ia->data[i] = i * 1.234;
7428
7429 // Check named initializers.
7430 struct named_init ni = {
7431 .number = 34,
7432 .name = L"Test wide string",
7433 .average = 543.34343,
7434 };
7435
7436 ni.number = 58;
7437
7438 int dynamic_array[ni.number];
7439 dynamic_array[ni.number - 1] = 543;
7440
7441 // work around unused variable warnings
7442 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7443 || dynamic_array[ni.number - 1] != 543);
7444
7445 ;
7446 return 0;
7447}
7448_ACEOF
7449for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7450do
7451 CC="$ac_save_CC $ac_arg"
7452 if ac_fn_c_try_compile "$LINENO"; then :
7453 ac_cv_prog_cc_c99=$ac_arg
7454fi
7455rm -f core conftest.err conftest.$ac_objext
7456 test "x$ac_cv_prog_cc_c99" != "xno" && break
7457done
7458rm -f conftest.$ac_ext
7459CC=$ac_save_CC
7460
7461fi
7462# AC_CACHE_VAL
7463case "x$ac_cv_prog_cc_c99" in
7464 x)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7466$as_echo "none needed" >&6; } ;;
7467 xno)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7469$as_echo "unsupported" >&6; } ;;
7470 *)
7471 CC="$CC $ac_cv_prog_cc_c99"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7473$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7474esac
7475if test "x$ac_cv_prog_cc_c99" != xno; then :
7476
7477fi
7478
7479
cristy73bd4a52010-10-05 11:24:23 +00007480if test "x$CC" != xcc; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7482$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7483else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7485$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7486fi
7487set dummy $CC; ac_cc=`$as_echo "$2" |
7488 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007489if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007490 $as_echo_n "(cached) " >&6
7491else
cristy73bd4a52010-10-05 11:24:23 +00007492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493/* end confdefs.h. */
7494
7495int
7496main ()
7497{
7498
7499 ;
7500 return 0;
7501}
7502_ACEOF
7503# Make sure it works both with $CC and with simple cc.
7504# We do the test twice because some compilers refuse to overwrite an
7505# existing .o file with -o, though they will create one.
7506ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7507rm -f conftest2.*
7508if { { case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511esac
7512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7513$as_echo "$ac_try_echo"; } >&5
7514 (eval "$ac_try") 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; } &&
7518 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521esac
7522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7523$as_echo "$ac_try_echo"; } >&5
7524 (eval "$ac_try") 2>&5
7525 ac_status=$?
7526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; };
7528then
7529 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7530 if test "x$CC" != xcc; then
7531 # Test first that cc exists at all.
7532 if { ac_try='cc -c conftest.$ac_ext >&5'
7533 { { case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
7537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7538$as_echo "$ac_try_echo"; } >&5
7539 (eval "$ac_try") 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; }; }; then
7543 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7544 rm -f conftest2.*
7545 if { { case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
7549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7550$as_echo "$ac_try_echo"; } >&5
7551 (eval "$ac_try") 2>&5
7552 ac_status=$?
7553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7554 test $ac_status = 0; } &&
7555 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558esac
7559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7560$as_echo "$ac_try_echo"; } >&5
7561 (eval "$ac_try") 2>&5
7562 ac_status=$?
7563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7564 test $ac_status = 0; };
7565 then
7566 # cc works too.
7567 :
7568 else
7569 # cc exists but doesn't like -o.
7570 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7571 fi
7572 fi
7573 fi
7574else
7575 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7576fi
7577rm -f core conftest*
7578
7579fi
7580if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7582$as_echo "yes" >&6; }
7583else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586
7587$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7588
7589fi
7590
7591# FIXME: we rely on the cache variable name because
7592# there is no other way.
7593set dummy $CC
7594am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7595eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7596if test "$am_t" != yes; then
7597 # Losing compiler, so override with the script.
7598 # FIXME: It is wrong to rewrite CC.
7599 # But if we don't then we get into trouble of one sort or another.
7600 # A longer-term fix would be to have automake use am__CC in this case,
7601 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7602 CC="$am_aux_dir/compile $CC"
7603fi
7604
7605
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7607$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007608if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007609 $as_echo_n "(cached) " >&6
7610else
7611 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007612 ac_ext=c
7613ac_cpp='$CPP $CPPFLAGS'
7614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616ac_compiler_gnu=$ac_cv_c_compiler_gnu
7617
7618 ac_save_CFLAGS="$CFLAGS"
7619for 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" #
7620do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622/* end confdefs.h. */
7623
7624int
7625main ()
7626{
cristy24fc1fe2010-10-23 21:13:01 +00007627
cristy73bd4a52010-10-05 11:24:23 +00007628 ;
7629 return 0;
7630}
7631_ACEOF
7632if ac_fn_c_try_compile "$LINENO"; then :
7633 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7634fi
7635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636done
7637 CFLAGS="$ac_save_CFLAGS"
7638 ac_ext=c
7639ac_cpp='$CPP $CPPFLAGS'
7640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643
7644
7645fi
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7647$as_echo "$ac_cv_cflags_warn_all" >&6; }
7648case ".$ac_cv_cflags_warn_all" in
7649 .ok|.ok,*) ;;
7650 .|.no|.no,*)
7651 ;;
7652 *)
7653 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7654 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7655 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7656 ac_status=$?
7657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658 test $ac_status = 0; }
7659 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7660 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7661 ac_status=$?
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; }
7664 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7665 fi
7666 ;;
nicolas6237c462010-10-05 06:11:49 +00007667esac
cristy3ed852e2009-09-05 21:47:34 +00007668
cristya0b81c32010-01-22 02:54:33 +00007669
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7671$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7672set x ${MAKE-make}
7673ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007674if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007675 $as_echo_n "(cached) " >&6
7676else
7677 cat >conftest.make <<\_ACEOF
7678SHELL = /bin/sh
7679all:
7680 @echo '@@@%%%=$(MAKE)=@@@%%%'
7681_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007682# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007683case `${MAKE-make} -f conftest.make 2>/dev/null` in
7684 *@@@%%%=?*=@@@%%%*)
7685 eval ac_cv_prog_make_${ac_make}_set=yes;;
7686 *)
7687 eval ac_cv_prog_make_${ac_make}_set=no;;
7688esac
7689rm -f conftest.make
7690fi
7691if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7693$as_echo "yes" >&6; }
7694 SET_MAKE=
7695else
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
7698 SET_MAKE="MAKE=${MAKE-make}"
7699fi
7700
cristy8b350f62009-11-15 23:12:43 +00007701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007702$as_echo_n "checking whether ln -s works... " >&6; }
7703LN_S=$as_ln_s
7704if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007706$as_echo "yes" >&6; }
7707else
cristy8b350f62009-11-15 23:12:43 +00007708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007709$as_echo "no, using $LN_S" >&6; }
7710fi
7711
cristy73bd4a52010-10-05 11:24:23 +00007712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7713$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7714
7715# Check whether --with-dmalloc was given.
7716if test "${with_dmalloc+set}" = set; then :
7717 withval=$with_dmalloc; if test "$withval" = yes; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7719$as_echo "yes" >&6; }
7720
7721$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7722
7723 LIBS="$LIBS -ldmalloc"
7724 LDFLAGS="$LDFLAGS -g"
7725else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728fi
7729else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731$as_echo "no" >&6; }
7732fi
7733
7734
7735
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7737$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007738if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007739 $as_echo_n "(cached) " >&6
7740else
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h. */
7743#include <stdlib.h>
7744 static void foo(void) __attribute__ ((unused));
7745 static void
7746 foo(void) {
7747 exit(1);
7748 }
7749
7750int
7751main ()
7752{
7753
7754 ;
7755 return 0;
7756}
7757_ACEOF
7758if ac_fn_c_try_compile "$LINENO"; then :
7759 ax_cv___attribute__=yes
7760else
7761 ax_cv___attribute__=no
7762
7763fi
7764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765
7766fi
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7768$as_echo "$ax_cv___attribute__" >&6; }
7769 if test "$ax_cv___attribute__" = "yes"; then
7770
7771$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7772
7773 fi
7774
7775
7776
7777if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7780set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007783if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007784 $as_echo_n "(cached) " >&6
7785else
7786 case $PKG_CONFIG in
7787 [\\/]* | ?:[\\/]*)
7788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7789 ;;
7790 *)
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7801 fi
7802done
7803 done
7804IFS=$as_save_IFS
7805
7806 ;;
7807esac
7808fi
7809PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7810if test -n "$PKG_CONFIG"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7812$as_echo "$PKG_CONFIG" >&6; }
7813else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818
7819fi
7820if test -z "$ac_cv_path_PKG_CONFIG"; then
7821 ac_pt_PKG_CONFIG=$PKG_CONFIG
7822 # Extract the first word of "pkg-config", so it can be a program name with args.
7823set dummy pkg-config; ac_word=$2
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007826if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007827 $as_echo_n "(cached) " >&6
7828else
7829 case $ac_pt_PKG_CONFIG in
7830 [\\/]* | ?:[\\/]*)
7831 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7832 ;;
7833 *)
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846 done
7847IFS=$as_save_IFS
7848
7849 ;;
7850esac
7851fi
7852ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7853if test -n "$ac_pt_PKG_CONFIG"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7855$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7856else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
7859fi
7860
7861 if test "x$ac_pt_PKG_CONFIG" = x; then
7862 PKG_CONFIG=""
7863 else
7864 case $cross_compiling:$ac_tool_warned in
7865yes:)
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868ac_tool_warned=yes ;;
7869esac
7870 PKG_CONFIG=$ac_pt_PKG_CONFIG
7871 fi
7872else
7873 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7874fi
7875
7876fi
7877if test -n "$PKG_CONFIG"; then
7878 _pkg_min_version=0.9.0
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7880$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7881 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883$as_echo "yes" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887 PKG_CONFIG=""
7888 fi
7889
7890fi
cristy3ed852e2009-09-05 21:47:34 +00007891
7892#
cristy3ed852e2009-09-05 21:47:34 +00007893# Enable run-time checking.
7894#
7895# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007896if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007897 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7898else
7899 enable_bounds_checking='no'
7900fi
7901
7902
7903if test "$enable_bounds_checking" = yes; then
7904
cristy8b350f62009-11-15 23:12:43 +00007905$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007906
7907fi
7908
7909#
7910# Tests for Windows
7911#
7912
7913
cristy73bd4a52010-10-05 11:24:23 +00007914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7915$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007916if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007917 $as_echo_n "(cached) " >&6
7918else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h. */
7921
7922int
7923main ()
7924{
7925#ifndef _MSC_VER
7926 choke me
7927#endif
7928
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_compile "$LINENO"; then :
7934 ax_compiler_ms=yes
7935else
7936 ax_compiler_ms=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939ax_cv_c_compiler_ms=$ax_compiler_ms
7940
7941fi
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7943$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007944
7945GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007946native_win32_build='no'
7947cygwin_build='no'
7948case "${host_os}" in
7949 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007950 cygwin_build='yes'
7951 GDI32_LIBS='-lgdi32'
7952 ;;
7953 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007954 native_win32_build='yes'
7955 GDI32_LIBS='-lgdi32'
7956 ;;
7957esac
7958if test "${GDI32_LIBS}x" != 'x'; then
7959
cristy8b350f62009-11-15 23:12:43 +00007960$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007961
7962fi
7963
cristy73bd4a52010-10-05 11:24:23 +00007964 if test "${GDI32_LIBS}x" != 'x' ; then
7965 WINGDI32_DELEGATE_TRUE=
7966 WINGDI32_DELEGATE_FALSE='#'
7967else
7968 WINGDI32_DELEGATE_TRUE='#'
7969 WINGDI32_DELEGATE_FALSE=
7970fi
7971
7972 if test "${native_win32_build}" = 'yes' ; then
7973 WIN32_NATIVE_BUILD_TRUE=
7974 WIN32_NATIVE_BUILD_FALSE='#'
7975else
7976 WIN32_NATIVE_BUILD_TRUE='#'
7977 WIN32_NATIVE_BUILD_FALSE=
7978fi
7979
7980 if test "${cygwin_build}" = 'yes' ; then
7981 CYGWIN_BUILD_TRUE=
7982 CYGWIN_BUILD_FALSE='#'
7983else
7984 CYGWIN_BUILD_TRUE='#'
7985 CYGWIN_BUILD_FALSE=
7986fi
7987
7988 if test "x${CC}" = 'xcl.exe' ; then
7989 USING_CL_TRUE=
7990 USING_CL_FALSE='#'
7991else
7992 USING_CL_TRUE='#'
7993 USING_CL_FALSE=
7994fi
7995
cristy3ed852e2009-09-05 21:47:34 +00007996
7997WinPathScript="${srcdirfull}/winpath.sh"
7998
7999
8000#
8001# Compiler flags tweaks
8002#
8003if test "${GCC}" != "yes"; then
8004 case "${host}" in
8005 *-*-hpux* )
8006 # aCC: HP ANSI C++ B3910B A.03.34
8007 CFLAGS="${CFLAGS} -Wp,-H30000"
8008 if test -n "${CXXFLAGS}"; then
8009 CXXFLAGS='-AA'
8010 else
8011 CXXFLAGS="${CXXFLAGS} -AA"
8012 fi
8013 ;;
8014 *-dec-osf5.* )
8015 # Compaq alphaev68-dec-osf5.1 compiler
8016 if test -n "${CXXFLAGS}"; then
8017 CXXFLAGS='-std strict_ansi -noimplicit_include'
8018 else
8019 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8020 fi
8021 esac
8022fi
8023
8024# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008026$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008027if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008028 $as_echo_n "(cached) " >&6
8029else
8030
8031im_cv_ld_lazyload='none'
8032case "${host}" in
8033 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8034 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8035 im_cv_ld_lazyload='-Wl,-zlazyload'
8036 fi
8037 ;;
8038esac
8039
8040fi
cristy8b350f62009-11-15 23:12:43 +00008041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008042$as_echo "$im_cv_ld_lazyload" >&6; }
8043if test "${im_cv_ld_lazyload}" != 'none' ; then
8044 if test -z "${LDFLAGS}" ; then
8045 LDFLAGS="${im_cv_ld_lazyload}"
8046 else
8047 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8048 fi
8049fi
8050
8051case "$host" in
8052*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008053 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008054if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008055 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8056else
8057 build_osxuniversal=no
8058fi
8059
8060
8061 if test "${build_osxuniversal}" != no ; then
8062 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008063 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008064Please re-run configure with these options:
8065 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008066 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008067 fi
8068 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8069 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8070 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8071 fi
8072 ;;
8073esac
8074
8075# Enable support for threads
8076
8077# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008078if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008079 withval=$with_threads; with_threads=$withval
8080else
8081 with_threads='yes'
8082fi
8083
8084
8085have_threads=no
8086if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008087
8088
8089
8090ac_ext=c
8091ac_cpp='$CPP $CPPFLAGS'
8092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096ax_pthread_ok=no
8097
8098# We used to check for pthread.h first, but this fails if pthread.h
8099# requires special compiler flags (e.g. on True64 or Sequent).
8100# It gets checked for in the link test anyway.
8101
8102# First of all, check if the user has set any of the PTHREAD_LIBS,
8103# etcetera environment variables, and if threads linking works using
8104# them:
8105if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8106 save_CFLAGS="$CFLAGS"
8107 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8108 save_LIBS="$LIBS"
8109 LIBS="$PTHREAD_LIBS $LIBS"
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8111$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113/* end confdefs.h. */
8114
8115/* Override any GCC internal prototype to avoid an error.
8116 Use char because int might match the return type of a GCC
8117 builtin and then its argument prototype would still apply. */
8118#ifdef __cplusplus
8119extern "C"
8120#endif
8121char pthread_join ();
8122int
8123main ()
8124{
8125return pthread_join ();
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130if ac_fn_c_try_link "$LINENO"; then :
8131 ax_pthread_ok=yes
8132fi
8133rm -f core conftest.err conftest.$ac_objext \
8134 conftest$ac_exeext conftest.$ac_ext
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8136$as_echo "$ax_pthread_ok" >&6; }
8137 if test x"$ax_pthread_ok" = xno; then
8138 PTHREAD_LIBS=""
8139 PTHREAD_CFLAGS=""
8140 fi
8141 LIBS="$save_LIBS"
8142 CFLAGS="$save_CFLAGS"
8143fi
8144
8145# We must check for the threads library under a number of different
8146# names; the ordering is very important because some systems
8147# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8148# libraries is broken (non-POSIX).
8149
8150# Create a list of thread flags to try. Items starting with a "-" are
8151# C compiler flags, and other items are library names, except for "none"
8152# which indicates that we try without any flags at all, and "pthread-config"
8153# which is a program returning the flags for the Pth emulation library.
8154
8155ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8156
8157# The ordering *is* (sometimes) important. Some notes on the
8158# individual items follow:
8159
8160# pthreads: AIX (must check this before -lpthread)
8161# none: in case threads are in libc; should be tried before -Kthread and
8162# other compiler flags to prevent continual compiler warnings
8163# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8164# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8165# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8166# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8167# -pthreads: Solaris/gcc
8168# -mthreads: Mingw32/gcc, Lynx/gcc
8169# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8170# doesn't hurt to check since this sometimes defines pthreads too;
8171# also defines -D_REENTRANT)
8172# ... -mt is also the pthreads flag for HP/aCC
8173# pthread: Linux, etcetera
8174# --thread-safe: KAI C++
8175# pthread-config: use pthread-config program (for GNU Pth library)
8176
8177case "${host_cpu}-${host_os}" in
8178 *solaris*)
8179
8180 # On Solaris (at least, for some versions), libc contains stubbed
8181 # (non-functional) versions of the pthreads routines, so link-based
8182 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8183 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8184 # a function called by this macro, so we could check for that, but
8185 # who knows whether they'll stub that too in a future libc.) So,
8186 # we'll just look for -pthreads and -lpthread first:
8187
8188 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8189 ;;
8190
8191 *-darwin*)
8192 ax_pthread_flags="-pthread $ax_pthread_flags"
8193 ;;
8194esac
8195
8196if test x"$ax_pthread_ok" = xno; then
8197for flag in $ax_pthread_flags; do
8198
8199 case $flag in
8200 none)
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8202$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8203 ;;
8204
8205 -*)
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8207$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8208 PTHREAD_CFLAGS="$flag"
8209 ;;
8210
8211 pthread-config)
8212 # Extract the first word of "pthread-config", so it can be a program name with args.
8213set dummy pthread-config; ac_word=$2
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008216if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008217 $as_echo_n "(cached) " >&6
8218else
8219 if test -n "$ax_pthread_config"; then
8220 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8221else
8222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_prog_ax_pthread_config="yes"
8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233done
8234 done
8235IFS=$as_save_IFS
8236
8237 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8238fi
8239fi
8240ax_pthread_config=$ac_cv_prog_ax_pthread_config
8241if test -n "$ax_pthread_config"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8243$as_echo "$ax_pthread_config" >&6; }
8244else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247fi
8248
8249
8250 if test x"$ax_pthread_config" = xno; then continue; fi
8251 PTHREAD_CFLAGS="`pthread-config --cflags`"
8252 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8253 ;;
8254
8255 *)
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8257$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8258 PTHREAD_LIBS="-l$flag"
8259 ;;
8260 esac
8261
8262 save_LIBS="$LIBS"
8263 save_CFLAGS="$CFLAGS"
8264 LIBS="$PTHREAD_LIBS $LIBS"
8265 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8266
8267 # Check for various functions. We must include pthread.h,
8268 # since some functions may be macros. (On the Sequent, we
8269 # need a special flag -Kthread to make this header compile.)
8270 # We check for pthread_join because it is in -lpthread on IRIX
8271 # while pthread_create is in libc. We check for pthread_attr_init
8272 # due to DEC craziness with -lpthreads. We check for
8273 # pthread_cleanup_push because it is one of the few pthread
8274 # functions on Solaris that doesn't have a non-functional libc stub.
8275 # We try pthread_create on general principles.
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h. */
8278#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008279 static void routine(void* a) {a=0;}
8280 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008281int
8282main ()
8283{
8284pthread_t th; pthread_attr_t attr;
8285 pthread_create(&th,0,start_routine,0);
8286 pthread_join(th, 0);
8287 pthread_attr_init(&attr);
8288 pthread_cleanup_push(routine, 0);
8289 pthread_cleanup_pop(0);
8290 ;
8291 return 0;
8292}
8293_ACEOF
8294if ac_fn_c_try_link "$LINENO"; then :
8295 ax_pthread_ok=yes
8296fi
8297rm -f core conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299
8300 LIBS="$save_LIBS"
8301 CFLAGS="$save_CFLAGS"
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8304$as_echo "$ax_pthread_ok" >&6; }
8305 if test "x$ax_pthread_ok" = xyes; then
8306 break;
8307 fi
8308
8309 PTHREAD_LIBS=""
8310 PTHREAD_CFLAGS=""
8311done
8312fi
8313
8314# Various other checks:
8315if test "x$ax_pthread_ok" = xyes; then
8316 save_LIBS="$LIBS"
8317 LIBS="$PTHREAD_LIBS $LIBS"
8318 save_CFLAGS="$CFLAGS"
8319 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8320
8321 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8323$as_echo_n "checking for joinable pthread attribute... " >&6; }
8324 attr_name=unknown
8325 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h. */
8328#include <pthread.h>
8329int
8330main ()
8331{
8332int attr=$attr; return attr;
8333 ;
8334 return 0;
8335}
8336_ACEOF
8337if ac_fn_c_try_link "$LINENO"; then :
8338 attr_name=$attr; break
8339fi
8340rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 done
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8344$as_echo "$attr_name" >&6; }
8345 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8346
8347cat >>confdefs.h <<_ACEOF
8348#define PTHREAD_CREATE_JOINABLE $attr_name
8349_ACEOF
8350
8351 fi
8352
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8354$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8355 flag=no
8356 case "${host_cpu}-${host_os}" in
8357 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8358 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8359 esac
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8361$as_echo "${flag}" >&6; }
8362 if test "x$flag" != xno; then
8363 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8364 fi
8365
8366 LIBS="$save_LIBS"
8367 CFLAGS="$save_CFLAGS"
8368
8369 # More AIX lossage: must compile with xlc_r or cc_r
8370 if test x"$GCC" != xyes; then
8371 for ac_prog in xlc_r cc_r
8372do
8373 # Extract the first word of "$ac_prog", so it can be a program name with args.
8374set dummy $ac_prog; ac_word=$2
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008377if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008378 $as_echo_n "(cached) " >&6
8379else
8380 if test -n "$PTHREAD_CC"; then
8381 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8382else
8383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384for as_dir in $PATH
8385do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_prog_PTHREAD_CC="$ac_prog"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8393 fi
8394done
8395 done
8396IFS=$as_save_IFS
8397
8398fi
8399fi
8400PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8401if test -n "$PTHREAD_CC"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8403$as_echo "$PTHREAD_CC" >&6; }
8404else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406$as_echo "no" >&6; }
8407fi
8408
8409
8410 test -n "$PTHREAD_CC" && break
8411done
8412test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8413
8414 else
8415 PTHREAD_CC=$CC
8416 fi
8417else
8418 PTHREAD_CC="$CC"
8419fi
8420
8421
8422
8423
8424
8425# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8426if test x"$ax_pthread_ok" = xyes; then
8427
8428$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8429
8430 :
8431else
8432 ax_pthread_ok=no
8433
8434fi
8435ac_ext=c
8436ac_cpp='$CPP $CPPFLAGS'
8437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439ac_compiler_gnu=$ac_cv_c_compiler_gnu
8440
8441
cristy7acf8fb2010-09-23 19:58:53 +00008442 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008443 have_threads=yes
8444 DEF_THREAD="$PTHREAD_CFLAGS"
8445 CFLAGS="$CFLAGS $DEF_THREAD"
8446 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8447 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008448 { $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 +00008449$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8450 CC="$PTHREAD_CC"
8451 fi
cristy55bf91c2010-09-24 00:29:41 +00008452
8453$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8454
cristy3ed852e2009-09-05 21:47:34 +00008455 fi
8456fi
8457
8458# Enable support for OpenMP
8459if test "$have_threads" != 'yes'; then
8460 ac_cv_prog_c_openmp=unsupported
8461fi
8462
8463 OPENMP_CFLAGS=
8464 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008465if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008466 enableval=$enable_openmp;
8467fi
8468
8469 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008471$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008472if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008473 $as_echo_n "(cached) " >&6
8474else
cristy8b350f62009-11-15 23:12:43 +00008475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008477
8478#ifndef _OPENMP
8479 choke me
8480#endif
8481#include <omp.h>
8482int main () { return omp_get_num_threads (); }
8483
8484_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008486 ac_cv_prog_c_openmp='none needed'
8487else
cristy8b350f62009-11-15 23:12:43 +00008488 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008489 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8490 ac_save_CFLAGS=$CFLAGS
8491 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008494
8495#ifndef _OPENMP
8496 choke me
8497#endif
8498#include <omp.h>
8499int main () { return omp_get_num_threads (); }
8500
8501_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008503 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008504fi
cristy8b350f62009-11-15 23:12:43 +00008505rm -f core conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008507 CFLAGS=$ac_save_CFLAGS
8508 if test "$ac_cv_prog_c_openmp" != unsupported; then
8509 break
8510 fi
8511 done
8512fi
cristy8b350f62009-11-15 23:12:43 +00008513rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008515fi
cristy8b350f62009-11-15 23:12:43 +00008516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008517$as_echo "$ac_cv_prog_c_openmp" >&6; }
8518 case $ac_cv_prog_c_openmp in #(
8519 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008520 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008521 *)
cristy8b350f62009-11-15 23:12:43 +00008522 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008523 esac
8524 fi
8525
8526
8527CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8528MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8529
cristy391f1ce2010-09-09 17:23:28 +00008530if test "$enable_openmp" != no; then
8531 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8532 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8533 fi
8534fi
cristy3ed852e2009-09-05 21:47:34 +00008535
cristy736173a2009-09-20 21:18:22 +00008536# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008537
8538
8539
8540ac_ext=c
8541ac_cpp='$CPP $CPPFLAGS'
8542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8544ac_compiler_gnu=$ac_cv_c_compiler_gnu
8545
8546ax_pthread_ok=no
8547
8548# We used to check for pthread.h first, but this fails if pthread.h
8549# requires special compiler flags (e.g. on True64 or Sequent).
8550# It gets checked for in the link test anyway.
8551
8552# First of all, check if the user has set any of the PTHREAD_LIBS,
8553# etcetera environment variables, and if threads linking works using
8554# them:
8555if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8556 save_CFLAGS="$CFLAGS"
8557 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8558 save_LIBS="$LIBS"
8559 LIBS="$PTHREAD_LIBS $LIBS"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8561$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h. */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char pthread_join ();
8572int
8573main ()
8574{
8575return pthread_join ();
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580if ac_fn_c_try_link "$LINENO"; then :
8581 ax_pthread_ok=yes
8582fi
8583rm -f core conftest.err conftest.$ac_objext \
8584 conftest$ac_exeext conftest.$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8586$as_echo "$ax_pthread_ok" >&6; }
8587 if test x"$ax_pthread_ok" = xno; then
8588 PTHREAD_LIBS=""
8589 PTHREAD_CFLAGS=""
8590 fi
8591 LIBS="$save_LIBS"
8592 CFLAGS="$save_CFLAGS"
8593fi
8594
8595# We must check for the threads library under a number of different
8596# names; the ordering is very important because some systems
8597# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8598# libraries is broken (non-POSIX).
8599
8600# Create a list of thread flags to try. Items starting with a "-" are
8601# C compiler flags, and other items are library names, except for "none"
8602# which indicates that we try without any flags at all, and "pthread-config"
8603# which is a program returning the flags for the Pth emulation library.
8604
8605ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8606
8607# The ordering *is* (sometimes) important. Some notes on the
8608# individual items follow:
8609
8610# pthreads: AIX (must check this before -lpthread)
8611# none: in case threads are in libc; should be tried before -Kthread and
8612# other compiler flags to prevent continual compiler warnings
8613# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8614# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8615# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8616# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8617# -pthreads: Solaris/gcc
8618# -mthreads: Mingw32/gcc, Lynx/gcc
8619# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8620# doesn't hurt to check since this sometimes defines pthreads too;
8621# also defines -D_REENTRANT)
8622# ... -mt is also the pthreads flag for HP/aCC
8623# pthread: Linux, etcetera
8624# --thread-safe: KAI C++
8625# pthread-config: use pthread-config program (for GNU Pth library)
8626
8627case "${host_cpu}-${host_os}" in
8628 *solaris*)
8629
8630 # On Solaris (at least, for some versions), libc contains stubbed
8631 # (non-functional) versions of the pthreads routines, so link-based
8632 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8633 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8634 # a function called by this macro, so we could check for that, but
8635 # who knows whether they'll stub that too in a future libc.) So,
8636 # we'll just look for -pthreads and -lpthread first:
8637
8638 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8639 ;;
8640
8641 *-darwin*)
8642 ax_pthread_flags="-pthread $ax_pthread_flags"
8643 ;;
8644esac
8645
8646if test x"$ax_pthread_ok" = xno; then
8647for flag in $ax_pthread_flags; do
8648
8649 case $flag in
8650 none)
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8652$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8653 ;;
8654
8655 -*)
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8657$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8658 PTHREAD_CFLAGS="$flag"
8659 ;;
8660
8661 pthread-config)
8662 # Extract the first word of "pthread-config", so it can be a program name with args.
8663set dummy pthread-config; ac_word=$2
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008666if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008667 $as_echo_n "(cached) " >&6
8668else
8669 if test -n "$ax_pthread_config"; then
8670 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8671else
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_ax_pthread_config="yes"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683done
8684 done
8685IFS=$as_save_IFS
8686
8687 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8688fi
8689fi
8690ax_pthread_config=$ac_cv_prog_ax_pthread_config
8691if test -n "$ax_pthread_config"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8693$as_echo "$ax_pthread_config" >&6; }
8694else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696$as_echo "no" >&6; }
8697fi
8698
8699
8700 if test x"$ax_pthread_config" = xno; then continue; fi
8701 PTHREAD_CFLAGS="`pthread-config --cflags`"
8702 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8703 ;;
8704
8705 *)
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8707$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8708 PTHREAD_LIBS="-l$flag"
8709 ;;
8710 esac
8711
8712 save_LIBS="$LIBS"
8713 save_CFLAGS="$CFLAGS"
8714 LIBS="$PTHREAD_LIBS $LIBS"
8715 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8716
8717 # Check for various functions. We must include pthread.h,
8718 # since some functions may be macros. (On the Sequent, we
8719 # need a special flag -Kthread to make this header compile.)
8720 # We check for pthread_join because it is in -lpthread on IRIX
8721 # while pthread_create is in libc. We check for pthread_attr_init
8722 # due to DEC craziness with -lpthreads. We check for
8723 # pthread_cleanup_push because it is one of the few pthread
8724 # functions on Solaris that doesn't have a non-functional libc stub.
8725 # We try pthread_create on general principles.
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h. */
8728#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008729 static void routine(void* a) {a=0;}
8730 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008731int
8732main ()
8733{
8734pthread_t th; pthread_attr_t attr;
8735 pthread_create(&th,0,start_routine,0);
8736 pthread_join(th, 0);
8737 pthread_attr_init(&attr);
8738 pthread_cleanup_push(routine, 0);
8739 pthread_cleanup_pop(0);
8740 ;
8741 return 0;
8742}
8743_ACEOF
8744if ac_fn_c_try_link "$LINENO"; then :
8745 ax_pthread_ok=yes
8746fi
8747rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749
8750 LIBS="$save_LIBS"
8751 CFLAGS="$save_CFLAGS"
8752
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8754$as_echo "$ax_pthread_ok" >&6; }
8755 if test "x$ax_pthread_ok" = xyes; then
8756 break;
8757 fi
8758
8759 PTHREAD_LIBS=""
8760 PTHREAD_CFLAGS=""
8761done
8762fi
8763
8764# Various other checks:
8765if test "x$ax_pthread_ok" = xyes; then
8766 save_LIBS="$LIBS"
8767 LIBS="$PTHREAD_LIBS $LIBS"
8768 save_CFLAGS="$CFLAGS"
8769 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8770
8771 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8773$as_echo_n "checking for joinable pthread attribute... " >&6; }
8774 attr_name=unknown
8775 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h. */
8778#include <pthread.h>
8779int
8780main ()
8781{
8782int attr=$attr; return attr;
8783 ;
8784 return 0;
8785}
8786_ACEOF
8787if ac_fn_c_try_link "$LINENO"; then :
8788 attr_name=$attr; break
8789fi
8790rm -f core conftest.err conftest.$ac_objext \
8791 conftest$ac_exeext conftest.$ac_ext
8792 done
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8794$as_echo "$attr_name" >&6; }
8795 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8796
8797cat >>confdefs.h <<_ACEOF
8798#define PTHREAD_CREATE_JOINABLE $attr_name
8799_ACEOF
8800
8801 fi
8802
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8804$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8805 flag=no
8806 case "${host_cpu}-${host_os}" in
8807 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8808 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8809 esac
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8811$as_echo "${flag}" >&6; }
8812 if test "x$flag" != xno; then
8813 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8814 fi
8815
8816 LIBS="$save_LIBS"
8817 CFLAGS="$save_CFLAGS"
8818
8819 # More AIX lossage: must compile with xlc_r or cc_r
8820 if test x"$GCC" != xyes; then
8821 for ac_prog in xlc_r cc_r
8822do
8823 # Extract the first word of "$ac_prog", so it can be a program name with args.
8824set dummy $ac_prog; ac_word=$2
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008827if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008828 $as_echo_n "(cached) " >&6
8829else
8830 if test -n "$PTHREAD_CC"; then
8831 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_prog_PTHREAD_CC="$ac_prog"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844done
8845 done
8846IFS=$as_save_IFS
8847
8848fi
8849fi
8850PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8851if test -n "$PTHREAD_CC"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8853$as_echo "$PTHREAD_CC" >&6; }
8854else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
8857fi
8858
8859
8860 test -n "$PTHREAD_CC" && break
8861done
8862test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8863
8864 else
8865 PTHREAD_CC=$CC
8866 fi
8867else
8868 PTHREAD_CC="$CC"
8869fi
8870
8871
8872
8873
8874
8875# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8876if test x"$ax_pthread_ok" = xyes; then
8877
8878$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8879
8880 :
8881else
8882 ax_pthread_ok=no
8883
8884fi
8885ac_ext=c
8886ac_cpp='$CPP $CPPFLAGS'
8887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889ac_compiler_gnu=$ac_cv_c_compiler_gnu
8890
8891
8892
8893# Check whether --enable-opencl was given.
8894if test "${enable_opencl+set}" = set; then :
8895 enableval=$enable_opencl; disable_opencl=$enableval
8896else
8897 disable_opencl='yes'
8898fi
8899
8900
8901if test "$disable_opencl" = 'yes'; then
8902 ac_ext=c
8903ac_cpp='$CPP $CPPFLAGS'
8904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8906ac_compiler_gnu=$ac_cv_c_compiler_gnu
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8909$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008910if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008911 $as_echo_n "(cached) " >&6
8912else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h. */
8915
8916int
8917main ()
8918{
8919#ifndef _MSC_VER
8920 choke me
8921#endif
8922
8923 ;
8924 return 0;
8925}
8926_ACEOF
8927if ac_fn_c_try_compile "$LINENO"; then :
8928 ax_compiler_ms=yes
8929else
8930 ax_compiler_ms=no
8931fi
8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933ax_cv_c_compiler_ms=$ax_compiler_ms
8934
8935fi
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8937$as_echo "$ax_cv_c_compiler_ms" >&6; }
8938 if test X$ax_compiler_ms = Xno; then :
8939 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8940fi
8941
8942 ax_save_CPPFLAGS=$CPPFLAGS
8943 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8944 for ac_header in CL/cl.h OpenCL/cl.h
8945do :
8946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8947ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008949 cat >>confdefs.h <<_ACEOF
8950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951_ACEOF
8952
8953fi
8954
8955done
8956
8957 CPPFLAGS=$ax_save_CPPFLAGS
8958
8959 for ac_header in windows.h
8960do :
8961 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008962if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008963 cat >>confdefs.h <<_ACEOF
8964#define HAVE_WINDOWS_H 1
8965_ACEOF
8966
8967fi
8968
8969done
8970
8971
8972
8973
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8975$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008976if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008977 $as_echo_n "(cached) " >&6
8978else
8979 ax_cv_check_cl_libcl=no
8980 case $host_cpu in
8981 x86_64) ax_check_cl_libdir=lib64 ;;
8982 *) ax_check_cl_libdir=lib ;;
8983 esac
8984 ax_save_CPPFLAGS=$CPPFLAGS
8985 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8986 ax_save_LIBS=$LIBS
8987 LIBS=""
8988 ax_check_libs="-lOpenCL -lCL -lclparser"
8989 for ax_lib in $ax_check_libs; do
8990 if test X$ax_compiler_ms = Xyes; then :
8991 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8992else
8993 ax_try_lib=$ax_lib
8994fi
8995 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997/* end confdefs.h. */
8998
8999 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9000 # include <windows.h>
9001 # endif
9002 # ifdef HAVE_CL_CL_H
9003 # include <CL/cl.h>
9004 # elif defined(HAVE_OPENCL_CL_H)
9005 # include <OpenCL/cl.h>
9006 # else
9007 # error no CL.h
9008 # endif
9009int
9010main ()
9011{
9012clCreateContextFromType(0,0,0,0,0)
9013 ;
9014 return 0;
9015}
9016_ACEOF
9017if ac_fn_c_try_link "$LINENO"; then :
9018 ax_cv_check_cl_libcl=$ax_try_lib; break
9019else
9020 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"
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h. */
9023
9024 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9025 # include <windows.h>
9026 # endif
9027 # ifdef HAVE_CL_CL_H
9028 # include <CL/cl.h>
9029 # elif defined(HAVE_OPENCL_CL_H)
9030 # include <OpenCL/cl.h>
9031 # else
9032 # error no CL.h
9033 # endif
9034int
9035main ()
9036{
9037clCreateContextFromType(0,0,0,0,0)
9038 ;
9039 return 0;
9040}
9041_ACEOF
9042if ac_fn_c_try_link "$LINENO"; then :
9043 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9044else
cristy78c5a0c2010-12-04 20:00:59 +00009045 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 +00009046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h. */
9048
9049 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9050 # include <windows.h>
9051 # endif
9052 # ifdef HAVE_CL_CL_H
9053 # include <CL/cl.h>
9054 # elif defined(HAVE_OPENCL_CL_H)
9055 # include <OpenCL/cl.h>
9056 # else
9057 # error no CL.h
9058 # endif
9059int
9060main ()
9061{
9062clCreateContextFromType(0,0,0,0,0)
9063 ;
9064 return 0;
9065}
9066_ACEOF
9067if ac_fn_c_try_link "$LINENO"; then :
9068 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9069fi
9070rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
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
9078 done
9079
9080 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009081 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h. */
9084
9085 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9086 # include <windows.h>
9087 # endif
9088 # ifdef HAVE_CL_CL_H
9089 # include <CL/cl.h>
9090 # elif defined(HAVE_OPENCL_CL_H)
9091 # include <OpenCL/cl.h>
9092 # else
9093 # error no CL.h
9094 # endif
9095int
9096main ()
9097{
9098clCreateContextFromType(0,0,0,0,0)
9099 ;
9100 return 0;
9101}
9102_ACEOF
9103if ac_fn_c_try_link "$LINENO"; then :
9104 ax_cv_check_cl_libcl=$LIBS
9105fi
9106rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9108fi
9109
9110 LIBS=$ax_save_LIBS
9111 CPPFLAGS=$ax_save_CPPFLAGS
9112fi
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9114$as_echo "$ax_cv_check_cl_libcl" >&6; }
9115
9116 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9117 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9118else
9119 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9120$as_echo "#define _OPENCL 1" >>confdefs.h
9121
9122fi
9123 ac_ext=c
9124ac_cpp='$CPP $CPPFLAGS'
9125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127ac_compiler_gnu=$ac_cv_c_compiler_gnu
9128
9129fi
9130
9131
9132
9133
cristyc7083c12009-10-14 03:16:55 +00009134CFLAGS="$CL_CFLAGS $CFLAGS"
9135LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009136
cristy391f1ce2010-09-09 17:23:28 +00009137if test "$enable_opencl" != no; then
9138 if test "_OPENCL" = '1'; then
9139 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9140 fi
cristyfd9dcd42010-08-08 18:07:02 +00009141fi
cristy2e8b51d2009-10-17 18:26:15 +00009142
cristy3ed852e2009-09-05 21:47:34 +00009143########
9144#
9145# Check for large file support
9146#
9147########
9148# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009149if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009150 enableval=$enable_largefile;
9151fi
9152
9153if test "$enable_largefile" != no; then
9154
cristy8b350f62009-11-15 23:12:43 +00009155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009156$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009157if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009158 $as_echo_n "(cached) " >&6
9159else
9160 ac_cv_sys_largefile_CC=no
9161 if test "$GCC" != yes; then
9162 ac_save_CC=$CC
9163 while :; do
9164 # IRIX 6.2 and later do not support large files by default,
9165 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009167/* end confdefs.h. */
9168#include <sys/types.h>
9169 /* Check that off_t can represent 2**63 - 1 correctly.
9170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9171 since some C++ compilers masquerading as C compilers
9172 incorrectly reject 9223372036854775807. */
9173#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9175 && LARGE_OFF_T % 2147483647 == 1)
9176 ? 1 : -1];
9177int
9178main ()
9179{
9180
9181 ;
9182 return 0;
9183}
9184_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009185 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009186 break
cristy3ed852e2009-09-05 21:47:34 +00009187fi
cristy3ed852e2009-09-05 21:47:34 +00009188rm -f core conftest.err conftest.$ac_objext
9189 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009190 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009191 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009192fi
cristy3ed852e2009-09-05 21:47:34 +00009193rm -f core conftest.err conftest.$ac_objext
9194 break
9195 done
9196 CC=$ac_save_CC
9197 rm -f conftest.$ac_ext
9198 fi
9199fi
cristy8b350f62009-11-15 23:12:43 +00009200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009201$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9202 if test "$ac_cv_sys_largefile_CC" != no; then
9203 CC=$CC$ac_cv_sys_largefile_CC
9204 fi
9205
cristy8b350f62009-11-15 23:12:43 +00009206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009207$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009208if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009209 $as_echo_n "(cached) " >&6
9210else
9211 while :; do
cristy8b350f62009-11-15 23:12:43 +00009212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009213/* end confdefs.h. */
9214#include <sys/types.h>
9215 /* Check that off_t can represent 2**63 - 1 correctly.
9216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9217 since some C++ compilers masquerading as C compilers
9218 incorrectly reject 9223372036854775807. */
9219#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9221 && LARGE_OFF_T % 2147483647 == 1)
9222 ? 1 : -1];
9223int
9224main ()
9225{
9226
9227 ;
9228 return 0;
9229}
9230_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009231if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009232 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009233fi
cristy3ed852e2009-09-05 21:47:34 +00009234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009236/* end confdefs.h. */
9237#define _FILE_OFFSET_BITS 64
9238#include <sys/types.h>
9239 /* Check that off_t can represent 2**63 - 1 correctly.
9240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9241 since some C++ compilers masquerading as C compilers
9242 incorrectly reject 9223372036854775807. */
9243#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9245 && LARGE_OFF_T % 2147483647 == 1)
9246 ? 1 : -1];
9247int
9248main ()
9249{
9250
9251 ;
9252 return 0;
9253}
9254_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009255if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009256 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009257fi
cristy3ed852e2009-09-05 21:47:34 +00009258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 ac_cv_sys_file_offset_bits=unknown
9260 break
9261done
9262fi
cristy8b350f62009-11-15 23:12:43 +00009263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009264$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9265case $ac_cv_sys_file_offset_bits in #(
9266 no | unknown) ;;
9267 *)
9268cat >>confdefs.h <<_ACEOF
9269#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9270_ACEOF
9271;;
9272esac
9273rm -rf conftest*
9274 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009276$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009277if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009278 $as_echo_n "(cached) " >&6
9279else
9280 while :; do
cristy8b350f62009-11-15 23:12:43 +00009281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009282/* end confdefs.h. */
9283#include <sys/types.h>
9284 /* Check that off_t can represent 2**63 - 1 correctly.
9285 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9286 since some C++ compilers masquerading as C compilers
9287 incorrectly reject 9223372036854775807. */
9288#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9290 && LARGE_OFF_T % 2147483647 == 1)
9291 ? 1 : -1];
9292int
9293main ()
9294{
9295
9296 ;
9297 return 0;
9298}
9299_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009300if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009301 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009302fi
cristy3ed852e2009-09-05 21:47:34 +00009303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009305/* end confdefs.h. */
9306#define _LARGE_FILES 1
9307#include <sys/types.h>
9308 /* Check that off_t can represent 2**63 - 1 correctly.
9309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9310 since some C++ compilers masquerading as C compilers
9311 incorrectly reject 9223372036854775807. */
9312#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9314 && LARGE_OFF_T % 2147483647 == 1)
9315 ? 1 : -1];
9316int
9317main ()
9318{
9319
9320 ;
9321 return 0;
9322}
9323_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009324if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009325 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009326fi
cristy3ed852e2009-09-05 21:47:34 +00009327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 ac_cv_sys_large_files=unknown
9329 break
9330done
9331fi
cristy8b350f62009-11-15 23:12:43 +00009332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009333$as_echo "$ac_cv_sys_large_files" >&6; }
9334case $ac_cv_sys_large_files in #(
9335 no | unknown) ;;
9336 *)
9337cat >>confdefs.h <<_ACEOF
9338#define _LARGE_FILES $ac_cv_sys_large_files
9339_ACEOF
9340;;
9341esac
9342rm -rf conftest*
9343 fi
9344fi
9345
cristy8b350f62009-11-15 23:12:43 +00009346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009347$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009348if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009349 $as_echo_n "(cached) " >&6
9350else
9351 while :; do
cristy8b350f62009-11-15 23:12:43 +00009352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009353/* end confdefs.h. */
9354#include <sys/types.h> /* for off_t */
9355 #include <stdio.h>
9356int
9357main ()
9358{
9359int (*fp) (FILE *, off_t, int) = fseeko;
9360 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9361 ;
9362 return 0;
9363}
9364_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009366 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009367fi
cristy8b350f62009-11-15 23:12:43 +00009368rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009371/* end confdefs.h. */
9372#define _LARGEFILE_SOURCE 1
9373#include <sys/types.h> /* for off_t */
9374 #include <stdio.h>
9375int
9376main ()
9377{
9378int (*fp) (FILE *, off_t, int) = fseeko;
9379 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9380 ;
9381 return 0;
9382}
9383_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009385 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009386fi
cristy8b350f62009-11-15 23:12:43 +00009387rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009389 ac_cv_sys_largefile_source=unknown
9390 break
9391done
9392fi
cristy8b350f62009-11-15 23:12:43 +00009393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009394$as_echo "$ac_cv_sys_largefile_source" >&6; }
9395case $ac_cv_sys_largefile_source in #(
9396 no | unknown) ;;
9397 *)
9398cat >>confdefs.h <<_ACEOF
9399#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9400_ACEOF
9401;;
9402esac
9403rm -rf conftest*
9404
9405# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9406# in glibc 2.1.3, but that breaks too many other things.
9407# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9408if test $ac_cv_sys_largefile_source != unknown; then
9409
cristy8b350f62009-11-15 23:12:43 +00009410$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009411
9412fi
9413
9414LFS_CPPFLAGS=''
9415if test "$enable_largefile" != no; then
9416 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9417 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9418 else
cristy8b350f62009-11-15 23:12:43 +00009419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009420$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009421 if test "$cross_compiling" = yes; then :
9422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009424as_fn_error $? "cannot run test program while cross compiling
9425See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009426else
cristy8b350f62009-11-15 23:12:43 +00009427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009429#include <unistd.h>
9430 main () {
9431 exit(!(sizeof(off_t) == 8));
9432 }
cristyda16f162011-02-19 23:52:17 +00009433int
9434main ()
9435{
9436
9437 ;
9438 return 0;
9439}
cristy3ed852e2009-09-05 21:47:34 +00009440_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009441if ac_fn_c_try_run "$LINENO"; then :
9442 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009443
cristy8b350f62009-11-15 23:12:43 +00009444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009445$as_echo "yes" >&6; }
9446else
cristy8b350f62009-11-15 23:12:43 +00009447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009448$as_echo "no" >&6; }
9449fi
cristy8b350f62009-11-15 23:12:43 +00009450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9451 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009452fi
9453
cristy3ed852e2009-09-05 21:47:34 +00009454 fi
9455 if test "$ac_cv_sys_large_files" != 'no'; then
9456 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9457 fi
9458 if test "$ac_cv_sys_largefile_source" != 'no'; then
9459 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9460 fi
9461fi
9462
9463
9464#
9465# Configure libtool & libltdl
9466#
9467# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009468enable_dlopen=yes
9469
9470
9471
9472case `pwd` in
9473 *\ * | *\ *)
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9475$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9476esac
9477
9478
9479
cristyda16f162011-02-19 23:52:17 +00009480macro_version='2.4'
9481macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495ltmain="$ac_aux_dir/ltmain.sh"
9496
cristy0c60a692010-11-04 01:09:47 +00009497# Backslashify metacharacters that are still active within
9498# double-quoted strings.
9499sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9500
9501# Same as above, but do not quote variable references.
9502double_quote_subst='s/\(["`\\]\)/\\\1/g'
9503
9504# Sed substitution to delay expansion of an escaped shell variable in a
9505# double_quote_subst'ed string.
9506delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9507
9508# Sed substitution to delay expansion of an escaped single quote.
9509delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9510
9511# Sed substitution to avoid accidental globbing in evaled expressions
9512no_glob_subst='s/\*/\\\*/g'
9513
cristy73bd4a52010-10-05 11:24:23 +00009514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9515$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009516if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009517 $as_echo_n "(cached) " >&6
9518else
9519 if test -n "$NM"; then
9520 # Let the user override the test.
9521 lt_cv_path_NM="$NM"
9522else
9523 lt_nm_to_check="${ac_tool_prefix}nm"
9524 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9525 lt_nm_to_check="$lt_nm_to_check nm"
9526 fi
9527 for lt_tmp_nm in $lt_nm_to_check; do
9528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9529 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9530 IFS="$lt_save_ifs"
9531 test -z "$ac_dir" && ac_dir=.
9532 tmp_nm="$ac_dir/$lt_tmp_nm"
9533 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9534 # Check to see if the nm accepts a BSD-compat flag.
9535 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9536 # nm: unknown option "B" ignored
9537 # Tru64's nm complains that /dev/null is an invalid object file
9538 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9539 */dev/null* | *'Invalid file or object type'*)
9540 lt_cv_path_NM="$tmp_nm -B"
9541 break
9542 ;;
9543 *)
9544 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9545 */dev/null*)
9546 lt_cv_path_NM="$tmp_nm -p"
9547 break
9548 ;;
9549 *)
9550 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9551 continue # so that we can try to find one that supports BSD flags
9552 ;;
9553 esac
9554 ;;
9555 esac
9556 fi
9557 done
9558 IFS="$lt_save_ifs"
9559 done
9560 : ${lt_cv_path_NM=no}
9561fi
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9564$as_echo "$lt_cv_path_NM" >&6; }
9565if test "$lt_cv_path_NM" != "no"; then
9566 NM="$lt_cv_path_NM"
9567else
9568 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009569 if test -n "$DUMPBIN"; then :
9570 # Let the user override the test.
9571 else
9572 if test -n "$ac_tool_prefix"; then
9573 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009574 do
9575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009579if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009580 $as_echo_n "(cached) " >&6
9581else
9582 if test -n "$DUMPBIN"; then
9583 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9584else
9585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586for as_dir in $PATH
9587do
9588 IFS=$as_save_IFS
9589 test -z "$as_dir" && as_dir=.
9590 for ac_exec_ext in '' $ac_executable_extensions; do
9591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9592 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594 break 2
9595 fi
9596done
9597 done
9598IFS=$as_save_IFS
9599
9600fi
9601fi
9602DUMPBIN=$ac_cv_prog_DUMPBIN
9603if test -n "$DUMPBIN"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9605$as_echo "$DUMPBIN" >&6; }
9606else
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608$as_echo "no" >&6; }
9609fi
9610
9611
9612 test -n "$DUMPBIN" && break
9613 done
9614fi
9615if test -z "$DUMPBIN"; then
9616 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009617 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009618do
9619 # Extract the first word of "$ac_prog", so it can be a program name with args.
9620set dummy $ac_prog; ac_word=$2
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009623if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009624 $as_echo_n "(cached) " >&6
9625else
9626 if test -n "$ac_ct_DUMPBIN"; then
9627 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9628else
9629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630for as_dir in $PATH
9631do
9632 IFS=$as_save_IFS
9633 test -z "$as_dir" && as_dir=.
9634 for ac_exec_ext in '' $ac_executable_extensions; do
9635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 break 2
9639 fi
9640done
9641 done
9642IFS=$as_save_IFS
9643
9644fi
9645fi
9646ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9647if test -n "$ac_ct_DUMPBIN"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9649$as_echo "$ac_ct_DUMPBIN" >&6; }
9650else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652$as_echo "no" >&6; }
9653fi
9654
9655
9656 test -n "$ac_ct_DUMPBIN" && break
9657done
9658
9659 if test "x$ac_ct_DUMPBIN" = x; then
9660 DUMPBIN=":"
9661 else
9662 case $cross_compiling:$ac_tool_warned in
9663yes:)
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9666ac_tool_warned=yes ;;
9667esac
9668 DUMPBIN=$ac_ct_DUMPBIN
9669 fi
9670fi
9671
cristy0c60a692010-11-04 01:09:47 +00009672 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9673 *COFF*)
9674 DUMPBIN="$DUMPBIN -symbols"
9675 ;;
9676 *)
9677 DUMPBIN=:
9678 ;;
9679 esac
9680 fi
cristy73bd4a52010-10-05 11:24:23 +00009681
9682 if test "$DUMPBIN" != ":"; then
9683 NM="$DUMPBIN"
9684 fi
9685fi
9686test -z "$NM" && NM=nm
9687
9688
9689
9690
9691
9692
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9694$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009695if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009696 $as_echo_n "(cached) " >&6
9697else
9698 lt_cv_nm_interface="BSD nm"
9699 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009700 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009701 (eval "$ac_compile" 2>conftest.err)
9702 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009703 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009704 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9705 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009706 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009707 cat conftest.out >&5
9708 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9709 lt_cv_nm_interface="MS dumpbin"
9710 fi
9711 rm -f conftest*
9712fi
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9714$as_echo "$lt_cv_nm_interface" >&6; }
9715
9716# find the maximum length of command line arguments
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9718$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009719if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009720 $as_echo_n "(cached) " >&6
9721else
9722 i=0
9723 teststring="ABCD"
9724
9725 case $build_os in
9726 msdosdjgpp*)
9727 # On DJGPP, this test can blow up pretty badly due to problems in libc
9728 # (any single argument exceeding 2000 bytes causes a buffer overrun
9729 # during glob expansion). Even if it were fixed, the result of this
9730 # check would be larger than it should be.
9731 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9732 ;;
9733
9734 gnu*)
9735 # Under GNU Hurd, this test is not required because there is
9736 # no limit to the length of command line arguments.
9737 # Libtool will interpret -1 as no limit whatsoever
9738 lt_cv_sys_max_cmd_len=-1;
9739 ;;
9740
9741 cygwin* | mingw* | cegcc*)
9742 # On Win9x/ME, this test blows up -- it succeeds, but takes
9743 # about 5 minutes as the teststring grows exponentially.
9744 # Worse, since 9x/ME are not pre-emptively multitasking,
9745 # you end up with a "frozen" computer, even though with patience
9746 # the test eventually succeeds (with a max line length of 256k).
9747 # Instead, let's just punt: use the minimum linelength reported by
9748 # all of the supported platforms: 8192 (on NT/2K/XP).
9749 lt_cv_sys_max_cmd_len=8192;
9750 ;;
9751
cristy0c60a692010-11-04 01:09:47 +00009752 mint*)
9753 # On MiNT this can take a long time and run out of memory.
9754 lt_cv_sys_max_cmd_len=8192;
9755 ;;
9756
cristy73bd4a52010-10-05 11:24:23 +00009757 amigaos*)
9758 # On AmigaOS with pdksh, this test takes hours, literally.
9759 # So we just punt and use a minimum line length of 8192.
9760 lt_cv_sys_max_cmd_len=8192;
9761 ;;
9762
9763 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9764 # This has been around since 386BSD, at least. Likely further.
9765 if test -x /sbin/sysctl; then
9766 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9767 elif test -x /usr/sbin/sysctl; then
9768 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9769 else
9770 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9771 fi
9772 # And add a safety zone
9773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9775 ;;
9776
9777 interix*)
9778 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9779 lt_cv_sys_max_cmd_len=196608
9780 ;;
9781
9782 osf*)
9783 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9784 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9785 # nice to cause kernel panics so lets avoid the loop below.
9786 # First set a reasonable default.
9787 lt_cv_sys_max_cmd_len=16384
9788 #
9789 if test -x /sbin/sysconfig; then
9790 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9791 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9792 esac
9793 fi
9794 ;;
9795 sco3.2v5*)
9796 lt_cv_sys_max_cmd_len=102400
9797 ;;
9798 sysv5* | sco5v6* | sysv4.2uw2*)
9799 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9800 if test -n "$kargmax"; then
9801 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9802 else
9803 lt_cv_sys_max_cmd_len=32768
9804 fi
9805 ;;
9806 *)
9807 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9808 if test -n "$lt_cv_sys_max_cmd_len"; then
9809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9811 else
9812 # Make teststring a little bigger before we do anything with it.
9813 # a 1K string should be a reasonable start.
9814 for i in 1 2 3 4 5 6 7 8 ; do
9815 teststring=$teststring$teststring
9816 done
9817 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9818 # If test is not a shell built-in, we'll probably end up computing a
9819 # maximum length that is only half of the actual maximum length, but
9820 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009821 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9822 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009823 test $i != 17 # 1/2 MB should be enough
9824 do
9825 i=`expr $i + 1`
9826 teststring=$teststring$teststring
9827 done
9828 # Only check the string length outside the loop.
9829 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9830 teststring=
9831 # Add a significant safety factor because C++ compilers can tack on
9832 # massive amounts of additional arguments before passing them to the
9833 # linker. It appears as though 1/2 is a usable value.
9834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9835 fi
9836 ;;
9837 esac
9838
9839fi
9840
9841if test -n $lt_cv_sys_max_cmd_len ; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9843$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9844else
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9846$as_echo "none" >&6; }
9847fi
9848max_cmd_len=$lt_cv_sys_max_cmd_len
9849
9850
9851
9852
9853
9854
9855: ${CP="cp -f"}
9856: ${MV="mv -f"}
9857: ${RM="rm -f"}
9858
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9860$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9861# Try some XSI features
9862xsi_shell=no
9863( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009864 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9865 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009866 && eval 'test $(( 1 + 1 )) -eq 2 \
9867 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9868 && xsi_shell=yes
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9870$as_echo "$xsi_shell" >&6; }
9871
9872
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9874$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9875lt_shell_append=no
9876( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9877 >/dev/null 2>&1 \
9878 && lt_shell_append=yes
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9880$as_echo "$lt_shell_append" >&6; }
9881
9882
9883if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9884 lt_unset=unset
9885else
9886 lt_unset=false
9887fi
9888
9889
9890
9891
9892
9893# test EBCDIC or ASCII
9894case `echo X|tr X '\101'` in
9895 A) # ASCII based system
9896 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9897 lt_SP2NL='tr \040 \012'
9898 lt_NL2SP='tr \015\012 \040\040'
9899 ;;
9900 *) # EBCDIC based system
9901 lt_SP2NL='tr \100 \n'
9902 lt_NL2SP='tr \r\n \100\100'
9903 ;;
9904esac
9905
9906
9907
9908
9909
9910
9911
9912
9913
cristyda16f162011-02-19 23:52:17 +00009914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9915$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9916if ${lt_cv_to_host_file_cmd+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918else
9919 case $host in
9920 *-*-mingw* )
9921 case $build in
9922 *-*-mingw* ) # actually msys
9923 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9924 ;;
9925 *-*-cygwin* )
9926 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9927 ;;
9928 * ) # otherwise, assume *nix
9929 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9930 ;;
9931 esac
9932 ;;
9933 *-*-cygwin* )
9934 case $build in
9935 *-*-mingw* ) # actually msys
9936 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9937 ;;
9938 *-*-cygwin* )
9939 lt_cv_to_host_file_cmd=func_convert_file_noop
9940 ;;
9941 * ) # otherwise, assume *nix
9942 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9943 ;;
9944 esac
9945 ;;
9946 * ) # unhandled hosts (and "normal" native builds)
9947 lt_cv_to_host_file_cmd=func_convert_file_noop
9948 ;;
9949esac
9950
9951fi
9952
9953to_host_file_cmd=$lt_cv_to_host_file_cmd
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9955$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9956
9957
9958
9959
9960
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9962$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9963if ${lt_cv_to_tool_file_cmd+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965else
9966 #assume ordinary cross tools, or native build.
9967lt_cv_to_tool_file_cmd=func_convert_file_noop
9968case $host in
9969 *-*-mingw* )
9970 case $build in
9971 *-*-mingw* ) # actually msys
9972 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9973 ;;
9974 esac
9975 ;;
9976esac
9977
9978fi
9979
9980to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9982$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9983
9984
9985
9986
9987
cristy73bd4a52010-10-05 11:24:23 +00009988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9989$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009990if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009991 $as_echo_n "(cached) " >&6
9992else
9993 lt_cv_ld_reload_flag='-r'
9994fi
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9996$as_echo "$lt_cv_ld_reload_flag" >&6; }
9997reload_flag=$lt_cv_ld_reload_flag
9998case $reload_flag in
9999"" | " "*) ;;
10000*) reload_flag=" $reload_flag" ;;
10001esac
10002reload_cmds='$LD$reload_flag -o $output$reload_objs'
10003case $host_os in
cristyda16f162011-02-19 23:52:17 +000010004 cygwin* | mingw* | pw32* | cegcc*)
10005 if test "$GCC" != yes; then
10006 reload_cmds=false
10007 fi
10008 ;;
cristy73bd4a52010-10-05 11:24:23 +000010009 darwin*)
10010 if test "$GCC" = yes; then
10011 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10012 else
10013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10014 fi
10015 ;;
10016esac
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026if test -n "$ac_tool_prefix"; then
10027 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10028set dummy ${ac_tool_prefix}objdump; ac_word=$2
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010031if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010032 $as_echo_n "(cached) " >&6
10033else
10034 if test -n "$OBJDUMP"; then
10035 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10036else
10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038for as_dir in $PATH
10039do
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10044 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10047 fi
10048done
10049 done
10050IFS=$as_save_IFS
10051
10052fi
10053fi
10054OBJDUMP=$ac_cv_prog_OBJDUMP
10055if test -n "$OBJDUMP"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10057$as_echo "$OBJDUMP" >&6; }
10058else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060$as_echo "no" >&6; }
10061fi
10062
10063
10064fi
10065if test -z "$ac_cv_prog_OBJDUMP"; then
10066 ac_ct_OBJDUMP=$OBJDUMP
10067 # Extract the first word of "objdump", so it can be a program name with args.
10068set dummy objdump; ac_word=$2
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010071if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010072 $as_echo_n "(cached) " >&6
10073else
10074 if test -n "$ac_ct_OBJDUMP"; then
10075 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10076else
10077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $PATH
10079do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10084 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088done
10089 done
10090IFS=$as_save_IFS
10091
10092fi
10093fi
10094ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10095if test -n "$ac_ct_OBJDUMP"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10097$as_echo "$ac_ct_OBJDUMP" >&6; }
10098else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100$as_echo "no" >&6; }
10101fi
10102
10103 if test "x$ac_ct_OBJDUMP" = x; then
10104 OBJDUMP="false"
10105 else
10106 case $cross_compiling:$ac_tool_warned in
10107yes:)
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110ac_tool_warned=yes ;;
10111esac
10112 OBJDUMP=$ac_ct_OBJDUMP
10113 fi
10114else
10115 OBJDUMP="$ac_cv_prog_OBJDUMP"
10116fi
10117
10118test -z "$OBJDUMP" && OBJDUMP=objdump
10119
10120
10121
10122
10123
10124
10125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10126$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010127if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010128 $as_echo_n "(cached) " >&6
10129else
10130 lt_cv_file_magic_cmd='$MAGIC_CMD'
10131lt_cv_file_magic_test_file=
10132lt_cv_deplibs_check_method='unknown'
10133# Need to set the preceding variable on all platforms that support
10134# interlibrary dependencies.
10135# 'none' -- dependencies not supported.
10136# `unknown' -- same as none, but documents that we really don't know.
10137# 'pass_all' -- all dependencies passed with no checks.
10138# 'test_compile' -- check by making test program.
10139# 'file_magic [[regex]]' -- check by looking for files in library path
10140# which responds to the $file_magic_cmd with a given extended regex.
10141# If you have `file' or equivalent on your system and you're not sure
10142# whether `pass_all' will *always* work, you probably want this one.
10143
10144case $host_os in
10145aix[4-9]*)
10146 lt_cv_deplibs_check_method=pass_all
10147 ;;
10148
10149beos*)
10150 lt_cv_deplibs_check_method=pass_all
10151 ;;
10152
10153bsdi[45]*)
10154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10155 lt_cv_file_magic_cmd='/usr/bin/file -L'
10156 lt_cv_file_magic_test_file=/shlib/libc.so
10157 ;;
10158
10159cygwin*)
10160 # func_win32_libid is a shell function defined in ltmain.sh
10161 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10162 lt_cv_file_magic_cmd='func_win32_libid'
10163 ;;
10164
10165mingw* | pw32*)
10166 # Base MSYS/MinGW do not provide the 'file' command needed by
10167 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10168 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010169 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10170 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10172 lt_cv_file_magic_cmd='func_win32_libid'
10173 else
cristy0c60a692010-11-04 01:09:47 +000010174 # Keep this pattern in sync with the one in func_win32_libid.
10175 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 +000010176 lt_cv_file_magic_cmd='$OBJDUMP -f'
10177 fi
10178 ;;
10179
cristy0c60a692010-11-04 01:09:47 +000010180cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010181 # use the weaker test based on 'objdump'. See mingw*.
10182 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10183 lt_cv_file_magic_cmd='$OBJDUMP -f'
10184 ;;
10185
10186darwin* | rhapsody*)
10187 lt_cv_deplibs_check_method=pass_all
10188 ;;
10189
10190freebsd* | dragonfly*)
10191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10192 case $host_cpu in
10193 i*86 )
10194 # Not sure whether the presence of OpenBSD here was a mistake.
10195 # Let's accept both of them until this is cleared up.
10196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10197 lt_cv_file_magic_cmd=/usr/bin/file
10198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10199 ;;
10200 esac
10201 else
10202 lt_cv_deplibs_check_method=pass_all
10203 fi
10204 ;;
10205
10206gnu*)
10207 lt_cv_deplibs_check_method=pass_all
10208 ;;
10209
cristy0c60a692010-11-04 01:09:47 +000010210haiku*)
10211 lt_cv_deplibs_check_method=pass_all
10212 ;;
10213
cristy73bd4a52010-10-05 11:24:23 +000010214hpux10.20* | hpux11*)
10215 lt_cv_file_magic_cmd=/usr/bin/file
10216 case $host_cpu in
10217 ia64*)
10218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10219 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10220 ;;
10221 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010222 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 +000010223 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10224 ;;
10225 *)
cristy0c60a692010-11-04 01:09:47 +000010226 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 +000010227 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10228 ;;
10229 esac
10230 ;;
10231
10232interix[3-9]*)
10233 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10235 ;;
10236
10237irix5* | irix6* | nonstopux*)
10238 case $LD in
10239 *-32|*"-32 ") libmagic=32-bit;;
10240 *-n32|*"-n32 ") libmagic=N32;;
10241 *-64|*"-64 ") libmagic=64-bit;;
10242 *) libmagic=never-match;;
10243 esac
10244 lt_cv_deplibs_check_method=pass_all
10245 ;;
10246
10247# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010248linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010249 lt_cv_deplibs_check_method=pass_all
10250 ;;
10251
10252netbsd*)
10253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10255 else
10256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10257 fi
10258 ;;
10259
10260newos6*)
10261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10262 lt_cv_file_magic_cmd=/usr/bin/file
10263 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10264 ;;
10265
10266*nto* | *qnx*)
10267 lt_cv_deplibs_check_method=pass_all
10268 ;;
10269
10270openbsd*)
10271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10273 else
10274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10275 fi
10276 ;;
10277
10278osf3* | osf4* | osf5*)
10279 lt_cv_deplibs_check_method=pass_all
10280 ;;
10281
10282rdos*)
10283 lt_cv_deplibs_check_method=pass_all
10284 ;;
10285
10286solaris*)
10287 lt_cv_deplibs_check_method=pass_all
10288 ;;
10289
10290sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10291 lt_cv_deplibs_check_method=pass_all
10292 ;;
10293
10294sysv4 | sysv4.3*)
10295 case $host_vendor in
10296 motorola)
10297 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]'
10298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10299 ;;
10300 ncr)
10301 lt_cv_deplibs_check_method=pass_all
10302 ;;
10303 sequent)
10304 lt_cv_file_magic_cmd='/bin/file'
10305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10306 ;;
10307 sni)
10308 lt_cv_file_magic_cmd='/bin/file'
10309 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10310 lt_cv_file_magic_test_file=/lib/libc.so
10311 ;;
10312 siemens)
10313 lt_cv_deplibs_check_method=pass_all
10314 ;;
10315 pc)
10316 lt_cv_deplibs_check_method=pass_all
10317 ;;
10318 esac
10319 ;;
10320
10321tpf*)
10322 lt_cv_deplibs_check_method=pass_all
10323 ;;
10324esac
10325
10326fi
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10328$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010329
10330file_magic_glob=
10331want_nocaseglob=no
10332if test "$build" = "$host"; then
10333 case $host_os in
10334 mingw* | pw32*)
10335 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10336 want_nocaseglob=yes
10337 else
10338 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10339 fi
10340 ;;
10341 esac
10342fi
10343
cristy73bd4a52010-10-05 11:24:23 +000010344file_magic_cmd=$lt_cv_file_magic_cmd
10345deplibs_check_method=$lt_cv_deplibs_check_method
10346test -z "$deplibs_check_method" && deplibs_check_method=unknown
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
cristyda16f162011-02-19 23:52:17 +000010359
10360
10361
10362
10363
10364
10365
10366
10367
10368
cristy73bd4a52010-10-05 11:24:23 +000010369if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010370 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10371set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010374if ${ac_cv_prog_DLLTOOL+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376else
10377 if test -n "$DLLTOOL"; then
10378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10379else
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10390 fi
10391done
10392 done
10393IFS=$as_save_IFS
10394
10395fi
10396fi
10397DLLTOOL=$ac_cv_prog_DLLTOOL
10398if test -n "$DLLTOOL"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10400$as_echo "$DLLTOOL" >&6; }
10401else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403$as_echo "no" >&6; }
10404fi
10405
10406
10407fi
10408if test -z "$ac_cv_prog_DLLTOOL"; then
10409 ac_ct_DLLTOOL=$DLLTOOL
10410 # Extract the first word of "dlltool", so it can be a program name with args.
10411set dummy dlltool; ac_word=$2
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413$as_echo_n "checking for $ac_word... " >&6; }
10414if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416else
10417 if test -n "$ac_ct_DLLTOOL"; then
10418 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10419else
10420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421for as_dir in $PATH
10422do
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10430 fi
10431done
10432 done
10433IFS=$as_save_IFS
10434
10435fi
10436fi
10437ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10438if test -n "$ac_ct_DLLTOOL"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10440$as_echo "$ac_ct_DLLTOOL" >&6; }
10441else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443$as_echo "no" >&6; }
10444fi
10445
10446 if test "x$ac_ct_DLLTOOL" = x; then
10447 DLLTOOL="false"
10448 else
10449 case $cross_compiling:$ac_tool_warned in
10450yes:)
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10453ac_tool_warned=yes ;;
10454esac
10455 DLLTOOL=$ac_ct_DLLTOOL
10456 fi
10457else
10458 DLLTOOL="$ac_cv_prog_DLLTOOL"
10459fi
10460
10461test -z "$DLLTOOL" && DLLTOOL=dlltool
10462
10463
10464
10465
10466
10467
10468
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10470$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10471if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473else
10474 lt_cv_sharedlib_from_linklib_cmd='unknown'
10475
10476case $host_os in
10477cygwin* | mingw* | pw32* | cegcc*)
10478 # two different shell functions defined in ltmain.sh
10479 # decide which to use based on capabilities of $DLLTOOL
10480 case `$DLLTOOL --help 2>&1` in
10481 *--identify-strict*)
10482 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10483 ;;
10484 *)
10485 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10486 ;;
10487 esac
10488 ;;
10489*)
10490 # fallback: assume linklib IS sharedlib
10491 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10492 ;;
10493esac
10494
10495fi
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10497$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10498sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10499test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10500
10501
10502
10503
10504
10505
10506
10507if test -n "$ac_tool_prefix"; then
10508 for ac_prog in ar
10509 do
10510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513$as_echo_n "checking for $ac_word... " >&6; }
10514if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010515 $as_echo_n "(cached) " >&6
10516else
10517 if test -n "$AR"; then
10518 ac_cv_prog_AR="$AR" # Let the user override the test.
10519else
10520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521for as_dir in $PATH
10522do
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 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 +000010527 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10530 fi
10531done
10532 done
10533IFS=$as_save_IFS
10534
10535fi
10536fi
10537AR=$ac_cv_prog_AR
10538if test -n "$AR"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10540$as_echo "$AR" >&6; }
10541else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543$as_echo "no" >&6; }
10544fi
10545
10546
cristyda16f162011-02-19 23:52:17 +000010547 test -n "$AR" && break
10548 done
cristy73bd4a52010-10-05 11:24:23 +000010549fi
cristyda16f162011-02-19 23:52:17 +000010550if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010551 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010552 for ac_prog in ar
10553do
10554 # Extract the first word of "$ac_prog", so it can be a program name with args.
10555set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010558if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010559 $as_echo_n "(cached) " >&6
10560else
10561 if test -n "$ac_ct_AR"; then
10562 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10563else
10564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565for as_dir in $PATH
10566do
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 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 +000010571 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10574 fi
10575done
10576 done
10577IFS=$as_save_IFS
10578
10579fi
10580fi
10581ac_ct_AR=$ac_cv_prog_ac_ct_AR
10582if test -n "$ac_ct_AR"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10584$as_echo "$ac_ct_AR" >&6; }
10585else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587$as_echo "no" >&6; }
10588fi
10589
cristyda16f162011-02-19 23:52:17 +000010590
10591 test -n "$ac_ct_AR" && break
10592done
10593
cristy73bd4a52010-10-05 11:24:23 +000010594 if test "x$ac_ct_AR" = x; then
10595 AR="false"
10596 else
10597 case $cross_compiling:$ac_tool_warned in
10598yes:)
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10601ac_tool_warned=yes ;;
10602esac
10603 AR=$ac_ct_AR
10604 fi
cristy73bd4a52010-10-05 11:24:23 +000010605fi
10606
cristyda16f162011-02-19 23:52:17 +000010607: ${AR=ar}
10608: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
cristyda16f162011-02-19 23:52:17 +000010620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10621$as_echo_n "checking for archiver @FILE support... " >&6; }
10622if ${lt_cv_ar_at_file+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624else
10625 lt_cv_ar_at_file=no
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h. */
10628
10629int
10630main ()
10631{
10632
10633 ;
10634 return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_compile "$LINENO"; then :
10638 echo conftest.$ac_objext > conftest.lst
10639 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10641 (eval $lt_ar_try) 2>&5
10642 ac_status=$?
10643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644 test $ac_status = 0; }
10645 if test "$ac_status" -eq 0; then
10646 # Ensure the archiver fails upon bogus file names.
10647 rm -f conftest.$ac_objext libconftest.a
10648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10649 (eval $lt_ar_try) 2>&5
10650 ac_status=$?
10651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10652 test $ac_status = 0; }
10653 if test "$ac_status" -ne 0; then
10654 lt_cv_ar_at_file=@
10655 fi
10656 fi
10657 rm -f conftest.* libconftest.a
10658
10659fi
10660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661
10662fi
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10664$as_echo "$lt_cv_ar_at_file" >&6; }
10665
10666if test "x$lt_cv_ar_at_file" = xno; then
10667 archiver_list_spec=
10668else
10669 archiver_list_spec=$lt_cv_ar_at_file
10670fi
10671
10672
10673
10674
10675
10676
10677
cristy73bd4a52010-10-05 11:24:23 +000010678if test -n "$ac_tool_prefix"; then
10679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10680set dummy ${ac_tool_prefix}strip; ac_word=$2
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010683if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010684 $as_echo_n "(cached) " >&6
10685else
10686 if test -n "$STRIP"; then
10687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10688else
10689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690for as_dir in $PATH
10691do
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10699 fi
10700done
10701 done
10702IFS=$as_save_IFS
10703
10704fi
10705fi
10706STRIP=$ac_cv_prog_STRIP
10707if test -n "$STRIP"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10709$as_echo "$STRIP" >&6; }
10710else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713fi
10714
10715
10716fi
10717if test -z "$ac_cv_prog_STRIP"; then
10718 ac_ct_STRIP=$STRIP
10719 # Extract the first word of "strip", so it can be a program name with args.
10720set dummy strip; ac_word=$2
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010723if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010724 $as_echo_n "(cached) " >&6
10725else
10726 if test -n "$ac_ct_STRIP"; then
10727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10728else
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10736 ac_cv_prog_ac_ct_STRIP="strip"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10739 fi
10740done
10741 done
10742IFS=$as_save_IFS
10743
10744fi
10745fi
10746ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10747if test -n "$ac_ct_STRIP"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10749$as_echo "$ac_ct_STRIP" >&6; }
10750else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
10753fi
10754
10755 if test "x$ac_ct_STRIP" = x; then
10756 STRIP=":"
10757 else
10758 case $cross_compiling:$ac_tool_warned in
10759yes:)
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10762ac_tool_warned=yes ;;
10763esac
10764 STRIP=$ac_ct_STRIP
10765 fi
10766else
10767 STRIP="$ac_cv_prog_STRIP"
10768fi
10769
10770test -z "$STRIP" && STRIP=:
10771
10772
10773
10774
10775
10776
10777if test -n "$ac_tool_prefix"; then
10778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10779set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010782if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010783 $as_echo_n "(cached) " >&6
10784else
10785 if test -n "$RANLIB"; then
10786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10798 fi
10799done
10800 done
10801IFS=$as_save_IFS
10802
10803fi
10804fi
10805RANLIB=$ac_cv_prog_RANLIB
10806if test -n "$RANLIB"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10808$as_echo "$RANLIB" >&6; }
10809else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
10812fi
10813
10814
10815fi
10816if test -z "$ac_cv_prog_RANLIB"; then
10817 ac_ct_RANLIB=$RANLIB
10818 # Extract the first word of "ranlib", so it can be a program name with args.
10819set dummy ranlib; ac_word=$2
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010822if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010823 $as_echo_n "(cached) " >&6
10824else
10825 if test -n "$ac_ct_RANLIB"; then
10826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10835 ac_cv_prog_ac_ct_RANLIB="ranlib"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840 done
10841IFS=$as_save_IFS
10842
10843fi
10844fi
10845ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10846if test -n "$ac_ct_RANLIB"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10848$as_echo "$ac_ct_RANLIB" >&6; }
10849else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
10852fi
10853
10854 if test "x$ac_ct_RANLIB" = x; then
10855 RANLIB=":"
10856 else
10857 case $cross_compiling:$ac_tool_warned in
10858yes:)
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10861ac_tool_warned=yes ;;
10862esac
10863 RANLIB=$ac_ct_RANLIB
10864 fi
10865else
10866 RANLIB="$ac_cv_prog_RANLIB"
10867fi
10868
10869test -z "$RANLIB" && RANLIB=:
10870
10871
10872
10873
10874
10875
10876# Determine commands to create old-style static archives.
10877old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10878old_postinstall_cmds='chmod 644 $oldlib'
10879old_postuninstall_cmds=
10880
10881if test -n "$RANLIB"; then
10882 case $host_os in
10883 openbsd*)
10884 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10885 ;;
10886 *)
10887 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10888 ;;
10889 esac
10890 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10891fi
10892
cristy0c60a692010-11-04 01:09:47 +000010893case $host_os in
10894 darwin*)
10895 lock_old_archive_extraction=yes ;;
10896 *)
10897 lock_old_archive_extraction=no ;;
10898esac
10899
10900
10901
10902
10903
10904
cristy73bd4a52010-10-05 11:24:23 +000010905
10906
10907
10908
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# If no C compiler was specified, use CC.
10939LTCC=${LTCC-"$CC"}
10940
10941# If no C compiler flags were specified, use CFLAGS.
10942LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10943
10944# Allow CC to be a program name with arguments.
10945compiler=$CC
10946
10947
10948# Check for command to grab the raw symbol name followed by C symbol from nm.
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10950$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010951if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010952 $as_echo_n "(cached) " >&6
10953else
10954
10955# These are sane defaults that work on at least a few old systems.
10956# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10957
10958# Character class describing NM global symbol codes.
10959symcode='[BCDEGRST]'
10960
10961# Regexp to match symbols that can be accessed directly from C.
10962sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10963
10964# Define system-specific variables.
10965case $host_os in
10966aix*)
10967 symcode='[BCDT]'
10968 ;;
10969cygwin* | mingw* | pw32* | cegcc*)
10970 symcode='[ABCDGISTW]'
10971 ;;
10972hpux*)
10973 if test "$host_cpu" = ia64; then
10974 symcode='[ABCDEGRST]'
10975 fi
10976 ;;
10977irix* | nonstopux*)
10978 symcode='[BCDEGRST]'
10979 ;;
10980osf*)
10981 symcode='[BCDEGQRST]'
10982 ;;
10983solaris*)
10984 symcode='[BDRT]'
10985 ;;
10986sco3.2v5*)
10987 symcode='[DT]'
10988 ;;
10989sysv4.2uw2*)
10990 symcode='[DT]'
10991 ;;
10992sysv5* | sco5v6* | unixware* | OpenUNIX*)
10993 symcode='[ABDT]'
10994 ;;
10995sysv4)
10996 symcode='[DFNSTU]'
10997 ;;
10998esac
10999
11000# If we're using GNU nm, then use its standard symbol codes.
11001case `$NM -V 2>&1` in
11002*GNU* | *'with BFD'*)
11003 symcode='[ABCDGIRSTW]' ;;
11004esac
11005
11006# Transform an extracted symbol line into a proper C declaration.
11007# Some systems (esp. on ia64) link data and code symbols differently,
11008# so use this general approach.
11009lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11010
11011# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011012lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11013lt_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 +000011014
11015# Handle CRLF in mingw tool chain
11016opt_cr=
11017case $build_os in
11018mingw*)
11019 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11020 ;;
11021esac
11022
11023# Try without a prefix underscore, then with it.
11024for ac_symprfx in "" "_"; do
11025
11026 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11027 symxfrm="\\1 $ac_symprfx\\2 \\2"
11028
11029 # Write the raw and C identifiers.
11030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11031 # Fake it for dumpbin and say T for any non-static function
11032 # and D for any global variable.
11033 # Also find C++ and __fastcall symbols from MSVC++,
11034 # which start with @ or ?.
11035 lt_cv_sys_global_symbol_pipe="$AWK '"\
11036" {last_section=section; section=\$ 3};"\
11037" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11038" \$ 0!~/External *\|/{next};"\
11039" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11040" {if(hide[section]) next};"\
11041" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11042" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11043" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11044" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11045" ' prfx=^$ac_symprfx"
11046 else
11047 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11048 fi
cristyda16f162011-02-19 23:52:17 +000011049 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011050
11051 # Check to see that the pipe works correctly.
11052 pipe_works=no
11053
11054 rm -f conftest*
11055 cat > conftest.$ac_ext <<_LT_EOF
11056#ifdef __cplusplus
11057extern "C" {
11058#endif
11059char nm_test_var;
11060void nm_test_func(void);
11061void nm_test_func(void){}
11062#ifdef __cplusplus
11063}
11064#endif
11065int main(){nm_test_var='a';nm_test_func();return(0);}
11066_LT_EOF
11067
11068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11069 (eval $ac_compile) 2>&5
11070 ac_status=$?
11071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11072 test $ac_status = 0; }; then
11073 # Now try to grab the symbols.
11074 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11076 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011077 ac_status=$?
11078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11079 test $ac_status = 0; } && test -s "$nlist"; then
11080 # Try sorting and uniquifying the output.
11081 if sort "$nlist" | uniq > "$nlist"T; then
11082 mv -f "$nlist"T "$nlist"
11083 else
11084 rm -f "$nlist"T
11085 fi
11086
11087 # Make sure that we snagged all the symbols we need.
11088 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11089 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11090 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011091/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11092#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11093/* DATA imports from DLLs on WIN32 con't be const, because runtime
11094 relocations are performed -- see ld's documentation on pseudo-relocs. */
11095# define LT_DLSYM_CONST
11096#elif defined(__osf__)
11097/* This system does not cope well with relocations in const data. */
11098# define LT_DLSYM_CONST
11099#else
11100# define LT_DLSYM_CONST const
11101#endif
11102
cristy73bd4a52010-10-05 11:24:23 +000011103#ifdef __cplusplus
11104extern "C" {
11105#endif
11106
11107_LT_EOF
11108 # Now generate the symbol file.
11109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11110
11111 cat <<_LT_EOF >> conftest.$ac_ext
11112
11113/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011114LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011115 const char *name;
11116 void *address;
11117}
11118lt__PROGRAM__LTX_preloaded_symbols[] =
11119{
11120 { "@PROGRAM@", (void *) 0 },
11121_LT_EOF
11122 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11123 cat <<\_LT_EOF >> conftest.$ac_ext
11124 {0, (void *) 0}
11125};
11126
11127/* This works around a problem in FreeBSD linker */
11128#ifdef FREEBSD_WORKAROUND
11129static const void *lt_preloaded_setup() {
11130 return lt__PROGRAM__LTX_preloaded_symbols;
11131}
11132#endif
11133
11134#ifdef __cplusplus
11135}
11136#endif
11137_LT_EOF
11138 # Now try linking the two files.
11139 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011140 lt_globsym_save_LIBS=$LIBS
11141 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011142 LIBS="conftstm.$ac_objext"
11143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11145 (eval $ac_link) 2>&5
11146 ac_status=$?
11147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11148 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11149 pipe_works=yes
11150 fi
cristyda16f162011-02-19 23:52:17 +000011151 LIBS=$lt_globsym_save_LIBS
11152 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011153 else
11154 echo "cannot find nm_test_func in $nlist" >&5
11155 fi
11156 else
11157 echo "cannot find nm_test_var in $nlist" >&5
11158 fi
11159 else
11160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11161 fi
11162 else
11163 echo "$progname: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11165 fi
11166 rm -rf conftest* conftst*
11167
11168 # Do not use the global_symbol_pipe unless it works.
11169 if test "$pipe_works" = yes; then
11170 break
11171 else
11172 lt_cv_sys_global_symbol_pipe=
11173 fi
11174done
11175
11176fi
11177
11178if test -z "$lt_cv_sys_global_symbol_pipe"; then
11179 lt_cv_sys_global_symbol_to_cdecl=
11180fi
11181if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11183$as_echo "failed" >&6; }
11184else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11186$as_echo "ok" >&6; }
11187fi
11188
cristyda16f162011-02-19 23:52:17 +000011189# Response file support.
11190if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11191 nm_file_list_spec='@'
11192elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11193 nm_file_list_spec='@'
11194fi
cristy73bd4a52010-10-05 11:24:23 +000011195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
cristyda16f162011-02-19 23:52:17 +000011216
11217
11218
11219
11220
11221
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11223$as_echo_n "checking for sysroot... " >&6; }
11224
11225# Check whether --with-sysroot was given.
11226if test "${with_sysroot+set}" = set; then :
11227 withval=$with_sysroot;
11228else
11229 with_sysroot=no
11230fi
11231
11232
11233lt_sysroot=
11234case ${with_sysroot} in #(
11235 yes)
11236 if test "$GCC" = yes; then
11237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11238 fi
11239 ;; #(
11240 /*)
11241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11242 ;; #(
11243 no|'')
11244 ;; #(
11245 *)
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11247$as_echo "${with_sysroot}" >&6; }
11248 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11249 ;;
11250esac
11251
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11253$as_echo "${lt_sysroot:-no}" >&6; }
11254
11255
11256
11257
11258
cristy73bd4a52010-10-05 11:24:23 +000011259# Check whether --enable-libtool-lock was given.
11260if test "${enable_libtool_lock+set}" = set; then :
11261 enableval=$enable_libtool_lock;
11262fi
11263
11264test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11265
11266# Some flags need to be propagated to the compiler or linker for good
11267# libtool support.
11268case $host in
11269ia64-*-hpux*)
11270 # Find out which ABI we are using.
11271 echo 'int i;' > conftest.$ac_ext
11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11273 (eval $ac_compile) 2>&5
11274 ac_status=$?
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; }; then
11277 case `/usr/bin/file conftest.$ac_objext` in
11278 *ELF-32*)
11279 HPUX_IA64_MODE="32"
11280 ;;
11281 *ELF-64*)
11282 HPUX_IA64_MODE="64"
11283 ;;
11284 esac
11285 fi
11286 rm -rf conftest*
11287 ;;
11288*-*-irix6*)
11289 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011290 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11292 (eval $ac_compile) 2>&5
11293 ac_status=$?
11294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11295 test $ac_status = 0; }; then
11296 if test "$lt_cv_prog_gnu_ld" = yes; then
11297 case `/usr/bin/file conftest.$ac_objext` in
11298 *32-bit*)
11299 LD="${LD-ld} -melf32bsmip"
11300 ;;
11301 *N32*)
11302 LD="${LD-ld} -melf32bmipn32"
11303 ;;
11304 *64-bit*)
11305 LD="${LD-ld} -melf64bmip"
11306 ;;
11307 esac
11308 else
11309 case `/usr/bin/file conftest.$ac_objext` in
11310 *32-bit*)
11311 LD="${LD-ld} -32"
11312 ;;
11313 *N32*)
11314 LD="${LD-ld} -n32"
11315 ;;
11316 *64-bit*)
11317 LD="${LD-ld} -64"
11318 ;;
11319 esac
11320 fi
11321 fi
11322 rm -rf conftest*
11323 ;;
11324
11325x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11326s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11327 # Find out which ABI we are using.
11328 echo 'int i;' > conftest.$ac_ext
11329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11330 (eval $ac_compile) 2>&5
11331 ac_status=$?
11332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11333 test $ac_status = 0; }; then
11334 case `/usr/bin/file conftest.o` in
11335 *32-bit*)
11336 case $host in
11337 x86_64-*kfreebsd*-gnu)
11338 LD="${LD-ld} -m elf_i386_fbsd"
11339 ;;
11340 x86_64-*linux*)
11341 LD="${LD-ld} -m elf_i386"
11342 ;;
11343 ppc64-*linux*|powerpc64-*linux*)
11344 LD="${LD-ld} -m elf32ppclinux"
11345 ;;
11346 s390x-*linux*)
11347 LD="${LD-ld} -m elf_s390"
11348 ;;
11349 sparc64-*linux*)
11350 LD="${LD-ld} -m elf32_sparc"
11351 ;;
11352 esac
11353 ;;
11354 *64-bit*)
11355 case $host in
11356 x86_64-*kfreebsd*-gnu)
11357 LD="${LD-ld} -m elf_x86_64_fbsd"
11358 ;;
11359 x86_64-*linux*)
11360 LD="${LD-ld} -m elf_x86_64"
11361 ;;
11362 ppc*-*linux*|powerpc*-*linux*)
11363 LD="${LD-ld} -m elf64ppc"
11364 ;;
11365 s390*-*linux*|s390*-*tpf*)
11366 LD="${LD-ld} -m elf64_s390"
11367 ;;
11368 sparc*-*linux*)
11369 LD="${LD-ld} -m elf64_sparc"
11370 ;;
11371 esac
11372 ;;
11373 esac
11374 fi
11375 rm -rf conftest*
11376 ;;
11377
11378*-*-sco3.2v5*)
11379 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11380 SAVE_CFLAGS="$CFLAGS"
11381 CFLAGS="$CFLAGS -belf"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11383$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011384if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011385 $as_echo_n "(cached) " >&6
11386else
11387 ac_ext=c
11388ac_cpp='$CPP $CPPFLAGS'
11389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11391ac_compiler_gnu=$ac_cv_c_compiler_gnu
11392
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394/* end confdefs.h. */
11395
11396int
11397main ()
11398{
11399
11400 ;
11401 return 0;
11402}
11403_ACEOF
11404if ac_fn_c_try_link "$LINENO"; then :
11405 lt_cv_cc_needs_belf=yes
11406else
11407 lt_cv_cc_needs_belf=no
11408fi
11409rm -f core conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11411 ac_ext=c
11412ac_cpp='$CPP $CPPFLAGS'
11413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11415ac_compiler_gnu=$ac_cv_c_compiler_gnu
11416
11417fi
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11419$as_echo "$lt_cv_cc_needs_belf" >&6; }
11420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11422 CFLAGS="$SAVE_CFLAGS"
11423 fi
11424 ;;
11425sparc*-*solaris*)
11426 # Find out which ABI we are using.
11427 echo 'int i;' > conftest.$ac_ext
11428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11429 (eval $ac_compile) 2>&5
11430 ac_status=$?
11431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11432 test $ac_status = 0; }; then
11433 case `/usr/bin/file conftest.o` in
11434 *64-bit*)
11435 case $lt_cv_prog_gnu_ld in
11436 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11437 *)
11438 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11439 LD="${LD-ld} -64"
11440 fi
11441 ;;
11442 esac
11443 ;;
11444 esac
11445 fi
11446 rm -rf conftest*
11447 ;;
11448esac
11449
11450need_locks="$enable_libtool_lock"
11451
cristyda16f162011-02-19 23:52:17 +000011452if test -n "$ac_tool_prefix"; then
11453 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11454set dummy ${ac_tool_prefix}mt; ac_word=$2
11455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456$as_echo_n "checking for $ac_word... " >&6; }
11457if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459else
11460 if test -n "$MANIFEST_TOOL"; then
11461 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11462else
11463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464for as_dir in $PATH
11465do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11470 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11473 fi
11474done
11475 done
11476IFS=$as_save_IFS
11477
11478fi
11479fi
11480MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11481if test -n "$MANIFEST_TOOL"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11483$as_echo "$MANIFEST_TOOL" >&6; }
11484else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486$as_echo "no" >&6; }
11487fi
11488
11489
11490fi
11491if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11492 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11493 # Extract the first word of "mt", so it can be a program name with args.
11494set dummy mt; ac_word=$2
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496$as_echo_n "checking for $ac_word... " >&6; }
11497if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499else
11500 if test -n "$ac_ct_MANIFEST_TOOL"; then
11501 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11502else
11503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514done
11515 done
11516IFS=$as_save_IFS
11517
11518fi
11519fi
11520ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11521if test -n "$ac_ct_MANIFEST_TOOL"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11523$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11524else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526$as_echo "no" >&6; }
11527fi
11528
11529 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11530 MANIFEST_TOOL=":"
11531 else
11532 case $cross_compiling:$ac_tool_warned in
11533yes:)
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11536ac_tool_warned=yes ;;
11537esac
11538 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11539 fi
11540else
11541 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11542fi
11543
11544test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11546$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11547if ${lt_cv_path_mainfest_tool+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549else
11550 lt_cv_path_mainfest_tool=no
11551 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11552 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11553 cat conftest.err >&5
11554 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11555 lt_cv_path_mainfest_tool=yes
11556 fi
11557 rm -f conftest*
11558fi
11559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11560$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11561if test "x$lt_cv_path_mainfest_tool" != xyes; then
11562 MANIFEST_TOOL=:
11563fi
11564
11565
11566
11567
11568
cristy73bd4a52010-10-05 11:24:23 +000011569
11570 case $host_os in
11571 rhapsody* | darwin*)
11572 if test -n "$ac_tool_prefix"; then
11573 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11574set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011577if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011578 $as_echo_n "(cached) " >&6
11579else
11580 if test -n "$DSYMUTIL"; then
11581 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11582else
11583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584for as_dir in $PATH
11585do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594done
11595 done
11596IFS=$as_save_IFS
11597
11598fi
11599fi
11600DSYMUTIL=$ac_cv_prog_DSYMUTIL
11601if test -n "$DSYMUTIL"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11603$as_echo "$DSYMUTIL" >&6; }
11604else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
11607fi
11608
11609
11610fi
11611if test -z "$ac_cv_prog_DSYMUTIL"; then
11612 ac_ct_DSYMUTIL=$DSYMUTIL
11613 # Extract the first word of "dsymutil", so it can be a program name with args.
11614set dummy dsymutil; ac_word=$2
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011617if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011618 $as_echo_n "(cached) " >&6
11619else
11620 if test -n "$ac_ct_DSYMUTIL"; then
11621 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11622else
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11633 fi
11634done
11635 done
11636IFS=$as_save_IFS
11637
11638fi
11639fi
11640ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11641if test -n "$ac_ct_DSYMUTIL"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11643$as_echo "$ac_ct_DSYMUTIL" >&6; }
11644else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
11647fi
11648
11649 if test "x$ac_ct_DSYMUTIL" = x; then
11650 DSYMUTIL=":"
11651 else
11652 case $cross_compiling:$ac_tool_warned in
11653yes:)
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11656ac_tool_warned=yes ;;
11657esac
11658 DSYMUTIL=$ac_ct_DSYMUTIL
11659 fi
11660else
11661 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11662fi
11663
11664 if test -n "$ac_tool_prefix"; then
11665 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11666set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011669if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011670 $as_echo_n "(cached) " >&6
11671else
11672 if test -n "$NMEDIT"; then
11673 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11674else
11675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676for as_dir in $PATH
11677do
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11685 fi
11686done
11687 done
11688IFS=$as_save_IFS
11689
11690fi
11691fi
11692NMEDIT=$ac_cv_prog_NMEDIT
11693if test -n "$NMEDIT"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11695$as_echo "$NMEDIT" >&6; }
11696else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698$as_echo "no" >&6; }
11699fi
11700
11701
11702fi
11703if test -z "$ac_cv_prog_NMEDIT"; then
11704 ac_ct_NMEDIT=$NMEDIT
11705 # Extract the first word of "nmedit", so it can be a program name with args.
11706set dummy nmedit; ac_word=$2
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011709if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011710 $as_echo_n "(cached) " >&6
11711else
11712 if test -n "$ac_ct_NMEDIT"; then
11713 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11714else
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727 done
11728IFS=$as_save_IFS
11729
11730fi
11731fi
11732ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11733if test -n "$ac_ct_NMEDIT"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11735$as_echo "$ac_ct_NMEDIT" >&6; }
11736else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
11739fi
11740
11741 if test "x$ac_ct_NMEDIT" = x; then
11742 NMEDIT=":"
11743 else
11744 case $cross_compiling:$ac_tool_warned in
11745yes:)
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11748ac_tool_warned=yes ;;
11749esac
11750 NMEDIT=$ac_ct_NMEDIT
11751 fi
11752else
11753 NMEDIT="$ac_cv_prog_NMEDIT"
11754fi
11755
11756 if test -n "$ac_tool_prefix"; then
11757 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11758set dummy ${ac_tool_prefix}lipo; ac_word=$2
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011761if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011762 $as_echo_n "(cached) " >&6
11763else
11764 if test -n "$LIPO"; then
11765 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11766else
11767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770 IFS=$as_save_IFS
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
11773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11774 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776 break 2
11777 fi
11778done
11779 done
11780IFS=$as_save_IFS
11781
11782fi
11783fi
11784LIPO=$ac_cv_prog_LIPO
11785if test -n "$LIPO"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11787$as_echo "$LIPO" >&6; }
11788else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
11791fi
11792
11793
11794fi
11795if test -z "$ac_cv_prog_LIPO"; then
11796 ac_ct_LIPO=$LIPO
11797 # Extract the first word of "lipo", so it can be a program name with args.
11798set dummy lipo; ac_word=$2
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011801if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011802 $as_echo_n "(cached) " >&6
11803else
11804 if test -n "$ac_ct_LIPO"; then
11805 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11806else
11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $PATH
11809do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11814 ac_cv_prog_ac_ct_LIPO="lipo"
11815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11816 break 2
11817 fi
11818done
11819 done
11820IFS=$as_save_IFS
11821
11822fi
11823fi
11824ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11825if test -n "$ac_ct_LIPO"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11827$as_echo "$ac_ct_LIPO" >&6; }
11828else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830$as_echo "no" >&6; }
11831fi
11832
11833 if test "x$ac_ct_LIPO" = x; then
11834 LIPO=":"
11835 else
11836 case $cross_compiling:$ac_tool_warned in
11837yes:)
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11840ac_tool_warned=yes ;;
11841esac
11842 LIPO=$ac_ct_LIPO
11843 fi
11844else
11845 LIPO="$ac_cv_prog_LIPO"
11846fi
11847
11848 if test -n "$ac_tool_prefix"; then
11849 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11850set dummy ${ac_tool_prefix}otool; ac_word=$2
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011853if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011854 $as_echo_n "(cached) " >&6
11855else
11856 if test -n "$OTOOL"; then
11857 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11858else
11859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860for as_dir in $PATH
11861do
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11866 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 break 2
11869 fi
11870done
11871 done
11872IFS=$as_save_IFS
11873
11874fi
11875fi
11876OTOOL=$ac_cv_prog_OTOOL
11877if test -n "$OTOOL"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11879$as_echo "$OTOOL" >&6; }
11880else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
11883fi
11884
11885
11886fi
11887if test -z "$ac_cv_prog_OTOOL"; then
11888 ac_ct_OTOOL=$OTOOL
11889 # Extract the first word of "otool", so it can be a program name with args.
11890set dummy otool; ac_word=$2
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011893if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011894 $as_echo_n "(cached) " >&6
11895else
11896 if test -n "$ac_ct_OTOOL"; then
11897 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11898else
11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11906 ac_cv_prog_ac_ct_OTOOL="otool"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11909 fi
11910done
11911 done
11912IFS=$as_save_IFS
11913
11914fi
11915fi
11916ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11917if test -n "$ac_ct_OTOOL"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11919$as_echo "$ac_ct_OTOOL" >&6; }
11920else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922$as_echo "no" >&6; }
11923fi
11924
11925 if test "x$ac_ct_OTOOL" = x; then
11926 OTOOL=":"
11927 else
11928 case $cross_compiling:$ac_tool_warned in
11929yes:)
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11932ac_tool_warned=yes ;;
11933esac
11934 OTOOL=$ac_ct_OTOOL
11935 fi
11936else
11937 OTOOL="$ac_cv_prog_OTOOL"
11938fi
11939
11940 if test -n "$ac_tool_prefix"; then
11941 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11942set dummy ${ac_tool_prefix}otool64; ac_word=$2
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011945if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011946 $as_echo_n "(cached) " >&6
11947else
11948 if test -n "$OTOOL64"; then
11949 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11950else
11951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11961 fi
11962done
11963 done
11964IFS=$as_save_IFS
11965
11966fi
11967fi
11968OTOOL64=$ac_cv_prog_OTOOL64
11969if test -n "$OTOOL64"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11971$as_echo "$OTOOL64" >&6; }
11972else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
11975fi
11976
11977
11978fi
11979if test -z "$ac_cv_prog_OTOOL64"; then
11980 ac_ct_OTOOL64=$OTOOL64
11981 # Extract the first word of "otool64", so it can be a program name with args.
11982set dummy otool64; ac_word=$2
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011985if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011986 $as_echo_n "(cached) " >&6
11987else
11988 if test -n "$ac_ct_OTOOL64"; then
11989 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11990else
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998 ac_cv_prog_ac_ct_OTOOL64="otool64"
11999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12001 fi
12002done
12003 done
12004IFS=$as_save_IFS
12005
12006fi
12007fi
12008ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12009if test -n "$ac_ct_OTOOL64"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12011$as_echo "$ac_ct_OTOOL64" >&6; }
12012else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
12015fi
12016
12017 if test "x$ac_ct_OTOOL64" = x; then
12018 OTOOL64=":"
12019 else
12020 case $cross_compiling:$ac_tool_warned in
12021yes:)
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12024ac_tool_warned=yes ;;
12025esac
12026 OTOOL64=$ac_ct_OTOOL64
12027 fi
12028else
12029 OTOOL64="$ac_cv_prog_OTOOL64"
12030fi
12031
12032
12033
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12059$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012060if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012061 $as_echo_n "(cached) " >&6
12062else
12063 lt_cv_apple_cc_single_mod=no
12064 if test -z "${LT_MULTI_MODULE}"; then
12065 # By default we will add the -single_module flag. You can override
12066 # by either setting the environment variable LT_MULTI_MODULE
12067 # non-empty at configure time, or by adding -multi_module to the
12068 # link flags.
12069 rm -rf libconftest.dylib*
12070 echo "int foo(void){return 1;}" > conftest.c
12071 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12072-dynamiclib -Wl,-single_module conftest.c" >&5
12073 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12074 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12075 _lt_result=$?
12076 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12077 lt_cv_apple_cc_single_mod=yes
12078 else
12079 cat conftest.err >&5
12080 fi
12081 rm -rf libconftest.dylib*
12082 rm -f conftest.*
12083 fi
12084fi
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12086$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12088$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012089if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012090 $as_echo_n "(cached) " >&6
12091else
12092 lt_cv_ld_exported_symbols_list=no
12093 save_LDFLAGS=$LDFLAGS
12094 echo "_main" > conftest.sym
12095 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h. */
12098
12099int
12100main ()
12101{
12102
12103 ;
12104 return 0;
12105}
12106_ACEOF
12107if ac_fn_c_try_link "$LINENO"; then :
12108 lt_cv_ld_exported_symbols_list=yes
12109else
12110 lt_cv_ld_exported_symbols_list=no
12111fi
12112rm -f core conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114 LDFLAGS="$save_LDFLAGS"
12115
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12118$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12120$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012121if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012122 $as_echo_n "(cached) " >&6
12123else
12124 lt_cv_ld_force_load=no
12125 cat > conftest.c << _LT_EOF
12126int forced_loaded() { return 2;}
12127_LT_EOF
12128 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12129 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12130 echo "$AR cru libconftest.a conftest.o" >&5
12131 $AR cru libconftest.a conftest.o 2>&5
12132 echo "$RANLIB libconftest.a" >&5
12133 $RANLIB libconftest.a 2>&5
12134 cat > conftest.c << _LT_EOF
12135int main() { return 0;}
12136_LT_EOF
12137 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12138 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12139 _lt_result=$?
12140 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12141 lt_cv_ld_force_load=yes
12142 else
12143 cat conftest.err >&5
12144 fi
12145 rm -f conftest.err libconftest.a conftest conftest.c
12146 rm -rf conftest.dSYM
12147
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12150$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012151 case $host_os in
12152 rhapsody* | darwin1.[012])
12153 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12154 darwin1.*)
12155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12156 darwin*) # darwin 5.x on
12157 # if running on 10.5 or later, the deployment target defaults
12158 # to the OS version, if on x86, and 10.4, the deployment
12159 # target defaults to 10.4. Don't you love it?
12160 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12161 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12162 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12163 10.[012]*)
12164 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12165 10.*)
12166 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12167 esac
12168 ;;
12169 esac
12170 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12171 _lt_dar_single_mod='$single_module'
12172 fi
12173 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12174 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12175 else
12176 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12177 fi
cristy0c60a692010-11-04 01:09:47 +000012178 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012179 _lt_dsymutil='~$DSYMUTIL $lib || :'
12180 else
12181 _lt_dsymutil=
12182 fi
12183 ;;
12184 esac
12185
12186for ac_header in dlfcn.h
12187do :
12188 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12189"
cristyda16f162011-02-19 23:52:17 +000012190if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012191 cat >>confdefs.h <<_ACEOF
12192#define HAVE_DLFCN_H 1
12193_ACEOF
12194
12195fi
12196
12197done
12198
12199
12200
cristy73bd4a52010-10-05 11:24:23 +000012201
cristyda16f162011-02-19 23:52:17 +000012202func_stripname_cnf ()
12203{
12204 case ${2} in
12205 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12206 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12207 esac
12208} # func_stripname_cnf
12209
12210
12211
cristy73bd4a52010-10-05 11:24:23 +000012212
12213
12214# Set options
12215enable_win32_dll=yes
12216
12217case $host in
cristy0c60a692010-11-04 01:09:47 +000012218*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012219 if test -n "$ac_tool_prefix"; then
12220 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12221set dummy ${ac_tool_prefix}as; ac_word=$2
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012224if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012225 $as_echo_n "(cached) " >&6
12226else
12227 if test -n "$AS"; then
12228 ac_cv_prog_AS="$AS" # Let the user override the test.
12229else
12230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231for as_dir in $PATH
12232do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_prog_AS="${ac_tool_prefix}as"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241done
12242 done
12243IFS=$as_save_IFS
12244
12245fi
12246fi
12247AS=$ac_cv_prog_AS
12248if test -n "$AS"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12250$as_echo "$AS" >&6; }
12251else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253$as_echo "no" >&6; }
12254fi
12255
12256
12257fi
12258if test -z "$ac_cv_prog_AS"; then
12259 ac_ct_AS=$AS
12260 # Extract the first word of "as", so it can be a program name with args.
12261set dummy as; ac_word=$2
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012264if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012265 $as_echo_n "(cached) " >&6
12266else
12267 if test -n "$ac_ct_AS"; then
12268 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12269else
12270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12277 ac_cv_prog_ac_ct_AS="as"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 break 2
12280 fi
12281done
12282 done
12283IFS=$as_save_IFS
12284
12285fi
12286fi
12287ac_ct_AS=$ac_cv_prog_ac_ct_AS
12288if test -n "$ac_ct_AS"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12290$as_echo "$ac_ct_AS" >&6; }
12291else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
12294fi
12295
12296 if test "x$ac_ct_AS" = x; then
12297 AS="false"
12298 else
12299 case $cross_compiling:$ac_tool_warned in
12300yes:)
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12303ac_tool_warned=yes ;;
12304esac
12305 AS=$ac_ct_AS
12306 fi
12307else
12308 AS="$ac_cv_prog_AS"
12309fi
12310
12311 if test -n "$ac_tool_prefix"; then
12312 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12313set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012316if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012317 $as_echo_n "(cached) " >&6
12318else
12319 if test -n "$DLLTOOL"; then
12320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12321else
12322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323for as_dir in $PATH
12324do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12332 fi
12333done
12334 done
12335IFS=$as_save_IFS
12336
12337fi
12338fi
12339DLLTOOL=$ac_cv_prog_DLLTOOL
12340if test -n "$DLLTOOL"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12342$as_echo "$DLLTOOL" >&6; }
12343else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
12346fi
12347
12348
12349fi
12350if test -z "$ac_cv_prog_DLLTOOL"; then
12351 ac_ct_DLLTOOL=$DLLTOOL
12352 # Extract the first word of "dlltool", so it can be a program name with args.
12353set dummy dlltool; ac_word=$2
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012356if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012357 $as_echo_n "(cached) " >&6
12358else
12359 if test -n "$ac_ct_DLLTOOL"; then
12360 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373done
12374 done
12375IFS=$as_save_IFS
12376
12377fi
12378fi
12379ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12380if test -n "$ac_ct_DLLTOOL"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12382$as_echo "$ac_ct_DLLTOOL" >&6; }
12383else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387
12388 if test "x$ac_ct_DLLTOOL" = x; then
12389 DLLTOOL="false"
12390 else
12391 case $cross_compiling:$ac_tool_warned in
12392yes:)
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12395ac_tool_warned=yes ;;
12396esac
12397 DLLTOOL=$ac_ct_DLLTOOL
12398 fi
12399else
12400 DLLTOOL="$ac_cv_prog_DLLTOOL"
12401fi
12402
12403 if test -n "$ac_tool_prefix"; then
12404 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12405set dummy ${ac_tool_prefix}objdump; ac_word=$2
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012408if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012409 $as_echo_n "(cached) " >&6
12410else
12411 if test -n "$OBJDUMP"; then
12412 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12413else
12414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415for as_dir in $PATH
12416do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12421 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12424 fi
12425done
12426 done
12427IFS=$as_save_IFS
12428
12429fi
12430fi
12431OBJDUMP=$ac_cv_prog_OBJDUMP
12432if test -n "$OBJDUMP"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12434$as_echo "$OBJDUMP" >&6; }
12435else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
12438fi
12439
12440
12441fi
12442if test -z "$ac_cv_prog_OBJDUMP"; then
12443 ac_ct_OBJDUMP=$OBJDUMP
12444 # Extract the first word of "objdump", so it can be a program name with args.
12445set dummy objdump; ac_word=$2
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012448if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012449 $as_echo_n "(cached) " >&6
12450else
12451 if test -n "$ac_ct_OBJDUMP"; then
12452 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12453else
12454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455for as_dir in $PATH
12456do
12457 IFS=$as_save_IFS
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12461 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 break 2
12464 fi
12465done
12466 done
12467IFS=$as_save_IFS
12468
12469fi
12470fi
12471ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12472if test -n "$ac_ct_OBJDUMP"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12474$as_echo "$ac_ct_OBJDUMP" >&6; }
12475else
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477$as_echo "no" >&6; }
12478fi
12479
12480 if test "x$ac_ct_OBJDUMP" = x; then
12481 OBJDUMP="false"
12482 else
12483 case $cross_compiling:$ac_tool_warned in
12484yes:)
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12487ac_tool_warned=yes ;;
12488esac
12489 OBJDUMP=$ac_ct_OBJDUMP
12490 fi
12491else
12492 OBJDUMP="$ac_cv_prog_OBJDUMP"
12493fi
12494
12495 ;;
12496esac
12497
12498test -z "$AS" && AS=as
12499
12500
12501
12502
12503
12504test -z "$DLLTOOL" && DLLTOOL=dlltool
12505
12506
12507
12508
12509
12510test -z "$OBJDUMP" && OBJDUMP=objdump
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520 # Check whether --enable-shared was given.
12521if test "${enable_shared+set}" = set; then :
12522 enableval=$enable_shared; p=${PACKAGE-default}
12523 case $enableval in
12524 yes) enable_shared=yes ;;
12525 no) enable_shared=no ;;
12526 *)
12527 enable_shared=no
12528 # Look at the argument we got. We use all the common list separators.
12529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12530 for pkg in $enableval; do
12531 IFS="$lt_save_ifs"
12532 if test "X$pkg" = "X$p"; then
12533 enable_shared=yes
12534 fi
12535 done
12536 IFS="$lt_save_ifs"
12537 ;;
12538 esac
12539else
12540 enable_shared=yes
12541fi
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551 # Check whether --enable-static was given.
12552if test "${enable_static+set}" = set; then :
12553 enableval=$enable_static; p=${PACKAGE-default}
12554 case $enableval in
12555 yes) enable_static=yes ;;
12556 no) enable_static=no ;;
12557 *)
12558 enable_static=no
12559 # Look at the argument we got. We use all the common list separators.
12560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12561 for pkg in $enableval; do
12562 IFS="$lt_save_ifs"
12563 if test "X$pkg" = "X$p"; then
12564 enable_static=yes
12565 fi
12566 done
12567 IFS="$lt_save_ifs"
12568 ;;
12569 esac
12570else
12571 enable_static=yes
12572fi
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583# Check whether --with-pic was given.
12584if test "${with_pic+set}" = set; then :
12585 withval=$with_pic; pic_mode="$withval"
12586else
12587 pic_mode=default
12588fi
12589
12590
12591test -z "$pic_mode" && pic_mode=default
12592
12593
12594
12595
12596
12597
12598
12599 # Check whether --enable-fast-install was given.
12600if test "${enable_fast_install+set}" = set; then :
12601 enableval=$enable_fast_install; p=${PACKAGE-default}
12602 case $enableval in
12603 yes) enable_fast_install=yes ;;
12604 no) enable_fast_install=no ;;
12605 *)
12606 enable_fast_install=no
12607 # Look at the argument we got. We use all the common list separators.
12608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12609 for pkg in $enableval; do
12610 IFS="$lt_save_ifs"
12611 if test "X$pkg" = "X$p"; then
12612 enable_fast_install=yes
12613 fi
12614 done
12615 IFS="$lt_save_ifs"
12616 ;;
12617 esac
12618else
12619 enable_fast_install=yes
12620fi
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632# This can be used to rebuild libtool when needed
12633LIBTOOL_DEPS="$ltmain"
12634
12635# Always use our own libtool.
12636LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
cristy0c60a692010-11-04 01:09:47 +000012662
cristy73bd4a52010-10-05 11:24:23 +000012663test -z "$LN_S" && LN_S="ln -s"
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678if test -n "${ZSH_VERSION+set}" ; then
12679 setopt NO_GLOB_SUBST
12680fi
12681
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12683$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012684if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012685 $as_echo_n "(cached) " >&6
12686else
12687 rm -f .libs 2>/dev/null
12688mkdir .libs 2>/dev/null
12689if test -d .libs; then
12690 lt_cv_objdir=.libs
12691else
12692 # MS-DOS does not allow filenames that begin with a dot.
12693 lt_cv_objdir=_libs
12694fi
12695rmdir .libs 2>/dev/null
12696fi
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12698$as_echo "$lt_cv_objdir" >&6; }
12699objdir=$lt_cv_objdir
12700
12701
12702
12703
12704
12705cat >>confdefs.h <<_ACEOF
12706#define LT_OBJDIR "$lt_cv_objdir/"
12707_ACEOF
12708
12709
12710
12711
cristy73bd4a52010-10-05 11:24:23 +000012712case $host_os in
12713aix3*)
12714 # AIX sometimes has problems with the GCC collect2 program. For some
12715 # reason, if we set the COLLECT_NAMES environment variable, the problems
12716 # vanish in a puff of smoke.
12717 if test "X${COLLECT_NAMES+set}" != Xset; then
12718 COLLECT_NAMES=
12719 export COLLECT_NAMES
12720 fi
12721 ;;
12722esac
12723
cristy73bd4a52010-10-05 11:24:23 +000012724# Global variables:
12725ofile=libtool
12726can_build_shared=yes
12727
12728# All known linkers require a `.a' archive for static linking (except MSVC,
12729# which needs '.lib').
12730libext=a
12731
12732with_gnu_ld="$lt_cv_prog_gnu_ld"
12733
12734old_CC="$CC"
12735old_CFLAGS="$CFLAGS"
12736
12737# Set sane defaults for various variables
12738test -z "$CC" && CC=cc
12739test -z "$LTCC" && LTCC=$CC
12740test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12741test -z "$LD" && LD=ld
12742test -z "$ac_objext" && ac_objext=o
12743
12744for cc_temp in $compiler""; do
12745 case $cc_temp in
12746 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12747 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12748 \-*) ;;
12749 *) break;;
12750 esac
12751done
cristy0c60a692010-11-04 01:09:47 +000012752cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012753
12754
12755# Only perform the check for file, if the check method requires it
12756test -z "$MAGIC_CMD" && MAGIC_CMD=file
12757case $deplibs_check_method in
12758file_magic*)
12759 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12761$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012762if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012763 $as_echo_n "(cached) " >&6
12764else
12765 case $MAGIC_CMD in
12766[\\/*] | ?:[\\/]*)
12767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12768 ;;
12769*)
12770 lt_save_MAGIC_CMD="$MAGIC_CMD"
12771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12772 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12773 for ac_dir in $ac_dummy; do
12774 IFS="$lt_save_ifs"
12775 test -z "$ac_dir" && ac_dir=.
12776 if test -f $ac_dir/${ac_tool_prefix}file; then
12777 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12778 if test -n "$file_magic_test_file"; then
12779 case $deplibs_check_method in
12780 "file_magic "*)
12781 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12783 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12784 $EGREP "$file_magic_regex" > /dev/null; then
12785 :
12786 else
12787 cat <<_LT_EOF 1>&2
12788
12789*** Warning: the command libtool uses to detect shared libraries,
12790*** $file_magic_cmd, produces output that libtool cannot recognize.
12791*** The result is that libtool may fail to recognize shared libraries
12792*** as such. This will affect the creation of libtool libraries that
12793*** depend on shared libraries, but programs linked with such libtool
12794*** libraries will work regardless of this problem. Nevertheless, you
12795*** may want to report the problem to your system manager and/or to
12796*** bug-libtool@gnu.org
12797
12798_LT_EOF
12799 fi ;;
12800 esac
12801 fi
12802 break
12803 fi
12804 done
12805 IFS="$lt_save_ifs"
12806 MAGIC_CMD="$lt_save_MAGIC_CMD"
12807 ;;
12808esac
12809fi
12810
12811MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12812if test -n "$MAGIC_CMD"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12814$as_echo "$MAGIC_CMD" >&6; }
12815else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817$as_echo "no" >&6; }
12818fi
12819
12820
12821
12822
12823
12824if test -z "$lt_cv_path_MAGIC_CMD"; then
12825 if test -n "$ac_tool_prefix"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12827$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012828if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012829 $as_echo_n "(cached) " >&6
12830else
12831 case $MAGIC_CMD in
12832[\\/*] | ?:[\\/]*)
12833 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12834 ;;
12835*)
12836 lt_save_MAGIC_CMD="$MAGIC_CMD"
12837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12838 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12839 for ac_dir in $ac_dummy; do
12840 IFS="$lt_save_ifs"
12841 test -z "$ac_dir" && ac_dir=.
12842 if test -f $ac_dir/file; then
12843 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12844 if test -n "$file_magic_test_file"; then
12845 case $deplibs_check_method in
12846 "file_magic "*)
12847 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12849 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12850 $EGREP "$file_magic_regex" > /dev/null; then
12851 :
12852 else
12853 cat <<_LT_EOF 1>&2
12854
12855*** Warning: the command libtool uses to detect shared libraries,
12856*** $file_magic_cmd, produces output that libtool cannot recognize.
12857*** The result is that libtool may fail to recognize shared libraries
12858*** as such. This will affect the creation of libtool libraries that
12859*** depend on shared libraries, but programs linked with such libtool
12860*** libraries will work regardless of this problem. Nevertheless, you
12861*** may want to report the problem to your system manager and/or to
12862*** bug-libtool@gnu.org
12863
12864_LT_EOF
12865 fi ;;
12866 esac
12867 fi
12868 break
12869 fi
12870 done
12871 IFS="$lt_save_ifs"
12872 MAGIC_CMD="$lt_save_MAGIC_CMD"
12873 ;;
12874esac
12875fi
12876
12877MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12878if test -n "$MAGIC_CMD"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12880$as_echo "$MAGIC_CMD" >&6; }
12881else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886
12887 else
12888 MAGIC_CMD=:
12889 fi
12890fi
12891
12892 fi
12893 ;;
12894esac
12895
12896# Use C for the default configuration in the libtool script
12897
12898lt_save_CC="$CC"
12899ac_ext=c
12900ac_cpp='$CPP $CPPFLAGS'
12901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903ac_compiler_gnu=$ac_cv_c_compiler_gnu
12904
12905
12906# Source file extension for C test sources.
12907ac_ext=c
12908
12909# Object file extension for compiled C test sources.
12910objext=o
12911objext=$objext
12912
12913# Code to be used in simple compile tests
12914lt_simple_compile_test_code="int some_variable = 0;"
12915
12916# Code to be used in simple link tests
12917lt_simple_link_test_code='int main(){return(0);}'
12918
12919
12920
12921
12922
12923
12924
12925# If no C compiler was specified, use CC.
12926LTCC=${LTCC-"$CC"}
12927
12928# If no C compiler flags were specified, use CFLAGS.
12929LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12930
12931# Allow CC to be a program name with arguments.
12932compiler=$CC
12933
12934# Save the default compiler, since it gets overwritten when the other
12935# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12936compiler_DEFAULT=$CC
12937
12938# save warnings/boilerplate of simple test code
12939ac_outfile=conftest.$ac_objext
12940echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12941eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12942_lt_compiler_boilerplate=`cat conftest.err`
12943$RM conftest*
12944
12945ac_outfile=conftest.$ac_objext
12946echo "$lt_simple_link_test_code" >conftest.$ac_ext
12947eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12948_lt_linker_boilerplate=`cat conftest.err`
12949$RM -r conftest*
12950
12951
12952## CAVEAT EMPTOR:
12953## There is no encapsulation within the following macros, do not change
12954## the running order or otherwise move them around unless you know exactly
12955## what you are doing...
12956if test -n "$compiler"; then
12957
12958lt_prog_compiler_no_builtin_flag=
12959
12960if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012961 case $cc_basename in
12962 nvcc*)
12963 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12964 *)
12965 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12966 esac
cristy73bd4a52010-10-05 11:24:23 +000012967
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12969$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012970if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012971 $as_echo_n "(cached) " >&6
12972else
12973 lt_cv_prog_compiler_rtti_exceptions=no
12974 ac_outfile=conftest.$ac_objext
12975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12976 lt_compiler_flag="-fno-rtti -fno-exceptions"
12977 # Insert the option either (1) after the last *FLAGS variable, or
12978 # (2) before a word containing "conftest.", or (3) at the end.
12979 # Note that $ac_compile itself does not contain backslashes and begins
12980 # with a dollar sign (not a hyphen), so the echo should work correctly.
12981 # The option is referenced via a variable to avoid confusing sed.
12982 lt_compile=`echo "$ac_compile" | $SED \
12983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12985 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012987 (eval "$lt_compile" 2>conftest.err)
12988 ac_status=$?
12989 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012991 if (exit $ac_status) && test -s "$ac_outfile"; then
12992 # The compiler can only warn and ignore the option if not recognized
12993 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12997 lt_cv_prog_compiler_rtti_exceptions=yes
12998 fi
12999 fi
13000 $RM conftest*
13001
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13004$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13005
13006if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13007 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13008else
13009 :
13010fi
13011
13012fi
13013
13014
13015
13016
13017
13018
13019 lt_prog_compiler_wl=
13020lt_prog_compiler_pic=
13021lt_prog_compiler_static=
13022
cristy73bd4a52010-10-05 11:24:23 +000013023
13024 if test "$GCC" = yes; then
13025 lt_prog_compiler_wl='-Wl,'
13026 lt_prog_compiler_static='-static'
13027
13028 case $host_os in
13029 aix*)
13030 # All AIX code is PIC.
13031 if test "$host_cpu" = ia64; then
13032 # AIX 5 now supports IA64 processor
13033 lt_prog_compiler_static='-Bstatic'
13034 fi
13035 ;;
13036
13037 amigaos*)
13038 case $host_cpu in
13039 powerpc)
13040 # see comment about AmigaOS4 .so support
13041 lt_prog_compiler_pic='-fPIC'
13042 ;;
13043 m68k)
13044 # FIXME: we need at least 68020 code to build shared libraries, but
13045 # adding the `-m68020' flag to GCC prevents building anything better,
13046 # like `-m68040'.
13047 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13048 ;;
13049 esac
13050 ;;
13051
13052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13053 # PIC is the default for these OSes.
13054 ;;
13055
13056 mingw* | cygwin* | pw32* | os2* | cegcc*)
13057 # This hack is so that the source file can tell whether it is being
13058 # built for inclusion in a dll (and should export symbols for example).
13059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13060 # (--disable-auto-import) libraries
13061 lt_prog_compiler_pic='-DDLL_EXPORT'
13062 ;;
13063
13064 darwin* | rhapsody*)
13065 # PIC is the default on this platform
13066 # Common symbols not allowed in MH_DYLIB files
13067 lt_prog_compiler_pic='-fno-common'
13068 ;;
13069
cristy0c60a692010-11-04 01:09:47 +000013070 haiku*)
13071 # PIC is the default for Haiku.
13072 # The "-static" flag exists, but is broken.
13073 lt_prog_compiler_static=
13074 ;;
13075
cristy73bd4a52010-10-05 11:24:23 +000013076 hpux*)
13077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13079 # sets the default TLS model and affects inlining.
13080 case $host_cpu in
13081 hppa*64*)
13082 # +Z the default
13083 ;;
13084 *)
13085 lt_prog_compiler_pic='-fPIC'
13086 ;;
13087 esac
13088 ;;
13089
13090 interix[3-9]*)
13091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13092 # Instead, we relocate shared libraries at runtime.
13093 ;;
13094
13095 msdosdjgpp*)
13096 # Just because we use GCC doesn't mean we suddenly get shared libraries
13097 # on systems that don't support them.
13098 lt_prog_compiler_can_build_shared=no
13099 enable_shared=no
13100 ;;
13101
13102 *nto* | *qnx*)
13103 # QNX uses GNU C++, but need to define -shared option too, otherwise
13104 # it will coredump.
13105 lt_prog_compiler_pic='-fPIC -shared'
13106 ;;
13107
13108 sysv4*MP*)
13109 if test -d /usr/nec; then
13110 lt_prog_compiler_pic=-Kconform_pic
13111 fi
13112 ;;
13113
13114 *)
13115 lt_prog_compiler_pic='-fPIC'
13116 ;;
13117 esac
cristy0c60a692010-11-04 01:09:47 +000013118
13119 case $cc_basename in
13120 nvcc*) # Cuda Compiler Driver 2.2
13121 lt_prog_compiler_wl='-Xlinker '
13122 lt_prog_compiler_pic='-Xcompiler -fPIC'
13123 ;;
13124 esac
cristy73bd4a52010-10-05 11:24:23 +000013125 else
13126 # PORTME Check for flag to pass linker flags through the system compiler.
13127 case $host_os in
13128 aix*)
13129 lt_prog_compiler_wl='-Wl,'
13130 if test "$host_cpu" = ia64; then
13131 # AIX 5 now supports IA64 processor
13132 lt_prog_compiler_static='-Bstatic'
13133 else
13134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13135 fi
13136 ;;
13137
13138 mingw* | cygwin* | pw32* | os2* | cegcc*)
13139 # This hack is so that the source file can tell whether it is being
13140 # built for inclusion in a dll (and should export symbols for example).
13141 lt_prog_compiler_pic='-DDLL_EXPORT'
13142 ;;
13143
13144 hpux9* | hpux10* | hpux11*)
13145 lt_prog_compiler_wl='-Wl,'
13146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147 # not for PA HP-UX.
13148 case $host_cpu in
13149 hppa*64*|ia64*)
13150 # +Z the default
13151 ;;
13152 *)
13153 lt_prog_compiler_pic='+Z'
13154 ;;
13155 esac
13156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13157 lt_prog_compiler_static='${wl}-a ${wl}archive'
13158 ;;
13159
13160 irix5* | irix6* | nonstopux*)
13161 lt_prog_compiler_wl='-Wl,'
13162 # PIC (with -KPIC) is the default.
13163 lt_prog_compiler_static='-non_shared'
13164 ;;
13165
cristy0c60a692010-11-04 01:09:47 +000013166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013167 case $cc_basename in
13168 # old Intel for x86_64 which still supported -KPIC.
13169 ecc*)
13170 lt_prog_compiler_wl='-Wl,'
13171 lt_prog_compiler_pic='-KPIC'
13172 lt_prog_compiler_static='-static'
13173 ;;
13174 # icc used to be incompatible with GCC.
13175 # ICC 10 doesn't accept -KPIC any more.
13176 icc* | ifort*)
13177 lt_prog_compiler_wl='-Wl,'
13178 lt_prog_compiler_pic='-fPIC'
13179 lt_prog_compiler_static='-static'
13180 ;;
13181 # Lahey Fortran 8.1.
13182 lf95*)
13183 lt_prog_compiler_wl='-Wl,'
13184 lt_prog_compiler_pic='--shared'
13185 lt_prog_compiler_static='--static'
13186 ;;
cristyda16f162011-02-19 23:52:17 +000013187 nagfor*)
13188 # NAG Fortran compiler
13189 lt_prog_compiler_wl='-Wl,-Wl,,'
13190 lt_prog_compiler_pic='-PIC'
13191 lt_prog_compiler_static='-Bstatic'
13192 ;;
cristy0c60a692010-11-04 01:09:47 +000013193 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013194 # Portland Group compilers (*not* the Pentium gcc compiler,
13195 # which looks to be a dead project)
13196 lt_prog_compiler_wl='-Wl,'
13197 lt_prog_compiler_pic='-fpic'
13198 lt_prog_compiler_static='-Bstatic'
13199 ;;
13200 ccc*)
13201 lt_prog_compiler_wl='-Wl,'
13202 # All Alpha code is PIC.
13203 lt_prog_compiler_static='-non_shared'
13204 ;;
cristy0c60a692010-11-04 01:09:47 +000013205 xl* | bgxl* | bgf* | mpixl*)
13206 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013207 lt_prog_compiler_wl='-Wl,'
13208 lt_prog_compiler_pic='-qpic'
13209 lt_prog_compiler_static='-qstaticlink'
13210 ;;
13211 *)
13212 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013213 *Sun\ F* | *Sun*Fortran*)
13214 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13215 lt_prog_compiler_pic='-KPIC'
13216 lt_prog_compiler_static='-Bstatic'
13217 lt_prog_compiler_wl=''
13218 ;;
cristy73bd4a52010-10-05 11:24:23 +000013219 *Sun\ C*)
13220 # Sun C 5.9
13221 lt_prog_compiler_pic='-KPIC'
13222 lt_prog_compiler_static='-Bstatic'
13223 lt_prog_compiler_wl='-Wl,'
13224 ;;
cristy73bd4a52010-10-05 11:24:23 +000013225 esac
13226 ;;
13227 esac
13228 ;;
13229
13230 newsos6)
13231 lt_prog_compiler_pic='-KPIC'
13232 lt_prog_compiler_static='-Bstatic'
13233 ;;
13234
13235 *nto* | *qnx*)
13236 # QNX uses GNU C++, but need to define -shared option too, otherwise
13237 # it will coredump.
13238 lt_prog_compiler_pic='-fPIC -shared'
13239 ;;
13240
13241 osf3* | osf4* | osf5*)
13242 lt_prog_compiler_wl='-Wl,'
13243 # All OSF/1 code is PIC.
13244 lt_prog_compiler_static='-non_shared'
13245 ;;
13246
13247 rdos*)
13248 lt_prog_compiler_static='-non_shared'
13249 ;;
13250
13251 solaris*)
13252 lt_prog_compiler_pic='-KPIC'
13253 lt_prog_compiler_static='-Bstatic'
13254 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013255 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013256 lt_prog_compiler_wl='-Qoption ld ';;
13257 *)
13258 lt_prog_compiler_wl='-Wl,';;
13259 esac
13260 ;;
13261
13262 sunos4*)
13263 lt_prog_compiler_wl='-Qoption ld '
13264 lt_prog_compiler_pic='-PIC'
13265 lt_prog_compiler_static='-Bstatic'
13266 ;;
13267
13268 sysv4 | sysv4.2uw2* | sysv4.3*)
13269 lt_prog_compiler_wl='-Wl,'
13270 lt_prog_compiler_pic='-KPIC'
13271 lt_prog_compiler_static='-Bstatic'
13272 ;;
13273
13274 sysv4*MP*)
13275 if test -d /usr/nec ;then
13276 lt_prog_compiler_pic='-Kconform_pic'
13277 lt_prog_compiler_static='-Bstatic'
13278 fi
13279 ;;
13280
13281 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13282 lt_prog_compiler_wl='-Wl,'
13283 lt_prog_compiler_pic='-KPIC'
13284 lt_prog_compiler_static='-Bstatic'
13285 ;;
13286
13287 unicos*)
13288 lt_prog_compiler_wl='-Wl,'
13289 lt_prog_compiler_can_build_shared=no
13290 ;;
13291
13292 uts4*)
13293 lt_prog_compiler_pic='-pic'
13294 lt_prog_compiler_static='-Bstatic'
13295 ;;
13296
13297 *)
13298 lt_prog_compiler_can_build_shared=no
13299 ;;
13300 esac
13301 fi
13302
13303case $host_os in
13304 # For platforms which do not support PIC, -DPIC is meaningless:
13305 *djgpp*)
13306 lt_prog_compiler_pic=
13307 ;;
13308 *)
13309 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13310 ;;
13311esac
cristy73bd4a52010-10-05 11:24:23 +000013312
cristyda16f162011-02-19 23:52:17 +000013313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13314$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13315if ${lt_cv_prog_compiler_pic+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317else
13318 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13319fi
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13321$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13322lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013323
13324#
13325# Check to make sure the PIC flag actually works.
13326#
13327if test -n "$lt_prog_compiler_pic"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13329$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013330if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013331 $as_echo_n "(cached) " >&6
13332else
13333 lt_cv_prog_compiler_pic_works=no
13334 ac_outfile=conftest.$ac_objext
13335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13336 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13337 # Insert the option either (1) after the last *FLAGS variable, or
13338 # (2) before a word containing "conftest.", or (3) at the end.
13339 # Note that $ac_compile itself does not contain backslashes and begins
13340 # with a dollar sign (not a hyphen), so the echo should work correctly.
13341 # The option is referenced via a variable to avoid confusing sed.
13342 lt_compile=`echo "$ac_compile" | $SED \
13343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13345 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013347 (eval "$lt_compile" 2>conftest.err)
13348 ac_status=$?
13349 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013351 if (exit $ac_status) && test -s "$ac_outfile"; then
13352 # The compiler can only warn and ignore the option if not recognized
13353 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13357 lt_cv_prog_compiler_pic_works=yes
13358 fi
13359 fi
13360 $RM conftest*
13361
13362fi
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13364$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13365
13366if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13367 case $lt_prog_compiler_pic in
13368 "" | " "*) ;;
13369 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13370 esac
13371else
13372 lt_prog_compiler_pic=
13373 lt_prog_compiler_can_build_shared=no
13374fi
13375
13376fi
13377
13378
13379
13380
13381
13382
cristyda16f162011-02-19 23:52:17 +000013383
13384
13385
13386
13387
cristy73bd4a52010-10-05 11:24:23 +000013388#
13389# Check to make sure the static flag actually works.
13390#
13391wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13393$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013394if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013395 $as_echo_n "(cached) " >&6
13396else
13397 lt_cv_prog_compiler_static_works=no
13398 save_LDFLAGS="$LDFLAGS"
13399 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13400 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13401 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13402 # The linker can only warn and ignore the option if not recognized
13403 # So say no if there are warnings
13404 if test -s conftest.err; then
13405 # Append any errors to the config.log.
13406 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013407 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13409 if diff conftest.exp conftest.er2 >/dev/null; then
13410 lt_cv_prog_compiler_static_works=yes
13411 fi
13412 else
13413 lt_cv_prog_compiler_static_works=yes
13414 fi
13415 fi
13416 $RM -r conftest*
13417 LDFLAGS="$save_LDFLAGS"
13418
13419fi
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13421$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13422
13423if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13424 :
13425else
13426 lt_prog_compiler_static=
13427fi
13428
13429
13430
13431
13432
13433
13434
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13436$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013437if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013438 $as_echo_n "(cached) " >&6
13439else
13440 lt_cv_prog_compiler_c_o=no
13441 $RM -r conftest 2>/dev/null
13442 mkdir conftest
13443 cd conftest
13444 mkdir out
13445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13446
13447 lt_compiler_flag="-o out/conftest2.$ac_objext"
13448 # Insert the option either (1) after the last *FLAGS variable, or
13449 # (2) before a word containing "conftest.", or (3) at the end.
13450 # Note that $ac_compile itself does not contain backslashes and begins
13451 # with a dollar sign (not a hyphen), so the echo should work correctly.
13452 lt_compile=`echo "$ac_compile" | $SED \
13453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13455 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013457 (eval "$lt_compile" 2>out/conftest.err)
13458 ac_status=$?
13459 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13462 then
13463 # The compiler can only warn and ignore the option if not recognized
13464 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13468 lt_cv_prog_compiler_c_o=yes
13469 fi
13470 fi
13471 chmod u+w . 2>&5
13472 $RM conftest*
13473 # SGI C++ compiler will create directory out/ii_files/ for
13474 # template instantiation
13475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13476 $RM out/* && rmdir out
13477 cd ..
13478 $RM -r conftest
13479 $RM conftest*
13480
13481fi
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13483$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13484
13485
13486
13487
13488
13489
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13491$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013492if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013493 $as_echo_n "(cached) " >&6
13494else
13495 lt_cv_prog_compiler_c_o=no
13496 $RM -r conftest 2>/dev/null
13497 mkdir conftest
13498 cd conftest
13499 mkdir out
13500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13501
13502 lt_compiler_flag="-o out/conftest2.$ac_objext"
13503 # Insert the option either (1) after the last *FLAGS variable, or
13504 # (2) before a word containing "conftest.", or (3) at the end.
13505 # Note that $ac_compile itself does not contain backslashes and begins
13506 # with a dollar sign (not a hyphen), so the echo should work correctly.
13507 lt_compile=`echo "$ac_compile" | $SED \
13508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13510 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013512 (eval "$lt_compile" 2>out/conftest.err)
13513 ac_status=$?
13514 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013516 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13517 then
13518 # The compiler can only warn and ignore the option if not recognized
13519 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13523 lt_cv_prog_compiler_c_o=yes
13524 fi
13525 fi
13526 chmod u+w . 2>&5
13527 $RM conftest*
13528 # SGI C++ compiler will create directory out/ii_files/ for
13529 # template instantiation
13530 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13531 $RM out/* && rmdir out
13532 cd ..
13533 $RM -r conftest
13534 $RM conftest*
13535
13536fi
13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13538$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13539
13540
13541
13542
13543hard_links="nottested"
13544if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13545 # do not overwrite the value of need_locks provided by the user
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13547$as_echo_n "checking if we can lock with hard links... " >&6; }
13548 hard_links=yes
13549 $RM conftest*
13550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13551 touch conftest.a
13552 ln conftest.a conftest.b 2>&5 || hard_links=no
13553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13555$as_echo "$hard_links" >&6; }
13556 if test "$hard_links" = no; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13558$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13559 need_locks=warn
13560 fi
13561else
13562 need_locks=no
13563fi
13564
13565
13566
13567
13568
13569
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13571$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13572
13573 runpath_var=
13574 allow_undefined_flag=
13575 always_export_symbols=no
13576 archive_cmds=
13577 archive_expsym_cmds=
13578 compiler_needs_object=no
13579 enable_shared_with_static_runtimes=no
13580 export_dynamic_flag_spec=
13581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13582 hardcode_automatic=no
13583 hardcode_direct=no
13584 hardcode_direct_absolute=no
13585 hardcode_libdir_flag_spec=
13586 hardcode_libdir_flag_spec_ld=
13587 hardcode_libdir_separator=
13588 hardcode_minus_L=no
13589 hardcode_shlibpath_var=unsupported
13590 inherit_rpath=no
13591 link_all_deplibs=unknown
13592 module_cmds=
13593 module_expsym_cmds=
13594 old_archive_from_new_cmds=
13595 old_archive_from_expsyms_cmds=
13596 thread_safe_flag_spec=
13597 whole_archive_flag_spec=
13598 # include_expsyms should be a list of space-separated symbols to be *always*
13599 # included in the symbol list
13600 include_expsyms=
13601 # exclude_expsyms can be an extended regexp of symbols to exclude
13602 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13603 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13604 # as well as any symbol that contains `d'.
13605 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13606 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13607 # platforms (ab)use it in PIC code, but their linkers get confused if
13608 # the symbol is explicitly referenced. Since portable code cannot
13609 # rely on this symbol name, it's probably fine to never include it in
13610 # preloaded symbol tables.
13611 # Exclude shared library initialization/finalization symbols.
13612 extract_expsyms_cmds=
13613
13614 case $host_os in
13615 cygwin* | mingw* | pw32* | cegcc*)
13616 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13617 # When not using gcc, we currently assume that we are using
13618 # Microsoft Visual C++.
13619 if test "$GCC" != yes; then
13620 with_gnu_ld=no
13621 fi
13622 ;;
13623 interix*)
13624 # we just hope/assume this is gcc and not c89 (= MSVC++)
13625 with_gnu_ld=yes
13626 ;;
13627 openbsd*)
13628 with_gnu_ld=no
13629 ;;
13630 esac
13631
13632 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013633
13634 # On some targets, GNU ld is compatible enough with the native linker
13635 # that we're better off using the native interface for both.
13636 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013637 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013638 case $host_os in
13639 aix*)
13640 # The AIX port of GNU ld has always aspired to compatibility
13641 # with the native linker. However, as the warning in the GNU ld
13642 # block says, versions before 2.19.5* couldn't really create working
13643 # shared libraries, regardless of the interface used.
13644 case `$LD -v 2>&1` in
13645 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13646 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13647 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13648 *)
13649 lt_use_gnu_ld_interface=yes
13650 ;;
13651 esac
13652 ;;
13653 *)
13654 lt_use_gnu_ld_interface=yes
13655 ;;
13656 esac
13657 fi
13658
13659 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013660 # If archive_cmds runs LD, not CC, wlarc should be empty
13661 wlarc='${wl}'
13662
13663 # Set some defaults for GNU ld with shared library support. These
13664 # are reset later if shared libraries are not supported. Putting them
13665 # here allows them to be overridden if necessary.
13666 runpath_var=LD_RUN_PATH
13667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13668 export_dynamic_flag_spec='${wl}--export-dynamic'
13669 # ancient GNU ld didn't support --whole-archive et. al.
13670 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13671 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13672 else
13673 whole_archive_flag_spec=
13674 fi
13675 supports_anon_versioning=no
13676 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013677 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013678 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13681 *\ 2.11.*) ;; # other 2.11 versions
13682 *) supports_anon_versioning=yes ;;
13683 esac
13684
13685 # See if GNU ld supports shared libraries.
13686 case $host_os in
13687 aix[3-9]*)
13688 # On AIX/PPC, the GNU linker is very broken
13689 if test "$host_cpu" != ia64; then
13690 ld_shlibs=no
13691 cat <<_LT_EOF 1>&2
13692
cristy0c60a692010-11-04 01:09:47 +000013693*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013694*** to be unable to reliably create shared libraries on AIX.
13695*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013696*** really care for shared libraries, you may want to install binutils
13697*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13698*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013699
13700_LT_EOF
13701 fi
13702 ;;
13703
13704 amigaos*)
13705 case $host_cpu in
13706 powerpc)
13707 # see comment about AmigaOS4 .so support
13708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13709 archive_expsym_cmds=''
13710 ;;
13711 m68k)
13712 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)'
13713 hardcode_libdir_flag_spec='-L$libdir'
13714 hardcode_minus_L=yes
13715 ;;
13716 esac
13717 ;;
13718
13719 beos*)
13720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13721 allow_undefined_flag=unsupported
13722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13723 # support --undefined. This deserves some investigation. FIXME
13724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 else
13726 ld_shlibs=no
13727 fi
13728 ;;
13729
13730 cygwin* | mingw* | pw32* | cegcc*)
13731 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13732 # as there is no search path for DLLs.
13733 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013734 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013735 allow_undefined_flag=unsupported
13736 always_export_symbols=no
13737 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013738 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'
13739 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 +000013740
13741 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13743 # If the export-symbols file already is a .def file (1st line
13744 # is EXPORTS), use it as is; otherwise, prepend...
13745 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13746 cp $export_symbols $output_objdir/$soname.def;
13747 else
13748 echo EXPORTS > $output_objdir/$soname.def;
13749 cat $export_symbols >> $output_objdir/$soname.def;
13750 fi~
13751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13752 else
13753 ld_shlibs=no
13754 fi
13755 ;;
13756
cristy0c60a692010-11-04 01:09:47 +000013757 haiku*)
13758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 link_all_deplibs=yes
13760 ;;
13761
cristy73bd4a52010-10-05 11:24:23 +000013762 interix[3-9]*)
13763 hardcode_direct=no
13764 hardcode_shlibpath_var=no
13765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13766 export_dynamic_flag_spec='${wl}-E'
13767 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13768 # Instead, shared libraries are loaded at an image base (0x10000000 by
13769 # default) and relocated if they conflict, which is a slow very memory
13770 # consuming and fragmenting process. To avoid this, we pick a random,
13771 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13772 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13773 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13774 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'
13775 ;;
13776
cristy0c60a692010-11-04 01:09:47 +000013777 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013778 tmp_diet=no
13779 if test "$host_os" = linux-dietlibc; then
13780 case $cc_basename in
13781 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13782 esac
13783 fi
13784 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13785 && test "$tmp_diet" = no
13786 then
cristyda16f162011-02-19 23:52:17 +000013787 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013788 tmp_sharedflag='-shared'
13789 case $cc_basename,$host_cpu in
13790 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013791 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 +000013792 tmp_addflag=' $pic_flag'
13793 ;;
cristy0c60a692010-11-04 01:09:47 +000013794 pgf77* | pgf90* | pgf95* | pgfortran*)
13795 # Portland Group f77 and f90 compilers
13796 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 +000013797 tmp_addflag=' $pic_flag -Mnomain' ;;
13798 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13799 tmp_addflag=' -i_dynamic' ;;
13800 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13801 tmp_addflag=' -i_dynamic -nofor_main' ;;
13802 ifc* | ifort*) # Intel Fortran compiler
13803 tmp_addflag=' -nofor_main' ;;
13804 lf95*) # Lahey Fortran 8.1
13805 whole_archive_flag_spec=
13806 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013807 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013808 tmp_sharedflag='-qmkshrobj'
13809 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013810 nvcc*) # Cuda Compiler Driver 2.2
13811 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'
13812 compiler_needs_object=yes
13813 ;;
cristy73bd4a52010-10-05 11:24:23 +000013814 esac
13815 case `$CC -V 2>&1 | sed 5q` in
13816 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013817 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 +000013818 compiler_needs_object=yes
13819 tmp_sharedflag='-G' ;;
13820 *Sun\ F*) # Sun Fortran 8.3
13821 tmp_sharedflag='-G' ;;
13822 esac
13823 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824
13825 if test "x$supports_anon_versioning" = xyes; then
13826 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13828 echo "local: *; };" >> $output_objdir/$libname.ver~
13829 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13830 fi
13831
13832 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013833 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013834 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13835 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13836 hardcode_libdir_flag_spec=
13837 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013838 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013839 if test "x$supports_anon_versioning" = xyes; then
13840 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13842 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013843 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013844 fi
13845 ;;
13846 esac
13847 else
13848 ld_shlibs=no
13849 fi
13850 ;;
13851
13852 netbsd*)
13853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13854 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13855 wlarc=
13856 else
cristyda16f162011-02-19 23:52:17 +000013857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13858 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 +000013859 fi
13860 ;;
13861
13862 solaris*)
13863 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13864 ld_shlibs=no
13865 cat <<_LT_EOF 1>&2
13866
13867*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13868*** create shared libraries on Solaris systems. Therefore, libtool
13869*** is disabling shared libraries support. We urge you to upgrade GNU
13870*** binutils to release 2.9.1 or newer. Another option is to modify
13871*** your PATH or compiler configuration so that the native linker is
13872*** used, and then restart.
13873
13874_LT_EOF
13875 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877 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 +000013878 else
13879 ld_shlibs=no
13880 fi
13881 ;;
13882
13883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13884 case `$LD -v 2>&1` in
13885 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13886 ld_shlibs=no
13887 cat <<_LT_EOF 1>&2
13888
13889*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13890*** reliably create shared libraries on SCO systems. Therefore, libtool
13891*** is disabling shared libraries support. We urge you to upgrade GNU
13892*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13893*** your PATH or compiler configuration so that the native linker is
13894*** used, and then restart.
13895
13896_LT_EOF
13897 ;;
13898 *)
13899 # For security reasons, it is highly recommended that you always
13900 # use absolute paths for naming shared libraries, and exclude the
13901 # DT_RUNPATH tag from executables and libraries. But doing so
13902 # requires that you compile everything twice, which is a pain.
13903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13906 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13907 else
13908 ld_shlibs=no
13909 fi
13910 ;;
13911 esac
13912 ;;
13913
13914 sunos4*)
13915 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13916 wlarc=
13917 hardcode_direct=yes
13918 hardcode_shlibpath_var=no
13919 ;;
13920
13921 *)
13922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13924 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 +000013925 else
13926 ld_shlibs=no
13927 fi
13928 ;;
13929 esac
13930
13931 if test "$ld_shlibs" = no; then
13932 runpath_var=
13933 hardcode_libdir_flag_spec=
13934 export_dynamic_flag_spec=
13935 whole_archive_flag_spec=
13936 fi
13937 else
13938 # PORTME fill in a description of your system's linker (not GNU ld)
13939 case $host_os in
13940 aix3*)
13941 allow_undefined_flag=unsupported
13942 always_export_symbols=yes
13943 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'
13944 # Note: this linker hardcodes the directories in LIBPATH if there
13945 # are no directories specified by -L.
13946 hardcode_minus_L=yes
13947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13948 # Neither direct hardcoding nor static linking is supported with a
13949 # broken collect2.
13950 hardcode_direct=unsupported
13951 fi
13952 ;;
13953
13954 aix[4-9]*)
13955 if test "$host_cpu" = ia64; then
13956 # On IA64, the linker does run time linking by default, so we don't
13957 # have to do anything special.
13958 aix_use_runtimelinking=no
13959 exp_sym_flag='-Bexport'
13960 no_entry_flag=""
13961 else
13962 # If we're using GNU nm, then we don't want the "-C" option.
13963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013964 # Also, AIX nm treats weak defined symbols like other global
13965 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013966 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013967 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 +000013968 else
13969 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'
13970 fi
13971 aix_use_runtimelinking=no
13972
13973 # Test if we are trying to use run time linking or normal
13974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13975 # need to do runtime linking.
13976 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13977 for ld_flag in $LDFLAGS; do
13978 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13979 aix_use_runtimelinking=yes
13980 break
13981 fi
13982 done
13983 ;;
13984 esac
13985
13986 exp_sym_flag='-bexport'
13987 no_entry_flag='-bnoentry'
13988 fi
13989
13990 # When large executables or shared objects are built, AIX ld can
13991 # have problems creating the table of contents. If linking a library
13992 # or program results in "error TOC overflow" add -mminimal-toc to
13993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13995
13996 archive_cmds=''
13997 hardcode_direct=yes
13998 hardcode_direct_absolute=yes
13999 hardcode_libdir_separator=':'
14000 link_all_deplibs=yes
14001 file_list_spec='${wl}-f,'
14002
14003 if test "$GCC" = yes; then
14004 case $host_os in aix4.[012]|aix4.[012].*)
14005 # We only want to do this on AIX 4.2 and lower, the check
14006 # below for broken collect2 doesn't work under 4.3+
14007 collect2name=`${CC} -print-prog-name=collect2`
14008 if test -f "$collect2name" &&
14009 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14010 then
14011 # We have reworked collect2
14012 :
14013 else
14014 # We have old collect2
14015 hardcode_direct=unsupported
14016 # It fails to find uninstalled libraries when the uninstalled
14017 # path is not listed in the libpath. Setting hardcode_minus_L
14018 # to unsupported forces relinking
14019 hardcode_minus_L=yes
14020 hardcode_libdir_flag_spec='-L$libdir'
14021 hardcode_libdir_separator=
14022 fi
14023 ;;
14024 esac
14025 shared_flag='-shared'
14026 if test "$aix_use_runtimelinking" = yes; then
14027 shared_flag="$shared_flag "'${wl}-G'
14028 fi
14029 else
14030 # not using gcc
14031 if test "$host_cpu" = ia64; then
14032 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14033 # chokes on -Wl,-G. The following line is correct:
14034 shared_flag='-G'
14035 else
14036 if test "$aix_use_runtimelinking" = yes; then
14037 shared_flag='${wl}-G'
14038 else
14039 shared_flag='${wl}-bM:SRE'
14040 fi
14041 fi
14042 fi
14043
14044 export_dynamic_flag_spec='${wl}-bexpall'
14045 # It seems that -bexpall does not export symbols beginning with
14046 # underscore (_), so it is better to generate a list of symbols to export.
14047 always_export_symbols=yes
14048 if test "$aix_use_runtimelinking" = yes; then
14049 # Warning - without using the other runtime loading flags (-brtl),
14050 # -berok will link without error, but may produce a broken library.
14051 allow_undefined_flag='-berok'
14052 # Determine the default libpath from the value encoded in an
14053 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014054 if test "${lt_cv_aix_libpath+set}" = set; then
14055 aix_libpath=$lt_cv_aix_libpath
14056else
14057 if ${lt_cv_aix_libpath_+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014061/* end confdefs.h. */
14062
14063int
14064main ()
14065{
14066
14067 ;
14068 return 0;
14069}
14070_ACEOF
14071if ac_fn_c_try_link "$LINENO"; then :
14072
cristyda16f162011-02-19 23:52:17 +000014073 lt_aix_libpath_sed='
14074 /Import File Strings/,/^$/ {
14075 /^0/ {
14076 s/^0 *\([^ ]*\) *$/\1/
14077 p
14078 }
14079 }'
14080 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14081 # Check for a 64-bit object if we didn't find anything.
14082 if test -z "$lt_cv_aix_libpath_"; then
14083 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14084 fi
cristy73bd4a52010-10-05 11:24:23 +000014085fi
14086rm -f core conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014088 if test -z "$lt_cv_aix_libpath_"; then
14089 lt_cv_aix_libpath_="/usr/lib:/lib"
14090 fi
14091
14092fi
14093
14094 aix_libpath=$lt_cv_aix_libpath_
14095fi
cristy73bd4a52010-10-05 11:24:23 +000014096
14097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014098 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 +000014099 else
14100 if test "$host_cpu" = ia64; then
14101 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14102 allow_undefined_flag="-z nodefs"
14103 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"
14104 else
14105 # Determine the default libpath from the value encoded in an
14106 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014107 if test "${lt_cv_aix_libpath+set}" = set; then
14108 aix_libpath=$lt_cv_aix_libpath
14109else
14110 if ${lt_cv_aix_libpath_+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112else
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014114/* end confdefs.h. */
14115
14116int
14117main ()
14118{
14119
14120 ;
14121 return 0;
14122}
14123_ACEOF
14124if ac_fn_c_try_link "$LINENO"; then :
14125
cristyda16f162011-02-19 23:52:17 +000014126 lt_aix_libpath_sed='
14127 /Import File Strings/,/^$/ {
14128 /^0/ {
14129 s/^0 *\([^ ]*\) *$/\1/
14130 p
14131 }
14132 }'
14133 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14134 # Check for a 64-bit object if we didn't find anything.
14135 if test -z "$lt_cv_aix_libpath_"; then
14136 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14137 fi
cristy73bd4a52010-10-05 11:24:23 +000014138fi
14139rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014141 if test -z "$lt_cv_aix_libpath_"; then
14142 lt_cv_aix_libpath_="/usr/lib:/lib"
14143 fi
14144
14145fi
14146
14147 aix_libpath=$lt_cv_aix_libpath_
14148fi
cristy73bd4a52010-10-05 11:24:23 +000014149
14150 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14151 # Warning - without using the other run time loading flags,
14152 # -berok will link without error, but may produce a broken library.
14153 no_undefined_flag=' ${wl}-bernotok'
14154 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014155 if test "$with_gnu_ld" = yes; then
14156 # We only use this code for GNU lds that support --whole-archive.
14157 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14158 else
14159 # Exported symbols can be pulled into shared objects from archives
14160 whole_archive_flag_spec='$convenience'
14161 fi
cristy73bd4a52010-10-05 11:24:23 +000014162 archive_cmds_need_lc=yes
14163 # This is similar to how AIX traditionally builds its shared libraries.
14164 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'
14165 fi
14166 fi
14167 ;;
14168
14169 amigaos*)
14170 case $host_cpu in
14171 powerpc)
14172 # see comment about AmigaOS4 .so support
14173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14174 archive_expsym_cmds=''
14175 ;;
14176 m68k)
14177 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)'
14178 hardcode_libdir_flag_spec='-L$libdir'
14179 hardcode_minus_L=yes
14180 ;;
14181 esac
14182 ;;
14183
14184 bsdi[45]*)
14185 export_dynamic_flag_spec=-rdynamic
14186 ;;
14187
14188 cygwin* | mingw* | pw32* | cegcc*)
14189 # When not using gcc, we currently assume that we are using
14190 # Microsoft Visual C++.
14191 # hardcode_libdir_flag_spec is actually meaningless, as there is
14192 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014193 case $cc_basename in
14194 cl*)
14195 # Native MSVC
14196 hardcode_libdir_flag_spec=' '
14197 allow_undefined_flag=unsupported
14198 always_export_symbols=yes
14199 file_list_spec='@'
14200 # Tell ltmain to make .lib files, not .a files.
14201 libext=lib
14202 # Tell ltmain to make .dll files, not .so files.
14203 shrext_cmds=".dll"
14204 # FIXME: Setting linknames here is a bad hack.
14205 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14207 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14208 else
14209 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14210 fi~
14211 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14212 linknames='
14213 # The linker will not automatically build a static lib if we build a DLL.
14214 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14215 enable_shared_with_static_runtimes=yes
14216 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14217 # Don't use ranlib
14218 old_postinstall_cmds='chmod 644 $oldlib'
14219 postlink_cmds='lt_outputfile="@OUTPUT@"~
14220 lt_tool_outputfile="@TOOL_OUTPUT@"~
14221 case $lt_outputfile in
14222 *.exe|*.EXE) ;;
14223 *)
14224 lt_outputfile="$lt_outputfile.exe"
14225 lt_tool_outputfile="$lt_tool_outputfile.exe"
14226 ;;
14227 esac~
14228 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14229 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14230 $RM "$lt_outputfile.manifest";
14231 fi'
14232 ;;
14233 *)
14234 # Assume MSVC wrapper
14235 hardcode_libdir_flag_spec=' '
14236 allow_undefined_flag=unsupported
14237 # Tell ltmain to make .lib files, not .a files.
14238 libext=lib
14239 # Tell ltmain to make .dll files, not .so files.
14240 shrext_cmds=".dll"
14241 # FIXME: Setting linknames here is a bad hack.
14242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14243 # The linker will automatically build a .lib file if we build a DLL.
14244 old_archive_from_new_cmds='true'
14245 # FIXME: Should let the user specify the lib program.
14246 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14247 enable_shared_with_static_runtimes=yes
14248 ;;
14249 esac
cristy73bd4a52010-10-05 11:24:23 +000014250 ;;
14251
14252 darwin* | rhapsody*)
14253
14254
14255 archive_cmds_need_lc=no
14256 hardcode_direct=no
14257 hardcode_automatic=yes
14258 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014259 if test "$lt_cv_ld_force_load" = "yes"; then
14260 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\"`'
14261 else
14262 whole_archive_flag_spec=''
14263 fi
cristy73bd4a52010-10-05 11:24:23 +000014264 link_all_deplibs=yes
14265 allow_undefined_flag="$_lt_dar_allow_undefined"
14266 case $cc_basename in
14267 ifort*) _lt_dar_can_shared=yes ;;
14268 *) _lt_dar_can_shared=$GCC ;;
14269 esac
14270 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014271 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014272 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14273 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14274 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}"
14275 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}"
14276
14277 else
14278 ld_shlibs=no
14279 fi
14280
14281 ;;
14282
14283 dgux*)
14284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14285 hardcode_libdir_flag_spec='-L$libdir'
14286 hardcode_shlibpath_var=no
14287 ;;
14288
14289 freebsd1*)
14290 ld_shlibs=no
14291 ;;
14292
14293 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14294 # support. Future versions do this automatically, but an explicit c++rt0.o
14295 # does not break anything, and helps significantly (at the cost of a little
14296 # extra space).
14297 freebsd2.2*)
14298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14299 hardcode_libdir_flag_spec='-R$libdir'
14300 hardcode_direct=yes
14301 hardcode_shlibpath_var=no
14302 ;;
14303
14304 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14305 freebsd2*)
14306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14307 hardcode_direct=yes
14308 hardcode_minus_L=yes
14309 hardcode_shlibpath_var=no
14310 ;;
14311
14312 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14313 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014315 hardcode_libdir_flag_spec='-R$libdir'
14316 hardcode_direct=yes
14317 hardcode_shlibpath_var=no
14318 ;;
14319
14320 hpux9*)
14321 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014322 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 +000014323 else
14324 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'
14325 fi
14326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14327 hardcode_libdir_separator=:
14328 hardcode_direct=yes
14329
14330 # hardcode_minus_L: Not really in the search PATH,
14331 # but as the default location of the library.
14332 hardcode_minus_L=yes
14333 export_dynamic_flag_spec='${wl}-E'
14334 ;;
14335
14336 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014337 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014338 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 +000014339 else
14340 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14341 fi
14342 if test "$with_gnu_ld" = no; then
14343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14344 hardcode_libdir_flag_spec_ld='+b $libdir'
14345 hardcode_libdir_separator=:
14346 hardcode_direct=yes
14347 hardcode_direct_absolute=yes
14348 export_dynamic_flag_spec='${wl}-E'
14349 # hardcode_minus_L: Not really in the search PATH,
14350 # but as the default location of the library.
14351 hardcode_minus_L=yes
14352 fi
14353 ;;
14354
14355 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014356 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014357 case $host_cpu in
14358 hppa*64*)
14359 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14360 ;;
14361 ia64*)
cristyda16f162011-02-19 23:52:17 +000014362 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014363 ;;
14364 *)
cristyda16f162011-02-19 23:52:17 +000014365 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 +000014366 ;;
14367 esac
14368 else
14369 case $host_cpu in
14370 hppa*64*)
14371 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14372 ;;
14373 ia64*)
14374 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14375 ;;
14376 *)
cristy0c60a692010-11-04 01:09:47 +000014377
14378 # Older versions of the 11.00 compiler do not understand -b yet
14379 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14381$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014382if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014383 $as_echo_n "(cached) " >&6
14384else
14385 lt_cv_prog_compiler__b=no
14386 save_LDFLAGS="$LDFLAGS"
14387 LDFLAGS="$LDFLAGS -b"
14388 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14389 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14390 # The linker can only warn and ignore the option if not recognized
14391 # So say no if there are warnings
14392 if test -s conftest.err; then
14393 # Append any errors to the config.log.
14394 cat conftest.err 1>&5
14395 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14397 if diff conftest.exp conftest.er2 >/dev/null; then
14398 lt_cv_prog_compiler__b=yes
14399 fi
14400 else
14401 lt_cv_prog_compiler__b=yes
14402 fi
14403 fi
14404 $RM -r conftest*
14405 LDFLAGS="$save_LDFLAGS"
14406
14407fi
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14409$as_echo "$lt_cv_prog_compiler__b" >&6; }
14410
14411if test x"$lt_cv_prog_compiler__b" = xyes; then
14412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14413else
14414 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14415fi
14416
cristy73bd4a52010-10-05 11:24:23 +000014417 ;;
14418 esac
14419 fi
14420 if test "$with_gnu_ld" = no; then
14421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14422 hardcode_libdir_separator=:
14423
14424 case $host_cpu in
14425 hppa*64*|ia64*)
14426 hardcode_direct=no
14427 hardcode_shlibpath_var=no
14428 ;;
14429 *)
14430 hardcode_direct=yes
14431 hardcode_direct_absolute=yes
14432 export_dynamic_flag_spec='${wl}-E'
14433
14434 # hardcode_minus_L: Not really in the search PATH,
14435 # but as the default location of the library.
14436 hardcode_minus_L=yes
14437 ;;
14438 esac
14439 fi
14440 ;;
14441
14442 irix5* | irix6* | nonstopux*)
14443 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014444 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 +000014445 # Try to use the -exported_symbol ld option, if it does not
14446 # work, assume that -exports_file does not work either and
14447 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014448 # This should be the same for all languages, so no per-tag cache variable.
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14450$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14451if ${lt_cv_irix_exported_symbol+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453else
14454 save_LDFLAGS="$LDFLAGS"
14455 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014457/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014458int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014459_ACEOF
14460if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014461 lt_cv_irix_exported_symbol=yes
14462else
14463 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014464fi
14465rm -f core conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014467 LDFLAGS="$save_LDFLAGS"
14468fi
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14470$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14471 if test "$lt_cv_irix_exported_symbol" = yes; then
14472 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'
14473 fi
cristy73bd4a52010-10-05 11:24:23 +000014474 else
cristy0c60a692010-11-04 01:09:47 +000014475 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'
14476 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 +000014477 fi
14478 archive_cmds_need_lc='no'
14479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14480 hardcode_libdir_separator=:
14481 inherit_rpath=yes
14482 link_all_deplibs=yes
14483 ;;
14484
14485 netbsd*)
14486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14488 else
14489 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14490 fi
14491 hardcode_libdir_flag_spec='-R$libdir'
14492 hardcode_direct=yes
14493 hardcode_shlibpath_var=no
14494 ;;
14495
14496 newsos6)
14497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498 hardcode_direct=yes
14499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14500 hardcode_libdir_separator=:
14501 hardcode_shlibpath_var=no
14502 ;;
14503
14504 *nto* | *qnx*)
14505 ;;
14506
14507 openbsd*)
14508 if test -f /usr/libexec/ld.so; then
14509 hardcode_direct=yes
14510 hardcode_shlibpath_var=no
14511 hardcode_direct_absolute=yes
14512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14516 export_dynamic_flag_spec='${wl}-E'
14517 else
14518 case $host_os in
14519 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14521 hardcode_libdir_flag_spec='-R$libdir'
14522 ;;
14523 *)
14524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14526 ;;
14527 esac
14528 fi
14529 else
14530 ld_shlibs=no
14531 fi
14532 ;;
14533
14534 os2*)
14535 hardcode_libdir_flag_spec='-L$libdir'
14536 hardcode_minus_L=yes
14537 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014538 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 +000014539 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14540 ;;
14541
14542 osf3*)
14543 if test "$GCC" = yes; then
14544 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014545 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 +000014546 else
14547 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014548 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 +000014549 fi
14550 archive_cmds_need_lc='no'
14551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14552 hardcode_libdir_separator=:
14553 ;;
14554
14555 osf4* | osf5*) # as osf3* with the addition of -msym flag
14556 if test "$GCC" = yes; then
14557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014558 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 +000014559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14560 else
14561 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014562 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 +000014563 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 +000014564 $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 +000014565
14566 # Both c and cxx compiler support -rpath directly
14567 hardcode_libdir_flag_spec='-rpath $libdir'
14568 fi
14569 archive_cmds_need_lc='no'
14570 hardcode_libdir_separator=:
14571 ;;
14572
14573 solaris*)
14574 no_undefined_flag=' -z defs'
14575 if test "$GCC" = yes; then
14576 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014577 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 +000014578 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 +000014579 $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 +000014580 else
14581 case `$CC -V 2>&1` in
14582 *"Compilers 5.0"*)
14583 wlarc=''
14584 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14586 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14587 ;;
14588 *)
14589 wlarc='${wl}'
14590 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14592 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14593 ;;
14594 esac
14595 fi
14596 hardcode_libdir_flag_spec='-R$libdir'
14597 hardcode_shlibpath_var=no
14598 case $host_os in
14599 solaris2.[0-5] | solaris2.[0-5].*) ;;
14600 *)
14601 # The compiler driver will combine and reorder linker options,
14602 # but understands `-z linker_flag'. GCC discards it without `$wl',
14603 # but is careful enough not to reorder.
14604 # Supported since Solaris 2.6 (maybe 2.5.1?)
14605 if test "$GCC" = yes; then
14606 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14607 else
14608 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14609 fi
14610 ;;
14611 esac
14612 link_all_deplibs=yes
14613 ;;
14614
14615 sunos4*)
14616 if test "x$host_vendor" = xsequent; then
14617 # Use $CC to link under sequent, because it throws in some extra .o
14618 # files that make .init and .fini sections work.
14619 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14620 else
14621 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14622 fi
14623 hardcode_libdir_flag_spec='-L$libdir'
14624 hardcode_direct=yes
14625 hardcode_minus_L=yes
14626 hardcode_shlibpath_var=no
14627 ;;
14628
14629 sysv4)
14630 case $host_vendor in
14631 sni)
14632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14633 hardcode_direct=yes # is this really true???
14634 ;;
14635 siemens)
14636 ## LD is ld it makes a PLAMLIB
14637 ## CC just makes a GrossModule.
14638 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14639 reload_cmds='$CC -r -o $output$reload_objs'
14640 hardcode_direct=no
14641 ;;
14642 motorola)
14643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14645 ;;
14646 esac
14647 runpath_var='LD_RUN_PATH'
14648 hardcode_shlibpath_var=no
14649 ;;
14650
14651 sysv4.3*)
14652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14653 hardcode_shlibpath_var=no
14654 export_dynamic_flag_spec='-Bexport'
14655 ;;
14656
14657 sysv4*MP*)
14658 if test -d /usr/nec; then
14659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660 hardcode_shlibpath_var=no
14661 runpath_var=LD_RUN_PATH
14662 hardcode_runpath_var=yes
14663 ld_shlibs=yes
14664 fi
14665 ;;
14666
14667 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14668 no_undefined_flag='${wl}-z,text'
14669 archive_cmds_need_lc=no
14670 hardcode_shlibpath_var=no
14671 runpath_var='LD_RUN_PATH'
14672
14673 if test "$GCC" = yes; then
14674 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14675 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14676 else
14677 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14678 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14679 fi
14680 ;;
14681
14682 sysv5* | sco3.2v5* | sco5v6*)
14683 # Note: We can NOT use -z defs as we might desire, because we do not
14684 # link with -lc, and that would cause any symbols used from libc to
14685 # always be unresolved, which means just about no library would
14686 # ever link correctly. If we're not using GNU ld we use -z text
14687 # though, which does catch some bad symbols but isn't as heavy-handed
14688 # as -z defs.
14689 no_undefined_flag='${wl}-z,text'
14690 allow_undefined_flag='${wl}-z,nodefs'
14691 archive_cmds_need_lc=no
14692 hardcode_shlibpath_var=no
14693 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14694 hardcode_libdir_separator=':'
14695 link_all_deplibs=yes
14696 export_dynamic_flag_spec='${wl}-Bexport'
14697 runpath_var='LD_RUN_PATH'
14698
14699 if test "$GCC" = yes; then
14700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14702 else
14703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14705 fi
14706 ;;
14707
14708 uts4*)
14709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14710 hardcode_libdir_flag_spec='-L$libdir'
14711 hardcode_shlibpath_var=no
14712 ;;
14713
14714 *)
14715 ld_shlibs=no
14716 ;;
14717 esac
14718
14719 if test x$host_vendor = xsni; then
14720 case $host in
14721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14722 export_dynamic_flag_spec='${wl}-Blargedynsym'
14723 ;;
14724 esac
14725 fi
14726 fi
14727
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14729$as_echo "$ld_shlibs" >&6; }
14730test "$ld_shlibs" = no && can_build_shared=no
14731
14732with_gnu_ld=$with_gnu_ld
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748#
14749# Do we need to explicitly link libc?
14750#
14751case "x$archive_cmds_need_lc" in
14752x|xyes)
14753 # Assume -lc should be added
14754 archive_cmds_need_lc=yes
14755
14756 if test "$enable_shared" = yes && test "$GCC" = yes; then
14757 case $archive_cmds in
14758 *'~'*)
14759 # FIXME: we may have to deal with multi-command sequences.
14760 ;;
14761 '$CC '*)
14762 # Test whether the compiler implicitly links with -lc since on some
14763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14764 # to ld, don't add -lc before -lgcc.
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14766$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014767if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014768 $as_echo_n "(cached) " >&6
14769else
14770 $RM conftest*
14771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014772
cristy0c60a692010-11-04 01:09:47 +000014773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014774 (eval $ac_compile) 2>&5
14775 ac_status=$?
14776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14777 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014778 soname=conftest
14779 lib=conftest
14780 libobjs=conftest.$ac_objext
14781 deplibs=
14782 wl=$lt_prog_compiler_wl
14783 pic_flag=$lt_prog_compiler_pic
14784 compiler_flags=-v
14785 linker_flags=-v
14786 verstring=
14787 output_objdir=.
14788 libname=conftest
14789 lt_save_allow_undefined_flag=$allow_undefined_flag
14790 allow_undefined_flag=
14791 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 +000014792 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14793 ac_status=$?
14794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14795 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014796 then
14797 lt_cv_archive_cmds_need_lc=no
14798 else
14799 lt_cv_archive_cmds_need_lc=yes
14800 fi
14801 allow_undefined_flag=$lt_save_allow_undefined_flag
14802 else
14803 cat conftest.err 1>&5
14804 fi
14805 $RM conftest*
14806
14807fi
14808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14809$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14810 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014811 ;;
14812 esac
14813 fi
14814 ;;
14815esac
14816
14817
14818
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14974$as_echo_n "checking dynamic linker characteristics... " >&6; }
14975
14976if test "$GCC" = yes; then
14977 case $host_os in
14978 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14979 *) lt_awk_arg="/^libraries:/" ;;
14980 esac
cristy0c60a692010-11-04 01:09:47 +000014981 case $host_os in
14982 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14983 *) lt_sed_strip_eq="s,=/,/,g" ;;
14984 esac
14985 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14986 case $lt_search_path_spec in
14987 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014988 # if the path contains ";" then we assume it to be the separator
14989 # otherwise default to the standard path separator (i.e. ":") - it is
14990 # assumed that no part of a normal pathname contains ";" but that should
14991 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000014992 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14993 ;;
14994 *)
14995 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14996 ;;
14997 esac
cristy73bd4a52010-10-05 11:24:23 +000014998 # Ok, now we have the path, separated by spaces, we can step through it
14999 # and add multilib dir if necessary.
15000 lt_tmp_lt_search_path_spec=
15001 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15002 for lt_sys_path in $lt_search_path_spec; do
15003 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15004 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15005 else
15006 test -d "$lt_sys_path" && \
15007 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15008 fi
15009 done
cristy0c60a692010-11-04 01:09:47 +000015010 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015011BEGIN {RS=" "; FS="/|\n";} {
15012 lt_foo="";
15013 lt_count=0;
15014 for (lt_i = NF; lt_i > 0; lt_i--) {
15015 if ($lt_i != "" && $lt_i != ".") {
15016 if ($lt_i == "..") {
15017 lt_count++;
15018 } else {
15019 if (lt_count == 0) {
15020 lt_foo="/" $lt_i lt_foo;
15021 } else {
15022 lt_count--;
15023 }
15024 }
15025 }
15026 }
15027 if (lt_foo != "") { lt_freq[lt_foo]++; }
15028 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15029}'`
cristy0c60a692010-11-04 01:09:47 +000015030 # AWK program above erroneously prepends '/' to C:/dos/paths
15031 # for these hosts.
15032 case $host_os in
15033 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15034 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15035 esac
15036 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015037else
15038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15039fi
15040library_names_spec=
15041libname_spec='lib$name'
15042soname_spec=
15043shrext_cmds=".so"
15044postinstall_cmds=
15045postuninstall_cmds=
15046finish_cmds=
15047finish_eval=
15048shlibpath_var=
15049shlibpath_overrides_runpath=unknown
15050version_type=none
15051dynamic_linker="$host_os ld.so"
15052sys_lib_dlsearch_path_spec="/lib /usr/lib"
15053need_lib_prefix=unknown
15054hardcode_into_libs=no
15055
15056# when you set need_version to no, make sure it does not cause -set_version
15057# flags to be left without arguments
15058need_version=unknown
15059
15060case $host_os in
15061aix3*)
15062 version_type=linux
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15064 shlibpath_var=LIBPATH
15065
15066 # AIX 3 has no versioning support, so we append a major version to the name.
15067 soname_spec='${libname}${release}${shared_ext}$major'
15068 ;;
15069
15070aix[4-9]*)
15071 version_type=linux
15072 need_lib_prefix=no
15073 need_version=no
15074 hardcode_into_libs=yes
15075 if test "$host_cpu" = ia64; then
15076 # AIX 5 supports IA64
15077 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 else
15080 # With GCC up to 2.95.x, collect2 would create an import file
15081 # for dependence libraries. The import file would start with
15082 # the line `#! .'. This would cause the generated library to
15083 # depend on `.', always an invalid library. This was fixed in
15084 # development snapshots of GCC prior to 3.0.
15085 case $host_os in
15086 aix4 | aix4.[01] | aix4.[01].*)
15087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15088 echo ' yes '
15089 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15090 :
15091 else
15092 can_build_shared=no
15093 fi
15094 ;;
15095 esac
15096 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15097 # soname into executable. Probably we can add versioning support to
15098 # collect2, so additional links can be useful in future.
15099 if test "$aix_use_runtimelinking" = yes; then
15100 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15101 # instead of lib<name>.a to let people know that these are not
15102 # typical AIX shared libraries.
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 else
15105 # We preserve .a as extension for shared libraries through AIX4.2
15106 # and later when we are not doing run time linking.
15107 library_names_spec='${libname}${release}.a $libname.a'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 fi
15110 shlibpath_var=LIBPATH
15111 fi
15112 ;;
15113
15114amigaos*)
15115 case $host_cpu in
15116 powerpc)
15117 # Since July 2007 AmigaOS4 officially supports .so libraries.
15118 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 ;;
15121 m68k)
15122 library_names_spec='$libname.ixlibrary $libname.a'
15123 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015124 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 +000015125 ;;
15126 esac
15127 ;;
15128
15129beos*)
15130 library_names_spec='${libname}${shared_ext}'
15131 dynamic_linker="$host_os ld.so"
15132 shlibpath_var=LIBRARY_PATH
15133 ;;
15134
15135bsdi[45]*)
15136 version_type=linux
15137 need_version=no
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15144 # the default ld.so.conf also contains /usr/contrib/lib and
15145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15146 # libtool to hard-code these into programs
15147 ;;
15148
15149cygwin* | mingw* | pw32* | cegcc*)
15150 version_type=windows
15151 shrext_cmds=".dll"
15152 need_version=no
15153 need_lib_prefix=no
15154
cristyda16f162011-02-19 23:52:17 +000015155 case $GCC,$cc_basename in
15156 yes,*)
15157 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015158 library_names_spec='$libname.dll.a'
15159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15160 postinstall_cmds='base_file=`basename \${file}`~
15161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15162 dldir=$destdir/`dirname \$dlpath`~
15163 test -d \$dldir || mkdir -p \$dldir~
15164 $install_prog $dir/$dlname \$dldir/$dlname~
15165 chmod a+x \$dldir/$dlname~
15166 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15167 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15168 fi'
15169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15170 dlpath=$dir/\$dldll~
15171 $RM \$dlpath'
15172 shlibpath_overrides_runpath=yes
15173
15174 case $host_os in
15175 cygwin*)
15176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015178
15179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015180 ;;
15181 mingw* | cegcc*)
15182 # MinGW DLLs use traditional 'lib' prefix
15183 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015184 ;;
15185 pw32*)
15186 # pw32 DLLs use 'pw' prefix rather than 'lib'
15187 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15188 ;;
15189 esac
cristyda16f162011-02-19 23:52:17 +000015190 dynamic_linker='Win32 ld.exe'
15191 ;;
15192
15193 *,cl*)
15194 # Native MSVC
15195 libname_spec='$name'
15196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15197 library_names_spec='${libname}.dll.lib'
15198
15199 case $build_os in
15200 mingw*)
15201 sys_lib_search_path_spec=
15202 lt_save_ifs=$IFS
15203 IFS=';'
15204 for lt_path in $LIB
15205 do
15206 IFS=$lt_save_ifs
15207 # Let DOS variable expansion print the short 8.3 style file name.
15208 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15209 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15210 done
15211 IFS=$lt_save_ifs
15212 # Convert to MSYS style.
15213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15214 ;;
15215 cygwin*)
15216 # Convert to unix form, then to dos form, then back to unix form
15217 # but this time dos style (no spaces!) so that the unix form looks
15218 # like /cygdrive/c/PROGRA~1:/cygdr...
15219 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15220 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15221 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15222 ;;
15223 *)
15224 sys_lib_search_path_spec="$LIB"
15225 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15226 # It is most probably a Windows format PATH.
15227 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15228 else
15229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15230 fi
15231 # FIXME: find the short name or the path components, as spaces are
15232 # common. (e.g. "Program Files" -> "PROGRA~1")
15233 ;;
15234 esac
15235
15236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15237 postinstall_cmds='base_file=`basename \${file}`~
15238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15239 dldir=$destdir/`dirname \$dlpath`~
15240 test -d \$dldir || mkdir -p \$dldir~
15241 $install_prog $dir/$dlname \$dldir/$dlname'
15242 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15243 dlpath=$dir/\$dldll~
15244 $RM \$dlpath'
15245 shlibpath_overrides_runpath=yes
15246 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015247 ;;
15248
15249 *)
cristyda16f162011-02-19 23:52:17 +000015250 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015251 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015252 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015253 ;;
15254 esac
cristy73bd4a52010-10-05 11:24:23 +000015255 # FIXME: first we should search . and the directory the executable is in
15256 shlibpath_var=PATH
15257 ;;
15258
15259darwin* | rhapsody*)
15260 dynamic_linker="$host_os dyld"
15261 version_type=darwin
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15265 soname_spec='${libname}${release}${major}$shared_ext'
15266 shlibpath_overrides_runpath=yes
15267 shlibpath_var=DYLD_LIBRARY_PATH
15268 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15269
15270 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15272 ;;
15273
15274dgux*)
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 ;;
15282
15283freebsd1*)
15284 dynamic_linker=no
15285 ;;
15286
15287freebsd* | dragonfly*)
15288 # DragonFly does not have aout. When/if they implement a new
15289 # versioning mechanism, adjust this.
15290 if test -x /usr/bin/objformat; then
15291 objformat=`/usr/bin/objformat`
15292 else
15293 case $host_os in
15294 freebsd[123]*) objformat=aout ;;
15295 *) objformat=elf ;;
15296 esac
15297 fi
15298 version_type=freebsd-$objformat
15299 case $version_type in
15300 freebsd-elf*)
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15302 need_version=no
15303 need_lib_prefix=no
15304 ;;
15305 freebsd-*)
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15307 need_version=yes
15308 ;;
15309 esac
15310 shlibpath_var=LD_LIBRARY_PATH
15311 case $host_os in
15312 freebsd2*)
15313 shlibpath_overrides_runpath=yes
15314 ;;
15315 freebsd3.[01]* | freebsdelf3.[01]*)
15316 shlibpath_overrides_runpath=yes
15317 hardcode_into_libs=yes
15318 ;;
15319 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15320 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15321 shlibpath_overrides_runpath=no
15322 hardcode_into_libs=yes
15323 ;;
15324 *) # from 4.6 on, and DragonFly
15325 shlibpath_overrides_runpath=yes
15326 hardcode_into_libs=yes
15327 ;;
15328 esac
15329 ;;
15330
15331gnu*)
15332 version_type=linux
15333 need_lib_prefix=no
15334 need_version=no
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 hardcode_into_libs=yes
15339 ;;
15340
cristy0c60a692010-11-04 01:09:47 +000015341haiku*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 dynamic_linker="$host_os runtime_loader"
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 shlibpath_var=LIBRARY_PATH
15349 shlibpath_overrides_runpath=yes
15350 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15351 hardcode_into_libs=yes
15352 ;;
15353
cristy73bd4a52010-10-05 11:24:23 +000015354hpux9* | hpux10* | hpux11*)
15355 # Give a soname corresponding to the major version so that dld.sl refuses to
15356 # link against other versions.
15357 version_type=sunos
15358 need_lib_prefix=no
15359 need_version=no
15360 case $host_cpu in
15361 ia64*)
15362 shrext_cmds='.so'
15363 hardcode_into_libs=yes
15364 dynamic_linker="$host_os dld.so"
15365 shlibpath_var=LD_LIBRARY_PATH
15366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 if test "X$HPUX_IA64_MODE" = X32; then
15370 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15371 else
15372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15373 fi
15374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15375 ;;
15376 hppa*64*)
15377 shrext_cmds='.sl'
15378 hardcode_into_libs=yes
15379 dynamic_linker="$host_os dld.sl"
15380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15386 ;;
15387 *)
15388 shrext_cmds='.sl'
15389 dynamic_linker="$host_os dld.sl"
15390 shlibpath_var=SHLIB_PATH
15391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 ;;
15395 esac
cristy0c60a692010-11-04 01:09:47 +000015396 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015397 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015398 # or fails outright, so override atomically:
15399 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015400 ;;
15401
15402interix[3-9]*)
15403 version_type=linux
15404 need_lib_prefix=no
15405 need_version=no
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15409 shlibpath_var=LD_LIBRARY_PATH
15410 shlibpath_overrides_runpath=no
15411 hardcode_into_libs=yes
15412 ;;
15413
15414irix5* | irix6* | nonstopux*)
15415 case $host_os in
15416 nonstopux*) version_type=nonstopux ;;
15417 *)
15418 if test "$lt_cv_prog_gnu_ld" = yes; then
15419 version_type=linux
15420 else
15421 version_type=irix
15422 fi ;;
15423 esac
15424 need_lib_prefix=no
15425 need_version=no
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15428 case $host_os in
15429 irix5* | nonstopux*)
15430 libsuff= shlibsuff=
15431 ;;
15432 *)
15433 case $LD in # libtool.m4 will add one of these switches to LD
15434 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15435 libsuff= shlibsuff= libmagic=32-bit;;
15436 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15437 libsuff=32 shlibsuff=N32 libmagic=N32;;
15438 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15439 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15440 *) libsuff= shlibsuff= libmagic=never-match;;
15441 esac
15442 ;;
15443 esac
15444 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15445 shlibpath_overrides_runpath=no
15446 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15447 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15448 hardcode_into_libs=yes
15449 ;;
15450
15451# No shared lib support for Linux oldld, aout, or coff.
15452linux*oldld* | linux*aout* | linux*coff*)
15453 dynamic_linker=no
15454 ;;
15455
15456# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015457linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015458 version_type=linux
15459 need_lib_prefix=no
15460 need_version=no
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015466
cristy73bd4a52010-10-05 11:24:23 +000015467 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015468 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015469 $as_echo_n "(cached) " >&6
15470else
15471 lt_cv_shlibpath_overrides_runpath=no
15472 save_LDFLAGS=$LDFLAGS
15473 save_libdir=$libdir
15474 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15475 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015477/* end confdefs.h. */
15478
15479int
15480main ()
15481{
15482
15483 ;
15484 return 0;
15485}
15486_ACEOF
15487if ac_fn_c_try_link "$LINENO"; then :
15488 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015489 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015490fi
15491fi
15492rm -f core conftest.err conftest.$ac_objext \
15493 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015494 LDFLAGS=$save_LDFLAGS
15495 libdir=$save_libdir
15496
15497fi
15498
15499 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015500
15501 # This implies no fast_install, which is unacceptable.
15502 # Some rework will be needed to allow for fast_install
15503 # before this can be enabled.
15504 hardcode_into_libs=yes
15505
15506 # Add ABI-specific directories to the system library path.
15507 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15508
15509 # Append ld.so.conf contents to the search path
15510 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015511 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 +000015512 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015513
cristy73bd4a52010-10-05 11:24:23 +000015514 fi
15515
15516 # We used to test for /lib/ld.so.1 and disable shared libraries on
15517 # powerpc, because MkLinux only supported shared libraries with the
15518 # GNU dynamic linker. Since this was broken with cross compilers,
15519 # most powerpc-linux boxes support dynamic linking these days and
15520 # people can always --disable-shared, the test was removed, and we
15521 # assume the GNU/Linux dynamic linker is in use.
15522 dynamic_linker='GNU/Linux ld.so'
15523 ;;
15524
15525netbsd*)
15526 version_type=sunos
15527 need_lib_prefix=no
15528 need_version=no
15529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15532 dynamic_linker='NetBSD (a.out) ld.so'
15533 else
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 dynamic_linker='NetBSD ld.elf_so'
15537 fi
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=yes
15540 hardcode_into_libs=yes
15541 ;;
15542
15543newsos6)
15544 version_type=linux
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=yes
15548 ;;
15549
15550*nto* | *qnx*)
15551 version_type=qnx
15552 need_lib_prefix=no
15553 need_version=no
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15555 soname_spec='${libname}${release}${shared_ext}$major'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=no
15558 hardcode_into_libs=yes
15559 dynamic_linker='ldqnx.so'
15560 ;;
15561
15562openbsd*)
15563 version_type=sunos
15564 sys_lib_dlsearch_path_spec="/usr/lib"
15565 need_lib_prefix=no
15566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15567 case $host_os in
15568 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15569 *) need_version=no ;;
15570 esac
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15573 shlibpath_var=LD_LIBRARY_PATH
15574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15575 case $host_os in
15576 openbsd2.[89] | openbsd2.[89].*)
15577 shlibpath_overrides_runpath=no
15578 ;;
15579 *)
15580 shlibpath_overrides_runpath=yes
15581 ;;
15582 esac
15583 else
15584 shlibpath_overrides_runpath=yes
15585 fi
15586 ;;
15587
15588os2*)
15589 libname_spec='$name'
15590 shrext_cmds=".dll"
15591 need_lib_prefix=no
15592 library_names_spec='$libname${shared_ext} $libname.a'
15593 dynamic_linker='OS/2 ld.exe'
15594 shlibpath_var=LIBPATH
15595 ;;
15596
15597osf3* | osf4* | osf5*)
15598 version_type=osf
15599 need_lib_prefix=no
15600 need_version=no
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15606 ;;
15607
15608rdos*)
15609 dynamic_linker=no
15610 ;;
15611
15612solaris*)
15613 version_type=linux
15614 need_lib_prefix=no
15615 need_version=no
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=yes
15620 hardcode_into_libs=yes
15621 # ldd complains unless libraries are executable
15622 postinstall_cmds='chmod +x $lib'
15623 ;;
15624
15625sunos4*)
15626 version_type=sunos
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15631 if test "$with_gnu_ld" = yes; then
15632 need_lib_prefix=no
15633 fi
15634 need_version=yes
15635 ;;
15636
15637sysv4 | sysv4.3*)
15638 version_type=linux
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 case $host_vendor in
15643 sni)
15644 shlibpath_overrides_runpath=no
15645 need_lib_prefix=no
15646 runpath_var=LD_RUN_PATH
15647 ;;
15648 siemens)
15649 need_lib_prefix=no
15650 ;;
15651 motorola)
15652 need_lib_prefix=no
15653 need_version=no
15654 shlibpath_overrides_runpath=no
15655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15656 ;;
15657 esac
15658 ;;
15659
15660sysv4*MP*)
15661 if test -d /usr/nec ;then
15662 version_type=linux
15663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15664 soname_spec='$libname${shared_ext}.$major'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 fi
15667 ;;
15668
15669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15670 version_type=freebsd-elf
15671 need_lib_prefix=no
15672 need_version=no
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 shlibpath_overrides_runpath=yes
15677 hardcode_into_libs=yes
15678 if test "$with_gnu_ld" = yes; then
15679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15680 else
15681 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15682 case $host_os in
15683 sco3.2v5*)
15684 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15685 ;;
15686 esac
15687 fi
15688 sys_lib_dlsearch_path_spec='/usr/lib'
15689 ;;
15690
15691tpf*)
15692 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15693 version_type=linux
15694 need_lib_prefix=no
15695 need_version=no
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=no
15699 hardcode_into_libs=yes
15700 ;;
15701
15702uts4*)
15703 version_type=linux
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 ;;
15708
15709*)
15710 dynamic_linker=no
15711 ;;
15712esac
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15714$as_echo "$dynamic_linker" >&6; }
15715test "$dynamic_linker" = no && can_build_shared=no
15716
15717variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15718if test "$GCC" = yes; then
15719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15720fi
15721
15722if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15723 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15724fi
15725if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15726 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15727fi
15728
15729
15730
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
cristy0c60a692010-11-04 01:09:47 +000015815
15816
15817
15818
15819
cristy73bd4a52010-10-05 11:24:23 +000015820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15821$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15822hardcode_action=
15823if test -n "$hardcode_libdir_flag_spec" ||
15824 test -n "$runpath_var" ||
15825 test "X$hardcode_automatic" = "Xyes" ; then
15826
15827 # We can hardcode non-existent directories.
15828 if test "$hardcode_direct" != no &&
15829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15830 # have to relink, otherwise we might link with an installed library
15831 # when we should be linking with a yet-to-be-installed one
15832 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15833 test "$hardcode_minus_L" != no; then
15834 # Linking always hardcodes the temporary library directory.
15835 hardcode_action=relink
15836 else
15837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15838 hardcode_action=immediate
15839 fi
15840else
15841 # We cannot hardcode anything, or else we can only hardcode existing
15842 # directories.
15843 hardcode_action=unsupported
15844fi
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15846$as_echo "$hardcode_action" >&6; }
15847
15848if test "$hardcode_action" = relink ||
15849 test "$inherit_rpath" = yes; then
15850 # Fast installation is not supported
15851 enable_fast_install=no
15852elif test "$shlibpath_overrides_runpath" = yes ||
15853 test "$enable_shared" = no; then
15854 # Fast installation is not necessary
15855 enable_fast_install=needless
15856fi
15857
15858
15859
15860
15861
15862
15863 if test "x$enable_dlopen" != xyes; then
15864 enable_dlopen=unknown
15865 enable_dlopen_self=unknown
15866 enable_dlopen_self_static=unknown
15867else
15868 lt_cv_dlopen=no
15869 lt_cv_dlopen_libs=
15870
15871 case $host_os in
15872 beos*)
15873 lt_cv_dlopen="load_add_on"
15874 lt_cv_dlopen_libs=
15875 lt_cv_dlopen_self=yes
15876 ;;
15877
15878 mingw* | pw32* | cegcc*)
15879 lt_cv_dlopen="LoadLibrary"
15880 lt_cv_dlopen_libs=
15881 ;;
15882
15883 cygwin*)
15884 lt_cv_dlopen="dlopen"
15885 lt_cv_dlopen_libs=
15886 ;;
15887
15888 darwin*)
15889 # if libdl is installed we need to link against it
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15891$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015892if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015893 $as_echo_n "(cached) " >&6
15894else
15895 ac_check_lib_save_LIBS=$LIBS
15896LIBS="-ldl $LIBS"
15897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898/* end confdefs.h. */
15899
15900/* Override any GCC internal prototype to avoid an error.
15901 Use char because int might match the return type of a GCC
15902 builtin and then its argument prototype would still apply. */
15903#ifdef __cplusplus
15904extern "C"
15905#endif
15906char dlopen ();
15907int
15908main ()
15909{
15910return dlopen ();
15911 ;
15912 return 0;
15913}
15914_ACEOF
15915if ac_fn_c_try_link "$LINENO"; then :
15916 ac_cv_lib_dl_dlopen=yes
15917else
15918 ac_cv_lib_dl_dlopen=no
15919fi
15920rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15922LIBS=$ac_check_lib_save_LIBS
15923fi
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15925$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015926if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15928else
15929
15930 lt_cv_dlopen="dyld"
15931 lt_cv_dlopen_libs=
15932 lt_cv_dlopen_self=yes
15933
15934fi
15935
15936 ;;
15937
15938 *)
15939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015940if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015941 lt_cv_dlopen="shl_load"
15942else
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15944$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015945if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015946 $as_echo_n "(cached) " >&6
15947else
15948 ac_check_lib_save_LIBS=$LIBS
15949LIBS="-ldld $LIBS"
15950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h. */
15952
15953/* Override any GCC internal prototype to avoid an error.
15954 Use char because int might match the return type of a GCC
15955 builtin and then its argument prototype would still apply. */
15956#ifdef __cplusplus
15957extern "C"
15958#endif
15959char shl_load ();
15960int
15961main ()
15962{
15963return shl_load ();
15964 ;
15965 return 0;
15966}
15967_ACEOF
15968if ac_fn_c_try_link "$LINENO"; then :
15969 ac_cv_lib_dld_shl_load=yes
15970else
15971 ac_cv_lib_dld_shl_load=no
15972fi
15973rm -f core conftest.err conftest.$ac_objext \
15974 conftest$ac_exeext conftest.$ac_ext
15975LIBS=$ac_check_lib_save_LIBS
15976fi
15977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15978$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015979if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15981else
15982 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015983if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015984 lt_cv_dlopen="dlopen"
15985else
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15987$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015988if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015989 $as_echo_n "(cached) " >&6
15990else
15991 ac_check_lib_save_LIBS=$LIBS
15992LIBS="-ldl $LIBS"
15993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994/* end confdefs.h. */
15995
15996/* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
15999#ifdef __cplusplus
16000extern "C"
16001#endif
16002char dlopen ();
16003int
16004main ()
16005{
16006return dlopen ();
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011if ac_fn_c_try_link "$LINENO"; then :
16012 ac_cv_lib_dl_dlopen=yes
16013else
16014 ac_cv_lib_dl_dlopen=no
16015fi
16016rm -f core conftest.err conftest.$ac_objext \
16017 conftest$ac_exeext conftest.$ac_ext
16018LIBS=$ac_check_lib_save_LIBS
16019fi
16020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16021$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016022if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16024else
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16026$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016027if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016028 $as_echo_n "(cached) " >&6
16029else
16030 ac_check_lib_save_LIBS=$LIBS
16031LIBS="-lsvld $LIBS"
16032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033/* end confdefs.h. */
16034
16035/* Override any GCC internal prototype to avoid an error.
16036 Use char because int might match the return type of a GCC
16037 builtin and then its argument prototype would still apply. */
16038#ifdef __cplusplus
16039extern "C"
16040#endif
16041char dlopen ();
16042int
16043main ()
16044{
16045return dlopen ();
16046 ;
16047 return 0;
16048}
16049_ACEOF
16050if ac_fn_c_try_link "$LINENO"; then :
16051 ac_cv_lib_svld_dlopen=yes
16052else
16053 ac_cv_lib_svld_dlopen=no
16054fi
16055rm -f core conftest.err conftest.$ac_objext \
16056 conftest$ac_exeext conftest.$ac_ext
16057LIBS=$ac_check_lib_save_LIBS
16058fi
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16060$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016061if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16063else
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16065$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016066if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016067 $as_echo_n "(cached) " >&6
16068else
16069 ac_check_lib_save_LIBS=$LIBS
16070LIBS="-ldld $LIBS"
16071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072/* end confdefs.h. */
16073
16074/* Override any GCC internal prototype to avoid an error.
16075 Use char because int might match the return type of a GCC
16076 builtin and then its argument prototype would still apply. */
16077#ifdef __cplusplus
16078extern "C"
16079#endif
16080char dld_link ();
16081int
16082main ()
16083{
16084return dld_link ();
16085 ;
16086 return 0;
16087}
16088_ACEOF
16089if ac_fn_c_try_link "$LINENO"; then :
16090 ac_cv_lib_dld_dld_link=yes
16091else
16092 ac_cv_lib_dld_dld_link=no
16093fi
16094rm -f core conftest.err conftest.$ac_objext \
16095 conftest$ac_exeext conftest.$ac_ext
16096LIBS=$ac_check_lib_save_LIBS
16097fi
16098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16099$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016100if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16102fi
16103
16104
16105fi
16106
16107
16108fi
16109
16110
16111fi
16112
16113
16114fi
16115
16116
16117fi
16118
16119 ;;
16120 esac
16121
16122 if test "x$lt_cv_dlopen" != xno; then
16123 enable_dlopen=yes
16124 else
16125 enable_dlopen=no
16126 fi
16127
16128 case $lt_cv_dlopen in
16129 dlopen)
16130 save_CPPFLAGS="$CPPFLAGS"
16131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16132
16133 save_LDFLAGS="$LDFLAGS"
16134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16135
16136 save_LIBS="$LIBS"
16137 LIBS="$lt_cv_dlopen_libs $LIBS"
16138
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16140$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016141if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016142 $as_echo_n "(cached) " >&6
16143else
16144 if test "$cross_compiling" = yes; then :
16145 lt_cv_dlopen_self=cross
16146else
16147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16148 lt_status=$lt_dlunknown
16149 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016150#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016151#include "confdefs.h"
16152
16153#if HAVE_DLFCN_H
16154#include <dlfcn.h>
16155#endif
16156
16157#include <stdio.h>
16158
16159#ifdef RTLD_GLOBAL
16160# define LT_DLGLOBAL RTLD_GLOBAL
16161#else
16162# ifdef DL_GLOBAL
16163# define LT_DLGLOBAL DL_GLOBAL
16164# else
16165# define LT_DLGLOBAL 0
16166# endif
16167#endif
16168
16169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16170 find out it does not work in some platform. */
16171#ifndef LT_DLLAZY_OR_NOW
16172# ifdef RTLD_LAZY
16173# define LT_DLLAZY_OR_NOW RTLD_LAZY
16174# else
16175# ifdef DL_LAZY
16176# define LT_DLLAZY_OR_NOW DL_LAZY
16177# else
16178# ifdef RTLD_NOW
16179# define LT_DLLAZY_OR_NOW RTLD_NOW
16180# else
16181# ifdef DL_NOW
16182# define LT_DLLAZY_OR_NOW DL_NOW
16183# else
16184# define LT_DLLAZY_OR_NOW 0
16185# endif
16186# endif
16187# endif
16188# endif
16189#endif
16190
cristy0c60a692010-11-04 01:09:47 +000016191/* When -fvisbility=hidden is used, assume the code has been annotated
16192 correspondingly for the symbols needed. */
16193#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016194int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016195#endif
16196
cristyda16f162011-02-19 23:52:17 +000016197int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016198int main ()
16199{
16200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16201 int status = $lt_dlunknown;
16202
16203 if (self)
16204 {
16205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016206 else
16207 {
16208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16209 else puts (dlerror ());
16210 }
cristy73bd4a52010-10-05 11:24:23 +000016211 /* dlclose (self); */
16212 }
16213 else
16214 puts (dlerror ());
16215
16216 return status;
16217}
16218_LT_EOF
16219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16220 (eval $ac_link) 2>&5
16221 ac_status=$?
16222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16224 (./conftest; exit; ) >&5 2>/dev/null
16225 lt_status=$?
16226 case x$lt_status in
16227 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16228 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16229 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16230 esac
16231 else :
16232 # compilation failed
16233 lt_cv_dlopen_self=no
16234 fi
16235fi
16236rm -fr conftest*
16237
16238
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16241$as_echo "$lt_cv_dlopen_self" >&6; }
16242
16243 if test "x$lt_cv_dlopen_self" = xyes; then
16244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16246$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016247if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016248 $as_echo_n "(cached) " >&6
16249else
16250 if test "$cross_compiling" = yes; then :
16251 lt_cv_dlopen_self_static=cross
16252else
16253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16254 lt_status=$lt_dlunknown
16255 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016256#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016257#include "confdefs.h"
16258
16259#if HAVE_DLFCN_H
16260#include <dlfcn.h>
16261#endif
16262
16263#include <stdio.h>
16264
16265#ifdef RTLD_GLOBAL
16266# define LT_DLGLOBAL RTLD_GLOBAL
16267#else
16268# ifdef DL_GLOBAL
16269# define LT_DLGLOBAL DL_GLOBAL
16270# else
16271# define LT_DLGLOBAL 0
16272# endif
16273#endif
16274
16275/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16276 find out it does not work in some platform. */
16277#ifndef LT_DLLAZY_OR_NOW
16278# ifdef RTLD_LAZY
16279# define LT_DLLAZY_OR_NOW RTLD_LAZY
16280# else
16281# ifdef DL_LAZY
16282# define LT_DLLAZY_OR_NOW DL_LAZY
16283# else
16284# ifdef RTLD_NOW
16285# define LT_DLLAZY_OR_NOW RTLD_NOW
16286# else
16287# ifdef DL_NOW
16288# define LT_DLLAZY_OR_NOW DL_NOW
16289# else
16290# define LT_DLLAZY_OR_NOW 0
16291# endif
16292# endif
16293# endif
16294# endif
16295#endif
16296
cristy0c60a692010-11-04 01:09:47 +000016297/* When -fvisbility=hidden is used, assume the code has been annotated
16298 correspondingly for the symbols needed. */
16299#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016300int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016301#endif
16302
cristyda16f162011-02-19 23:52:17 +000016303int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016304int main ()
16305{
16306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16307 int status = $lt_dlunknown;
16308
16309 if (self)
16310 {
16311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016312 else
16313 {
16314 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16315 else puts (dlerror ());
16316 }
cristy73bd4a52010-10-05 11:24:23 +000016317 /* dlclose (self); */
16318 }
16319 else
16320 puts (dlerror ());
16321
16322 return status;
16323}
16324_LT_EOF
16325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16326 (eval $ac_link) 2>&5
16327 ac_status=$?
16328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16329 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16330 (./conftest; exit; ) >&5 2>/dev/null
16331 lt_status=$?
16332 case x$lt_status in
16333 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16334 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16335 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16336 esac
16337 else :
16338 # compilation failed
16339 lt_cv_dlopen_self_static=no
16340 fi
16341fi
16342rm -fr conftest*
16343
16344
16345fi
16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16347$as_echo "$lt_cv_dlopen_self_static" >&6; }
16348 fi
16349
16350 CPPFLAGS="$save_CPPFLAGS"
16351 LDFLAGS="$save_LDFLAGS"
16352 LIBS="$save_LIBS"
16353 ;;
16354 esac
16355
16356 case $lt_cv_dlopen_self in
16357 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16358 *) enable_dlopen_self=unknown ;;
16359 esac
16360
16361 case $lt_cv_dlopen_self_static in
16362 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16363 *) enable_dlopen_self_static=unknown ;;
16364 esac
16365fi
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383striplib=
16384old_striplib=
16385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16386$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16387if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391$as_echo "yes" >&6; }
16392else
16393# FIXME - insert some real tests, host_os isn't really good enough
16394 case $host_os in
16395 darwin*)
16396 if test -n "$STRIP" ; then
16397 striplib="$STRIP -x"
16398 old_striplib="$STRIP -S"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16400$as_echo "yes" >&6; }
16401 else
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403$as_echo "no" >&6; }
16404 fi
16405 ;;
16406 *)
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16408$as_echo "no" >&6; }
16409 ;;
16410 esac
16411fi
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424 # Report which library types will actually be built
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16426$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16428$as_echo "$can_build_shared" >&6; }
16429
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16431$as_echo_n "checking whether to build shared libraries... " >&6; }
16432 test "$can_build_shared" = "no" && enable_shared=no
16433
16434 # On AIX, shared libraries and static libraries use the same namespace, and
16435 # are all built from PIC.
16436 case $host_os in
16437 aix3*)
16438 test "$enable_shared" = yes && enable_static=no
16439 if test -n "$RANLIB"; then
16440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16441 postinstall_cmds='$RANLIB $lib'
16442 fi
16443 ;;
16444
16445 aix[4-9]*)
16446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16447 test "$enable_shared" = yes && enable_static=no
16448 fi
16449 ;;
16450 esac
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16452$as_echo "$enable_shared" >&6; }
16453
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16455$as_echo_n "checking whether to build static libraries... " >&6; }
16456 # Make sure either enable_shared or enable_static is yes.
16457 test "$enable_shared" = yes || enable_static=yes
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16459$as_echo "$enable_static" >&6; }
16460
16461
16462
16463
16464fi
16465ac_ext=c
16466ac_cpp='$CPP $CPPFLAGS'
16467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16469ac_compiler_gnu=$ac_cv_c_compiler_gnu
16470
16471CC="$lt_save_CC"
16472
cristy0c60a692010-11-04 01:09:47 +000016473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16475 (test "X$CXX" != "Xg++"))) ; then
16476 ac_ext=cpp
16477ac_cpp='$CXXCPP $CPPFLAGS'
16478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16482$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16483if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016484 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016485 $as_echo_n "(cached) " >&6
16486else
16487 # Double quotes because CXXCPP needs to be expanded
16488 for CXXCPP in "$CXX -E" "/lib/cpp"
16489 do
16490 ac_preproc_ok=false
16491for ac_cxx_preproc_warn_flag in '' yes
16492do
16493 # Use a header file that comes with gcc, so configuring glibc
16494 # with a fresh cross-compiler works.
16495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16496 # <limits.h> exists even on freestanding compilers.
16497 # On the NeXT, cc -E runs the code through the compiler's parser,
16498 # not just through cpp. "Syntax error" is here to catch this case.
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500/* end confdefs.h. */
16501#ifdef __STDC__
16502# include <limits.h>
16503#else
16504# include <assert.h>
16505#endif
16506 Syntax error
16507_ACEOF
16508if ac_fn_cxx_try_cpp "$LINENO"; then :
16509
16510else
16511 # Broken: fails on valid input.
16512continue
16513fi
cristyda16f162011-02-19 23:52:17 +000016514rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016515
16516 # OK, works on sane cases. Now check whether nonexistent headers
16517 # can be detected and how.
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519/* end confdefs.h. */
16520#include <ac_nonexistent.h>
16521_ACEOF
16522if ac_fn_cxx_try_cpp "$LINENO"; then :
16523 # Broken: success on invalid input.
16524continue
16525else
16526 # Passes both tests.
16527ac_preproc_ok=:
16528break
16529fi
cristyda16f162011-02-19 23:52:17 +000016530rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016531
16532done
16533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016534rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016535if $ac_preproc_ok; then :
16536 break
16537fi
16538
16539 done
16540 ac_cv_prog_CXXCPP=$CXXCPP
16541
16542fi
16543 CXXCPP=$ac_cv_prog_CXXCPP
16544else
16545 ac_cv_prog_CXXCPP=$CXXCPP
16546fi
16547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16548$as_echo "$CXXCPP" >&6; }
16549ac_preproc_ok=false
16550for ac_cxx_preproc_warn_flag in '' yes
16551do
16552 # Use a header file that comes with gcc, so configuring glibc
16553 # with a fresh cross-compiler works.
16554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16555 # <limits.h> exists even on freestanding compilers.
16556 # On the NeXT, cc -E runs the code through the compiler's parser,
16557 # not just through cpp. "Syntax error" is here to catch this case.
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559/* end confdefs.h. */
16560#ifdef __STDC__
16561# include <limits.h>
16562#else
16563# include <assert.h>
16564#endif
16565 Syntax error
16566_ACEOF
16567if ac_fn_cxx_try_cpp "$LINENO"; then :
16568
16569else
16570 # Broken: fails on valid input.
16571continue
16572fi
cristyda16f162011-02-19 23:52:17 +000016573rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016574
16575 # OK, works on sane cases. Now check whether nonexistent headers
16576 # can be detected and how.
16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h. */
16579#include <ac_nonexistent.h>
16580_ACEOF
16581if ac_fn_cxx_try_cpp "$LINENO"; then :
16582 # Broken: success on invalid input.
16583continue
16584else
16585 # Passes both tests.
16586ac_preproc_ok=:
16587break
16588fi
cristyda16f162011-02-19 23:52:17 +000016589rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016590
16591done
16592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016593rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016594if $ac_preproc_ok; then :
16595
16596else
16597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16599as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16600See \`config.log' for more details" "$LINENO" 5; }
16601fi
16602
16603ac_ext=c
16604ac_cpp='$CPP $CPPFLAGS'
16605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16607ac_compiler_gnu=$ac_cv_c_compiler_gnu
16608
16609else
16610 _lt_caught_CXX_error=yes
16611fi
cristy73bd4a52010-10-05 11:24:23 +000016612
16613ac_ext=cpp
16614ac_cpp='$CXXCPP $CPPFLAGS'
16615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16618
16619archive_cmds_need_lc_CXX=no
16620allow_undefined_flag_CXX=
16621always_export_symbols_CXX=no
16622archive_expsym_cmds_CXX=
16623compiler_needs_object_CXX=no
16624export_dynamic_flag_spec_CXX=
16625hardcode_direct_CXX=no
16626hardcode_direct_absolute_CXX=no
16627hardcode_libdir_flag_spec_CXX=
16628hardcode_libdir_flag_spec_ld_CXX=
16629hardcode_libdir_separator_CXX=
16630hardcode_minus_L_CXX=no
16631hardcode_shlibpath_var_CXX=unsupported
16632hardcode_automatic_CXX=no
16633inherit_rpath_CXX=no
16634module_cmds_CXX=
16635module_expsym_cmds_CXX=
16636link_all_deplibs_CXX=unknown
16637old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016638reload_flag_CXX=$reload_flag
16639reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016640no_undefined_flag_CXX=
16641whole_archive_flag_spec_CXX=
16642enable_shared_with_static_runtimes_CXX=no
16643
16644# Source file extension for C++ test sources.
16645ac_ext=cpp
16646
16647# Object file extension for compiled C++ test sources.
16648objext=o
16649objext_CXX=$objext
16650
16651# No sense in running all these tests if we already determined that
16652# the CXX compiler isn't working. Some variables (like enable_shared)
16653# are currently assumed to apply to all compilers on this platform,
16654# and will be corrupted by setting them based on a non-working compiler.
16655if test "$_lt_caught_CXX_error" != yes; then
16656 # Code to be used in simple compile tests
16657 lt_simple_compile_test_code="int some_variable = 0;"
16658
16659 # Code to be used in simple link tests
16660 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16661
16662 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16663
16664
16665
16666
16667
16668
16669# If no C compiler was specified, use CC.
16670LTCC=${LTCC-"$CC"}
16671
16672# If no C compiler flags were specified, use CFLAGS.
16673LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16674
16675# Allow CC to be a program name with arguments.
16676compiler=$CC
16677
16678
16679 # save warnings/boilerplate of simple test code
16680 ac_outfile=conftest.$ac_objext
16681echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16682eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16683_lt_compiler_boilerplate=`cat conftest.err`
16684$RM conftest*
16685
16686 ac_outfile=conftest.$ac_objext
16687echo "$lt_simple_link_test_code" >conftest.$ac_ext
16688eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16689_lt_linker_boilerplate=`cat conftest.err`
16690$RM -r conftest*
16691
16692
16693 # Allow CC to be a program name with arguments.
16694 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016695 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016696 lt_save_LD=$LD
16697 lt_save_GCC=$GCC
16698 GCC=$GXX
16699 lt_save_with_gnu_ld=$with_gnu_ld
16700 lt_save_path_LD=$lt_cv_path_LD
16701 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16702 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16703 else
16704 $as_unset lt_cv_prog_gnu_ld
16705 fi
16706 if test -n "${lt_cv_path_LDCXX+set}"; then
16707 lt_cv_path_LD=$lt_cv_path_LDCXX
16708 else
16709 $as_unset lt_cv_path_LD
16710 fi
16711 test -z "${LDCXX+set}" || LD=$LDCXX
16712 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016713 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016714 compiler=$CC
16715 compiler_CXX=$CC
16716 for cc_temp in $compiler""; do
16717 case $cc_temp in
16718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16720 \-*) ;;
16721 *) break;;
16722 esac
16723done
cristy0c60a692010-11-04 01:09:47 +000016724cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016725
16726
16727 if test -n "$compiler"; then
16728 # We don't want -fno-exception when compiling C++ code, so set the
16729 # no_builtin_flag separately
16730 if test "$GXX" = yes; then
16731 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16732 else
16733 lt_prog_compiler_no_builtin_flag_CXX=
16734 fi
16735
16736 if test "$GXX" = yes; then
16737 # Set up default GNU C++ configuration
16738
16739
16740
16741# Check whether --with-gnu-ld was given.
16742if test "${with_gnu_ld+set}" = set; then :
16743 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16744else
16745 with_gnu_ld=no
16746fi
16747
16748ac_prog=ld
16749if test "$GCC" = yes; then
16750 # Check if gcc -print-prog-name=ld gives a path.
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16752$as_echo_n "checking for ld used by $CC... " >&6; }
16753 case $host in
16754 *-*-mingw*)
16755 # gcc leaves a trailing carriage return which upsets mingw
16756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16757 *)
16758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16759 esac
16760 case $ac_prog in
16761 # Accept absolute paths.
16762 [\\/]* | ?:[\\/]*)
16763 re_direlt='/[^/][^/]*/\.\./'
16764 # Canonicalize the pathname of ld
16765 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16766 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16767 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16768 done
16769 test -z "$LD" && LD="$ac_prog"
16770 ;;
16771 "")
16772 # If it fails, then pretend we aren't using GCC.
16773 ac_prog=ld
16774 ;;
16775 *)
16776 # If it is relative, then search for the first ld in PATH.
16777 with_gnu_ld=unknown
16778 ;;
16779 esac
16780elif test "$with_gnu_ld" = yes; then
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16782$as_echo_n "checking for GNU ld... " >&6; }
16783else
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16785$as_echo_n "checking for non-GNU ld... " >&6; }
16786fi
cristyda16f162011-02-19 23:52:17 +000016787if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016788 $as_echo_n "(cached) " >&6
16789else
16790 if test -z "$LD"; then
16791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16792 for ac_dir in $PATH; do
16793 IFS="$lt_save_ifs"
16794 test -z "$ac_dir" && ac_dir=.
16795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16796 lt_cv_path_LD="$ac_dir/$ac_prog"
16797 # Check to see if the program is GNU ld. I'd rather use --version,
16798 # but apparently some variants of GNU ld only accept -v.
16799 # Break only if it was the GNU/non-GNU ld that we prefer.
16800 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16801 *GNU* | *'with BFD'*)
16802 test "$with_gnu_ld" != no && break
16803 ;;
16804 *)
16805 test "$with_gnu_ld" != yes && break
16806 ;;
16807 esac
16808 fi
16809 done
16810 IFS="$lt_save_ifs"
16811else
16812 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16813fi
16814fi
16815
16816LD="$lt_cv_path_LD"
16817if test -n "$LD"; then
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16819$as_echo "$LD" >&6; }
16820else
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822$as_echo "no" >&6; }
16823fi
cristy98dddb52010-11-04 00:30:15 +000016824test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16826$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016827if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016828 $as_echo_n "(cached) " >&6
16829else
16830 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16831case `$LD -v 2>&1 </dev/null` in
16832*GNU* | *'with BFD'*)
16833 lt_cv_prog_gnu_ld=yes
16834 ;;
16835*)
16836 lt_cv_prog_gnu_ld=no
16837 ;;
16838esac
16839fi
16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16841$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16842with_gnu_ld=$lt_cv_prog_gnu_ld
16843
16844
16845
16846
16847
16848
16849
16850 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16851 # archiving commands below assume that GNU ld is being used.
16852 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016853 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16854 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 +000016855
16856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16858
16859 # If archive_cmds runs LD, not CC, wlarc should be empty
16860 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16861 # investigate it a little bit more. (MM)
16862 wlarc='${wl}'
16863
16864 # ancient GNU ld didn't support --whole-archive et. al.
16865 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16866 $GREP 'no-whole-archive' > /dev/null; then
16867 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16868 else
16869 whole_archive_flag_spec_CXX=
16870 fi
16871 else
16872 with_gnu_ld=no
16873 wlarc=
16874
16875 # A generic and very simple default shared library creation
16876 # command for GNU C++ for the case where it uses the native
16877 # linker, instead of GNU ld. If possible, this setting should
16878 # overridden to take advantage of the native linker features on
16879 # the platform it is being used on.
16880 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16881 fi
16882
16883 # Commands to make compiler produce verbose output that lists
16884 # what "hidden" libraries, object files and flags are used when
16885 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016887
16888 else
16889 GXX=no
16890 with_gnu_ld=no
16891 wlarc=
16892 fi
16893
16894 # PORTME: fill in a description of your system's C++ link characteristics
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16896$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16897 ld_shlibs_CXX=yes
16898 case $host_os in
16899 aix3*)
16900 # FIXME: insert proper C++ library support
16901 ld_shlibs_CXX=no
16902 ;;
16903 aix[4-9]*)
16904 if test "$host_cpu" = ia64; then
16905 # On IA64, the linker does run time linking by default, so we don't
16906 # have to do anything special.
16907 aix_use_runtimelinking=no
16908 exp_sym_flag='-Bexport'
16909 no_entry_flag=""
16910 else
16911 aix_use_runtimelinking=no
16912
16913 # Test if we are trying to use run time linking or normal
16914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16915 # need to do runtime linking.
16916 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16917 for ld_flag in $LDFLAGS; do
16918 case $ld_flag in
16919 *-brtl*)
16920 aix_use_runtimelinking=yes
16921 break
16922 ;;
16923 esac
16924 done
16925 ;;
16926 esac
16927
16928 exp_sym_flag='-bexport'
16929 no_entry_flag='-bnoentry'
16930 fi
16931
16932 # When large executables or shared objects are built, AIX ld can
16933 # have problems creating the table of contents. If linking a library
16934 # or program results in "error TOC overflow" add -mminimal-toc to
16935 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16936 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16937
16938 archive_cmds_CXX=''
16939 hardcode_direct_CXX=yes
16940 hardcode_direct_absolute_CXX=yes
16941 hardcode_libdir_separator_CXX=':'
16942 link_all_deplibs_CXX=yes
16943 file_list_spec_CXX='${wl}-f,'
16944
16945 if test "$GXX" = yes; then
16946 case $host_os in aix4.[012]|aix4.[012].*)
16947 # We only want to do this on AIX 4.2 and lower, the check
16948 # below for broken collect2 doesn't work under 4.3+
16949 collect2name=`${CC} -print-prog-name=collect2`
16950 if test -f "$collect2name" &&
16951 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16952 then
16953 # We have reworked collect2
16954 :
16955 else
16956 # We have old collect2
16957 hardcode_direct_CXX=unsupported
16958 # It fails to find uninstalled libraries when the uninstalled
16959 # path is not listed in the libpath. Setting hardcode_minus_L
16960 # to unsupported forces relinking
16961 hardcode_minus_L_CXX=yes
16962 hardcode_libdir_flag_spec_CXX='-L$libdir'
16963 hardcode_libdir_separator_CXX=
16964 fi
16965 esac
16966 shared_flag='-shared'
16967 if test "$aix_use_runtimelinking" = yes; then
16968 shared_flag="$shared_flag "'${wl}-G'
16969 fi
16970 else
16971 # not using gcc
16972 if test "$host_cpu" = ia64; then
16973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16974 # chokes on -Wl,-G. The following line is correct:
16975 shared_flag='-G'
16976 else
16977 if test "$aix_use_runtimelinking" = yes; then
16978 shared_flag='${wl}-G'
16979 else
16980 shared_flag='${wl}-bM:SRE'
16981 fi
16982 fi
16983 fi
16984
16985 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16986 # It seems that -bexpall does not export symbols beginning with
16987 # underscore (_), so it is better to generate a list of symbols to
16988 # export.
16989 always_export_symbols_CXX=yes
16990 if test "$aix_use_runtimelinking" = yes; then
16991 # Warning - without using the other runtime loading flags (-brtl),
16992 # -berok will link without error, but may produce a broken library.
16993 allow_undefined_flag_CXX='-berok'
16994 # Determine the default libpath from the value encoded in an empty
16995 # executable.
cristyda16f162011-02-19 23:52:17 +000016996 if test "${lt_cv_aix_libpath+set}" = set; then
16997 aix_libpath=$lt_cv_aix_libpath
16998else
16999 if ${lt_cv_aix_libpath__CXX+:} false; then :
17000 $as_echo_n "(cached) " >&6
17001else
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017003/* end confdefs.h. */
17004
17005int
17006main ()
17007{
17008
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013if ac_fn_cxx_try_link "$LINENO"; then :
17014
cristyda16f162011-02-19 23:52:17 +000017015 lt_aix_libpath_sed='
17016 /Import File Strings/,/^$/ {
17017 /^0/ {
17018 s/^0 *\([^ ]*\) *$/\1/
17019 p
17020 }
17021 }'
17022 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17023 # Check for a 64-bit object if we didn't find anything.
17024 if test -z "$lt_cv_aix_libpath__CXX"; then
17025 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17026 fi
cristy73bd4a52010-10-05 11:24:23 +000017027fi
17028rm -f core conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017030 if test -z "$lt_cv_aix_libpath__CXX"; then
17031 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17032 fi
17033
17034fi
17035
17036 aix_libpath=$lt_cv_aix_libpath__CXX
17037fi
cristy73bd4a52010-10-05 11:24:23 +000017038
17039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17040
cristy0c60a692010-11-04 01:09:47 +000017041 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 +000017042 else
17043 if test "$host_cpu" = ia64; then
17044 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17045 allow_undefined_flag_CXX="-z nodefs"
17046 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"
17047 else
17048 # Determine the default libpath from the value encoded in an
17049 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017050 if test "${lt_cv_aix_libpath+set}" = set; then
17051 aix_libpath=$lt_cv_aix_libpath
17052else
17053 if ${lt_cv_aix_libpath__CXX+:} false; then :
17054 $as_echo_n "(cached) " >&6
17055else
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017057/* end confdefs.h. */
17058
17059int
17060main ()
17061{
17062
17063 ;
17064 return 0;
17065}
17066_ACEOF
17067if ac_fn_cxx_try_link "$LINENO"; then :
17068
cristyda16f162011-02-19 23:52:17 +000017069 lt_aix_libpath_sed='
17070 /Import File Strings/,/^$/ {
17071 /^0/ {
17072 s/^0 *\([^ ]*\) *$/\1/
17073 p
17074 }
17075 }'
17076 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17077 # Check for a 64-bit object if we didn't find anything.
17078 if test -z "$lt_cv_aix_libpath__CXX"; then
17079 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17080 fi
cristy73bd4a52010-10-05 11:24:23 +000017081fi
17082rm -f core conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017084 if test -z "$lt_cv_aix_libpath__CXX"; then
17085 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17086 fi
17087
17088fi
17089
17090 aix_libpath=$lt_cv_aix_libpath__CXX
17091fi
cristy73bd4a52010-10-05 11:24:23 +000017092
17093 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17094 # Warning - without using the other run time loading flags,
17095 # -berok will link without error, but may produce a broken library.
17096 no_undefined_flag_CXX=' ${wl}-bernotok'
17097 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017098 if test "$with_gnu_ld" = yes; then
17099 # We only use this code for GNU lds that support --whole-archive.
17100 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17101 else
17102 # Exported symbols can be pulled into shared objects from archives
17103 whole_archive_flag_spec_CXX='$convenience'
17104 fi
cristy73bd4a52010-10-05 11:24:23 +000017105 archive_cmds_need_lc_CXX=yes
17106 # This is similar to how AIX traditionally builds its shared
17107 # libraries.
17108 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'
17109 fi
17110 fi
17111 ;;
17112
17113 beos*)
17114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17115 allow_undefined_flag_CXX=unsupported
17116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17117 # support --undefined. This deserves some investigation. FIXME
17118 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17119 else
17120 ld_shlibs_CXX=no
17121 fi
17122 ;;
17123
17124 chorus*)
17125 case $cc_basename in
17126 *)
17127 # FIXME: insert proper C++ library support
17128 ld_shlibs_CXX=no
17129 ;;
17130 esac
17131 ;;
17132
17133 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017134 case $GXX,$cc_basename in
17135 ,cl* | no,cl*)
17136 # Native MSVC
17137 # hardcode_libdir_flag_spec is actually meaningless, as there is
17138 # no search path for DLLs.
17139 hardcode_libdir_flag_spec_CXX=' '
17140 allow_undefined_flag_CXX=unsupported
17141 always_export_symbols_CXX=yes
17142 file_list_spec_CXX='@'
17143 # Tell ltmain to make .lib files, not .a files.
17144 libext=lib
17145 # Tell ltmain to make .dll files, not .so files.
17146 shrext_cmds=".dll"
17147 # FIXME: Setting linknames here is a bad hack.
17148 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17149 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17150 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17151 else
17152 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17153 fi~
17154 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17155 linknames='
17156 # The linker will not automatically build a static lib if we build a DLL.
17157 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17158 enable_shared_with_static_runtimes_CXX=yes
17159 # Don't use ranlib
17160 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17161 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17162 lt_tool_outputfile="@TOOL_OUTPUT@"~
17163 case $lt_outputfile in
17164 *.exe|*.EXE) ;;
17165 *)
17166 lt_outputfile="$lt_outputfile.exe"
17167 lt_tool_outputfile="$lt_tool_outputfile.exe"
17168 ;;
17169 esac~
17170 func_to_tool_file "$lt_outputfile"~
17171 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17172 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17173 $RM "$lt_outputfile.manifest";
17174 fi'
17175 ;;
17176 *)
17177 # g++
17178 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17179 # as there is no search path for DLLs.
17180 hardcode_libdir_flag_spec_CXX='-L$libdir'
17181 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17182 allow_undefined_flag_CXX=unsupported
17183 always_export_symbols_CXX=no
17184 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017185
cristyda16f162011-02-19 23:52:17 +000017186 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17187 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'
17188 # If the export-symbols file already is a .def file (1st line
17189 # is EXPORTS), use it as is; otherwise, prepend...
17190 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17191 cp $export_symbols $output_objdir/$soname.def;
17192 else
17193 echo EXPORTS > $output_objdir/$soname.def;
17194 cat $export_symbols >> $output_objdir/$soname.def;
17195 fi~
17196 $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'
17197 else
17198 ld_shlibs_CXX=no
17199 fi
17200 ;;
17201 esac
17202 ;;
cristy73bd4a52010-10-05 11:24:23 +000017203 darwin* | rhapsody*)
17204
17205
17206 archive_cmds_need_lc_CXX=no
17207 hardcode_direct_CXX=no
17208 hardcode_automatic_CXX=yes
17209 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017210 if test "$lt_cv_ld_force_load" = "yes"; then
17211 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\"`'
17212 else
17213 whole_archive_flag_spec_CXX=''
17214 fi
cristy73bd4a52010-10-05 11:24:23 +000017215 link_all_deplibs_CXX=yes
17216 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17217 case $cc_basename in
17218 ifort*) _lt_dar_can_shared=yes ;;
17219 *) _lt_dar_can_shared=$GCC ;;
17220 esac
17221 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017222 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017223 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}"
17224 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17225 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}"
17226 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}"
17227 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17228 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}"
17229 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}"
17230 fi
17231
17232 else
17233 ld_shlibs_CXX=no
17234 fi
17235
17236 ;;
17237
17238 dgux*)
17239 case $cc_basename in
17240 ec++*)
17241 # FIXME: insert proper C++ library support
17242 ld_shlibs_CXX=no
17243 ;;
17244 ghcx*)
17245 # Green Hills C++ Compiler
17246 # FIXME: insert proper C++ library support
17247 ld_shlibs_CXX=no
17248 ;;
17249 *)
17250 # FIXME: insert proper C++ library support
17251 ld_shlibs_CXX=no
17252 ;;
17253 esac
17254 ;;
17255
17256 freebsd[12]*)
17257 # C++ shared libraries reported to be fairly broken before
17258 # switch to ELF
17259 ld_shlibs_CXX=no
17260 ;;
17261
17262 freebsd-elf*)
17263 archive_cmds_need_lc_CXX=no
17264 ;;
17265
17266 freebsd* | dragonfly*)
17267 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17268 # conventions
17269 ld_shlibs_CXX=yes
17270 ;;
17271
17272 gnu*)
17273 ;;
17274
cristy0c60a692010-11-04 01:09:47 +000017275 haiku*)
17276 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17277 link_all_deplibs_CXX=yes
17278 ;;
17279
cristy73bd4a52010-10-05 11:24:23 +000017280 hpux9*)
17281 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17282 hardcode_libdir_separator_CXX=:
17283 export_dynamic_flag_spec_CXX='${wl}-E'
17284 hardcode_direct_CXX=yes
17285 hardcode_minus_L_CXX=yes # Not in the search PATH,
17286 # but as the default
17287 # location of the library.
17288
17289 case $cc_basename in
17290 CC*)
17291 # FIXME: insert proper C++ library support
17292 ld_shlibs_CXX=no
17293 ;;
17294 aCC*)
17295 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'
17296 # Commands to make compiler produce verbose output that lists
17297 # what "hidden" libraries, object files and flags are used when
17298 # linking a shared library.
17299 #
17300 # There doesn't appear to be a way to prevent this compiler from
17301 # explicitly linking system object files so we need to strip them
17302 # from the output so that they don't get included in the library
17303 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017304 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 +000017305 ;;
17306 *)
17307 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017308 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 +000017309 else
17310 # FIXME: insert proper C++ library support
17311 ld_shlibs_CXX=no
17312 fi
17313 ;;
17314 esac
17315 ;;
17316
17317 hpux10*|hpux11*)
17318 if test $with_gnu_ld = no; then
17319 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17320 hardcode_libdir_separator_CXX=:
17321
17322 case $host_cpu in
17323 hppa*64*|ia64*)
17324 ;;
17325 *)
17326 export_dynamic_flag_spec_CXX='${wl}-E'
17327 ;;
17328 esac
17329 fi
17330 case $host_cpu in
17331 hppa*64*|ia64*)
17332 hardcode_direct_CXX=no
17333 hardcode_shlibpath_var_CXX=no
17334 ;;
17335 *)
17336 hardcode_direct_CXX=yes
17337 hardcode_direct_absolute_CXX=yes
17338 hardcode_minus_L_CXX=yes # Not in the search PATH,
17339 # but as the default
17340 # location of the library.
17341 ;;
17342 esac
17343
17344 case $cc_basename in
17345 CC*)
17346 # FIXME: insert proper C++ library support
17347 ld_shlibs_CXX=no
17348 ;;
17349 aCC*)
17350 case $host_cpu in
17351 hppa*64*)
17352 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17353 ;;
17354 ia64*)
17355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17356 ;;
17357 *)
17358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17359 ;;
17360 esac
17361 # Commands to make compiler produce verbose output that lists
17362 # what "hidden" libraries, object files and flags are used when
17363 # linking a shared library.
17364 #
17365 # There doesn't appear to be a way to prevent this compiler from
17366 # explicitly linking system object files so we need to strip them
17367 # from the output so that they don't get included in the library
17368 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017369 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 +000017370 ;;
17371 *)
17372 if test "$GXX" = yes; then
17373 if test $with_gnu_ld = no; then
17374 case $host_cpu in
17375 hppa*64*)
17376 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17377 ;;
17378 ia64*)
cristyda16f162011-02-19 23:52:17 +000017379 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 +000017380 ;;
17381 *)
cristyda16f162011-02-19 23:52:17 +000017382 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 +000017383 ;;
17384 esac
17385 fi
17386 else
17387 # FIXME: insert proper C++ library support
17388 ld_shlibs_CXX=no
17389 fi
17390 ;;
17391 esac
17392 ;;
17393
17394 interix[3-9]*)
17395 hardcode_direct_CXX=no
17396 hardcode_shlibpath_var_CXX=no
17397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17398 export_dynamic_flag_spec_CXX='${wl}-E'
17399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17400 # Instead, shared libraries are loaded at an image base (0x10000000 by
17401 # default) and relocated if they conflict, which is a slow very memory
17402 # consuming and fragmenting process. To avoid this, we pick a random,
17403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17404 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17405 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'
17406 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'
17407 ;;
17408 irix5* | irix6*)
17409 case $cc_basename in
17410 CC*)
17411 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017412 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 +000017413
17414 # Archives containing C++ object files must be created using
17415 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17416 # necessary to make sure instantiated templates are included
17417 # in the archive.
17418 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17419 ;;
17420 *)
17421 if test "$GXX" = yes; then
17422 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017423 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 +000017424 else
cristyda16f162011-02-19 23:52:17 +000017425 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 +000017426 fi
17427 fi
17428 link_all_deplibs_CXX=yes
17429 ;;
17430 esac
17431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17432 hardcode_libdir_separator_CXX=:
17433 inherit_rpath_CXX=yes
17434 ;;
17435
cristy0c60a692010-11-04 01:09:47 +000017436 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017437 case $cc_basename in
17438 KCC*)
17439 # Kuck and Associates, Inc. (KAI) C++ Compiler
17440
17441 # KCC will only create a shared library if the output file
17442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17443 # to its proper name (with version) after linking.
17444 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'
17445 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'
17446 # Commands to make compiler produce verbose output that lists
17447 # what "hidden" libraries, object files and flags are used when
17448 # linking a shared library.
17449 #
17450 # There doesn't appear to be a way to prevent this compiler from
17451 # explicitly linking system object files so we need to strip them
17452 # from the output so that they don't get included in the library
17453 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017454 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 +000017455
17456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17458
17459 # Archives containing C++ object files must be created using
17460 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17461 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17462 ;;
17463 icpc* | ecpc* )
17464 # Intel C++
17465 with_gnu_ld=yes
17466 # version 8.0 and above of icpc choke on multiply defined symbols
17467 # if we add $predep_objects and $postdep_objects, however 7.1 and
17468 # earlier do not add the objects themselves.
17469 case `$CC -V 2>&1` in
17470 *"Version 7."*)
17471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17472 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'
17473 ;;
17474 *) # Version 8.0 or newer
17475 tmp_idyn=
17476 case $host_cpu in
17477 ia64*) tmp_idyn=' -i_dynamic';;
17478 esac
17479 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17480 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'
17481 ;;
17482 esac
17483 archive_cmds_need_lc_CXX=no
17484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17487 ;;
17488 pgCC* | pgcpp*)
17489 # Portland Group C++ compiler
17490 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017491 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017492 prelink_cmds_CXX='tpldir=Template.dir~
17493 rm -rf $tpldir~
17494 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017495 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017496 old_archive_cmds_CXX='tpldir=Template.dir~
17497 rm -rf $tpldir~
17498 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017499 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017500 $RANLIB $oldlib'
17501 archive_cmds_CXX='tpldir=Template.dir~
17502 rm -rf $tpldir~
17503 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017504 $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 +000017505 archive_expsym_cmds_CXX='tpldir=Template.dir~
17506 rm -rf $tpldir~
17507 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017508 $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 +000017509 ;;
cristy0c60a692010-11-04 01:09:47 +000017510 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017511 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17512 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'
17513 ;;
17514 esac
17515
17516 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17517 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017518 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 +000017519 ;;
17520 cxx*)
17521 # Compaq C++
17522 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17523 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'
17524
17525 runpath_var=LD_RUN_PATH
17526 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17527 hardcode_libdir_separator_CXX=:
17528
17529 # Commands to make compiler produce verbose output that lists
17530 # what "hidden" libraries, object files and flags are used when
17531 # linking a shared library.
17532 #
17533 # There doesn't appear to be a way to prevent this compiler from
17534 # explicitly linking system object files so we need to strip them
17535 # from the output so that they don't get included in the library
17536 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017537 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 +000017538 ;;
cristy0c60a692010-11-04 01:09:47 +000017539 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017540 # IBM XL 8.0 on PPC, with GNU ld
17541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17543 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17544 if test "x$supports_anon_versioning" = xyes; then
17545 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17547 echo "local: *; };" >> $output_objdir/$libname.ver~
17548 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17549 fi
17550 ;;
17551 *)
17552 case `$CC -V 2>&1 | sed 5q` in
17553 *Sun\ C*)
17554 # Sun C++ 5.9
17555 no_undefined_flag_CXX=' -zdefs'
17556 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17557 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'
17558 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017559 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 +000017560 compiler_needs_object_CXX=yes
17561
17562 # Not sure whether something based on
17563 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17564 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017565 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017566
17567 # Archives containing C++ object files must be created using
17568 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17569 # necessary to make sure instantiated templates are included
17570 # in the archive.
17571 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17572 ;;
17573 esac
17574 ;;
17575 esac
17576 ;;
17577
17578 lynxos*)
17579 # FIXME: insert proper C++ library support
17580 ld_shlibs_CXX=no
17581 ;;
17582
17583 m88k*)
17584 # FIXME: insert proper C++ library support
17585 ld_shlibs_CXX=no
17586 ;;
17587
17588 mvs*)
17589 case $cc_basename in
17590 cxx*)
17591 # FIXME: insert proper C++ library support
17592 ld_shlibs_CXX=no
17593 ;;
17594 *)
17595 # FIXME: insert proper C++ library support
17596 ld_shlibs_CXX=no
17597 ;;
17598 esac
17599 ;;
17600
17601 netbsd*)
17602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17603 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17604 wlarc=
17605 hardcode_libdir_flag_spec_CXX='-R$libdir'
17606 hardcode_direct_CXX=yes
17607 hardcode_shlibpath_var_CXX=no
17608 fi
17609 # Workaround some broken pre-1.5 toolchains
17610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17611 ;;
17612
17613 *nto* | *qnx*)
17614 ld_shlibs_CXX=yes
17615 ;;
17616
17617 openbsd2*)
17618 # C++ shared libraries are fairly broken
17619 ld_shlibs_CXX=no
17620 ;;
17621
17622 openbsd*)
17623 if test -f /usr/libexec/ld.so; then
17624 hardcode_direct_CXX=yes
17625 hardcode_shlibpath_var_CXX=no
17626 hardcode_direct_absolute_CXX=yes
17627 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17630 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17631 export_dynamic_flag_spec_CXX='${wl}-E'
17632 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17633 fi
cristy0c60a692010-11-04 01:09:47 +000017634 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017635 else
17636 ld_shlibs_CXX=no
17637 fi
17638 ;;
17639
17640 osf3* | osf4* | osf5*)
17641 case $cc_basename in
17642 KCC*)
17643 # Kuck and Associates, Inc. (KAI) C++ Compiler
17644
17645 # KCC will only create a shared library if the output file
17646 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17647 # to its proper name (with version) after linking.
17648 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'
17649
17650 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17651 hardcode_libdir_separator_CXX=:
17652
17653 # Archives containing C++ object files must be created using
17654 # the KAI C++ compiler.
17655 case $host in
17656 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17657 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17658 esac
17659 ;;
17660 RCC*)
17661 # Rational C++ 2.4.1
17662 # FIXME: insert proper C++ library support
17663 ld_shlibs_CXX=no
17664 ;;
17665 cxx*)
17666 case $host in
17667 osf3*)
17668 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017669 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 +000017670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17671 ;;
17672 *)
17673 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017674 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 +000017675 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17676 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017677 $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 +000017678 $RM $lib.exp'
17679 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17680 ;;
17681 esac
17682
17683 hardcode_libdir_separator_CXX=:
17684
17685 # Commands to make compiler produce verbose output that lists
17686 # what "hidden" libraries, object files and flags are used when
17687 # linking a shared library.
17688 #
17689 # There doesn't appear to be a way to prevent this compiler from
17690 # explicitly linking system object files so we need to strip them
17691 # from the output so that they don't get included in the library
17692 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017693 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 +000017694 ;;
17695 *)
17696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17698 case $host in
17699 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017700 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 +000017701 ;;
17702 *)
cristyda16f162011-02-19 23:52:17 +000017703 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 +000017704 ;;
17705 esac
17706
17707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17708 hardcode_libdir_separator_CXX=:
17709
17710 # Commands to make compiler produce verbose output that lists
17711 # what "hidden" libraries, object files and flags are used when
17712 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017714
17715 else
17716 # FIXME: insert proper C++ library support
17717 ld_shlibs_CXX=no
17718 fi
17719 ;;
17720 esac
17721 ;;
17722
17723 psos*)
17724 # FIXME: insert proper C++ library support
17725 ld_shlibs_CXX=no
17726 ;;
17727
17728 sunos4*)
17729 case $cc_basename in
17730 CC*)
17731 # Sun C++ 4.x
17732 # FIXME: insert proper C++ library support
17733 ld_shlibs_CXX=no
17734 ;;
17735 lcc*)
17736 # Lucid
17737 # FIXME: insert proper C++ library support
17738 ld_shlibs_CXX=no
17739 ;;
17740 *)
17741 # FIXME: insert proper C++ library support
17742 ld_shlibs_CXX=no
17743 ;;
17744 esac
17745 ;;
17746
17747 solaris*)
17748 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017749 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017750 # Sun C++ 4.2, 5.x and Centerline C++
17751 archive_cmds_need_lc_CXX=yes
17752 no_undefined_flag_CXX=' -zdefs'
17753 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17754 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17755 $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'
17756
17757 hardcode_libdir_flag_spec_CXX='-R$libdir'
17758 hardcode_shlibpath_var_CXX=no
17759 case $host_os in
17760 solaris2.[0-5] | solaris2.[0-5].*) ;;
17761 *)
17762 # The compiler driver will combine and reorder linker options,
17763 # but understands `-z linker_flag'.
17764 # Supported since Solaris 2.6 (maybe 2.5.1?)
17765 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17766 ;;
17767 esac
17768 link_all_deplibs_CXX=yes
17769
cristy0c60a692010-11-04 01:09:47 +000017770 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017771
17772 # Archives containing C++ object files must be created using
17773 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17774 # necessary to make sure instantiated templates are included
17775 # in the archive.
17776 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17777 ;;
17778 gcx*)
17779 # Green Hills C++ Compiler
17780 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17781
17782 # The C++ compiler must be used to create the archive.
17783 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17784 ;;
17785 *)
17786 # GNU C++ compiler with Solaris linker
17787 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17788 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17789 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017790 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 +000017791 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 +000017792 $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 +000017793
17794 # Commands to make compiler produce verbose output that lists
17795 # what "hidden" libraries, object files and flags are used when
17796 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017797 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017798 else
17799 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17800 # platform.
17801 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17802 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17803 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17804
17805 # Commands to make compiler produce verbose output that lists
17806 # what "hidden" libraries, object files and flags are used when
17807 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017808 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017809 fi
17810
17811 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17812 case $host_os in
17813 solaris2.[0-5] | solaris2.[0-5].*) ;;
17814 *)
17815 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17816 ;;
17817 esac
17818 fi
17819 ;;
17820 esac
17821 ;;
17822
17823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17824 no_undefined_flag_CXX='${wl}-z,text'
17825 archive_cmds_need_lc_CXX=no
17826 hardcode_shlibpath_var_CXX=no
17827 runpath_var='LD_RUN_PATH'
17828
17829 case $cc_basename in
17830 CC*)
17831 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17832 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17833 ;;
17834 *)
17835 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17837 ;;
17838 esac
17839 ;;
17840
17841 sysv5* | sco3.2v5* | sco5v6*)
17842 # Note: We can NOT use -z defs as we might desire, because we do not
17843 # link with -lc, and that would cause any symbols used from libc to
17844 # always be unresolved, which means just about no library would
17845 # ever link correctly. If we're not using GNU ld we use -z text
17846 # though, which does catch some bad symbols but isn't as heavy-handed
17847 # as -z defs.
17848 no_undefined_flag_CXX='${wl}-z,text'
17849 allow_undefined_flag_CXX='${wl}-z,nodefs'
17850 archive_cmds_need_lc_CXX=no
17851 hardcode_shlibpath_var_CXX=no
17852 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17853 hardcode_libdir_separator_CXX=':'
17854 link_all_deplibs_CXX=yes
17855 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17856 runpath_var='LD_RUN_PATH'
17857
17858 case $cc_basename in
17859 CC*)
17860 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17861 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 +000017862 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17863 '"$old_archive_cmds_CXX"
17864 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17865 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017866 ;;
17867 *)
17868 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17869 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17870 ;;
17871 esac
17872 ;;
17873
17874 tandem*)
17875 case $cc_basename in
17876 NCC*)
17877 # NonStop-UX NCC 3.20
17878 # FIXME: insert proper C++ library support
17879 ld_shlibs_CXX=no
17880 ;;
17881 *)
17882 # FIXME: insert proper C++ library support
17883 ld_shlibs_CXX=no
17884 ;;
17885 esac
17886 ;;
17887
17888 vxworks*)
17889 # FIXME: insert proper C++ library support
17890 ld_shlibs_CXX=no
17891 ;;
17892
17893 *)
17894 # FIXME: insert proper C++ library support
17895 ld_shlibs_CXX=no
17896 ;;
17897 esac
17898
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17900$as_echo "$ld_shlibs_CXX" >&6; }
17901 test "$ld_shlibs_CXX" = no && can_build_shared=no
17902
17903 GCC_CXX="$GXX"
17904 LD_CXX="$LD"
17905
17906 ## CAVEAT EMPTOR:
17907 ## There is no encapsulation within the following macros, do not change
17908 ## the running order or otherwise move them around unless you know exactly
17909 ## what you are doing...
17910 # Dependencies to place before and after the object being linked:
17911predep_objects_CXX=
17912postdep_objects_CXX=
17913predeps_CXX=
17914postdeps_CXX=
17915compiler_lib_search_path_CXX=
17916
17917cat > conftest.$ac_ext <<_LT_EOF
17918class Foo
17919{
17920public:
17921 Foo (void) { a = 0; }
17922private:
17923 int a;
17924};
17925_LT_EOF
17926
cristyda16f162011-02-19 23:52:17 +000017927
17928_lt_libdeps_save_CFLAGS=$CFLAGS
17929case "$CC $CFLAGS " in #(
17930*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17931*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17932esac
17933
cristy73bd4a52010-10-05 11:24:23 +000017934if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17935 (eval $ac_compile) 2>&5
17936 ac_status=$?
17937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938 test $ac_status = 0; }; then
17939 # Parse the compiler output and extract the necessary
17940 # objects, libraries and library flags.
17941
17942 # Sentinel used to keep track of whether or not we are before
17943 # the conftest object file.
17944 pre_test_object_deps_done=no
17945
17946 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017947 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017948
17949 -L* | -R* | -l*)
17950 # Some compilers place space between "-{L,R}" and the path.
17951 # Remove the space.
17952 if test $p = "-L" ||
17953 test $p = "-R"; then
17954 prev=$p
17955 continue
cristy73bd4a52010-10-05 11:24:23 +000017956 fi
17957
cristyda16f162011-02-19 23:52:17 +000017958 # Expand the sysroot to ease extracting the directories later.
17959 if test -z "$prev"; then
17960 case $p in
17961 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17962 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17963 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17964 esac
17965 fi
17966 case $p in
17967 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17968 esac
cristy73bd4a52010-10-05 11:24:23 +000017969 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017970 case ${prev} in
17971 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017972 # Internal compiler library paths should come after those
17973 # provided the user. The postdeps already come after the
17974 # user supplied libs so there is no need to process them.
17975 if test -z "$compiler_lib_search_path_CXX"; then
17976 compiler_lib_search_path_CXX="${prev}${p}"
17977 else
17978 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17979 fi
17980 ;;
17981 # The "-l" case would never come before the object being
17982 # linked, so don't bother handling this case.
17983 esac
17984 else
17985 if test -z "$postdeps_CXX"; then
17986 postdeps_CXX="${prev}${p}"
17987 else
17988 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17989 fi
17990 fi
cristyda16f162011-02-19 23:52:17 +000017991 prev=
cristy73bd4a52010-10-05 11:24:23 +000017992 ;;
17993
cristyda16f162011-02-19 23:52:17 +000017994 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000017995 *.$objext)
17996 # This assumes that the test object file only shows up
17997 # once in the compiler output.
17998 if test "$p" = "conftest.$objext"; then
17999 pre_test_object_deps_done=yes
18000 continue
18001 fi
18002
18003 if test "$pre_test_object_deps_done" = no; then
18004 if test -z "$predep_objects_CXX"; then
18005 predep_objects_CXX="$p"
18006 else
18007 predep_objects_CXX="$predep_objects_CXX $p"
18008 fi
18009 else
18010 if test -z "$postdep_objects_CXX"; then
18011 postdep_objects_CXX="$p"
18012 else
18013 postdep_objects_CXX="$postdep_objects_CXX $p"
18014 fi
18015 fi
18016 ;;
18017
18018 *) ;; # Ignore the rest.
18019
18020 esac
18021 done
18022
18023 # Clean up.
18024 rm -f a.out a.exe
18025else
18026 echo "libtool.m4: error: problem compiling CXX test program"
18027fi
18028
18029$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018030CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018031
18032# PORTME: override above test on systems where it is broken
18033case $host_os in
18034interix[3-9]*)
18035 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18036 # hack all around it, let's just trust "g++" to DTRT.
18037 predep_objects_CXX=
18038 postdep_objects_CXX=
18039 postdeps_CXX=
18040 ;;
18041
18042linux*)
18043 case `$CC -V 2>&1 | sed 5q` in
18044 *Sun\ C*)
18045 # Sun C++ 5.9
18046
18047 # The more standards-conforming stlport4 library is
18048 # incompatible with the Cstd library. Avoid specifying
18049 # it if it's in CXXFLAGS. Ignore libCrun as
18050 # -library=stlport4 depends on it.
18051 case " $CXX $CXXFLAGS " in
18052 *" -library=stlport4 "*)
18053 solaris_use_stlport4=yes
18054 ;;
18055 esac
18056
18057 if test "$solaris_use_stlport4" != yes; then
18058 postdeps_CXX='-library=Cstd -library=Crun'
18059 fi
18060 ;;
18061 esac
18062 ;;
18063
18064solaris*)
18065 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018066 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018067 # The more standards-conforming stlport4 library is
18068 # incompatible with the Cstd library. Avoid specifying
18069 # it if it's in CXXFLAGS. Ignore libCrun as
18070 # -library=stlport4 depends on it.
18071 case " $CXX $CXXFLAGS " in
18072 *" -library=stlport4 "*)
18073 solaris_use_stlport4=yes
18074 ;;
18075 esac
18076
18077 # Adding this requires a known-good setup of shared libraries for
18078 # Sun compiler versions before 5.6, else PIC objects from an old
18079 # archive will be linked into the output, leading to subtle bugs.
18080 if test "$solaris_use_stlport4" != yes; then
18081 postdeps_CXX='-library=Cstd -library=Crun'
18082 fi
18083 ;;
18084 esac
18085 ;;
18086esac
18087
18088
18089case " $postdeps_CXX " in
18090*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18091esac
18092 compiler_lib_search_dirs_CXX=
18093if test -n "${compiler_lib_search_path_CXX}"; then
18094 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18095fi
18096
18097
18098
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 lt_prog_compiler_wl_CXX=
18128lt_prog_compiler_pic_CXX=
18129lt_prog_compiler_static_CXX=
18130
cristy73bd4a52010-10-05 11:24:23 +000018131
18132 # C++ specific cases for pic, static, wl, etc.
18133 if test "$GXX" = yes; then
18134 lt_prog_compiler_wl_CXX='-Wl,'
18135 lt_prog_compiler_static_CXX='-static'
18136
18137 case $host_os in
18138 aix*)
18139 # All AIX code is PIC.
18140 if test "$host_cpu" = ia64; then
18141 # AIX 5 now supports IA64 processor
18142 lt_prog_compiler_static_CXX='-Bstatic'
18143 fi
18144 ;;
18145
18146 amigaos*)
18147 case $host_cpu in
18148 powerpc)
18149 # see comment about AmigaOS4 .so support
18150 lt_prog_compiler_pic_CXX='-fPIC'
18151 ;;
18152 m68k)
18153 # FIXME: we need at least 68020 code to build shared libraries, but
18154 # adding the `-m68020' flag to GCC prevents building anything better,
18155 # like `-m68040'.
18156 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18157 ;;
18158 esac
18159 ;;
18160
18161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18162 # PIC is the default for these OSes.
18163 ;;
18164 mingw* | cygwin* | os2* | pw32* | cegcc*)
18165 # This hack is so that the source file can tell whether it is being
18166 # built for inclusion in a dll (and should export symbols for example).
18167 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18168 # (--disable-auto-import) libraries
18169 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18170 ;;
18171 darwin* | rhapsody*)
18172 # PIC is the default on this platform
18173 # Common symbols not allowed in MH_DYLIB files
18174 lt_prog_compiler_pic_CXX='-fno-common'
18175 ;;
18176 *djgpp*)
18177 # DJGPP does not support shared libraries at all
18178 lt_prog_compiler_pic_CXX=
18179 ;;
cristy0c60a692010-11-04 01:09:47 +000018180 haiku*)
18181 # PIC is the default for Haiku.
18182 # The "-static" flag exists, but is broken.
18183 lt_prog_compiler_static_CXX=
18184 ;;
cristy73bd4a52010-10-05 11:24:23 +000018185 interix[3-9]*)
18186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18187 # Instead, we relocate shared libraries at runtime.
18188 ;;
18189 sysv4*MP*)
18190 if test -d /usr/nec; then
18191 lt_prog_compiler_pic_CXX=-Kconform_pic
18192 fi
18193 ;;
18194 hpux*)
18195 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18196 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18197 # sets the default TLS model and affects inlining.
18198 case $host_cpu in
18199 hppa*64*)
18200 ;;
18201 *)
18202 lt_prog_compiler_pic_CXX='-fPIC'
18203 ;;
18204 esac
18205 ;;
18206 *qnx* | *nto*)
18207 # QNX uses GNU C++, but need to define -shared option too, otherwise
18208 # it will coredump.
18209 lt_prog_compiler_pic_CXX='-fPIC -shared'
18210 ;;
18211 *)
18212 lt_prog_compiler_pic_CXX='-fPIC'
18213 ;;
18214 esac
18215 else
18216 case $host_os in
18217 aix[4-9]*)
18218 # All AIX code is PIC.
18219 if test "$host_cpu" = ia64; then
18220 # AIX 5 now supports IA64 processor
18221 lt_prog_compiler_static_CXX='-Bstatic'
18222 else
18223 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18224 fi
18225 ;;
18226 chorus*)
18227 case $cc_basename in
18228 cxch68*)
18229 # Green Hills C++ Compiler
18230 # _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"
18231 ;;
18232 esac
18233 ;;
cristyda16f162011-02-19 23:52:17 +000018234 mingw* | cygwin* | os2* | pw32* | cegcc*)
18235 # This hack is so that the source file can tell whether it is being
18236 # built for inclusion in a dll (and should export symbols for example).
18237 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18238 ;;
cristy73bd4a52010-10-05 11:24:23 +000018239 dgux*)
18240 case $cc_basename in
18241 ec++*)
18242 lt_prog_compiler_pic_CXX='-KPIC'
18243 ;;
18244 ghcx*)
18245 # Green Hills C++ Compiler
18246 lt_prog_compiler_pic_CXX='-pic'
18247 ;;
18248 *)
18249 ;;
18250 esac
18251 ;;
18252 freebsd* | dragonfly*)
18253 # FreeBSD uses GNU C++
18254 ;;
18255 hpux9* | hpux10* | hpux11*)
18256 case $cc_basename in
18257 CC*)
18258 lt_prog_compiler_wl_CXX='-Wl,'
18259 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18260 if test "$host_cpu" != ia64; then
18261 lt_prog_compiler_pic_CXX='+Z'
18262 fi
18263 ;;
18264 aCC*)
18265 lt_prog_compiler_wl_CXX='-Wl,'
18266 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18267 case $host_cpu in
18268 hppa*64*|ia64*)
18269 # +Z the default
18270 ;;
18271 *)
18272 lt_prog_compiler_pic_CXX='+Z'
18273 ;;
18274 esac
18275 ;;
18276 *)
18277 ;;
18278 esac
18279 ;;
18280 interix*)
18281 # This is c89, which is MS Visual C++ (no shared libs)
18282 # Anyone wants to do a port?
18283 ;;
18284 irix5* | irix6* | nonstopux*)
18285 case $cc_basename in
18286 CC*)
18287 lt_prog_compiler_wl_CXX='-Wl,'
18288 lt_prog_compiler_static_CXX='-non_shared'
18289 # CC pic flag -KPIC is the default.
18290 ;;
18291 *)
18292 ;;
18293 esac
18294 ;;
cristy0c60a692010-11-04 01:09:47 +000018295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018296 case $cc_basename in
18297 KCC*)
18298 # KAI C++ Compiler
18299 lt_prog_compiler_wl_CXX='--backend -Wl,'
18300 lt_prog_compiler_pic_CXX='-fPIC'
18301 ;;
18302 ecpc* )
18303 # old Intel C++ for x86_64 which still supported -KPIC.
18304 lt_prog_compiler_wl_CXX='-Wl,'
18305 lt_prog_compiler_pic_CXX='-KPIC'
18306 lt_prog_compiler_static_CXX='-static'
18307 ;;
18308 icpc* )
18309 # Intel C++, used to be incompatible with GCC.
18310 # ICC 10 doesn't accept -KPIC any more.
18311 lt_prog_compiler_wl_CXX='-Wl,'
18312 lt_prog_compiler_pic_CXX='-fPIC'
18313 lt_prog_compiler_static_CXX='-static'
18314 ;;
18315 pgCC* | pgcpp*)
18316 # Portland Group C++ compiler
18317 lt_prog_compiler_wl_CXX='-Wl,'
18318 lt_prog_compiler_pic_CXX='-fpic'
18319 lt_prog_compiler_static_CXX='-Bstatic'
18320 ;;
18321 cxx*)
18322 # Compaq C++
18323 # Make sure the PIC flag is empty. It appears that all Alpha
18324 # Linux and Compaq Tru64 Unix objects are PIC.
18325 lt_prog_compiler_pic_CXX=
18326 lt_prog_compiler_static_CXX='-non_shared'
18327 ;;
cristy0c60a692010-11-04 01:09:47 +000018328 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18329 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018330 lt_prog_compiler_wl_CXX='-Wl,'
18331 lt_prog_compiler_pic_CXX='-qpic'
18332 lt_prog_compiler_static_CXX='-qstaticlink'
18333 ;;
18334 *)
18335 case `$CC -V 2>&1 | sed 5q` in
18336 *Sun\ C*)
18337 # Sun C++ 5.9
18338 lt_prog_compiler_pic_CXX='-KPIC'
18339 lt_prog_compiler_static_CXX='-Bstatic'
18340 lt_prog_compiler_wl_CXX='-Qoption ld '
18341 ;;
18342 esac
18343 ;;
18344 esac
18345 ;;
18346 lynxos*)
18347 ;;
18348 m88k*)
18349 ;;
18350 mvs*)
18351 case $cc_basename in
18352 cxx*)
18353 lt_prog_compiler_pic_CXX='-W c,exportall'
18354 ;;
18355 *)
18356 ;;
18357 esac
18358 ;;
18359 netbsd*)
18360 ;;
18361 *qnx* | *nto*)
18362 # QNX uses GNU C++, but need to define -shared option too, otherwise
18363 # it will coredump.
18364 lt_prog_compiler_pic_CXX='-fPIC -shared'
18365 ;;
18366 osf3* | osf4* | osf5*)
18367 case $cc_basename in
18368 KCC*)
18369 lt_prog_compiler_wl_CXX='--backend -Wl,'
18370 ;;
18371 RCC*)
18372 # Rational C++ 2.4.1
18373 lt_prog_compiler_pic_CXX='-pic'
18374 ;;
18375 cxx*)
18376 # Digital/Compaq C++
18377 lt_prog_compiler_wl_CXX='-Wl,'
18378 # Make sure the PIC flag is empty. It appears that all Alpha
18379 # Linux and Compaq Tru64 Unix objects are PIC.
18380 lt_prog_compiler_pic_CXX=
18381 lt_prog_compiler_static_CXX='-non_shared'
18382 ;;
18383 *)
18384 ;;
18385 esac
18386 ;;
18387 psos*)
18388 ;;
18389 solaris*)
18390 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018391 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018392 # Sun C++ 4.2, 5.x and Centerline C++
18393 lt_prog_compiler_pic_CXX='-KPIC'
18394 lt_prog_compiler_static_CXX='-Bstatic'
18395 lt_prog_compiler_wl_CXX='-Qoption ld '
18396 ;;
18397 gcx*)
18398 # Green Hills C++ Compiler
18399 lt_prog_compiler_pic_CXX='-PIC'
18400 ;;
18401 *)
18402 ;;
18403 esac
18404 ;;
18405 sunos4*)
18406 case $cc_basename in
18407 CC*)
18408 # Sun C++ 4.x
18409 lt_prog_compiler_pic_CXX='-pic'
18410 lt_prog_compiler_static_CXX='-Bstatic'
18411 ;;
18412 lcc*)
18413 # Lucid
18414 lt_prog_compiler_pic_CXX='-pic'
18415 ;;
18416 *)
18417 ;;
18418 esac
18419 ;;
18420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18421 case $cc_basename in
18422 CC*)
18423 lt_prog_compiler_wl_CXX='-Wl,'
18424 lt_prog_compiler_pic_CXX='-KPIC'
18425 lt_prog_compiler_static_CXX='-Bstatic'
18426 ;;
18427 esac
18428 ;;
18429 tandem*)
18430 case $cc_basename in
18431 NCC*)
18432 # NonStop-UX NCC 3.20
18433 lt_prog_compiler_pic_CXX='-KPIC'
18434 ;;
18435 *)
18436 ;;
18437 esac
18438 ;;
18439 vxworks*)
18440 ;;
18441 *)
18442 lt_prog_compiler_can_build_shared_CXX=no
18443 ;;
18444 esac
18445 fi
18446
18447case $host_os in
18448 # For platforms which do not support PIC, -DPIC is meaningless:
18449 *djgpp*)
18450 lt_prog_compiler_pic_CXX=
18451 ;;
18452 *)
18453 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18454 ;;
18455esac
cristy73bd4a52010-10-05 11:24:23 +000018456
cristyda16f162011-02-19 23:52:17 +000018457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18458$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18459if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18460 $as_echo_n "(cached) " >&6
18461else
18462 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18463fi
18464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18465$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18466lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018467
18468#
18469# Check to make sure the PIC flag actually works.
18470#
18471if test -n "$lt_prog_compiler_pic_CXX"; then
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18473$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018474if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018475 $as_echo_n "(cached) " >&6
18476else
18477 lt_cv_prog_compiler_pic_works_CXX=no
18478 ac_outfile=conftest.$ac_objext
18479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18480 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18481 # Insert the option either (1) after the last *FLAGS variable, or
18482 # (2) before a word containing "conftest.", or (3) at the end.
18483 # Note that $ac_compile itself does not contain backslashes and begins
18484 # with a dollar sign (not a hyphen), so the echo should work correctly.
18485 # The option is referenced via a variable to avoid confusing sed.
18486 lt_compile=`echo "$ac_compile" | $SED \
18487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18489 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018491 (eval "$lt_compile" 2>conftest.err)
18492 ac_status=$?
18493 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018495 if (exit $ac_status) && test -s "$ac_outfile"; then
18496 # The compiler can only warn and ignore the option if not recognized
18497 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18501 lt_cv_prog_compiler_pic_works_CXX=yes
18502 fi
18503 fi
18504 $RM conftest*
18505
18506fi
18507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18508$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18509
18510if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18511 case $lt_prog_compiler_pic_CXX in
18512 "" | " "*) ;;
18513 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18514 esac
18515else
18516 lt_prog_compiler_pic_CXX=
18517 lt_prog_compiler_can_build_shared_CXX=no
18518fi
18519
18520fi
18521
18522
18523
cristyda16f162011-02-19 23:52:17 +000018524
18525
cristy73bd4a52010-10-05 11:24:23 +000018526#
18527# Check to make sure the static flag actually works.
18528#
18529wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18531$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018532if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018533 $as_echo_n "(cached) " >&6
18534else
18535 lt_cv_prog_compiler_static_works_CXX=no
18536 save_LDFLAGS="$LDFLAGS"
18537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18540 # The linker can only warn and ignore the option if not recognized
18541 # So say no if there are warnings
18542 if test -s conftest.err; then
18543 # Append any errors to the config.log.
18544 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018545 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18547 if diff conftest.exp conftest.er2 >/dev/null; then
18548 lt_cv_prog_compiler_static_works_CXX=yes
18549 fi
18550 else
18551 lt_cv_prog_compiler_static_works_CXX=yes
18552 fi
18553 fi
18554 $RM -r conftest*
18555 LDFLAGS="$save_LDFLAGS"
18556
18557fi
18558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18559$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18560
18561if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18562 :
18563else
18564 lt_prog_compiler_static_CXX=
18565fi
18566
18567
18568
18569
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18571$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018572if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018573 $as_echo_n "(cached) " >&6
18574else
18575 lt_cv_prog_compiler_c_o_CXX=no
18576 $RM -r conftest 2>/dev/null
18577 mkdir conftest
18578 cd conftest
18579 mkdir out
18580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18581
18582 lt_compiler_flag="-o out/conftest2.$ac_objext"
18583 # Insert the option either (1) after the last *FLAGS variable, or
18584 # (2) before a word containing "conftest.", or (3) at the end.
18585 # Note that $ac_compile itself does not contain backslashes and begins
18586 # with a dollar sign (not a hyphen), so the echo should work correctly.
18587 lt_compile=`echo "$ac_compile" | $SED \
18588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18590 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018592 (eval "$lt_compile" 2>out/conftest.err)
18593 ac_status=$?
18594 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18597 then
18598 # The compiler can only warn and ignore the option if not recognized
18599 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18603 lt_cv_prog_compiler_c_o_CXX=yes
18604 fi
18605 fi
18606 chmod u+w . 2>&5
18607 $RM conftest*
18608 # SGI C++ compiler will create directory out/ii_files/ for
18609 # template instantiation
18610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18611 $RM out/* && rmdir out
18612 cd ..
18613 $RM -r conftest
18614 $RM conftest*
18615
18616fi
18617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18618$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18619
18620
18621
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18623$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018624if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018625 $as_echo_n "(cached) " >&6
18626else
18627 lt_cv_prog_compiler_c_o_CXX=no
18628 $RM -r conftest 2>/dev/null
18629 mkdir conftest
18630 cd conftest
18631 mkdir out
18632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18633
18634 lt_compiler_flag="-o out/conftest2.$ac_objext"
18635 # Insert the option either (1) after the last *FLAGS variable, or
18636 # (2) before a word containing "conftest.", or (3) at the end.
18637 # Note that $ac_compile itself does not contain backslashes and begins
18638 # with a dollar sign (not a hyphen), so the echo should work correctly.
18639 lt_compile=`echo "$ac_compile" | $SED \
18640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18642 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018644 (eval "$lt_compile" 2>out/conftest.err)
18645 ac_status=$?
18646 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18649 then
18650 # The compiler can only warn and ignore the option if not recognized
18651 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18655 lt_cv_prog_compiler_c_o_CXX=yes
18656 fi
18657 fi
18658 chmod u+w . 2>&5
18659 $RM conftest*
18660 # SGI C++ compiler will create directory out/ii_files/ for
18661 # template instantiation
18662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18663 $RM out/* && rmdir out
18664 cd ..
18665 $RM -r conftest
18666 $RM conftest*
18667
18668fi
18669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18670$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18671
18672
18673
18674
18675hard_links="nottested"
18676if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18677 # do not overwrite the value of need_locks provided by the user
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18679$as_echo_n "checking if we can lock with hard links... " >&6; }
18680 hard_links=yes
18681 $RM conftest*
18682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18683 touch conftest.a
18684 ln conftest.a conftest.b 2>&5 || hard_links=no
18685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18687$as_echo "$hard_links" >&6; }
18688 if test "$hard_links" = no; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18690$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18691 need_locks=warn
18692 fi
18693else
18694 need_locks=no
18695fi
18696
18697
18698
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18700$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18701
18702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018703 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018704 case $host_os in
18705 aix[4-9]*)
18706 # If we're using GNU nm, then we don't want the "-C" option.
18707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018708 # Also, AIX nm treats weak defined symbols like other global defined
18709 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018710 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018711 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 +000018712 else
18713 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'
18714 fi
18715 ;;
18716 pw32*)
18717 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018718 ;;
cristy73bd4a52010-10-05 11:24:23 +000018719 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018720 case $cc_basename in
18721 cl*) ;;
18722 *)
18723 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'
18724 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18725 ;;
18726 esac
18727 ;;
cristy73bd4a52010-10-05 11:24:23 +000018728 *)
18729 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018730 ;;
cristy73bd4a52010-10-05 11:24:23 +000018731 esac
cristy73bd4a52010-10-05 11:24:23 +000018732
18733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18734$as_echo "$ld_shlibs_CXX" >&6; }
18735test "$ld_shlibs_CXX" = no && can_build_shared=no
18736
18737with_gnu_ld_CXX=$with_gnu_ld
18738
18739
18740
18741
18742
18743
18744#
18745# Do we need to explicitly link libc?
18746#
18747case "x$archive_cmds_need_lc_CXX" in
18748x|xyes)
18749 # Assume -lc should be added
18750 archive_cmds_need_lc_CXX=yes
18751
18752 if test "$enable_shared" = yes && test "$GCC" = yes; then
18753 case $archive_cmds_CXX in
18754 *'~'*)
18755 # FIXME: we may have to deal with multi-command sequences.
18756 ;;
18757 '$CC '*)
18758 # Test whether the compiler implicitly links with -lc since on some
18759 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18760 # to ld, don't add -lc before -lgcc.
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18762$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018763if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018764 $as_echo_n "(cached) " >&6
18765else
18766 $RM conftest*
18767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018768
cristy0c60a692010-11-04 01:09:47 +000018769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018770 (eval $ac_compile) 2>&5
18771 ac_status=$?
18772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018774 soname=conftest
18775 lib=conftest
18776 libobjs=conftest.$ac_objext
18777 deplibs=
18778 wl=$lt_prog_compiler_wl_CXX
18779 pic_flag=$lt_prog_compiler_pic_CXX
18780 compiler_flags=-v
18781 linker_flags=-v
18782 verstring=
18783 output_objdir=.
18784 libname=conftest
18785 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18786 allow_undefined_flag_CXX=
18787 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 +000018788 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18789 ac_status=$?
18790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18791 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018792 then
18793 lt_cv_archive_cmds_need_lc_CXX=no
18794 else
18795 lt_cv_archive_cmds_need_lc_CXX=yes
18796 fi
18797 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18798 else
18799 cat conftest.err 1>&5
18800 fi
18801 $RM conftest*
18802
18803fi
18804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18805$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18806 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018807 ;;
18808 esac
18809 fi
18810 ;;
18811esac
18812
18813
18814
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18877$as_echo_n "checking dynamic linker characteristics... " >&6; }
18878
18879library_names_spec=
18880libname_spec='lib$name'
18881soname_spec=
18882shrext_cmds=".so"
18883postinstall_cmds=
18884postuninstall_cmds=
18885finish_cmds=
18886finish_eval=
18887shlibpath_var=
18888shlibpath_overrides_runpath=unknown
18889version_type=none
18890dynamic_linker="$host_os ld.so"
18891sys_lib_dlsearch_path_spec="/lib /usr/lib"
18892need_lib_prefix=unknown
18893hardcode_into_libs=no
18894
18895# when you set need_version to no, make sure it does not cause -set_version
18896# flags to be left without arguments
18897need_version=unknown
18898
18899case $host_os in
18900aix3*)
18901 version_type=linux
18902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18903 shlibpath_var=LIBPATH
18904
18905 # AIX 3 has no versioning support, so we append a major version to the name.
18906 soname_spec='${libname}${release}${shared_ext}$major'
18907 ;;
18908
18909aix[4-9]*)
18910 version_type=linux
18911 need_lib_prefix=no
18912 need_version=no
18913 hardcode_into_libs=yes
18914 if test "$host_cpu" = ia64; then
18915 # AIX 5 supports IA64
18916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 else
18919 # With GCC up to 2.95.x, collect2 would create an import file
18920 # for dependence libraries. The import file would start with
18921 # the line `#! .'. This would cause the generated library to
18922 # depend on `.', always an invalid library. This was fixed in
18923 # development snapshots of GCC prior to 3.0.
18924 case $host_os in
18925 aix4 | aix4.[01] | aix4.[01].*)
18926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18927 echo ' yes '
18928 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18929 :
18930 else
18931 can_build_shared=no
18932 fi
18933 ;;
18934 esac
18935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18936 # soname into executable. Probably we can add versioning support to
18937 # collect2, so additional links can be useful in future.
18938 if test "$aix_use_runtimelinking" = yes; then
18939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18940 # instead of lib<name>.a to let people know that these are not
18941 # typical AIX shared libraries.
18942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18943 else
18944 # We preserve .a as extension for shared libraries through AIX4.2
18945 # and later when we are not doing run time linking.
18946 library_names_spec='${libname}${release}.a $libname.a'
18947 soname_spec='${libname}${release}${shared_ext}$major'
18948 fi
18949 shlibpath_var=LIBPATH
18950 fi
18951 ;;
18952
18953amigaos*)
18954 case $host_cpu in
18955 powerpc)
18956 # Since July 2007 AmigaOS4 officially supports .so libraries.
18957 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18959 ;;
18960 m68k)
18961 library_names_spec='$libname.ixlibrary $libname.a'
18962 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018963 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 +000018964 ;;
18965 esac
18966 ;;
18967
18968beos*)
18969 library_names_spec='${libname}${shared_ext}'
18970 dynamic_linker="$host_os ld.so"
18971 shlibpath_var=LIBRARY_PATH
18972 ;;
18973
18974bsdi[45]*)
18975 version_type=linux
18976 need_version=no
18977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978 soname_spec='${libname}${release}${shared_ext}$major'
18979 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18980 shlibpath_var=LD_LIBRARY_PATH
18981 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18982 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18983 # the default ld.so.conf also contains /usr/contrib/lib and
18984 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18985 # libtool to hard-code these into programs
18986 ;;
18987
18988cygwin* | mingw* | pw32* | cegcc*)
18989 version_type=windows
18990 shrext_cmds=".dll"
18991 need_version=no
18992 need_lib_prefix=no
18993
cristyda16f162011-02-19 23:52:17 +000018994 case $GCC,$cc_basename in
18995 yes,*)
18996 # gcc
cristy73bd4a52010-10-05 11:24:23 +000018997 library_names_spec='$libname.dll.a'
18998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18999 postinstall_cmds='base_file=`basename \${file}`~
19000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19001 dldir=$destdir/`dirname \$dlpath`~
19002 test -d \$dldir || mkdir -p \$dldir~
19003 $install_prog $dir/$dlname \$dldir/$dlname~
19004 chmod a+x \$dldir/$dlname~
19005 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19006 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19007 fi'
19008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19009 dlpath=$dir/\$dldll~
19010 $RM \$dlpath'
19011 shlibpath_overrides_runpath=yes
19012
19013 case $host_os in
19014 cygwin*)
19015 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19016 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019017
cristy73bd4a52010-10-05 11:24:23 +000019018 ;;
19019 mingw* | cegcc*)
19020 # MinGW DLLs use traditional 'lib' prefix
19021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019022 ;;
19023 pw32*)
19024 # pw32 DLLs use 'pw' prefix rather than 'lib'
19025 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19026 ;;
19027 esac
cristyda16f162011-02-19 23:52:17 +000019028 dynamic_linker='Win32 ld.exe'
19029 ;;
19030
19031 *,cl*)
19032 # Native MSVC
19033 libname_spec='$name'
19034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19035 library_names_spec='${libname}.dll.lib'
19036
19037 case $build_os in
19038 mingw*)
19039 sys_lib_search_path_spec=
19040 lt_save_ifs=$IFS
19041 IFS=';'
19042 for lt_path in $LIB
19043 do
19044 IFS=$lt_save_ifs
19045 # Let DOS variable expansion print the short 8.3 style file name.
19046 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19047 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19048 done
19049 IFS=$lt_save_ifs
19050 # Convert to MSYS style.
19051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19052 ;;
19053 cygwin*)
19054 # Convert to unix form, then to dos form, then back to unix form
19055 # but this time dos style (no spaces!) so that the unix form looks
19056 # like /cygdrive/c/PROGRA~1:/cygdr...
19057 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19058 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19059 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19060 ;;
19061 *)
19062 sys_lib_search_path_spec="$LIB"
19063 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19064 # It is most probably a Windows format PATH.
19065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19066 else
19067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19068 fi
19069 # FIXME: find the short name or the path components, as spaces are
19070 # common. (e.g. "Program Files" -> "PROGRA~1")
19071 ;;
19072 esac
19073
19074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19075 postinstall_cmds='base_file=`basename \${file}`~
19076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19077 dldir=$destdir/`dirname \$dlpath`~
19078 test -d \$dldir || mkdir -p \$dldir~
19079 $install_prog $dir/$dlname \$dldir/$dlname'
19080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19081 dlpath=$dir/\$dldll~
19082 $RM \$dlpath'
19083 shlibpath_overrides_runpath=yes
19084 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019085 ;;
19086
19087 *)
cristyda16f162011-02-19 23:52:17 +000019088 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019090 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019091 ;;
19092 esac
cristy73bd4a52010-10-05 11:24:23 +000019093 # FIXME: first we should search . and the directory the executable is in
19094 shlibpath_var=PATH
19095 ;;
19096
19097darwin* | rhapsody*)
19098 dynamic_linker="$host_os dyld"
19099 version_type=darwin
19100 need_lib_prefix=no
19101 need_version=no
19102 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19103 soname_spec='${libname}${release}${major}$shared_ext'
19104 shlibpath_overrides_runpath=yes
19105 shlibpath_var=DYLD_LIBRARY_PATH
19106 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19107
19108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19109 ;;
19110
19111dgux*)
19112 version_type=linux
19113 need_lib_prefix=no
19114 need_version=no
19115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19116 soname_spec='${libname}${release}${shared_ext}$major'
19117 shlibpath_var=LD_LIBRARY_PATH
19118 ;;
19119
19120freebsd1*)
19121 dynamic_linker=no
19122 ;;
19123
19124freebsd* | dragonfly*)
19125 # DragonFly does not have aout. When/if they implement a new
19126 # versioning mechanism, adjust this.
19127 if test -x /usr/bin/objformat; then
19128 objformat=`/usr/bin/objformat`
19129 else
19130 case $host_os in
19131 freebsd[123]*) objformat=aout ;;
19132 *) objformat=elf ;;
19133 esac
19134 fi
19135 version_type=freebsd-$objformat
19136 case $version_type in
19137 freebsd-elf*)
19138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19139 need_version=no
19140 need_lib_prefix=no
19141 ;;
19142 freebsd-*)
19143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19144 need_version=yes
19145 ;;
19146 esac
19147 shlibpath_var=LD_LIBRARY_PATH
19148 case $host_os in
19149 freebsd2*)
19150 shlibpath_overrides_runpath=yes
19151 ;;
19152 freebsd3.[01]* | freebsdelf3.[01]*)
19153 shlibpath_overrides_runpath=yes
19154 hardcode_into_libs=yes
19155 ;;
19156 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19157 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19158 shlibpath_overrides_runpath=no
19159 hardcode_into_libs=yes
19160 ;;
19161 *) # from 4.6 on, and DragonFly
19162 shlibpath_overrides_runpath=yes
19163 hardcode_into_libs=yes
19164 ;;
19165 esac
19166 ;;
19167
19168gnu*)
19169 version_type=linux
19170 need_lib_prefix=no
19171 need_version=no
19172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19173 soname_spec='${libname}${release}${shared_ext}$major'
19174 shlibpath_var=LD_LIBRARY_PATH
19175 hardcode_into_libs=yes
19176 ;;
19177
cristy0c60a692010-11-04 01:09:47 +000019178haiku*)
19179 version_type=linux
19180 need_lib_prefix=no
19181 need_version=no
19182 dynamic_linker="$host_os runtime_loader"
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19184 soname_spec='${libname}${release}${shared_ext}$major'
19185 shlibpath_var=LIBRARY_PATH
19186 shlibpath_overrides_runpath=yes
19187 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19188 hardcode_into_libs=yes
19189 ;;
19190
cristy73bd4a52010-10-05 11:24:23 +000019191hpux9* | hpux10* | hpux11*)
19192 # Give a soname corresponding to the major version so that dld.sl refuses to
19193 # link against other versions.
19194 version_type=sunos
19195 need_lib_prefix=no
19196 need_version=no
19197 case $host_cpu in
19198 ia64*)
19199 shrext_cmds='.so'
19200 hardcode_into_libs=yes
19201 dynamic_linker="$host_os dld.so"
19202 shlibpath_var=LD_LIBRARY_PATH
19203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19205 soname_spec='${libname}${release}${shared_ext}$major'
19206 if test "X$HPUX_IA64_MODE" = X32; then
19207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19208 else
19209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19210 fi
19211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19212 ;;
19213 hppa*64*)
19214 shrext_cmds='.sl'
19215 hardcode_into_libs=yes
19216 dynamic_linker="$host_os dld.sl"
19217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19220 soname_spec='${libname}${release}${shared_ext}$major'
19221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19223 ;;
19224 *)
19225 shrext_cmds='.sl'
19226 dynamic_linker="$host_os dld.sl"
19227 shlibpath_var=SHLIB_PATH
19228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 soname_spec='${libname}${release}${shared_ext}$major'
19231 ;;
19232 esac
cristy0c60a692010-11-04 01:09:47 +000019233 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019234 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019235 # or fails outright, so override atomically:
19236 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019237 ;;
19238
19239interix[3-9]*)
19240 version_type=linux
19241 need_lib_prefix=no
19242 need_version=no
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19244 soname_spec='${libname}${release}${shared_ext}$major'
19245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19246 shlibpath_var=LD_LIBRARY_PATH
19247 shlibpath_overrides_runpath=no
19248 hardcode_into_libs=yes
19249 ;;
19250
19251irix5* | irix6* | nonstopux*)
19252 case $host_os in
19253 nonstopux*) version_type=nonstopux ;;
19254 *)
19255 if test "$lt_cv_prog_gnu_ld" = yes; then
19256 version_type=linux
19257 else
19258 version_type=irix
19259 fi ;;
19260 esac
19261 need_lib_prefix=no
19262 need_version=no
19263 soname_spec='${libname}${release}${shared_ext}$major'
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19265 case $host_os in
19266 irix5* | nonstopux*)
19267 libsuff= shlibsuff=
19268 ;;
19269 *)
19270 case $LD in # libtool.m4 will add one of these switches to LD
19271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19272 libsuff= shlibsuff= libmagic=32-bit;;
19273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19274 libsuff=32 shlibsuff=N32 libmagic=N32;;
19275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19277 *) libsuff= shlibsuff= libmagic=never-match;;
19278 esac
19279 ;;
19280 esac
19281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19282 shlibpath_overrides_runpath=no
19283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19285 hardcode_into_libs=yes
19286 ;;
19287
19288# No shared lib support for Linux oldld, aout, or coff.
19289linux*oldld* | linux*aout* | linux*coff*)
19290 dynamic_linker=no
19291 ;;
19292
19293# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019294linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019295 version_type=linux
19296 need_lib_prefix=no
19297 need_version=no
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19299 soname_spec='${libname}${release}${shared_ext}$major'
19300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19301 shlibpath_var=LD_LIBRARY_PATH
19302 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019303
cristy73bd4a52010-10-05 11:24:23 +000019304 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019305 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019306 $as_echo_n "(cached) " >&6
19307else
19308 lt_cv_shlibpath_overrides_runpath=no
19309 save_LDFLAGS=$LDFLAGS
19310 save_libdir=$libdir
19311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019314/* end confdefs.h. */
19315
19316int
19317main ()
19318{
19319
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324if ac_fn_cxx_try_link "$LINENO"; then :
19325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019326 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019327fi
19328fi
19329rm -f core conftest.err conftest.$ac_objext \
19330 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019331 LDFLAGS=$save_LDFLAGS
19332 libdir=$save_libdir
19333
19334fi
19335
19336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019337
19338 # This implies no fast_install, which is unacceptable.
19339 # Some rework will be needed to allow for fast_install
19340 # before this can be enabled.
19341 hardcode_into_libs=yes
19342
19343 # Add ABI-specific directories to the system library path.
19344 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19345
19346 # Append ld.so.conf contents to the search path
19347 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019348 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 +000019349 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019350
cristy73bd4a52010-10-05 11:24:23 +000019351 fi
19352
19353 # We used to test for /lib/ld.so.1 and disable shared libraries on
19354 # powerpc, because MkLinux only supported shared libraries with the
19355 # GNU dynamic linker. Since this was broken with cross compilers,
19356 # most powerpc-linux boxes support dynamic linking these days and
19357 # people can always --disable-shared, the test was removed, and we
19358 # assume the GNU/Linux dynamic linker is in use.
19359 dynamic_linker='GNU/Linux ld.so'
19360 ;;
19361
19362netbsd*)
19363 version_type=sunos
19364 need_lib_prefix=no
19365 need_version=no
19366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19369 dynamic_linker='NetBSD (a.out) ld.so'
19370 else
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 dynamic_linker='NetBSD ld.elf_so'
19374 fi
19375 shlibpath_var=LD_LIBRARY_PATH
19376 shlibpath_overrides_runpath=yes
19377 hardcode_into_libs=yes
19378 ;;
19379
19380newsos6)
19381 version_type=linux
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 shlibpath_overrides_runpath=yes
19385 ;;
19386
19387*nto* | *qnx*)
19388 version_type=qnx
19389 need_lib_prefix=no
19390 need_version=no
19391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392 soname_spec='${libname}${release}${shared_ext}$major'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 shlibpath_overrides_runpath=no
19395 hardcode_into_libs=yes
19396 dynamic_linker='ldqnx.so'
19397 ;;
19398
19399openbsd*)
19400 version_type=sunos
19401 sys_lib_dlsearch_path_spec="/usr/lib"
19402 need_lib_prefix=no
19403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19404 case $host_os in
19405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19406 *) need_version=no ;;
19407 esac
19408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19410 shlibpath_var=LD_LIBRARY_PATH
19411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19412 case $host_os in
19413 openbsd2.[89] | openbsd2.[89].*)
19414 shlibpath_overrides_runpath=no
19415 ;;
19416 *)
19417 shlibpath_overrides_runpath=yes
19418 ;;
19419 esac
19420 else
19421 shlibpath_overrides_runpath=yes
19422 fi
19423 ;;
19424
19425os2*)
19426 libname_spec='$name'
19427 shrext_cmds=".dll"
19428 need_lib_prefix=no
19429 library_names_spec='$libname${shared_ext} $libname.a'
19430 dynamic_linker='OS/2 ld.exe'
19431 shlibpath_var=LIBPATH
19432 ;;
19433
19434osf3* | osf4* | osf5*)
19435 version_type=osf
19436 need_lib_prefix=no
19437 need_version=no
19438 soname_spec='${libname}${release}${shared_ext}$major'
19439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19440 shlibpath_var=LD_LIBRARY_PATH
19441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19443 ;;
19444
19445rdos*)
19446 dynamic_linker=no
19447 ;;
19448
19449solaris*)
19450 version_type=linux
19451 need_lib_prefix=no
19452 need_version=no
19453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19454 soname_spec='${libname}${release}${shared_ext}$major'
19455 shlibpath_var=LD_LIBRARY_PATH
19456 shlibpath_overrides_runpath=yes
19457 hardcode_into_libs=yes
19458 # ldd complains unless libraries are executable
19459 postinstall_cmds='chmod +x $lib'
19460 ;;
19461
19462sunos4*)
19463 version_type=sunos
19464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19466 shlibpath_var=LD_LIBRARY_PATH
19467 shlibpath_overrides_runpath=yes
19468 if test "$with_gnu_ld" = yes; then
19469 need_lib_prefix=no
19470 fi
19471 need_version=yes
19472 ;;
19473
19474sysv4 | sysv4.3*)
19475 version_type=linux
19476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19477 soname_spec='${libname}${release}${shared_ext}$major'
19478 shlibpath_var=LD_LIBRARY_PATH
19479 case $host_vendor in
19480 sni)
19481 shlibpath_overrides_runpath=no
19482 need_lib_prefix=no
19483 runpath_var=LD_RUN_PATH
19484 ;;
19485 siemens)
19486 need_lib_prefix=no
19487 ;;
19488 motorola)
19489 need_lib_prefix=no
19490 need_version=no
19491 shlibpath_overrides_runpath=no
19492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19493 ;;
19494 esac
19495 ;;
19496
19497sysv4*MP*)
19498 if test -d /usr/nec ;then
19499 version_type=linux
19500 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19501 soname_spec='$libname${shared_ext}.$major'
19502 shlibpath_var=LD_LIBRARY_PATH
19503 fi
19504 ;;
19505
19506sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19507 version_type=freebsd-elf
19508 need_lib_prefix=no
19509 need_version=no
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19511 soname_spec='${libname}${release}${shared_ext}$major'
19512 shlibpath_var=LD_LIBRARY_PATH
19513 shlibpath_overrides_runpath=yes
19514 hardcode_into_libs=yes
19515 if test "$with_gnu_ld" = yes; then
19516 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19517 else
19518 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19519 case $host_os in
19520 sco3.2v5*)
19521 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19522 ;;
19523 esac
19524 fi
19525 sys_lib_dlsearch_path_spec='/usr/lib'
19526 ;;
19527
19528tpf*)
19529 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19530 version_type=linux
19531 need_lib_prefix=no
19532 need_version=no
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19534 shlibpath_var=LD_LIBRARY_PATH
19535 shlibpath_overrides_runpath=no
19536 hardcode_into_libs=yes
19537 ;;
19538
19539uts4*)
19540 version_type=linux
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19542 soname_spec='${libname}${release}${shared_ext}$major'
19543 shlibpath_var=LD_LIBRARY_PATH
19544 ;;
19545
19546*)
19547 dynamic_linker=no
19548 ;;
19549esac
19550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19551$as_echo "$dynamic_linker" >&6; }
19552test "$dynamic_linker" = no && can_build_shared=no
19553
19554variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19555if test "$GCC" = yes; then
19556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19557fi
19558
19559if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19560 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19561fi
19562if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19563 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19564fi
19565
19566
19567
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
cristy0c60a692010-11-04 01:09:47 +000019601
19602
cristy73bd4a52010-10-05 11:24:23 +000019603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19604$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19605hardcode_action_CXX=
19606if test -n "$hardcode_libdir_flag_spec_CXX" ||
19607 test -n "$runpath_var_CXX" ||
19608 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19609
19610 # We can hardcode non-existent directories.
19611 if test "$hardcode_direct_CXX" != no &&
19612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19613 # have to relink, otherwise we might link with an installed library
19614 # when we should be linking with a yet-to-be-installed one
19615 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19616 test "$hardcode_minus_L_CXX" != no; then
19617 # Linking always hardcodes the temporary library directory.
19618 hardcode_action_CXX=relink
19619 else
19620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19621 hardcode_action_CXX=immediate
19622 fi
19623else
19624 # We cannot hardcode anything, or else we can only hardcode existing
19625 # directories.
19626 hardcode_action_CXX=unsupported
19627fi
19628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19629$as_echo "$hardcode_action_CXX" >&6; }
19630
19631if test "$hardcode_action_CXX" = relink ||
19632 test "$inherit_rpath_CXX" = yes; then
19633 # Fast installation is not supported
19634 enable_fast_install=no
19635elif test "$shlibpath_overrides_runpath" = yes ||
19636 test "$enable_shared" = no; then
19637 # Fast installation is not necessary
19638 enable_fast_install=needless
19639fi
19640
19641
19642
19643
19644
19645
19646
19647 fi # test -n "$compiler"
19648
19649 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019650 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019651 LDCXX=$LD
19652 LD=$lt_save_LD
19653 GCC=$lt_save_GCC
19654 with_gnu_ld=$lt_save_with_gnu_ld
19655 lt_cv_path_LDCXX=$lt_cv_path_LD
19656 lt_cv_path_LD=$lt_save_path_LD
19657 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19658 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19659fi # test "$_lt_caught_CXX_error" != yes
19660
19661ac_ext=c
19662ac_cpp='$CPP $CPPFLAGS'
19663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19665ac_compiler_gnu=$ac_cv_c_compiler_gnu
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679 ac_config_commands="$ac_config_commands libtool"
19680
19681
19682
19683
19684# Only expand once:
19685
19686
19687
cristy3ed852e2009-09-05 21:47:34 +000019688
19689
19690# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019691
19692
19693
19694
19695
19696
19697
cristy73bd4a52010-10-05 11:24:23 +000019698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19699$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019700if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019701 $as_echo_n "(cached) " >&6
19702else
19703
19704module=yes
19705eval libltdl_cv_shlibext=$shrext_cmds
19706
19707fi
19708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19709$as_echo "$libltdl_cv_shlibext" >&6; }
19710if test -n "$libltdl_cv_shlibext"; then
19711
19712cat >>confdefs.h <<_ACEOF
19713#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19714_ACEOF
19715
19716fi
19717
19718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19719$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019720if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019721 $as_echo_n "(cached) " >&6
19722else
19723 lt_cv_module_path_var="$shlibpath_var"
19724fi
19725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19726$as_echo "$lt_cv_module_path_var" >&6; }
19727if test -n "$lt_cv_module_path_var"; then
19728
19729cat >>confdefs.h <<_ACEOF
19730#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19731_ACEOF
19732
19733fi
19734
19735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19736$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019737if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019738 $as_echo_n "(cached) " >&6
19739else
19740 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19741fi
19742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19743$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19744if test -n "$lt_cv_sys_dlsearch_path"; then
19745 sys_dlsearch_path=
19746 for dir in $lt_cv_sys_dlsearch_path; do
19747 if test -z "$sys_dlsearch_path"; then
19748 sys_dlsearch_path="$dir"
19749 else
19750 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19751 fi
19752 done
19753
19754cat >>confdefs.h <<_ACEOF
19755#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19756_ACEOF
19757
19758fi
19759
19760
19761LT_DLLOADERS=
19762
19763
19764ac_ext=c
19765ac_cpp='$CPP $CPPFLAGS'
19766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769
19770
19771LIBADD_DLOPEN=
19772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19773$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019774if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019775 $as_echo_n "(cached) " >&6
19776else
19777 ac_func_search_save_LIBS=$LIBS
19778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19779/* end confdefs.h. */
19780
19781/* Override any GCC internal prototype to avoid an error.
19782 Use char because int might match the return type of a GCC
19783 builtin and then its argument prototype would still apply. */
19784#ifdef __cplusplus
19785extern "C"
19786#endif
19787char dlopen ();
19788int
19789main ()
19790{
19791return dlopen ();
19792 ;
19793 return 0;
19794}
19795_ACEOF
19796for ac_lib in '' dl; do
19797 if test -z "$ac_lib"; then
19798 ac_res="none required"
19799 else
19800 ac_res=-l$ac_lib
19801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19802 fi
19803 if ac_fn_c_try_link "$LINENO"; then :
19804 ac_cv_search_dlopen=$ac_res
19805fi
19806rm -f core conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019808 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019809 break
19810fi
19811done
cristyda16f162011-02-19 23:52:17 +000019812if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019813
19814else
19815 ac_cv_search_dlopen=no
19816fi
19817rm conftest.$ac_ext
19818LIBS=$ac_func_search_save_LIBS
19819fi
19820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19821$as_echo "$ac_cv_search_dlopen" >&6; }
19822ac_res=$ac_cv_search_dlopen
19823if test "$ac_res" != no; then :
19824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19825
19826$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19827
19828 if test "$ac_cv_search_dlopen" != "none required" ; then
19829 LIBADD_DLOPEN="-ldl"
19830 fi
19831 libltdl_cv_lib_dl_dlopen="yes"
19832 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19833else
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835/* end confdefs.h. */
19836#if HAVE_DLFCN_H
19837# include <dlfcn.h>
19838#endif
19839
19840int
19841main ()
19842{
19843dlopen(0, 0);
19844 ;
19845 return 0;
19846}
19847_ACEOF
19848if ac_fn_c_try_link "$LINENO"; then :
19849
19850$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19851
19852 libltdl_cv_func_dlopen="yes"
19853 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19854else
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19856$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019857if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019858 $as_echo_n "(cached) " >&6
19859else
19860 ac_check_lib_save_LIBS=$LIBS
19861LIBS="-lsvld $LIBS"
19862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863/* end confdefs.h. */
19864
19865/* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19868#ifdef __cplusplus
19869extern "C"
19870#endif
19871char dlopen ();
19872int
19873main ()
19874{
19875return dlopen ();
19876 ;
19877 return 0;
19878}
19879_ACEOF
19880if ac_fn_c_try_link "$LINENO"; then :
19881 ac_cv_lib_svld_dlopen=yes
19882else
19883 ac_cv_lib_svld_dlopen=no
19884fi
19885rm -f core conftest.err conftest.$ac_objext \
19886 conftest$ac_exeext conftest.$ac_ext
19887LIBS=$ac_check_lib_save_LIBS
19888fi
19889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19890$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019891if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019892
19893$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19894
19895 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19896 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19897fi
19898
19899fi
19900rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19902fi
19903
19904if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19905then
19906 lt_save_LIBS="$LIBS"
19907 LIBS="$LIBS $LIBADD_DLOPEN"
19908 for ac_func in dlerror
19909do :
19910 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019911if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019912 cat >>confdefs.h <<_ACEOF
19913#define HAVE_DLERROR 1
19914_ACEOF
19915
19916fi
19917done
19918
19919 LIBS="$lt_save_LIBS"
19920fi
19921
19922
19923LIBADD_SHL_LOAD=
19924ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019925if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019926
19927$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19928
19929 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19930else
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19932$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019933if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019934 $as_echo_n "(cached) " >&6
19935else
19936 ac_check_lib_save_LIBS=$LIBS
19937LIBS="-ldld $LIBS"
19938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939/* end confdefs.h. */
19940
19941/* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19944#ifdef __cplusplus
19945extern "C"
19946#endif
19947char shl_load ();
19948int
19949main ()
19950{
19951return shl_load ();
19952 ;
19953 return 0;
19954}
19955_ACEOF
19956if ac_fn_c_try_link "$LINENO"; then :
19957 ac_cv_lib_dld_shl_load=yes
19958else
19959 ac_cv_lib_dld_shl_load=no
19960fi
19961rm -f core conftest.err conftest.$ac_objext \
19962 conftest$ac_exeext conftest.$ac_ext
19963LIBS=$ac_check_lib_save_LIBS
19964fi
19965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19966$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019967if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019968
19969$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19970
19971 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19972 LIBADD_SHL_LOAD="-ldld"
19973fi
19974
19975fi
19976
19977
19978
19979case $host_os in
19980darwin[1567].*)
19981# We only want this for pre-Mac OS X 10.4.
19982 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019983if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019984
19985$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19986
19987 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19988fi
19989
19990 ;;
19991beos*)
19992 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19993 ;;
19994cygwin* | mingw* | os2* | pw32*)
19995 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19996"
cristyda16f162011-02-19 23:52:17 +000019997if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019998 ac_have_decl=1
19999else
20000 ac_have_decl=0
20001fi
20002
20003cat >>confdefs.h <<_ACEOF
20004#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20005_ACEOF
20006
20007 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20008 ;;
20009esac
20010
20011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20012$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020013if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020014 $as_echo_n "(cached) " >&6
20015else
20016 ac_check_lib_save_LIBS=$LIBS
20017LIBS="-ldld $LIBS"
20018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019/* end confdefs.h. */
20020
20021/* Override any GCC internal prototype to avoid an error.
20022 Use char because int might match the return type of a GCC
20023 builtin and then its argument prototype would still apply. */
20024#ifdef __cplusplus
20025extern "C"
20026#endif
20027char dld_link ();
20028int
20029main ()
20030{
20031return dld_link ();
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036if ac_fn_c_try_link "$LINENO"; then :
20037 ac_cv_lib_dld_dld_link=yes
20038else
20039 ac_cv_lib_dld_dld_link=no
20040fi
20041rm -f core conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20043LIBS=$ac_check_lib_save_LIBS
20044fi
20045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20046$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020047if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020048
20049$as_echo "#define HAVE_DLD 1" >>confdefs.h
20050
20051 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20052fi
20053
20054
20055
20056
20057LT_DLPREOPEN=
20058if test -n "$LT_DLLOADERS"
20059then
20060 for lt_loader in $LT_DLLOADERS; do
20061 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20062 done
20063
20064$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20065
20066fi
20067
20068
20069LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20070
20071
20072ac_ext=c
20073ac_cpp='$CPP $CPPFLAGS'
20074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20076ac_compiler_gnu=$ac_cv_c_compiler_gnu
20077
20078
20079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20080$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020081if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020082 $as_echo_n "(cached) " >&6
20083else
20084 lt_cv_sys_symbol_underscore=no
20085 cat > conftest.$ac_ext <<_LT_EOF
20086void nm_test_func(){}
20087int main(){nm_test_func;return 0;}
20088_LT_EOF
20089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20090 (eval $ac_compile) 2>&5
20091 ac_status=$?
20092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20093 test $ac_status = 0; }; then
20094 # Now try to grab the symbols.
20095 ac_nlist=conftest.nm
20096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20097 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20098 ac_status=$?
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; } && test -s "$ac_nlist"; then
20101 # See whether the symbols have a leading underscore.
20102 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20103 lt_cv_sys_symbol_underscore=yes
20104 else
20105 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20106 :
20107 else
20108 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20109 fi
20110 fi
20111 else
20112 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20113 fi
20114 else
20115 echo "configure: failed program was:" >&5
20116 cat conftest.c >&5
20117 fi
20118 rm -rf conftest*
20119
20120fi
20121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20122$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20123 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20124
20125
20126if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20127 if test x"$libltdl_cv_func_dlopen" = xyes ||
20128 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20130$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020131if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020132 $as_echo_n "(cached) " >&6
20133else
20134 libltdl_cv_need_uscore=unknown
20135 save_LIBS="$LIBS"
20136 LIBS="$LIBS $LIBADD_DLOPEN"
20137 if test "$cross_compiling" = yes; then :
20138 libltdl_cv_need_uscore=cross
20139else
20140 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20141 lt_status=$lt_dlunknown
20142 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020143#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020144#include "confdefs.h"
20145
20146#if HAVE_DLFCN_H
20147#include <dlfcn.h>
20148#endif
20149
20150#include <stdio.h>
20151
20152#ifdef RTLD_GLOBAL
20153# define LT_DLGLOBAL RTLD_GLOBAL
20154#else
20155# ifdef DL_GLOBAL
20156# define LT_DLGLOBAL DL_GLOBAL
20157# else
20158# define LT_DLGLOBAL 0
20159# endif
20160#endif
20161
20162/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20163 find out it does not work in some platform. */
20164#ifndef LT_DLLAZY_OR_NOW
20165# ifdef RTLD_LAZY
20166# define LT_DLLAZY_OR_NOW RTLD_LAZY
20167# else
20168# ifdef DL_LAZY
20169# define LT_DLLAZY_OR_NOW DL_LAZY
20170# else
20171# ifdef RTLD_NOW
20172# define LT_DLLAZY_OR_NOW RTLD_NOW
20173# else
20174# ifdef DL_NOW
20175# define LT_DLLAZY_OR_NOW DL_NOW
20176# else
20177# define LT_DLLAZY_OR_NOW 0
20178# endif
20179# endif
20180# endif
20181# endif
20182#endif
20183
cristy0c60a692010-11-04 01:09:47 +000020184/* When -fvisbility=hidden is used, assume the code has been annotated
20185 correspondingly for the symbols needed. */
20186#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020187int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020188#endif
20189
cristyda16f162011-02-19 23:52:17 +000020190int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020191int main ()
20192{
20193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20194 int status = $lt_dlunknown;
20195
20196 if (self)
20197 {
20198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020199 else
20200 {
20201 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20202 else puts (dlerror ());
20203 }
cristy73bd4a52010-10-05 11:24:23 +000020204 /* dlclose (self); */
20205 }
20206 else
20207 puts (dlerror ());
20208
20209 return status;
20210}
20211_LT_EOF
20212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20213 (eval $ac_link) 2>&5
20214 ac_status=$?
20215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20216 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20217 (./conftest; exit; ) >&5 2>/dev/null
20218 lt_status=$?
20219 case x$lt_status in
20220 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20221 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20222 x$lt_dlunknown|x*) ;;
20223 esac
20224 else :
20225 # compilation failed
20226
20227 fi
20228fi
20229rm -fr conftest*
20230
20231 LIBS="$save_LIBS"
20232
20233fi
20234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20235$as_echo "$libltdl_cv_need_uscore" >&6; }
20236 fi
20237fi
20238
20239if test x"$libltdl_cv_need_uscore" = xyes; then
20240
20241$as_echo "#define NEED_USCORE 1" >>confdefs.h
20242
20243fi
20244
20245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20246$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020247if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020248 $as_echo_n "(cached) " >&6
20249else
20250 # PORTME does your system automatically load deplibs for dlopen?
20251 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20252 # For now, we just catch OSes we know something about -- in the
20253 # future, we'll try test this programmatically.
20254 lt_cv_sys_dlopen_deplibs=unknown
20255 case $host_os in
20256 aix3*|aix4.1.*|aix4.2.*)
20257 # Unknown whether this is true for these versions of AIX, but
20258 # we want this `case' here to explicitly catch those versions.
20259 lt_cv_sys_dlopen_deplibs=unknown
20260 ;;
20261 aix[4-9]*)
20262 lt_cv_sys_dlopen_deplibs=yes
20263 ;;
20264 amigaos*)
20265 case $host_cpu in
20266 powerpc)
20267 lt_cv_sys_dlopen_deplibs=no
20268 ;;
20269 esac
20270 ;;
20271 darwin*)
20272 # Assuming the user has installed a libdl from somewhere, this is true
20273 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20274 lt_cv_sys_dlopen_deplibs=yes
20275 ;;
20276 freebsd* | dragonfly*)
20277 lt_cv_sys_dlopen_deplibs=yes
20278 ;;
cristy0c60a692010-11-04 01:09:47 +000020279 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020280 # GNU and its variants, using gnu ld.so (Glibc)
20281 lt_cv_sys_dlopen_deplibs=yes
20282 ;;
20283 hpux10*|hpux11*)
20284 lt_cv_sys_dlopen_deplibs=yes
20285 ;;
20286 interix*)
20287 lt_cv_sys_dlopen_deplibs=yes
20288 ;;
20289 irix[12345]*|irix6.[01]*)
20290 # Catch all versions of IRIX before 6.2, and indicate that we don't
20291 # know how it worked for any of those versions.
20292 lt_cv_sys_dlopen_deplibs=unknown
20293 ;;
20294 irix*)
20295 # The case above catches anything before 6.2, and it's known that
20296 # at 6.2 and later dlopen does load deplibs.
20297 lt_cv_sys_dlopen_deplibs=yes
20298 ;;
20299 netbsd*)
20300 lt_cv_sys_dlopen_deplibs=yes
20301 ;;
20302 openbsd*)
20303 lt_cv_sys_dlopen_deplibs=yes
20304 ;;
20305 osf[1234]*)
20306 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20307 # it did *not* use an RPATH in a shared library to find objects the
20308 # library depends on, so we explicitly say `no'.
20309 lt_cv_sys_dlopen_deplibs=no
20310 ;;
20311 osf5.0|osf5.0a|osf5.1)
20312 # dlopen *does* load deplibs and with the right loader patch applied
20313 # it even uses RPATH in a shared library to search for shared objects
20314 # that the library depends on, but there's no easy way to know if that
20315 # patch is installed. Since this is the case, all we can really
20316 # say is unknown -- it depends on the patch being installed. If
20317 # it is, this changes to `yes'. Without it, it would be `no'.
20318 lt_cv_sys_dlopen_deplibs=unknown
20319 ;;
20320 osf*)
20321 # the two cases above should catch all versions of osf <= 5.1. Read
20322 # the comments above for what we know about them.
20323 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20324 # is used to find them so we can finally say `yes'.
20325 lt_cv_sys_dlopen_deplibs=yes
20326 ;;
20327 qnx*)
20328 lt_cv_sys_dlopen_deplibs=yes
20329 ;;
20330 solaris*)
20331 lt_cv_sys_dlopen_deplibs=yes
20332 ;;
20333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20334 libltdl_cv_sys_dlopen_deplibs=yes
20335 ;;
20336 esac
20337
20338fi
20339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20340$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20341if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20342
20343$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20344
20345fi
20346
20347:
20348
20349for ac_header in argz.h
20350do :
20351 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20352"
cristyda16f162011-02-19 23:52:17 +000020353if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020354 cat >>confdefs.h <<_ACEOF
20355#define HAVE_ARGZ_H 1
20356_ACEOF
20357
20358fi
20359
20360done
20361
20362
20363ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20364# include <argz.h>
20365#endif
20366"
cristyda16f162011-02-19 23:52:17 +000020367if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020368
20369cat >>confdefs.h <<_ACEOF
20370#define HAVE_ERROR_T 1
20371_ACEOF
20372
20373
20374else
20375
20376$as_echo "#define error_t int" >>confdefs.h
20377
20378
20379$as_echo "#define __error_t_defined 1" >>confdefs.h
20380
20381fi
20382
20383
20384ARGZ_H=
20385for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20386 argz_next argz_stringify
20387do :
20388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20389ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020390if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020391 cat >>confdefs.h <<_ACEOF
20392#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20393_ACEOF
20394
20395else
20396 ARGZ_H=argz.h;
20397
20398 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20399
20400fi
20401done
20402
20403
20404if test -z "$ARGZ_H"; then :
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20406$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020407if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020408 $as_echo_n "(cached) " >&6
20409else
20410 case $host_os in #(
20411 *cygwin*)
20412 lt_cv_sys_argz_works=no
20413 if test "$cross_compiling" != no; then
20414 lt_cv_sys_argz_works="guessing no"
20415 else
20416 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20417 save_IFS=$IFS
20418 IFS=-.
20419 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20420 IFS=$save_IFS
20421 lt_os_major=${2-0}
20422 lt_os_minor=${3-0}
20423 lt_os_micro=${4-0}
20424 if test "$lt_os_major" -gt 1 \
20425 || { test "$lt_os_major" -eq 1 \
20426 && { test "$lt_os_minor" -gt 5 \
20427 || { test "$lt_os_minor" -eq 5 \
20428 && test "$lt_os_micro" -gt 24; }; }; }; then
20429 lt_cv_sys_argz_works=yes
20430 fi
20431 fi
20432 ;; #(
20433 *) lt_cv_sys_argz_works=yes ;;
20434 esac
20435fi
20436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20437$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020438 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020439
20440$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20441
20442else
20443 ARGZ_H=argz.h
20444
20445
20446 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20447
20448fi
20449fi
20450
20451
20452
20453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20454$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020455if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020456 $as_echo_n "(cached) " >&6
20457else
20458 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20459 libltdl_cv_preloaded_symbols=yes
20460 else
20461 libltdl_cv_preloaded_symbols=no
20462 fi
20463
20464fi
20465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20466$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20467if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20468
20469$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20470
20471fi
20472
20473# Set options
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485# Check whether --with-included_ltdl was given.
20486if test "${with_included_ltdl+set}" = set; then :
20487 withval=$with_included_ltdl;
20488fi
20489
20490
20491if test "x$with_included_ltdl" != xyes; then
20492 # We are not being forced to use the included libltdl sources, so
20493 # decide whether there is a useful installed version we can use.
20494 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20495
20496"
cristyda16f162011-02-19 23:52:17 +000020497if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020498 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20499 #include <ltdl.h>
20500"
cristyda16f162011-02-19 23:52:17 +000020501if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20503$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020504if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020505 $as_echo_n "(cached) " >&6
20506else
20507 ac_check_lib_save_LIBS=$LIBS
20508LIBS="-lltdl $LIBS"
20509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510/* end confdefs.h. */
20511
20512/* Override any GCC internal prototype to avoid an error.
20513 Use char because int might match the return type of a GCC
20514 builtin and then its argument prototype would still apply. */
20515#ifdef __cplusplus
20516extern "C"
20517#endif
20518char lt_dladvise_preload ();
20519int
20520main ()
20521{
20522return lt_dladvise_preload ();
20523 ;
20524 return 0;
20525}
20526_ACEOF
20527if ac_fn_c_try_link "$LINENO"; then :
20528 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20529else
20530 ac_cv_lib_ltdl_lt_dladvise_preload=no
20531fi
20532rm -f core conftest.err conftest.$ac_objext \
20533 conftest$ac_exeext conftest.$ac_ext
20534LIBS=$ac_check_lib_save_LIBS
20535fi
20536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20537$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020538if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020539 with_included_ltdl=no
20540else
20541 with_included_ltdl=yes
20542fi
20543
20544else
20545 with_included_ltdl=yes
20546fi
20547
20548else
20549 with_included_ltdl=yes
20550fi
20551
20552
20553fi
20554
20555
20556
20557
20558# Check whether --with-ltdl_include was given.
20559if test "${with_ltdl_include+set}" = set; then :
20560 withval=$with_ltdl_include;
20561fi
20562
20563
20564if test -n "$with_ltdl_include"; then
20565 if test -f "$with_ltdl_include/ltdl.h"; then :
20566 else
cristy98dddb52010-11-04 00:30:15 +000020567 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020568 fi
20569else
20570 with_ltdl_include=no
20571fi
20572
20573
20574# Check whether --with-ltdl_lib was given.
20575if test "${with_ltdl_lib+set}" = set; then :
20576 withval=$with_ltdl_lib;
20577fi
20578
20579
20580if test -n "$with_ltdl_lib"; then
20581 if test -f "$with_ltdl_lib/libltdl.la"; then :
20582 else
cristy98dddb52010-11-04 00:30:15 +000020583 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020584 fi
20585else
20586 with_ltdl_lib=no
20587fi
20588
20589case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20590 ,yes,no,no,)
20591 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020592 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020593 "") enable_ltdl_convenience=yes
20594 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20595esac
20596LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20597LTDLDEPS=$LIBLTDL
20598LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20599
20600
20601
20602
20603
20604# For backwards non-gettext consistent compatibility...
20605INCLTDL="$LTDLINCL"
20606
20607
20608 ;;
20609 ,no,no,no,)
20610 # If the included ltdl is not to be used, then use the
20611 # preinstalled libltdl we found.
20612
20613$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20614
20615 LIBLTDL=-lltdl
20616 LTDLDEPS=
20617 LTDLINCL=
20618 ;;
20619 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020620 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020621 ;;
20622 *) with_included_ltdl=no
20623 LIBLTDL="-L$with_ltdl_lib -lltdl"
20624 LTDLDEPS=
20625 LTDLINCL="-I$with_ltdl_include"
20626 ;;
20627esac
20628INCLTDL="$LTDLINCL"
20629
20630# Report our decision...
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20632$as_echo_n "checking where to find libltdl headers... " >&6; }
20633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20634$as_echo "$LTDLINCL" >&6; }
20635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20636$as_echo_n "checking where to find libltdl library... " >&6; }
20637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20638$as_echo "$LIBLTDL" >&6; }
20639
20640
20641
20642# Check whether --enable-ltdl-install was given.
20643if test "${enable_ltdl_install+set}" = set; then :
20644 enableval=$enable_ltdl_install;
20645fi
20646
20647
20648case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20649 *yes*) ;;
20650 *) enable_ltdl_convenience=yes ;;
20651esac
20652
20653 if test x"${enable_ltdl_install-no}" != xno; then
20654 INSTALL_LTDL_TRUE=
20655 INSTALL_LTDL_FALSE='#'
20656else
20657 INSTALL_LTDL_TRUE='#'
20658 INSTALL_LTDL_FALSE=
20659fi
20660
20661 if test x"${enable_ltdl_convenience-no}" != xno; then
20662 CONVENIENCE_LTDL_TRUE=
20663 CONVENIENCE_LTDL_FALSE='#'
20664else
20665 CONVENIENCE_LTDL_TRUE='#'
20666 CONVENIENCE_LTDL_FALSE=
20667fi
20668
20669
20670
20671
20672
20673
cristy73bd4a52010-10-05 11:24:23 +000020674# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20675# the user used. This is so that ltdl.h can pick up the parent projects
20676# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20677# definitions required by ltdl.c.
20678# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20679
20680
20681
20682for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20683do :
20684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20685ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20686"
cristy98dddb52010-11-04 00:30:15 +000020687if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020688 cat >>confdefs.h <<_ACEOF
20689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20690_ACEOF
20691
20692fi
20693
20694done
20695
20696
20697for ac_func in closedir opendir readdir
20698do :
20699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020701if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020702 cat >>confdefs.h <<_ACEOF
20703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20704_ACEOF
20705
20706else
20707
20708
20709 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20710
20711fi
20712done
20713
20714for ac_func in strlcat strlcpy
20715do :
20716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020718if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020719 cat >>confdefs.h <<_ACEOF
20720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20721_ACEOF
20722
20723else
20724
20725
20726 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20727
20728fi
20729done
20730
20731
20732
20733cat >>confdefs.h <<_ACEOF
20734#define LT_LIBEXT "$libext"
20735_ACEOF
20736
20737
cristyda16f162011-02-19 23:52:17 +000020738name=
20739eval "lt_libprefix=\"$libname_spec\""
20740
20741cat >>confdefs.h <<_ACEOF
20742#define LT_LIBPREFIX "$lt_libprefix"
20743_ACEOF
20744
20745
cristy73bd4a52010-10-05 11:24:23 +000020746name=ltdl
cristyda16f162011-02-19 23:52:17 +000020747eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020748
20749
20750
20751
20752
20753
20754
20755
20756# Only expand once:
20757
20758
cristy3ed852e2009-09-05 21:47:34 +000020759
20760# Check to see if building shared libraries
20761libtool_build_shared_libs='no'
20762if test "$enable_shared" = 'yes'; then
20763 libtool_build_shared_libs='yes'
20764fi
20765
20766# Check to see if building static libraries
20767libtool_build_static_libs='no'
20768if test "$enable_static" = 'yes'; then
20769 libtool_build_static_libs='yes'
20770fi
20771
cristy73bd4a52010-10-05 11:24:23 +000020772 if test "${libtool_build_shared_libs}" = 'yes'; then
20773 WITH_SHARED_LIBS_TRUE=
20774 WITH_SHARED_LIBS_FALSE='#'
20775else
20776 WITH_SHARED_LIBS_TRUE='#'
20777 WITH_SHARED_LIBS_FALSE=
20778fi
20779
cristy3ed852e2009-09-05 21:47:34 +000020780#
20781# Enable support for building loadable modules
20782#
20783
20784# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020785if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020786 withval=$with_modules; with_modules=$withval
20787else
cristy5a1cefd2010-01-06 20:42:35 +000020788 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020789fi
20790
20791
20792# Only allow building loadable modules if we are building shared libraries
20793if test "$with_modules" != 'no' ; then
20794 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020795 { $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 +000020796$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20797 with_modules='no'
20798 fi
20799fi
20800if test "$with_modules" != 'no'; then
20801
cristy8b350f62009-11-15 23:12:43 +000020802$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020803
20804fi
cristy73bd4a52010-10-05 11:24:23 +000020805 if test "$with_modules" != 'no'; then
20806 WITH_MODULES_TRUE=
20807 WITH_MODULES_FALSE='#'
20808else
20809 WITH_MODULES_TRUE='#'
20810 WITH_MODULES_FALSE=
20811fi
20812
cristy3ed852e2009-09-05 21:47:34 +000020813
20814# Enable building/use of libltdl if we are building shared libraries regardless
20815# of whether modules are built or not.
20816with_ltdl='no'
20817if test "$libtool_build_shared_libs" != 'no'; then
20818 with_ltdl='yes'
20819fi
20820
cristy73bd4a52010-10-05 11:24:23 +000020821 if test "$with_ltdl" != 'no'; then
20822 WITH_LTDL_TRUE=
20823 WITH_LTDL_FALSE='#'
20824else
20825 WITH_LTDL_TRUE='#'
20826 WITH_LTDL_FALSE=
20827fi
20828
cristy3ed852e2009-09-05 21:47:34 +000020829if test "$with_ltdl" != 'no'; then
20830
cristy8b350f62009-11-15 23:12:43 +000020831$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020832
20833
20834 # Set DLLDFLAGS
20835 if test X"$enable_shared" = Xyes; then
20836 DLLDFLAGS=-export-dynamic
20837
20838 fi
20839fi
20840
20841# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020842# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020843# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020844if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020845 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20846else
20847 enable_delegate_build='no'
20848fi
20849
20850
20851# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020852if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020853 enableval=$enable_deprecated; enable_deprecated=$enableval
20854else
20855 enable_deprecated='no'
20856fi
20857
20858
20859if test "$enable_deprecated" = 'yes'; then
20860
cristy8b350f62009-11-15 23:12:43 +000020861$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020862
20863else
20864 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20865fi
20866
20867# Build a version of ImageMagick which operates uninstalled.
20868# Used to build distributions located via MAGICK_HOME / executable path
20869# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020870if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020871 enableval=$enable_installed; enable_installed=$enableval
20872else
20873 enable_installed='yes'
20874fi
20875
20876
20877if test "$enable_installed" = 'yes'; then
20878
cristy8b350f62009-11-15 23:12:43 +000020879$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020880
20881else
20882 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20883fi
20884
20885# Permit enciphering and deciphering image pixels.
20886# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020887if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020888 enableval=$enable_cipher; enable_cipher=$enableval
20889else
20890 enable_cipher='yes'
20891fi
20892
20893
20894if test "$enable_cipher" = 'yes'; then
20895
cristy8b350f62009-11-15 23:12:43 +000020896$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020897
20898fi
20899
20900# Build an embeddable version of ImageMagick.
20901# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020902if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020903 enableval=$enable_embeddable; enable_embeddable=$enableval
20904else
20905 enable_embeddable='no'
20906fi
20907
20908
20909if test "$enable_embeddable" = 'yes'; then
20910
cristy8b350f62009-11-15 23:12:43 +000020911$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020912
20913fi
20914
20915# Build a high dynamic range version of ImageMagick.
20916# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020917if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020918 enableval=$enable_hdri; enable_hdri=$enableval
20919else
20920 enable_hdri='no'
20921fi
20922
20923
20924MAGICK_HDRI=""
20925if test "$enable_hdri" = 'yes'; then
20926 MAGICK_HDRI="HDRI"
20927
cristy8b350f62009-11-15 23:12:43 +000020928$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020929
cristyfd9dcd42010-08-08 18:07:02 +000020930 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020931fi
20932
cristy3ed852e2009-09-05 21:47:34 +000020933# Build a version of ImageMagick with assert statements.
20934# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020935if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020936 enableval=$enable_assert; enable_assert=$enableval
20937else
20938 enable_assert='yes'
20939fi
20940
20941
20942if test "$enable_assert" = 'no'; then
20943
cristy8b350f62009-11-15 23:12:43 +000020944$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020945
20946fi
20947
20948# Add configure option --enable-maintainer-mode which enables dependency
20949# checking and generation useful to package maintainers. This is made an
20950# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020951
20952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20953$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20954 # Check whether --enable-maintainer-mode was given.
20955if test "${enable_maintainer_mode+set}" = set; then :
20956 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20957else
20958 USE_MAINTAINER_MODE=no
20959fi
20960
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20962$as_echo "$USE_MAINTAINER_MODE" >&6; }
20963 if test $USE_MAINTAINER_MODE = yes; then
20964 MAINTAINER_MODE_TRUE=
20965 MAINTAINER_MODE_FALSE='#'
20966else
20967 MAINTAINER_MODE_TRUE='#'
20968 MAINTAINER_MODE_FALSE=
20969fi
20970
20971 MAINT=$MAINTAINER_MODE_TRUE
20972
20973
cristy3ed852e2009-09-05 21:47:34 +000020974
20975
20976# Enable ccmalloc memory debugging support
20977# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020978if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020979 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20980else
20981 enable_ccmalloc='no'
20982fi
20983
20984
20985# Enable Electric Fence memory debugging support
20986# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020987if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020988 enableval=$enable_efence; enable_efence=$enableval
20989else
20990 enable_efence='no'
20991fi
20992
20993
20994# Enable prof-based profiling support
20995# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020996if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020997 enableval=$enable_prof; enable_prof=$enableval
20998else
20999 enable_prof='no'
21000fi
21001
21002
21003# Enable gprof-based profiling support
21004# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021005if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021006 enableval=$enable_gprof; enable_gprof=$enableval
21007else
21008 enable_gprof='no'
21009fi
21010
21011
21012# Enable gcov-based profiling support
21013# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021014if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021015 enableval=$enable_gcov; enable_gcov=$enableval
21016else
21017 enable_gcov='no'
21018fi
21019
21020
21021enable_profiling='no'
21022if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21023 enable_profiling='yes'
21024 if test "$libtool_build_shared_libs" = 'yes'; then
21025 echo "Warning: Can not profile code using shared libraries"
21026 fi
21027fi
21028
21029# Magick API method prefix
21030
21031# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021032if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021033 withval=$with_method_prefix; with_method_prefix=$enableval
21034else
21035 with_method_prefix=''
21036fi
21037
21038
21039if test "$with_method_prefix" != ''; then
21040
21041cat >>confdefs.h <<_ACEOF
21042#define NAMESPACE_PREFIX $with_method_prefix
21043_ACEOF
21044
21045fi
21046
21047# Number of bits in a Quantum
21048
21049# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021050if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021051 withval=$with_quantum_depth; with_quantum_depth=$withval
21052else
21053 with_quantum_depth=16
21054fi
21055
21056
21057if test "$with_quantum_depth" != '8'; then
21058 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21059fi
21060
21061case "${with_quantum_depth}" in
21062 8 ) ;;
21063 16 ) ;;
21064 32 ) ;;
21065 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021066 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021067esac
cristycdae12a2010-09-19 02:24:31 +000021068if test "$enable_hdri" = 'yes'; then
21069 with_quantum_depth=16
21070fi
cristy3ed852e2009-09-05 21:47:34 +000021071QUANTUM_DEPTH="$with_quantum_depth"
21072
21073cat >>confdefs.h <<_ACEOF
21074#define QUANTUM_DEPTH $QUANTUM_DEPTH
21075_ACEOF
21076
21077
21078# Set pixel cache threshold
21079
21080# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021081if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021082 withval=$with_cache; with_cache=$withval
21083else
21084 with_cache=''
21085fi
21086
21087
21088if test "$with_cache" != ''; then
21089
21090cat >>confdefs.h <<_ACEOF
21091#define PixelCacheThreshold $with_cache
21092_ACEOF
21093
21094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21095fi
21096
21097# Disable/Enable support for full delegate paths
21098
21099# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021100if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021101 withval=$with_frozenpaths; with_frozenpaths=$withval
21102else
21103 with_frozenpaths='no'
21104fi
21105
21106
21107# Enable build/install of Magick++
21108
21109# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021110if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021111 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21112else
21113 with_magick_plus_plus='yes'
21114fi
21115
21116
21117# Disable build/install of PerlMagick.
21118
21119# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 withval=$with_perl; with_perl=$withval
21122else
cristyb5f4e2f2010-04-25 00:49:11 +000021123 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021124fi
21125
21126
21127# Options to pass when configuring PerlMagick
21128
21129# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021130if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021131 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021132fi
21133
21134
cristy3ed852e2009-09-05 21:47:34 +000021135
21136# Enable umem, object-caching memory allocation library.
21137
21138# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021139if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021140 withval=$with_umem; with_umem=$withval
21141else
21142 with_umem='no'
21143fi
21144
21145if test "$with_umem" != 'yes' ; then
21146 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21147fi
21148
21149#
21150# Specify path to shared libstdc++ if not in normal location
21151#
21152
21153# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021154if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021155 withval=$with_libstdc; with_libstdc=$withval
21156else
21157 with_libstdc=''
21158fi
21159
21160
21161if test "$with_libstdc" != ''; then
21162 if test -d "$with_libstdc"; then
21163 LIBSTDCLDFLAGS="-L$with_libstdc"
21164 fi
21165fi
21166
21167
21168# Does gcc required -traditional?
21169if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021171$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021172if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021173 $as_echo_n "(cached) " >&6
21174else
21175 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021177/* end confdefs.h. */
21178#include <sgtty.h>
21179Autoconf TIOCGETP
21180_ACEOF
21181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021182 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021183 ac_cv_prog_gcc_traditional=yes
21184else
21185 ac_cv_prog_gcc_traditional=no
21186fi
21187rm -f conftest*
21188
21189
21190 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021192/* end confdefs.h. */
21193#include <termio.h>
21194Autoconf TCGETA
21195_ACEOF
21196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021197 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021198 ac_cv_prog_gcc_traditional=yes
21199fi
21200rm -f conftest*
21201
21202 fi
21203fi
cristy8b350f62009-11-15 23:12:43 +000021204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021205$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21206 if test $ac_cv_prog_gcc_traditional = yes; then
21207 CC="$CC -traditional"
21208 fi
21209fi
21210
21211
21212########
21213#
21214# Set defines required to build DLLs and modules using MinGW
21215#
21216########
21217# These options are set for multi-thread DLL module build
21218# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21219# module: _DLL
21220# executable/Magick++: _DLL _MAGICKMOD_
21221MODULE_EXTRA_CPPFLAGS=''
21222LIBRARY_EXTRA_CPPFLAGS=''
21223if test "${native_win32_build}" = 'yes'; then
21224 if test "${libtool_build_shared_libs}" = 'yes'; then
21225 CPPFLAGS="$CPPFLAGS -D_DLL"
21226 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21227 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21228 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21229 if test "$with_modules" = 'yes'; then
21230 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21231 else
21232 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21233 fi
21234 else
21235 CPPFLAGS="$CPPFLAGS -D_LIB"
21236 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21237 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21238 fi
21239 if test "$with_threads" = 'yes'; then
21240 CPPFLAGS="$CPPFLAGS -D_MT"
21241 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21242 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21243 fi
21244fi
21245
21246
21247
21248# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021250$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021251if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021252 $as_echo_n "(cached) " >&6
21253else
cristy8b350f62009-11-15 23:12:43 +000021254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021255/* end confdefs.h. */
21256#include <stdlib.h>
21257#include <stdarg.h>
21258#include <string.h>
21259#include <float.h>
21260
21261int
21262main ()
21263{
21264
21265 ;
21266 return 0;
21267}
21268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021269if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021270 ac_cv_header_stdc=yes
21271else
cristy8b350f62009-11-15 23:12:43 +000021272 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021273fi
cristy3ed852e2009-09-05 21:47:34 +000021274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275
21276if test $ac_cv_header_stdc = yes; then
21277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021279/* end confdefs.h. */
21280#include <string.h>
21281
21282_ACEOF
21283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021284 $EGREP "memchr" >/dev/null 2>&1; then :
21285
cristy3ed852e2009-09-05 21:47:34 +000021286else
21287 ac_cv_header_stdc=no
21288fi
21289rm -f conftest*
21290
21291fi
21292
21293if test $ac_cv_header_stdc = yes; then
21294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021296/* end confdefs.h. */
21297#include <stdlib.h>
21298
21299_ACEOF
21300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021301 $EGREP "free" >/dev/null 2>&1; then :
21302
cristy3ed852e2009-09-05 21:47:34 +000021303else
21304 ac_cv_header_stdc=no
21305fi
21306rm -f conftest*
21307
21308fi
21309
21310if test $ac_cv_header_stdc = yes; then
21311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021312 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021313 :
21314else
cristy8b350f62009-11-15 23:12:43 +000021315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021316/* end confdefs.h. */
21317#include <ctype.h>
21318#include <stdlib.h>
21319#if ((' ' & 0x0FF) == 0x020)
21320# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21321# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21322#else
21323# define ISLOWER(c) \
21324 (('a' <= (c) && (c) <= 'i') \
21325 || ('j' <= (c) && (c) <= 'r') \
21326 || ('s' <= (c) && (c) <= 'z'))
21327# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21328#endif
21329
21330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21331int
21332main ()
21333{
21334 int i;
21335 for (i = 0; i < 256; i++)
21336 if (XOR (islower (i), ISLOWER (i))
21337 || toupper (i) != TOUPPER (i))
21338 return 2;
21339 return 0;
21340}
21341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021342if ac_fn_c_try_run "$LINENO"; then :
21343
cristy3ed852e2009-09-05 21:47:34 +000021344else
cristy8b350f62009-11-15 23:12:43 +000021345 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021346fi
cristy8b350f62009-11-15 23:12:43 +000021347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21348 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021349fi
21350
cristy3ed852e2009-09-05 21:47:34 +000021351fi
21352fi
cristy8b350f62009-11-15 23:12:43 +000021353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021354$as_echo "$ac_cv_header_stdc" >&6; }
21355if test $ac_cv_header_stdc = yes; then
21356
cristy8b350f62009-11-15 23:12:43 +000021357$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021358
21359fi
21360
21361if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021362 { $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 +000021363 header files. Compilation cannot proceed. Please install the ANSI C
21364 headers and rerun this script." >&5
21365$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21366 header files. Compilation cannot proceed. Please install the ANSI C
21367 headers and rerun this script." >&2;};
21368fi
cristya0b81c32010-01-22 02:54:33 +000021369
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21371$as_echo_n "checking whether to enable assertions... " >&6; }
21372 # Check whether --enable-assert was given.
21373if test "${enable_assert+set}" = set; then :
21374 enableval=$enable_assert; ac_enable_assert=$enableval
21375 if test "x$enableval" = xno; then :
21376
21377$as_echo "#define NDEBUG 1" >>confdefs.h
21378
21379elif test "x$enableval" != xyes; then :
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21381$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21382 ac_enable_assert=yes
21383fi
21384else
21385 ac_enable_assert=yes
21386fi
21387
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21389$as_echo "$ac_enable_assert" >&6; }
21390
cristy3ed852e2009-09-05 21:47:34 +000021391ac_header_dirent=no
21392for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21393 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021395$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021396if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021397 $as_echo_n "(cached) " >&6
21398else
cristy8b350f62009-11-15 23:12:43 +000021399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021400/* end confdefs.h. */
21401#include <sys/types.h>
21402#include <$ac_hdr>
21403
21404int
21405main ()
21406{
21407if ((DIR *) 0)
21408return 0;
21409 ;
21410 return 0;
21411}
21412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021413if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021414 eval "$as_ac_Header=yes"
21415else
cristy8b350f62009-11-15 23:12:43 +000021416 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021417fi
cristy3ed852e2009-09-05 21:47:34 +000021418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419fi
cristy8b350f62009-11-15 23:12:43 +000021420eval ac_res=\$$as_ac_Header
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021422$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021423if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 cat >>confdefs.h <<_ACEOF
21425#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21426_ACEOF
21427
21428ac_header_dirent=$ac_hdr; break
21429fi
21430
21431done
21432# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21433if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021435$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021436if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021437 $as_echo_n "(cached) " >&6
21438else
21439 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021441/* end confdefs.h. */
21442
21443/* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21446#ifdef __cplusplus
21447extern "C"
21448#endif
21449char opendir ();
21450int
21451main ()
21452{
21453return opendir ();
21454 ;
21455 return 0;
21456}
21457_ACEOF
21458for ac_lib in '' dir; do
21459 if test -z "$ac_lib"; then
21460 ac_res="none required"
21461 else
21462 ac_res=-l$ac_lib
21463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21464 fi
cristy8b350f62009-11-15 23:12:43 +000021465 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021466 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021467fi
cristy8b350f62009-11-15 23:12:43 +000021468rm -f core conftest.err conftest.$ac_objext \
21469 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021470 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 break
21472fi
21473done
cristyda16f162011-02-19 23:52:17 +000021474if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021475
cristy3ed852e2009-09-05 21:47:34 +000021476else
21477 ac_cv_search_opendir=no
21478fi
21479rm conftest.$ac_ext
21480LIBS=$ac_func_search_save_LIBS
21481fi
cristy8b350f62009-11-15 23:12:43 +000021482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021483$as_echo "$ac_cv_search_opendir" >&6; }
21484ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021485if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21487
21488fi
21489
21490else
cristy8b350f62009-11-15 23:12:43 +000021491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021492$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021493if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021494 $as_echo_n "(cached) " >&6
21495else
21496 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021498/* end confdefs.h. */
21499
21500/* Override any GCC internal prototype to avoid an error.
21501 Use char because int might match the return type of a GCC
21502 builtin and then its argument prototype would still apply. */
21503#ifdef __cplusplus
21504extern "C"
21505#endif
21506char opendir ();
21507int
21508main ()
21509{
21510return opendir ();
21511 ;
21512 return 0;
21513}
21514_ACEOF
21515for ac_lib in '' x; do
21516 if test -z "$ac_lib"; then
21517 ac_res="none required"
21518 else
21519 ac_res=-l$ac_lib
21520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21521 fi
cristy8b350f62009-11-15 23:12:43 +000021522 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021523 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021524fi
cristy8b350f62009-11-15 23:12:43 +000021525rm -f core conftest.err conftest.$ac_objext \
21526 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021527 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021528 break
21529fi
21530done
cristyda16f162011-02-19 23:52:17 +000021531if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021532
cristy3ed852e2009-09-05 21:47:34 +000021533else
21534 ac_cv_search_opendir=no
21535fi
21536rm conftest.$ac_ext
21537LIBS=$ac_func_search_save_LIBS
21538fi
cristy8b350f62009-11-15 23:12:43 +000021539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021540$as_echo "$ac_cv_search_opendir" >&6; }
21541ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021542if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21544
21545fi
21546
21547fi
21548
21549
21550# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021551for 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 +000021552do :
21553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021556 cat >>confdefs.h <<_ACEOF
21557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21558_ACEOF
21559
21560fi
21561
21562done
21563
21564
21565########
21566#
21567# Checks for typedefs, structures, and compiler characteristics.
21568#
21569########
21570
cristy8b350f62009-11-15 23:12:43 +000021571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021572$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021573if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021574 $as_echo_n "(cached) " >&6
21575else
cristy8b350f62009-11-15 23:12:43 +000021576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021577/* end confdefs.h. */
21578
21579#include <stdbool.h>
21580#ifndef bool
21581 "error: bool is not defined"
21582#endif
21583#ifndef false
21584 "error: false is not defined"
21585#endif
21586#if false
21587 "error: false is not 0"
21588#endif
21589#ifndef true
21590 "error: true is not defined"
21591#endif
21592#if true != 1
21593 "error: true is not 1"
21594#endif
21595#ifndef __bool_true_false_are_defined
21596 "error: __bool_true_false_are_defined is not defined"
21597#endif
21598
21599 struct s { _Bool s: 1; _Bool t; } s;
21600
21601 char a[true == 1 ? 1 : -1];
21602 char b[false == 0 ? 1 : -1];
21603 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21604 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021605 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021606 char f[(_Bool) 0.0 == false ? 1 : -1];
21607 char g[true];
21608 char h[sizeof (_Bool)];
21609 char i[sizeof s.t];
21610 enum { j = false, k = true, l = false * true, m = true * 256 };
21611 /* The following fails for
21612 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21613 _Bool n[m];
21614 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21615 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021616 /* Catch a bug in an HP-UX C compiler. See
21617 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21618 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21619 */
21620 _Bool q = true;
21621 _Bool *pq = &q;
21622
21623int
21624main ()
21625{
21626
cristyda16f162011-02-19 23:52:17 +000021627 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021628 *pq |= q;
21629 *pq |= ! q;
21630 /* Refer to every declared value, to avoid compiler optimizations. */
21631 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21632 + !m + !n + !o + !p + !q + !pq);
21633
21634 ;
21635 return 0;
21636}
21637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021638if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021639 ac_cv_header_stdbool_h=yes
21640else
cristy8b350f62009-11-15 23:12:43 +000021641 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021642fi
cristy3ed852e2009-09-05 21:47:34 +000021643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644fi
cristy8b350f62009-11-15 23:12:43 +000021645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021646$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021647ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021648if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021649
21650cat >>confdefs.h <<_ACEOF
21651#define HAVE__BOOL 1
21652_ACEOF
21653
21654
21655fi
21656
21657if test $ac_cv_header_stdbool_h = yes; then
21658
cristy8b350f62009-11-15 23:12:43 +000021659$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021660
21661fi
21662
cristy8b350f62009-11-15 23:12:43 +000021663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021665if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021666 $as_echo_n "(cached) " >&6
21667else
cristy8b350f62009-11-15 23:12:43 +000021668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021669/* end confdefs.h. */
21670
21671int
21672main ()
21673{
21674
21675volatile int x;
21676int * volatile y = (int *) 0;
21677return !x && !y;
21678 ;
21679 return 0;
21680}
21681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021682if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021683 ac_cv_c_volatile=yes
21684else
cristy8b350f62009-11-15 23:12:43 +000021685 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021686fi
cristy3ed852e2009-09-05 21:47:34 +000021687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688fi
cristy8b350f62009-11-15 23:12:43 +000021689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021690$as_echo "$ac_cv_c_volatile" >&6; }
21691if test $ac_cv_c_volatile = no; then
21692
cristy8b350f62009-11-15 23:12:43 +000021693$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021694
21695fi
21696
cristy8b350f62009-11-15 23:12:43 +000021697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021698$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021699if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021700 $as_echo_n "(cached) " >&6
21701else
cristy8b350f62009-11-15 23:12:43 +000021702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021703/* end confdefs.h. */
21704#define x(y) #y
21705
21706char *s = x(teststring);
21707_ACEOF
21708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021709 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021710 ac_cv_c_stringize=no
21711else
21712 ac_cv_c_stringize=yes
21713fi
21714rm -f conftest*
21715
21716fi
cristy8b350f62009-11-15 23:12:43 +000021717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021718$as_echo "$ac_cv_c_stringize" >&6; }
21719if test $ac_cv_c_stringize = yes; then
21720
cristy8b350f62009-11-15 23:12:43 +000021721$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021722
21723fi
21724
cristy8b350f62009-11-15 23:12:43 +000021725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021726$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021727if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021728 $as_echo_n "(cached) " >&6
21729else
cristy8b350f62009-11-15 23:12:43 +000021730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021731/* end confdefs.h. */
21732#include <sys/types.h>
21733#include <sys/stat.h>
21734
21735#if defined S_ISBLK && defined S_IFDIR
21736extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21737#endif
21738
21739#if defined S_ISBLK && defined S_IFCHR
21740extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21741#endif
21742
21743#if defined S_ISLNK && defined S_IFREG
21744extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21745#endif
21746
21747#if defined S_ISSOCK && defined S_IFREG
21748extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21749#endif
21750
21751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021752if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021753 ac_cv_header_stat_broken=no
21754else
cristy8b350f62009-11-15 23:12:43 +000021755 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021756fi
cristy3ed852e2009-09-05 21:47:34 +000021757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21758fi
cristy8b350f62009-11-15 23:12:43 +000021759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021760$as_echo "$ac_cv_header_stat_broken" >&6; }
21761if test $ac_cv_header_stat_broken = yes; then
21762
cristy8b350f62009-11-15 23:12:43 +000021763$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021764
21765fi
21766
cristy8b350f62009-11-15 23:12:43 +000021767{ $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 +000021768$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021769if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021770 $as_echo_n "(cached) " >&6
21771else
cristy8b350f62009-11-15 23:12:43 +000021772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021773/* end confdefs.h. */
21774#include <sys/types.h>
21775#include <sys/time.h>
21776#include <time.h>
21777
21778int
21779main ()
21780{
21781if ((struct tm *) 0)
21782return 0;
21783 ;
21784 return 0;
21785}
21786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021787if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021788 ac_cv_header_time=yes
21789else
cristy8b350f62009-11-15 23:12:43 +000021790 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021791fi
cristy3ed852e2009-09-05 21:47:34 +000021792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21793fi
cristy8b350f62009-11-15 23:12:43 +000021794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021795$as_echo "$ac_cv_header_time" >&6; }
21796if test $ac_cv_header_time = yes; then
21797
cristy8b350f62009-11-15 23:12:43 +000021798$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021799
21800fi
21801
cristy8b350f62009-11-15 23:12:43 +000021802{ $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 +000021803$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021804if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021805 $as_echo_n "(cached) " >&6
21806else
cristy8b350f62009-11-15 23:12:43 +000021807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021808/* end confdefs.h. */
21809#include <sys/types.h>
21810#include <time.h>
21811
21812int
21813main ()
21814{
21815struct tm tm;
21816 int *p = &tm.tm_sec;
21817 return !p;
21818 ;
21819 return 0;
21820}
21821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021822if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021823 ac_cv_struct_tm=time.h
21824else
cristy8b350f62009-11-15 23:12:43 +000021825 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021826fi
cristy3ed852e2009-09-05 21:47:34 +000021827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828fi
cristy8b350f62009-11-15 23:12:43 +000021829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021830$as_echo "$ac_cv_struct_tm" >&6; }
21831if test $ac_cv_struct_tm = sys/time.h; then
21832
cristy8b350f62009-11-15 23:12:43 +000021833$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021834
21835fi
21836
cristy92703d82010-04-26 00:18:18 +000021837ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21838#include <$ac_cv_struct_tm>
21839
21840"
cristyda16f162011-02-19 23:52:17 +000021841if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021842
21843cat >>confdefs.h <<_ACEOF
21844#define HAVE_STRUCT_TM_TM_ZONE 1
21845_ACEOF
21846
21847
21848fi
21849
21850if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21851
21852$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21853
21854else
21855 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21856"
cristyda16f162011-02-19 23:52:17 +000021857if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021858 ac_have_decl=1
21859else
21860 ac_have_decl=0
21861fi
21862
21863cat >>confdefs.h <<_ACEOF
21864#define HAVE_DECL_TZNAME $ac_have_decl
21865_ACEOF
21866
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21868$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021869if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021870 $as_echo_n "(cached) " >&6
21871else
21872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873/* end confdefs.h. */
21874#include <time.h>
21875#if !HAVE_DECL_TZNAME
21876extern char *tzname[];
21877#endif
21878
21879int
21880main ()
21881{
21882return tzname[0][0];
21883 ;
21884 return 0;
21885}
21886_ACEOF
21887if ac_fn_c_try_link "$LINENO"; then :
21888 ac_cv_var_tzname=yes
21889else
21890 ac_cv_var_tzname=no
21891fi
21892rm -f core conftest.err conftest.$ac_objext \
21893 conftest$ac_exeext conftest.$ac_ext
21894fi
21895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21896$as_echo "$ac_cv_var_tzname" >&6; }
21897 if test $ac_cv_var_tzname = yes; then
21898
21899$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21900
21901 fi
21902fi
21903
cristy8b350f62009-11-15 23:12:43 +000021904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021905$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021906if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021907 $as_echo_n "(cached) " >&6
21908else
21909 echo '#! /bin/cat
21910exit 69
21911' >conftest
21912chmod u+x conftest
21913(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21914if test $? -ne 69; then
21915 ac_cv_sys_interpreter=yes
21916else
21917 ac_cv_sys_interpreter=no
21918fi
21919rm -f conftest
21920fi
cristy8b350f62009-11-15 23:12:43 +000021921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021922$as_echo "$ac_cv_sys_interpreter" >&6; }
21923interpval=$ac_cv_sys_interpreter
21924
21925
cristy3ed852e2009-09-05 21:47:34 +000021926# If the C compiler supports the keyword inline, do nothing. Otherwise
21927# define inline to __inline__ or __inline if it accepts one of those,
21928# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021930$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021931if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021932 $as_echo_n "(cached) " >&6
21933else
21934 ac_cv_c_inline=no
21935for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021937/* end confdefs.h. */
21938#ifndef __cplusplus
21939typedef int foo_t;
21940static $ac_kw foo_t static_foo () {return 0; }
21941$ac_kw foo_t foo () {return 0; }
21942#endif
21943
21944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021945if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021946 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021947fi
cristy3ed852e2009-09-05 21:47:34 +000021948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 test "$ac_cv_c_inline" != no && break
21950done
21951
21952fi
cristy8b350f62009-11-15 23:12:43 +000021953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021954$as_echo "$ac_cv_c_inline" >&6; }
21955
cristy3ed852e2009-09-05 21:47:34 +000021956case $ac_cv_c_inline in
21957 inline | yes) ;;
21958 *)
21959 case $ac_cv_c_inline in
21960 no) ac_val=;;
21961 *) ac_val=$ac_cv_c_inline;;
21962 esac
21963 cat >>confdefs.h <<_ACEOF
21964#ifndef __cplusplus
21965#define inline $ac_val
21966#endif
21967_ACEOF
21968 ;;
21969esac
21970
21971
21972# If the C compiler supports the keyword restrict, do nothing. Otherwise
21973# define restrict to __restrict__ or __restrict if it accepts one of those,
21974# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021977if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021978 $as_echo_n "(cached) " >&6
21979else
21980 ac_cv_c_restrict=no
21981 # The order here caters to the fact that C++ does not require restrict.
21982 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021984/* end confdefs.h. */
21985typedef int * int_ptr;
21986 int foo (int_ptr $ac_kw ip) {
21987 return ip[0];
21988 }
21989int
21990main ()
21991{
21992int s[1];
21993 int * $ac_kw t = s;
21994 t[0] = 0;
21995 return foo(t)
21996 ;
21997 return 0;
21998}
21999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022001 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022002fi
cristy3ed852e2009-09-05 21:47:34 +000022003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 test "$ac_cv_c_restrict" != no && break
22005 done
22006
22007fi
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$ac_cv_c_restrict" >&6; }
22010
cristy3ed852e2009-09-05 21:47:34 +000022011 case $ac_cv_c_restrict in
22012 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022013 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022014 ;;
22015 *) cat >>confdefs.h <<_ACEOF
22016#define restrict $ac_cv_c_restrict
22017_ACEOF
22018 ;;
22019 esac
22020
22021
22022# If words are stored with the most significant byte first (like
22023# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022026if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022027 $as_echo_n "(cached) " >&6
22028else
22029 ac_cv_c_bigendian=unknown
22030 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022032/* end confdefs.h. */
22033#ifndef __APPLE_CC__
22034 not a universal capable compiler
22035 #endif
22036 typedef int dummy;
22037
22038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022040
22041 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022042 # there are at least two -arch flags with different values.
22043 ac_arch=
22044 ac_prev=
22045 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22046 if test -n "$ac_prev"; then
22047 case $ac_word in
22048 i?86 | x86_64 | ppc | ppc64)
22049 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22050 ac_arch=$ac_word
22051 else
22052 ac_cv_c_bigendian=universal
22053 break
22054 fi
22055 ;;
22056 esac
22057 ac_prev=
22058 elif test "x$ac_word" = "x-arch"; then
22059 ac_prev=arch
22060 fi
22061 done
cristy3ed852e2009-09-05 21:47:34 +000022062fi
cristy3ed852e2009-09-05 21:47:34 +000022063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22064 if test $ac_cv_c_bigendian = unknown; then
22065 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022067/* end confdefs.h. */
22068#include <sys/types.h>
22069 #include <sys/param.h>
22070
22071int
22072main ()
22073{
22074#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22075 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22076 && LITTLE_ENDIAN)
22077 bogus endian macros
22078 #endif
22079
22080 ;
22081 return 0;
22082}
22083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022084if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022085 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022087/* end confdefs.h. */
22088#include <sys/types.h>
22089 #include <sys/param.h>
22090
22091int
22092main ()
22093{
22094#if BYTE_ORDER != BIG_ENDIAN
22095 not big endian
22096 #endif
22097
22098 ;
22099 return 0;
22100}
22101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022102if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022103 ac_cv_c_bigendian=yes
22104else
cristy8b350f62009-11-15 23:12:43 +000022105 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022106fi
cristy3ed852e2009-09-05 21:47:34 +000022107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022108fi
cristy3ed852e2009-09-05 21:47:34 +000022109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110 fi
22111 if test $ac_cv_c_bigendian = unknown; then
22112 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022114/* end confdefs.h. */
22115#include <limits.h>
22116
22117int
22118main ()
22119{
22120#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22121 bogus endian macros
22122 #endif
22123
22124 ;
22125 return 0;
22126}
22127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022128if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022129 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022131/* end confdefs.h. */
22132#include <limits.h>
22133
22134int
22135main ()
22136{
22137#ifndef _BIG_ENDIAN
22138 not big endian
22139 #endif
22140
22141 ;
22142 return 0;
22143}
22144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022145if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022146 ac_cv_c_bigendian=yes
22147else
cristy8b350f62009-11-15 23:12:43 +000022148 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022149fi
cristy3ed852e2009-09-05 21:47:34 +000022150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022151fi
cristy3ed852e2009-09-05 21:47:34 +000022152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 fi
22154 if test $ac_cv_c_bigendian = unknown; then
22155 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022156 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022157 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022159/* end confdefs.h. */
22160short int ascii_mm[] =
22161 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22162 short int ascii_ii[] =
22163 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22164 int use_ascii (int i) {
22165 return ascii_mm[i] + ascii_ii[i];
22166 }
22167 short int ebcdic_ii[] =
22168 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22169 short int ebcdic_mm[] =
22170 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22171 int use_ebcdic (int i) {
22172 return ebcdic_mm[i] + ebcdic_ii[i];
22173 }
22174 extern int foo;
22175
22176int
22177main ()
22178{
22179return use_ascii (foo) == use_ebcdic (foo);
22180 ;
22181 return 0;
22182}
22183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22186 ac_cv_c_bigendian=yes
22187 fi
22188 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22189 if test "$ac_cv_c_bigendian" = unknown; then
22190 ac_cv_c_bigendian=no
22191 else
22192 # finding both strings is unlikely to happen, but who knows?
22193 ac_cv_c_bigendian=unknown
22194 fi
22195 fi
cristy3ed852e2009-09-05 21:47:34 +000022196fi
cristy3ed852e2009-09-05 21:47:34 +000022197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22198else
cristy8b350f62009-11-15 23:12:43 +000022199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022200/* end confdefs.h. */
22201$ac_includes_default
22202int
22203main ()
22204{
22205
22206 /* Are we little or big endian? From Harbison&Steele. */
22207 union
22208 {
22209 long int l;
22210 char c[sizeof (long int)];
22211 } u;
22212 u.l = 1;
22213 return u.c[sizeof (long int) - 1] == 1;
22214
22215 ;
22216 return 0;
22217}
22218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022219if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 ac_cv_c_bigendian=no
22221else
cristy8b350f62009-11-15 23:12:43 +000022222 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022223fi
cristy8b350f62009-11-15 23:12:43 +000022224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22225 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022226fi
22227
cristy3ed852e2009-09-05 21:47:34 +000022228 fi
22229fi
cristy8b350f62009-11-15 23:12:43 +000022230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022231$as_echo "$ac_cv_c_bigendian" >&6; }
22232 case $ac_cv_c_bigendian in #(
22233 yes)
cristy8b350f62009-11-15 23:12:43 +000022234 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022235;; #(
22236 no)
22237 ;; #(
22238 universal)
22239
cristy8b350f62009-11-15 23:12:43 +000022240$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022241
22242 ;; #(
22243 *)
cristy98dddb52010-11-04 00:30:15 +000022244 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022245 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022246 esac
22247
22248
22249# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022250ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022251if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022252
cristy3ed852e2009-09-05 21:47:34 +000022253else
22254
22255cat >>confdefs.h <<_ACEOF
22256#define mode_t int
22257_ACEOF
22258
22259fi
22260
22261
22262# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022263ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022264if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022265
cristy3ed852e2009-09-05 21:47:34 +000022266else
22267
22268cat >>confdefs.h <<_ACEOF
22269#define off_t long int
22270_ACEOF
22271
22272fi
22273
22274
22275# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022276ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022277if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022278
cristy3ed852e2009-09-05 21:47:34 +000022279else
22280
22281cat >>confdefs.h <<_ACEOF
22282#define pid_t int
22283_ACEOF
22284
22285fi
22286
22287
22288# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022289ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022290if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022291
cristy3ed852e2009-09-05 21:47:34 +000022292else
22293
22294cat >>confdefs.h <<_ACEOF
22295#define size_t unsigned int
22296_ACEOF
22297
22298fi
22299
22300
22301# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022302ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022303if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022304
cristy3ed852e2009-09-05 21:47:34 +000022305else
22306
22307cat >>confdefs.h <<_ACEOF
22308#define ssize_t int
22309_ACEOF
22310
22311fi
22312
22313
22314# If the C compiler supports a working long double type with more range
22315# or precision than the double type, define HAVE_LONG_DOUBLE.
22316
cristy8b350f62009-11-15 23:12:43 +000022317 { $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 +000022318$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022319if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022320 $as_echo_n "(cached) " >&6
22321else
cristy8b350f62009-11-15 23:12:43 +000022322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022323/* end confdefs.h. */
22324#include <float.h>
22325 long double const a[] =
22326 {
22327 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22328 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22329 };
22330 long double
22331 f (long double x)
22332 {
22333 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22334 + (x ? f (x) : 'c'));
22335 }
22336
22337int
22338main ()
22339{
22340static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22341 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22342 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22343 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22344 && (int) LDBL_EPSILON == 0
22345 )];
22346test_array [0] = 0
22347
22348 ;
22349 return 0;
22350}
22351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022352if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022353 ac_cv_type_long_double_wider=yes
22354else
cristy8b350f62009-11-15 23:12:43 +000022355 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022356fi
cristy3ed852e2009-09-05 21:47:34 +000022357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358fi
cristy8b350f62009-11-15 23:12:43 +000022359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022360$as_echo "$ac_cv_type_long_double_wider" >&6; }
22361 if test $ac_cv_type_long_double_wider = yes; then
22362
cristy8b350f62009-11-15 23:12:43 +000022363$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022364
22365 fi
22366
22367
22368# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22369# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022371$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022372if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022373 $as_echo_n "(cached) " >&6
22374else
cristy8b350f62009-11-15 23:12:43 +000022375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022376/* end confdefs.h. */
22377$ac_includes_default
22378int
22379main ()
22380{
22381static int test_array [1 - 2 * !(((char) -1) < 0)];
22382test_array [0] = 0
22383
22384 ;
22385 return 0;
22386}
22387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022388if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 ac_cv_c_char_unsigned=no
22390else
cristy8b350f62009-11-15 23:12:43 +000022391 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022392fi
cristy3ed852e2009-09-05 21:47:34 +000022393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394fi
cristy8b350f62009-11-15 23:12:43 +000022395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022396$as_echo "$ac_cv_c_char_unsigned" >&6; }
22397if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022398 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022399
22400fi
22401
22402
22403# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22404# The cast to long int works around a bug in the HP C Compiler
22405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22407# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022409$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022410if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022411 $as_echo_n "(cached) " >&6
22412else
cristy8b350f62009-11-15 23:12:43 +000022413 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 +000022414
cristy3ed852e2009-09-05 21:47:34 +000022415else
cristy8b350f62009-11-15 23:12:43 +000022416 if test "$ac_cv_type_signed_short" = yes; then
22417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022419as_fn_error 77 "cannot compute sizeof (signed short)
22420See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022421 else
22422 ac_cv_sizeof_signed_short=0
22423 fi
22424fi
cristy8b350f62009-11-15 23:12:43 +000022425
cristy3ed852e2009-09-05 21:47:34 +000022426fi
cristy8b350f62009-11-15 23:12:43 +000022427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022428$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22429
22430
22431
22432cat >>confdefs.h <<_ACEOF
22433#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22434_ACEOF
22435
22436
22437
22438# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22439# The cast to long int works around a bug in the HP C Compiler
22440# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22441# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22442# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022444$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022445if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 $as_echo_n "(cached) " >&6
22447else
cristy8b350f62009-11-15 23:12:43 +000022448 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 +000022449
cristy3ed852e2009-09-05 21:47:34 +000022450else
cristy8b350f62009-11-15 23:12:43 +000022451 if test "$ac_cv_type_unsigned_short" = yes; then
22452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022454as_fn_error 77 "cannot compute sizeof (unsigned short)
22455See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022456 else
22457 ac_cv_sizeof_unsigned_short=0
22458 fi
22459fi
cristy8b350f62009-11-15 23:12:43 +000022460
cristy3ed852e2009-09-05 21:47:34 +000022461fi
cristy8b350f62009-11-15 23:12:43 +000022462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022463$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22464
22465
22466
22467cat >>confdefs.h <<_ACEOF
22468#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22469_ACEOF
22470
22471
22472
22473# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22474# The cast to long int works around a bug in the HP C Compiler
22475# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22476# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22477# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022479$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022480if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022481 $as_echo_n "(cached) " >&6
22482else
cristy8b350f62009-11-15 23:12:43 +000022483 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 +000022484
cristy3ed852e2009-09-05 21:47:34 +000022485else
cristy8b350f62009-11-15 23:12:43 +000022486 if test "$ac_cv_type_signed_int" = yes; then
22487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022489as_fn_error 77 "cannot compute sizeof (signed int)
22490See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022491 else
22492 ac_cv_sizeof_signed_int=0
22493 fi
22494fi
cristy8b350f62009-11-15 23:12:43 +000022495
cristy3ed852e2009-09-05 21:47:34 +000022496fi
cristy8b350f62009-11-15 23:12:43 +000022497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022498$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22499
22500
22501
22502cat >>confdefs.h <<_ACEOF
22503#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22504_ACEOF
22505
22506
22507
22508# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22509# The cast to long int works around a bug in the HP C Compiler
22510# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22511# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22512# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022514$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022515if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022516 $as_echo_n "(cached) " >&6
22517else
cristy8b350f62009-11-15 23:12:43 +000022518 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 +000022519
cristy3ed852e2009-09-05 21:47:34 +000022520else
cristy8b350f62009-11-15 23:12:43 +000022521 if test "$ac_cv_type_unsigned_int" = yes; then
22522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022524as_fn_error 77 "cannot compute sizeof (unsigned int)
22525See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022526 else
22527 ac_cv_sizeof_unsigned_int=0
22528 fi
22529fi
cristy8b350f62009-11-15 23:12:43 +000022530
cristy3ed852e2009-09-05 21:47:34 +000022531fi
cristy8b350f62009-11-15 23:12:43 +000022532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022533$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22534
22535
22536
22537cat >>confdefs.h <<_ACEOF
22538#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22539_ACEOF
22540
22541
22542
22543# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22544# The cast to long int works around a bug in the HP C Compiler
22545# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22546# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22547# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022549$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022550if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022551 $as_echo_n "(cached) " >&6
22552else
cristy8b350f62009-11-15 23:12:43 +000022553 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 +000022554
cristy3ed852e2009-09-05 21:47:34 +000022555else
cristy8b350f62009-11-15 23:12:43 +000022556 if test "$ac_cv_type_signed_long" = yes; then
22557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022559as_fn_error 77 "cannot compute sizeof (signed long)
22560See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022561 else
22562 ac_cv_sizeof_signed_long=0
22563 fi
22564fi
cristy8b350f62009-11-15 23:12:43 +000022565
cristy3ed852e2009-09-05 21:47:34 +000022566fi
cristy8b350f62009-11-15 23:12:43 +000022567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022568$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22569
22570
22571
22572cat >>confdefs.h <<_ACEOF
22573#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22574_ACEOF
22575
22576
22577
22578# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22579# The cast to long int works around a bug in the HP C Compiler
22580# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22581# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22582# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022584$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022585if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 $as_echo_n "(cached) " >&6
22587else
cristy8b350f62009-11-15 23:12:43 +000022588 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 +000022589
cristy3ed852e2009-09-05 21:47:34 +000022590else
cristy8b350f62009-11-15 23:12:43 +000022591 if test "$ac_cv_type_unsigned_long" = yes; then
22592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022594as_fn_error 77 "cannot compute sizeof (unsigned long)
22595See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022596 else
22597 ac_cv_sizeof_unsigned_long=0
22598 fi
22599fi
cristy8b350f62009-11-15 23:12:43 +000022600
cristy3ed852e2009-09-05 21:47:34 +000022601fi
cristy8b350f62009-11-15 23:12:43 +000022602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022603$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22604
22605
22606
22607cat >>confdefs.h <<_ACEOF
22608#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22609_ACEOF
22610
22611
22612
22613# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22614# 'signed long long' is not supported then the value defined is zero.
22615# The cast to long int works around a bug in the HP C Compiler
22616# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22617# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22618# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022620$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022621if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022622 $as_echo_n "(cached) " >&6
22623else
cristy8b350f62009-11-15 23:12:43 +000022624 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 +000022625
cristy3ed852e2009-09-05 21:47:34 +000022626else
cristy8b350f62009-11-15 23:12:43 +000022627 if test "$ac_cv_type_signed_long_long" = yes; then
22628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022630as_fn_error 77 "cannot compute sizeof (signed long long)
22631See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022632 else
22633 ac_cv_sizeof_signed_long_long=0
22634 fi
22635fi
cristy8b350f62009-11-15 23:12:43 +000022636
cristy3ed852e2009-09-05 21:47:34 +000022637fi
cristy8b350f62009-11-15 23:12:43 +000022638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022639$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22640
22641
22642
22643cat >>confdefs.h <<_ACEOF
22644#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22645_ACEOF
22646
22647
22648
22649# Obtain size of a 'unsigned long long' and define as
22650# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22651# supported then the value defined is zero.
22652# The cast to long int works around a bug in the HP C Compiler
22653# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22654# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22655# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022657$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022658if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022659 $as_echo_n "(cached) " >&6
22660else
cristy8b350f62009-11-15 23:12:43 +000022661 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 +000022662
cristy3ed852e2009-09-05 21:47:34 +000022663else
cristy8b350f62009-11-15 23:12:43 +000022664 if test "$ac_cv_type_unsigned_long_long" = yes; then
22665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022667as_fn_error 77 "cannot compute sizeof (unsigned long long)
22668See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022669 else
22670 ac_cv_sizeof_unsigned_long_long=0
22671 fi
22672fi
cristy8b350f62009-11-15 23:12:43 +000022673
cristy3ed852e2009-09-05 21:47:34 +000022674fi
cristy8b350f62009-11-15 23:12:43 +000022675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022676$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22677
22678
22679
22680cat >>confdefs.h <<_ACEOF
22681#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22682_ACEOF
22683
22684
22685
22686# Obtain size of off_t and define as SIZEOF_OFF_T
22687# The cast to long int works around a bug in the HP C Compiler
22688# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22689# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22690# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022692$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022693if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022694 $as_echo_n "(cached) " >&6
22695else
cristy8b350f62009-11-15 23:12:43 +000022696 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 +000022697
cristy3ed852e2009-09-05 21:47:34 +000022698else
cristy8b350f62009-11-15 23:12:43 +000022699 if test "$ac_cv_type_off_t" = yes; then
22700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022702as_fn_error 77 "cannot compute sizeof (off_t)
22703See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022704 else
22705 ac_cv_sizeof_off_t=0
22706 fi
22707fi
cristy8b350f62009-11-15 23:12:43 +000022708
cristy3ed852e2009-09-05 21:47:34 +000022709fi
cristy8b350f62009-11-15 23:12:43 +000022710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022711$as_echo "$ac_cv_sizeof_off_t" >&6; }
22712
22713
22714
22715cat >>confdefs.h <<_ACEOF
22716#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22717_ACEOF
22718
22719
22720
22721# Obtain size of size_t and define as SIZEOF_SIZE_T
22722# The cast to long int works around a bug in the HP C Compiler
22723# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22724# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22725# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022727$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022728if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022729 $as_echo_n "(cached) " >&6
22730else
cristy8b350f62009-11-15 23:12:43 +000022731 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 +000022732
cristy3ed852e2009-09-05 21:47:34 +000022733else
cristy8b350f62009-11-15 23:12:43 +000022734 if test "$ac_cv_type_size_t" = yes; then
22735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022737as_fn_error 77 "cannot compute sizeof (size_t)
22738See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022739 else
22740 ac_cv_sizeof_size_t=0
22741 fi
22742fi
cristy8b350f62009-11-15 23:12:43 +000022743
cristy3ed852e2009-09-05 21:47:34 +000022744fi
cristy8b350f62009-11-15 23:12:43 +000022745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022746$as_echo "$ac_cv_sizeof_size_t" >&6; }
22747
22748
22749
22750cat >>confdefs.h <<_ACEOF
22751#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22752_ACEOF
22753
22754
22755
cristy330e9352010-06-01 18:42:49 +000022756# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22757# The cast to long int works around a bug in the HP C Compiler
22758# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22759# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22760# This bug is HP SR number 8606223364.
22761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22762$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022763if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022764 $as_echo_n "(cached) " >&6
22765else
22766 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22767
22768else
22769 if test "$ac_cv_type_ssize_t" = yes; then
22770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022772as_fn_error 77 "cannot compute sizeof (ssize_t)
22773See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022774 else
22775 ac_cv_sizeof_ssize_t=0
22776 fi
22777fi
22778
22779fi
22780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22781$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22782
22783
22784
22785cat >>confdefs.h <<_ACEOF
22786#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22787_ACEOF
22788
22789
22790
cristy3ed852e2009-09-05 21:47:34 +000022791# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22792# The cast to long int works around a bug in the HP C Compiler
22793# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22794# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22795# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022797$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022798if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022799 $as_echo_n "(cached) " >&6
22800else
cristy8b350f62009-11-15 23:12:43 +000022801 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 +000022802
cristy3ed852e2009-09-05 21:47:34 +000022803else
cristy8b350f62009-11-15 23:12:43 +000022804 if test "$ac_cv_type_unsigned_intp" = yes; then
22805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022807as_fn_error 77 "cannot compute sizeof (unsigned int*)
22808See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022809 else
22810 ac_cv_sizeof_unsigned_intp=0
22811 fi
22812fi
cristy8b350f62009-11-15 23:12:43 +000022813
cristy3ed852e2009-09-05 21:47:34 +000022814fi
cristy8b350f62009-11-15 23:12:43 +000022815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022816$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22817
22818
22819
22820cat >>confdefs.h <<_ACEOF
22821#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22822_ACEOF
22823
22824
22825
22826#
22827# Compute sized types for current CPU and compiler options.
22828#
22829
cristy8b350f62009-11-15 23:12:43 +000022830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022831$as_echo_n "checking for signed 8-bit type... " >&6; }
22832INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022834$as_echo "$INT8_T" >&6; }
22835
22836
cristy8b350f62009-11-15 23:12:43 +000022837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022838$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22839UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo "$UINT8_T" >&6; }
22842
22843
cristy8b350f62009-11-15 23:12:43 +000022844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022845$as_echo_n "checking for signed 16-bit type... " >&6; }
22846INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022848$as_echo "$INT16_T" >&6; }
22849
22850
cristy8b350f62009-11-15 23:12:43 +000022851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022852$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22853UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022855$as_echo "$UINT16_T" >&6; }
22856
22857
cristy8b350f62009-11-15 23:12:43 +000022858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022859$as_echo_n "checking for signed 32-bit type... " >&6; }
22860INT32_T='none'
22861if test $ac_cv_sizeof_signed_int -eq 4; then
22862 INT32_T='signed int'
22863elif test $ac_cv_sizeof_signed_long -eq 4; then
22864 INT32_T='signed long'
22865fi
cristy8b350f62009-11-15 23:12:43 +000022866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022867$as_echo "$INT32_T" >&6; }
22868
22869
cristy8b350f62009-11-15 23:12:43 +000022870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022871$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22872UINT32_T='none'
22873if test $ac_cv_sizeof_unsigned_int -eq 4; then
22874 UINT32_T='unsigned int'
22875elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22876 UINT32_T='unsigned long'
22877fi
cristy8b350f62009-11-15 23:12:43 +000022878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022879$as_echo "$UINT32_T" >&6; }
22880
22881
cristy8b350f62009-11-15 23:12:43 +000022882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022883$as_echo_n "checking for signed 64-bit type... " >&6; }
22884INT64_T='none'
22885if test $ac_cv_sizeof_signed_long -eq 8; then
22886 INT64_T='signed long'
22887elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22888 INT64_T='signed long long'
22889fi
cristy8b350f62009-11-15 23:12:43 +000022890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022891$as_echo "$INT64_T" >&6; }
22892
22893
cristy8b350f62009-11-15 23:12:43 +000022894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022895$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22896UINT64_T='none'
22897if test $ac_cv_sizeof_unsigned_long -eq 8; then
22898 UINT64_T='unsigned long'
22899elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22900 UINT64_T='unsigned long long'
22901fi
cristy8b350f62009-11-15 23:12:43 +000022902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022903$as_echo "$UINT64_T" >&6; }
22904
22905
cristy8b350f62009-11-15 23:12:43 +000022906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022907$as_echo_n "checking for unsigned maximum type... " >&6; }
22908UINTMAX_T='none'
22909if test "$UINT64_T" != 'none'; then
22910 UINTMAX_T=$UINT64_T
22911elif test "$UINT32_T" != 'none'; then
22912 UINTMAX_T=$UINT32_T
22913fi
cristy8b350f62009-11-15 23:12:43 +000022914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022915$as_echo "$UINTMAX_T" >&6; }
22916
22917
cristy8b350f62009-11-15 23:12:43 +000022918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022919$as_echo_n "checking for pointer difference type... " >&6; }
22920UINTPTR_T='none'
22921if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22922 UINTPTR_T='unsigned long'
22923elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22924 UINTPTR_T='unsigned long long'
22925fi
cristy8b350f62009-11-15 23:12:43 +000022926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022927$as_echo "$UINTPTR_T" >&6; }
22928
22929
cristy8b350f62009-11-15 23:12:43 +000022930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022931$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022933/* end confdefs.h. */
22934
22935int
22936main ()
22937{
22938{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22939 ;
22940 return 0;
22941}
22942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022943if ac_fn_c_try_compile "$LINENO"; then :
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022945$as_echo "yes" >&6; }
22946else
cristy8b350f62009-11-15 23:12:43 +000022947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022948$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022950$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022952/* end confdefs.h. */
22953
22954int
22955main ()
22956{
22957{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22958 ;
22959 return 0;
22960}
22961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022962if ac_fn_c_try_compile "$LINENO"; then :
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022964$as_echo "yes" >&6; }
22965
cristy8b350f62009-11-15 23:12:43 +000022966$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022967
22968else
cristy8b350f62009-11-15 23:12:43 +000022969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022970$as_echo "no" >&6; }
22971
cristy8b350f62009-11-15 23:12:43 +000022972$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022973
22974fi
cristy3ed852e2009-09-05 21:47:34 +000022975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976fi
cristy3ed852e2009-09-05 21:47:34 +000022977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978
22979########
22980#
22981# Check for functions
22982#
22983########
cristy73bd4a52010-10-05 11:24:23 +000022984for ac_header in stdlib.h unistd.h
22985do :
22986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22987ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022989 cat >>confdefs.h <<_ACEOF
22990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22991_ACEOF
22992
22993fi
22994
22995done
22996
22997for ac_func in getpagesize
22998do :
22999 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023000if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023001 cat >>confdefs.h <<_ACEOF
23002#define HAVE_GETPAGESIZE 1
23003_ACEOF
23004
23005fi
23006done
23007
23008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23009$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023010if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023011 $as_echo_n "(cached) " >&6
23012else
23013 if test "$cross_compiling" = yes; then :
23014 magick_cv_func_mmap_fileio=no
23015else
23016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017/* end confdefs.h. */
23018$ac_includes_default
23019/* malloc might have been renamed as rpl_malloc. */
23020#undef malloc
23021
23022/*
23023 This test is derived from GNU Autoconf's similar macro.
23024 The purpose of this test is to verify that files may be memory
23025 mapped, and that memory mapping and file I/O are coherent.
23026
23027 The test creates a test file, memory maps the file, updates
23028 the file using the memory map, and then reads the file using
23029 file I/O to verify that the file contains the updates.
23030*/
23031
23032#include <fcntl.h>
23033#include <sys/mman.h>
23034
23035#if !STDC_HEADERS && !HAVE_STDLIB_H
23036char *malloc ();
23037#endif
23038
23039/* This mess was copied from the GNU getpagesize.h. */
23040#if !HAVE_GETPAGESIZE
23041/* Assume that all systems that can run configure have sys/param.h. */
23042# if !HAVE_SYS_PARAM_H
23043# define HAVE_SYS_PARAM_H 1
23044# endif
23045
23046# ifdef _SC_PAGESIZE
23047# define getpagesize() sysconf(_SC_PAGESIZE)
23048# else /* no _SC_PAGESIZE */
23049# if HAVE_SYS_PARAM_H
23050# include <sys/param.h>
23051# ifdef EXEC_PAGESIZE
23052# define getpagesize() EXEC_PAGESIZE
23053# else /* no EXEC_PAGESIZE */
23054# ifdef NBPG
23055# define getpagesize() NBPG * CLSIZE
23056# ifndef CLSIZE
23057# define CLSIZE 1
23058# endif /* no CLSIZE */
23059# else /* no NBPG */
23060# ifdef NBPC
23061# define getpagesize() NBPC
23062# else /* no NBPC */
23063# ifdef PAGESIZE
23064# define getpagesize() PAGESIZE
23065# endif /* PAGESIZE */
23066# endif /* no NBPC */
23067# endif /* no NBPG */
23068# endif /* no EXEC_PAGESIZE */
23069# else /* no HAVE_SYS_PARAM_H */
23070# define getpagesize() 8192 /* punt totally */
23071# endif /* no HAVE_SYS_PARAM_H */
23072# endif /* no _SC_PAGESIZE */
23073
23074#endif /* no HAVE_GETPAGESIZE */
23075
23076int
23077main ()
23078{
23079 char *data, *data2, *data3;
23080 int i, pagesize;
23081 int fd;
23082
23083 pagesize = getpagesize ();
23084
23085 /* First, make a file with some known garbage in it. */
23086 data = (char *) malloc (pagesize);
23087 if (!data)
23088 exit (1);
23089 for (i = 0; i < pagesize; ++i)
23090 *(data + i) = rand ();
23091 umask (0);
23092 fd = creat ("conftest.mmap", 0600);
23093 if (fd < 0)
23094 exit (1);
23095 if (write (fd, data, pagesize) != pagesize)
23096 exit (1);
23097 close (fd);
23098
23099 /* Mmap the file as read/write/shared and verify that we see the
23100 same garbage. */
23101 fd = open ("conftest.mmap", O_RDWR);
23102 if (fd < 0)
23103 exit (1);
23104 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23105 if (data2 == 0)
23106 exit (1);
23107 for (i = 0; i < pagesize; ++i)
23108 if (*(data + i) != *(data2 + i))
23109 exit (1);
23110
23111 /* Finally, make sure that changes to the mapped area
23112 percolate back to the file as seen by read(). */
23113 for (i = 0; i < pagesize; ++i)
23114 *(data2 + i) = *(data2 + i) + 1;
23115 data3 = (char *) malloc (pagesize);
23116 if (!data3)
23117 exit (1);
23118 if (read (fd, data3, pagesize) != pagesize)
23119 exit (1);
23120 for (i = 0; i < pagesize; ++i)
23121 if (*(data2 + i) != *(data3 + i))
23122 exit (1);
23123 close (fd);
23124 exit (0);
23125}
23126_ACEOF
23127if ac_fn_c_try_run "$LINENO"; then :
23128 magick_cv_func_mmap_fileio=yes
23129else
23130 magick_cv_func_mmap_fileio=no
23131fi
23132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23133 conftest.$ac_objext conftest.beam conftest.$ac_ext
23134fi
23135
23136fi
23137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23138$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23139if test $magick_cv_func_mmap_fileio = yes; then
23140
23141$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23142
23143fi
23144rm -f conftest.mmap
23145
cristy8b350f62009-11-15 23:12:43 +000023146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023147$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023148if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023149 $as_echo_n "(cached) " >&6
23150else
cristy8b350f62009-11-15 23:12:43 +000023151 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 ac_cv_func_closedir_void=yes
23153else
cristy8b350f62009-11-15 23:12:43 +000023154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023155/* end confdefs.h. */
23156$ac_includes_default
23157#include <$ac_header_dirent>
23158#ifndef __cplusplus
23159int closedir ();
23160#endif
23161
23162int
23163main ()
23164{
23165return closedir (opendir (".")) != 0;
23166 ;
23167 return 0;
23168}
23169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023170if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023171 ac_cv_func_closedir_void=no
23172else
cristy8b350f62009-11-15 23:12:43 +000023173 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023174fi
cristy8b350f62009-11-15 23:12:43 +000023175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23176 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023177fi
23178
cristy3ed852e2009-09-05 21:47:34 +000023179fi
cristy8b350f62009-11-15 23:12:43 +000023180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023181$as_echo "$ac_cv_func_closedir_void" >&6; }
23182if test $ac_cv_func_closedir_void = yes; then
23183
cristy8b350f62009-11-15 23:12:43 +000023184$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023185
23186fi
23187
cristycd4c5312009-11-22 01:19:08 +000023188
23189
23190
23191 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023192do :
23193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023194ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23195"
cristy98dddb52010-11-04 00:30:15 +000023196if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023197 cat >>confdefs.h <<_ACEOF
23198#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23199_ACEOF
23200
23201fi
23202
23203done
23204
cristycd4c5312009-11-22 01:19:08 +000023205
23206
23207
23208
23209
23210
23211
cristy3ed852e2009-09-05 21:47:34 +000023212for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023213do :
23214 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023215if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023216 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023217#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023218_ACEOF
23219
23220fi
23221done
23222
cristy8b350f62009-11-15 23:12:43 +000023223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023224$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023225if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023226 $as_echo_n "(cached) " >&6
23227else
cristy8b350f62009-11-15 23:12:43 +000023228 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023229 ac_cv_func_mmap_fixed_mapped=no
23230else
cristy8b350f62009-11-15 23:12:43 +000023231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023232/* end confdefs.h. */
23233$ac_includes_default
23234/* malloc might have been renamed as rpl_malloc. */
23235#undef malloc
23236
23237/* Thanks to Mike Haertel and Jim Avera for this test.
23238 Here is a matrix of mmap possibilities:
23239 mmap private not fixed
23240 mmap private fixed at somewhere currently unmapped
23241 mmap private fixed at somewhere already mapped
23242 mmap shared not fixed
23243 mmap shared fixed at somewhere currently unmapped
23244 mmap shared fixed at somewhere already mapped
23245 For private mappings, we should verify that changes cannot be read()
23246 back from the file, nor mmap's back from the file at a different
23247 address. (There have been systems where private was not correctly
23248 implemented like the infamous i386 svr4.0, and systems where the
23249 VM page cache was not coherent with the file system buffer cache
23250 like early versions of FreeBSD and possibly contemporary NetBSD.)
23251 For shared mappings, we should conversely verify that changes get
23252 propagated back to all the places they're supposed to be.
23253
23254 Grep wants private fixed already mapped.
23255 The main things grep needs to know about mmap are:
23256 * does it exist and is it safe to write into the mmap'd area
23257 * how to use it (BSD variants) */
23258
23259#include <fcntl.h>
23260#include <sys/mman.h>
23261
23262#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23263char *malloc ();
23264#endif
23265
23266/* This mess was copied from the GNU getpagesize.h. */
23267#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023268# ifdef _SC_PAGESIZE
23269# define getpagesize() sysconf(_SC_PAGESIZE)
23270# else /* no _SC_PAGESIZE */
23271# ifdef HAVE_SYS_PARAM_H
23272# include <sys/param.h>
23273# ifdef EXEC_PAGESIZE
23274# define getpagesize() EXEC_PAGESIZE
23275# else /* no EXEC_PAGESIZE */
23276# ifdef NBPG
23277# define getpagesize() NBPG * CLSIZE
23278# ifndef CLSIZE
23279# define CLSIZE 1
23280# endif /* no CLSIZE */
23281# else /* no NBPG */
23282# ifdef NBPC
23283# define getpagesize() NBPC
23284# else /* no NBPC */
23285# ifdef PAGESIZE
23286# define getpagesize() PAGESIZE
23287# endif /* PAGESIZE */
23288# endif /* no NBPC */
23289# endif /* no NBPG */
23290# endif /* no EXEC_PAGESIZE */
23291# else /* no HAVE_SYS_PARAM_H */
23292# define getpagesize() 8192 /* punt totally */
23293# endif /* no HAVE_SYS_PARAM_H */
23294# endif /* no _SC_PAGESIZE */
23295
23296#endif /* no HAVE_GETPAGESIZE */
23297
23298int
23299main ()
23300{
23301 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023302 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023303 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023304 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023305
23306 pagesize = getpagesize ();
23307
23308 /* First, make a file with some known garbage in it. */
23309 data = (char *) malloc (pagesize);
23310 if (!data)
23311 return 1;
23312 for (i = 0; i < pagesize; ++i)
23313 *(data + i) = rand ();
23314 umask (0);
23315 fd = creat ("conftest.mmap", 0600);
23316 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023317 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023318 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023319 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023320 close (fd);
23321
cristycd4c5312009-11-22 01:19:08 +000023322 /* Next, check that the tail of a page is zero-filled. File must have
23323 non-zero length, otherwise we risk SIGBUS for entire page. */
23324 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23325 if (fd2 < 0)
23326 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023327 cdata2 = "";
23328 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023329 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023330 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023331 if (data2 == MAP_FAILED)
23332 return 6;
23333 for (i = 0; i < pagesize; ++i)
23334 if (*(data2 + i))
23335 return 7;
23336 close (fd2);
23337 if (munmap (data2, pagesize))
23338 return 8;
23339
cristy3ed852e2009-09-05 21:47:34 +000023340 /* Next, try to mmap the file at a fixed address which already has
23341 something else allocated at it. If we can, also make sure that
23342 we see the same garbage. */
23343 fd = open ("conftest.mmap", O_RDWR);
23344 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023345 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023346 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23347 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023348 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023349 for (i = 0; i < pagesize; ++i)
23350 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023351 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023352
23353 /* Finally, make sure that changes to the mapped area do not
23354 percolate back to the file as seen by read(). (This is a bug on
23355 some variants of i386 svr4.0.) */
23356 for (i = 0; i < pagesize; ++i)
23357 *(data2 + i) = *(data2 + i) + 1;
23358 data3 = (char *) malloc (pagesize);
23359 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023360 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023361 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023362 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023363 for (i = 0; i < pagesize; ++i)
23364 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023365 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023366 close (fd);
23367 return 0;
23368}
23369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023370if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023371 ac_cv_func_mmap_fixed_mapped=yes
23372else
cristy8b350f62009-11-15 23:12:43 +000023373 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023374fi
cristy8b350f62009-11-15 23:12:43 +000023375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23376 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023377fi
23378
cristy3ed852e2009-09-05 21:47:34 +000023379fi
cristy8b350f62009-11-15 23:12:43 +000023380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023381$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23382if test $ac_cv_func_mmap_fixed_mapped = yes; then
23383
cristy8b350f62009-11-15 23:12:43 +000023384$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023385
23386fi
cristycd4c5312009-11-22 01:19:08 +000023387rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023388
cristy3ed852e2009-09-05 21:47:34 +000023389for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023390do :
23391 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023392if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023393 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023394#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023395_ACEOF
23396
23397fi
23398
23399done
23400
cristy3ed852e2009-09-05 21:47:34 +000023401for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023402do :
23403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23404ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023405if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023406 cat >>confdefs.h <<_ACEOF
23407#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23408_ACEOF
23409
23410fi
23411done
23412
23413if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023415$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023416if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023417 $as_echo_n "(cached) " >&6
23418else
cristy8b350f62009-11-15 23:12:43 +000023419 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023420 ac_cv_func_fork_works=cross
23421else
cristy8b350f62009-11-15 23:12:43 +000023422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023423/* end confdefs.h. */
23424$ac_includes_default
23425int
23426main ()
23427{
23428
23429 /* By Ruediger Kuhlmann. */
23430 return fork () < 0;
23431
23432 ;
23433 return 0;
23434}
23435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023436if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023437 ac_cv_func_fork_works=yes
23438else
cristy8b350f62009-11-15 23:12:43 +000023439 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023440fi
cristy8b350f62009-11-15 23:12:43 +000023441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23442 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023443fi
23444
cristy3ed852e2009-09-05 21:47:34 +000023445fi
cristy8b350f62009-11-15 23:12:43 +000023446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023447$as_echo "$ac_cv_func_fork_works" >&6; }
23448
23449else
23450 ac_cv_func_fork_works=$ac_cv_func_fork
23451fi
23452if test "x$ac_cv_func_fork_works" = xcross; then
23453 case $host in
23454 *-*-amigaos* | *-*-msdosdjgpp*)
23455 # Override, as these systems have only a dummy fork() stub
23456 ac_cv_func_fork_works=no
23457 ;;
23458 *)
23459 ac_cv_func_fork_works=yes
23460 ;;
23461 esac
cristy8b350f62009-11-15 23:12:43 +000023462 { $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 +000023463$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23464fi
23465ac_cv_func_vfork_works=$ac_cv_func_vfork
23466if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023469if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023470 $as_echo_n "(cached) " >&6
23471else
cristy8b350f62009-11-15 23:12:43 +000023472 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023473 ac_cv_func_vfork_works=cross
23474else
cristy8b350f62009-11-15 23:12:43 +000023475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023476/* end confdefs.h. */
23477/* Thanks to Paul Eggert for this test. */
23478$ac_includes_default
23479#include <sys/wait.h>
23480#ifdef HAVE_VFORK_H
23481# include <vfork.h>
23482#endif
23483/* On some sparc systems, changes by the child to local and incoming
23484 argument registers are propagated back to the parent. The compiler
23485 is told about this with #include <vfork.h>, but some compilers
23486 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23487 static variable whose address is put into a register that is
23488 clobbered by the vfork. */
23489static void
23490#ifdef __cplusplus
23491sparc_address_test (int arg)
23492# else
23493sparc_address_test (arg) int arg;
23494#endif
23495{
23496 static pid_t child;
23497 if (!child) {
23498 child = vfork ();
23499 if (child < 0) {
23500 perror ("vfork");
23501 _exit(2);
23502 }
23503 if (!child) {
23504 arg = getpid();
23505 write(-1, "", 0);
23506 _exit (arg);
23507 }
23508 }
23509}
23510
23511int
23512main ()
23513{
23514 pid_t parent = getpid ();
23515 pid_t child;
23516
23517 sparc_address_test (0);
23518
23519 child = vfork ();
23520
23521 if (child == 0) {
23522 /* Here is another test for sparc vfork register problems. This
23523 test uses lots of local variables, at least as many local
23524 variables as main has allocated so far including compiler
23525 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23526 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23527 reuse the register of parent for one of the local variables,
23528 since it will think that parent can't possibly be used any more
23529 in this routine. Assigning to the local variable will thus
23530 munge parent in the parent process. */
23531 pid_t
23532 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23533 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23534 /* Convince the compiler that p..p7 are live; otherwise, it might
23535 use the same hardware register for all 8 local variables. */
23536 if (p != p1 || p != p2 || p != p3 || p != p4
23537 || p != p5 || p != p6 || p != p7)
23538 _exit(1);
23539
23540 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23541 from child file descriptors. If the child closes a descriptor
23542 before it execs or exits, this munges the parent's descriptor
23543 as well. Test for this by closing stdout in the child. */
23544 _exit(close(fileno(stdout)) != 0);
23545 } else {
23546 int status;
23547 struct stat st;
23548
23549 while (wait(&status) != child)
23550 ;
23551 return (
23552 /* Was there some problem with vforking? */
23553 child < 0
23554
23555 /* Did the child fail? (This shouldn't happen.) */
23556 || status
23557
23558 /* Did the vfork/compiler bug occur? */
23559 || parent != getpid()
23560
23561 /* Did the file descriptor bug occur? */
23562 || fstat(fileno(stdout), &st) != 0
23563 );
23564 }
23565}
23566_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023567if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023568 ac_cv_func_vfork_works=yes
23569else
cristy8b350f62009-11-15 23:12:43 +000023570 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023571fi
cristy8b350f62009-11-15 23:12:43 +000023572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23573 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023574fi
23575
cristy3ed852e2009-09-05 21:47:34 +000023576fi
cristy8b350f62009-11-15 23:12:43 +000023577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo "$ac_cv_func_vfork_works" >&6; }
23579
23580fi;
23581if test "x$ac_cv_func_fork_works" = xcross; then
23582 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023583 { $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 +000023584$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23585fi
23586
23587if test "x$ac_cv_func_vfork_works" = xyes; then
23588
cristy8b350f62009-11-15 23:12:43 +000023589$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023590
23591else
23592
cristy8b350f62009-11-15 23:12:43 +000023593$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023594
23595fi
23596if test "x$ac_cv_func_fork_works" = xyes; then
23597
cristy8b350f62009-11-15 23:12:43 +000023598$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023599
23600fi
23601
cristy8b350f62009-11-15 23:12:43 +000023602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023603$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023604if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023605 $as_echo_n "(cached) " >&6
23606else
cristy8b350f62009-11-15 23:12:43 +000023607 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023608 ac_cv_func_memcmp_working=no
23609else
cristy8b350f62009-11-15 23:12:43 +000023610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023611/* end confdefs.h. */
23612$ac_includes_default
23613int
23614main ()
23615{
23616
23617 /* Some versions of memcmp are not 8-bit clean. */
23618 char c0 = '\100', c1 = '\200', c2 = '\201';
23619 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23620 return 1;
23621
23622 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23623 or more and with at least one buffer not starting on a 4-byte boundary.
23624 William Lewis provided this test program. */
23625 {
23626 char foo[21];
23627 char bar[21];
23628 int i;
23629 for (i = 0; i < 4; i++)
23630 {
23631 char *a = foo + i;
23632 char *b = bar + i;
23633 strcpy (a, "--------01111111");
23634 strcpy (b, "--------10000000");
23635 if (memcmp (a, b, 16) >= 0)
23636 return 1;
23637 }
23638 return 0;
23639 }
23640
23641 ;
23642 return 0;
23643}
23644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023645if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023646 ac_cv_func_memcmp_working=yes
23647else
cristy8b350f62009-11-15 23:12:43 +000023648 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023649fi
cristy8b350f62009-11-15 23:12:43 +000023650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23651 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023652fi
23653
cristy3ed852e2009-09-05 21:47:34 +000023654fi
cristy8b350f62009-11-15 23:12:43 +000023655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023656$as_echo "$ac_cv_func_memcmp_working" >&6; }
23657test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23658 *" memcmp.$ac_objext "* ) ;;
23659 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23660 ;;
23661esac
23662
23663
cristy3ed852e2009-09-05 21:47:34 +000023664for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023665do :
23666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23667ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023669 cat >>confdefs.h <<_ACEOF
23670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23671_ACEOF
23672
23673fi
23674
23675done
23676
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023679if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023680 $as_echo_n "(cached) " >&6
23681else
23682 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23683 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23684 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023686/* end confdefs.h. */
23687$ac_includes_default
23688#ifdef HAVE_SYS_SELECT_H
23689# include <sys/select.h>
23690#endif
23691#ifdef HAVE_SYS_SOCKET_H
23692# include <sys/socket.h>
23693#endif
23694
23695int
23696main ()
23697{
23698extern int select ($ac_arg1,
23699 $ac_arg234, $ac_arg234, $ac_arg234,
23700 $ac_arg5);
23701 ;
23702 return 0;
23703}
23704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023705if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023706 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023707fi
cristy3ed852e2009-09-05 21:47:34 +000023708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 done
23710 done
23711done
23712# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023713: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023714
23715fi
cristy8b350f62009-11-15 23:12:43 +000023716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023717$as_echo "$ac_cv_func_select_args" >&6; }
23718ac_save_IFS=$IFS; IFS=','
23719set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23720IFS=$ac_save_IFS
23721shift
23722
23723cat >>confdefs.h <<_ACEOF
23724#define SELECT_TYPE_ARG1 $1
23725_ACEOF
23726
23727
23728cat >>confdefs.h <<_ACEOF
23729#define SELECT_TYPE_ARG234 ($2)
23730_ACEOF
23731
23732
23733cat >>confdefs.h <<_ACEOF
23734#define SELECT_TYPE_ARG5 ($3)
23735_ACEOF
23736
23737rm -f conftest*
23738
cristyda16f162011-02-19 23:52:17 +000023739if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023740 $as_echo_n "(cached) " >&6
23741else
23742 ac_cv_func_setvbuf_reversed=no
23743fi
23744
23745
cristy8b350f62009-11-15 23:12:43 +000023746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023747$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023748if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023749 $as_echo_n "(cached) " >&6
23750else
cristy8b350f62009-11-15 23:12:43 +000023751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023752/* end confdefs.h. */
23753#include <sys/types.h>
23754#include <signal.h>
23755
23756int
23757main ()
23758{
23759return *(signal (0, 0)) (0) == 1;
23760 ;
23761 return 0;
23762}
23763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023764if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023765 ac_cv_type_signal=int
23766else
cristy8b350f62009-11-15 23:12:43 +000023767 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023768fi
cristy3ed852e2009-09-05 21:47:34 +000023769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770fi
cristy8b350f62009-11-15 23:12:43 +000023771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023772$as_echo "$ac_cv_type_signal" >&6; }
23773
23774cat >>confdefs.h <<_ACEOF
23775#define RETSIGTYPE $ac_cv_type_signal
23776_ACEOF
23777
23778
cristy8b350f62009-11-15 23:12:43 +000023779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023780$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023781if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023782 $as_echo_n "(cached) " >&6
23783else
cristy8b350f62009-11-15 23:12:43 +000023784 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023785 ac_cv_func_strtod=no
23786else
cristy8b350f62009-11-15 23:12:43 +000023787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023788/* end confdefs.h. */
23789
23790$ac_includes_default
23791#ifndef strtod
23792double strtod ();
23793#endif
23794int
23795main()
23796{
23797 {
23798 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23799 char *string = " +69";
23800 char *term;
23801 double value;
23802 value = strtod (string, &term);
23803 if (value != 69 || term != (string + 4))
23804 return 1;
23805 }
23806
23807 {
23808 /* Under Solaris 2.4, strtod returns the wrong value for the
23809 terminating character under some conditions. */
23810 char *string = "NaN";
23811 char *term;
23812 strtod (string, &term);
23813 if (term != string && *(term - 1) == 0)
23814 return 1;
23815 }
23816 return 0;
23817}
23818
23819_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023820if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023821 ac_cv_func_strtod=yes
23822else
cristy8b350f62009-11-15 23:12:43 +000023823 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023824fi
cristy8b350f62009-11-15 23:12:43 +000023825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23826 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023827fi
23828
cristy3ed852e2009-09-05 21:47:34 +000023829fi
cristy8b350f62009-11-15 23:12:43 +000023830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023831$as_echo "$ac_cv_func_strtod" >&6; }
23832if test $ac_cv_func_strtod = no; then
23833 case " $LIBOBJS " in
23834 *" strtod.$ac_objext "* ) ;;
23835 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23836 ;;
23837esac
23838
cristy8b350f62009-11-15 23:12:43 +000023839ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023840if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023841
cristy3ed852e2009-09-05 21:47:34 +000023842fi
23843
cristy3ed852e2009-09-05 21:47:34 +000023844if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023846$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023847if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023848 $as_echo_n "(cached) " >&6
23849else
23850 ac_check_lib_save_LIBS=$LIBS
23851LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023853/* end confdefs.h. */
23854
23855/* Override any GCC internal prototype to avoid an error.
23856 Use char because int might match the return type of a GCC
23857 builtin and then its argument prototype would still apply. */
23858#ifdef __cplusplus
23859extern "C"
23860#endif
23861char pow ();
23862int
23863main ()
23864{
23865return pow ();
23866 ;
23867 return 0;
23868}
23869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023871 ac_cv_lib_m_pow=yes
23872else
cristy8b350f62009-11-15 23:12:43 +000023873 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023874fi
cristy8b350f62009-11-15 23:12:43 +000023875rm -f core conftest.err conftest.$ac_objext \
23876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023877LIBS=$ac_check_lib_save_LIBS
23878fi
cristy8b350f62009-11-15 23:12:43 +000023879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023880$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023881if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023882 POW_LIB=-lm
23883else
cristy8b350f62009-11-15 23:12:43 +000023884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23886fi
23887
23888fi
23889
23890fi
23891
cristy3ed852e2009-09-05 21:47:34 +000023892for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023893do :
23894 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023895if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023896 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023897#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023898_ACEOF
23899
cristy8b350f62009-11-15 23:12:43 +000023900ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023901if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023902
cristy8b350f62009-11-15 23:12:43 +000023903$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023904
23905fi
23906
23907fi
23908done
23909
23910
23911
cristy161b9262010-03-20 19:34:32 +000023912#
23913# Find math library
23914#
23915MATH_LIBS=''
23916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23917$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023918if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023919 $as_echo_n "(cached) " >&6
23920else
23921 ac_check_lib_save_LIBS=$LIBS
23922LIBS="-lm $LIBS"
23923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924/* end confdefs.h. */
23925
23926/* Override any GCC internal prototype to avoid an error.
23927 Use char because int might match the return type of a GCC
23928 builtin and then its argument prototype would still apply. */
23929#ifdef __cplusplus
23930extern "C"
23931#endif
23932char sqrt ();
23933int
23934main ()
23935{
23936return sqrt ();
23937 ;
23938 return 0;
23939}
23940_ACEOF
23941if ac_fn_c_try_link "$LINENO"; then :
23942 ac_cv_lib_m_sqrt=yes
23943else
23944 ac_cv_lib_m_sqrt=no
23945fi
23946rm -f core conftest.err conftest.$ac_objext \
23947 conftest$ac_exeext conftest.$ac_ext
23948LIBS=$ac_check_lib_save_LIBS
23949fi
23950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23951$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000023952if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000023953 MATH_LIBS="-lm"
23954fi
23955
23956LIBS="$MATH_LIBS $LIBS"
23957
23958
cristy47b022b2011-01-18 22:29:21 +000023959for 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 +000023960do :
23961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023964 cat >>confdefs.h <<_ACEOF
23965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23966_ACEOF
23967
23968fi
23969done
23970
23971
cristye43a45e2009-09-28 14:49:00 +000023972#
23973# Check for clock_gettime().
23974#
cristy8b350f62009-11-15 23:12:43 +000023975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023976$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023977if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000023978 $as_echo_n "(cached) " >&6
23979else
23980 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023982/* end confdefs.h. */
23983
23984/* Override any GCC internal prototype to avoid an error.
23985 Use char because int might match the return type of a GCC
23986 builtin and then its argument prototype would still apply. */
23987#ifdef __cplusplus
23988extern "C"
23989#endif
23990char clock_gettime ();
23991int
23992main ()
23993{
23994return clock_gettime ();
23995 ;
23996 return 0;
23997}
23998_ACEOF
23999for ac_lib in '' rt; do
24000 if test -z "$ac_lib"; then
24001 ac_res="none required"
24002 else
24003 ac_res=-l$ac_lib
24004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24005 fi
cristy8b350f62009-11-15 23:12:43 +000024006 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024007 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024008fi
cristy8b350f62009-11-15 23:12:43 +000024009rm -f core conftest.err conftest.$ac_objext \
24010 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024011 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024012 break
24013fi
24014done
cristyda16f162011-02-19 23:52:17 +000024015if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024016
cristye43a45e2009-09-28 14:49:00 +000024017else
24018 ac_cv_search_clock_gettime=no
24019fi
24020rm conftest.$ac_ext
24021LIBS=$ac_func_search_save_LIBS
24022fi
cristy8b350f62009-11-15 23:12:43 +000024023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024024$as_echo "$ac_cv_search_clock_gettime" >&6; }
24025ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024026if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24028
24029
cristy8b350f62009-11-15 23:12:43 +000024030$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024031
cristy8b350f62009-11-15 23:12:43 +000024032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024033$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024035/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024036
24037 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024038int
24039main ()
24040{
24041clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024042 ;
24043 return 0;
24044}
24045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024046if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024047
cristy8b350f62009-11-15 23:12:43 +000024048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024049$as_echo "yes" >&6; }
24050
cristy8b350f62009-11-15 23:12:43 +000024051$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024052
24053
24054else
cristy8b350f62009-11-15 23:12:43 +000024055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024056$as_echo "no" >&6; }
24057
24058fi
cristye43a45e2009-09-28 14:49:00 +000024059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24060
24061else
24062
cristy8b350f62009-11-15 23:12:43 +000024063 for ac_func in gettimeofday ftime
24064do :
24065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024067if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024068 cat >>confdefs.h <<_ACEOF
24069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24070_ACEOF
24071 break
24072fi
24073done
24074
24075
24076
24077fi
24078
24079
cristy3ed852e2009-09-05 21:47:34 +000024080########
24081#
24082# Check for function prototypes
24083#
24084########
24085
cristy8b350f62009-11-15 23:12:43 +000024086ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024087#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024088"
cristyda16f162011-02-19 23:52:17 +000024089if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024090 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024091else
cristy8b350f62009-11-15 23:12:43 +000024092 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024093fi
24094
cristy3ed852e2009-09-05 21:47:34 +000024095cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024096#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024098ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024099#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024100"
cristyda16f162011-02-19 23:52:17 +000024101if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024102 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024103else
cristy8b350f62009-11-15 23:12:43 +000024104 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024105fi
24106
cristy3ed852e2009-09-05 21:47:34 +000024107cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024108#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024109_ACEOF
24110
24111
cristy8b350f62009-11-15 23:12:43 +000024112ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024113#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024114"
cristyda16f162011-02-19 23:52:17 +000024115if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024116 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024117else
cristy8b350f62009-11-15 23:12:43 +000024118 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024119fi
24120
cristy3ed852e2009-09-05 21:47:34 +000024121cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024122#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024123_ACEOF
24124
24125
cristy8b350f62009-11-15 23:12:43 +000024126ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024127#include <stdio.h>
24128#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024129"
cristyda16f162011-02-19 23:52:17 +000024130if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024131 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024132else
cristy8b350f62009-11-15 23:12:43 +000024133 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024134fi
24135
cristy3ed852e2009-09-05 21:47:34 +000024136cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024137#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024138_ACEOF
24139
24140
cristy3ed852e2009-09-05 21:47:34 +000024141########
24142#
24143# C++ Support Tests (For Magick++)
24144#
24145########
24146have_magick_plus_plus='no'
24147if test "$with_magick_plus_plus" = 'yes'; then
24148 OLIBS="$LIBS"
24149 LIBS=''
24150 ac_ext=cpp
24151ac_cpp='$CXXCPP $CPPFLAGS'
24152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24155
24156
24157 # Full set of headers used...
24158 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24159 # functional iomanip iosfwd iostream iterator list string strstream utility
24160 ac_ext=cpp
24161ac_cpp='$CXXCPP $CPPFLAGS'
24162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24165
24166 ac_ext=cpp
24167ac_cpp='$CXXCPP $CPPFLAGS'
24168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24171if test -z "$CXX"; then
24172 if test -n "$CCC"; then
24173 CXX=$CCC
24174 else
24175 if test -n "$ac_tool_prefix"; then
24176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24177 do
24178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024182if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024183 $as_echo_n "(cached) " >&6
24184else
24185 if test -n "$CXX"; then
24186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24187else
24188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24189for as_dir in $PATH
24190do
24191 IFS=$as_save_IFS
24192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24195 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024197 break 2
24198 fi
24199done
cristy8b350f62009-11-15 23:12:43 +000024200 done
cristy3ed852e2009-09-05 21:47:34 +000024201IFS=$as_save_IFS
24202
24203fi
24204fi
24205CXX=$ac_cv_prog_CXX
24206if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024208$as_echo "$CXX" >&6; }
24209else
cristy8b350f62009-11-15 23:12:43 +000024210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024211$as_echo "no" >&6; }
24212fi
24213
24214
24215 test -n "$CXX" && break
24216 done
24217fi
24218if test -z "$CXX"; then
24219 ac_ct_CXX=$CXX
24220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24221do
24222 # Extract the first word of "$ac_prog", so it can be a program name with args.
24223set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024226if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024227 $as_echo_n "(cached) " >&6
24228else
24229 if test -n "$ac_ct_CXX"; then
24230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24231else
24232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24233for as_dir in $PATH
24234do
24235 IFS=$as_save_IFS
24236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24239 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024241 break 2
24242 fi
24243done
cristy8b350f62009-11-15 23:12:43 +000024244 done
cristy3ed852e2009-09-05 21:47:34 +000024245IFS=$as_save_IFS
24246
24247fi
24248fi
24249ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24250if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024252$as_echo "$ac_ct_CXX" >&6; }
24253else
cristy8b350f62009-11-15 23:12:43 +000024254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024255$as_echo "no" >&6; }
24256fi
24257
24258
24259 test -n "$ac_ct_CXX" && break
24260done
24261
24262 if test "x$ac_ct_CXX" = x; then
24263 CXX="g++"
24264 else
24265 case $cross_compiling:$ac_tool_warned in
24266yes:)
cristy8b350f62009-11-15 23:12:43 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24269ac_tool_warned=yes ;;
24270esac
24271 CXX=$ac_ct_CXX
24272 fi
24273fi
24274
24275 fi
24276fi
24277# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024278$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024279set X $ac_compile
24280ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024281for ac_option in --version -v -V -qversion; do
24282 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024283case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24286esac
cristy8b350f62009-11-15 23:12:43 +000024287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24288$as_echo "$ac_try_echo"; } >&5
24289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024290 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024291 if test -s conftest.err; then
24292 sed '10a\
24293... rest of stderr output deleted ...
24294 10q' conftest.err >conftest.er1
24295 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024296 fi
cristycd4c5312009-11-22 01:19:08 +000024297 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24299 test $ac_status = 0; }
24300done
cristy3ed852e2009-09-05 21:47:34 +000024301
cristy8b350f62009-11-15 23:12:43 +000024302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024303$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024304if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024305 $as_echo_n "(cached) " >&6
24306else
cristy8b350f62009-11-15 23:12:43 +000024307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024308/* end confdefs.h. */
24309
24310int
24311main ()
24312{
24313#ifndef __GNUC__
24314 choke me
24315#endif
24316
24317 ;
24318 return 0;
24319}
24320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024321if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024322 ac_compiler_gnu=yes
24323else
cristy8b350f62009-11-15 23:12:43 +000024324 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024325fi
cristy3ed852e2009-09-05 21:47:34 +000024326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24327ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24328
24329fi
cristy8b350f62009-11-15 23:12:43 +000024330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024331$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24332if test $ac_compiler_gnu = yes; then
24333 GXX=yes
24334else
24335 GXX=
24336fi
24337ac_test_CXXFLAGS=${CXXFLAGS+set}
24338ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024341if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024342 $as_echo_n "(cached) " >&6
24343else
24344 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24345 ac_cxx_werror_flag=yes
24346 ac_cv_prog_cxx_g=no
24347 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024349/* end confdefs.h. */
24350
24351int
24352main ()
24353{
24354
24355 ;
24356 return 0;
24357}
24358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024359if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024360 ac_cv_prog_cxx_g=yes
24361else
cristy8b350f62009-11-15 23:12:43 +000024362 CXXFLAGS=""
24363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024364/* end confdefs.h. */
24365
24366int
24367main ()
24368{
24369
24370 ;
24371 return 0;
24372}
24373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024374if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024375
cristy8b350f62009-11-15 23:12:43 +000024376else
24377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024378 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024380/* end confdefs.h. */
24381
24382int
24383main ()
24384{
24385
24386 ;
24387 return 0;
24388}
24389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024390if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024391 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024392fi
cristy3ed852e2009-09-05 21:47:34 +000024393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394fi
cristy3ed852e2009-09-05 21:47:34 +000024395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24396fi
cristy3ed852e2009-09-05 21:47:34 +000024397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24399fi
cristy8b350f62009-11-15 23:12:43 +000024400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024401$as_echo "$ac_cv_prog_cxx_g" >&6; }
24402if test "$ac_test_CXXFLAGS" = set; then
24403 CXXFLAGS=$ac_save_CXXFLAGS
24404elif test $ac_cv_prog_cxx_g = yes; then
24405 if test "$GXX" = yes; then
24406 CXXFLAGS="-g -O2"
24407 else
24408 CXXFLAGS="-g"
24409 fi
24410else
24411 if test "$GXX" = yes; then
24412 CXXFLAGS="-O2"
24413 else
24414 CXXFLAGS=
24415 fi
24416fi
24417ac_ext=cpp
24418ac_cpp='$CXXCPP $CPPFLAGS'
24419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24422
cristy73bd4a52010-10-05 11:24:23 +000024423depcc="$CXX" am_compiler_list=
24424
24425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24426$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024427if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024428 $as_echo_n "(cached) " >&6
24429else
24430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24431 # We make a subdir and do the tests there. Otherwise we can end up
24432 # making bogus files that we don't know about and never remove. For
24433 # instance it was reported that on HP-UX the gcc test will end up
24434 # making a dummy file named `D' -- because `-MD' means `put the output
24435 # in D'.
24436 mkdir conftest.dir
24437 # Copy depcomp to subdir because otherwise we won't find it if we're
24438 # using a relative directory.
24439 cp "$am_depcomp" conftest.dir
24440 cd conftest.dir
24441 # We will build objects and dependencies in a subdirectory because
24442 # it helps to detect inapplicable dependency modes. For instance
24443 # both Tru64's cc and ICC support -MD to output dependencies as a
24444 # side effect of compilation, but ICC will put the dependencies in
24445 # the current directory while Tru64 will put them in the object
24446 # directory.
24447 mkdir sub
24448
24449 am_cv_CXX_dependencies_compiler_type=none
24450 if test "$am_compiler_list" = ""; then
24451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24452 fi
24453 am__universal=false
24454 case " $depcc " in #(
24455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24456 esac
24457
24458 for depmode in $am_compiler_list; do
24459 # Setup a source with many dependencies, because some compilers
24460 # like to wrap large dependency lists on column 80 (with \), and
24461 # we should not choose a depcomp mode which is confused by this.
24462 #
24463 # We need to recreate these files for each test, as the compiler may
24464 # overwrite some of them when testing with obscure command lines.
24465 # This happens at least with the AIX C compiler.
24466 : > sub/conftest.c
24467 for i in 1 2 3 4 5 6; do
24468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24470 # Solaris 8's {/usr,}/bin/sh.
24471 touch sub/conftst$i.h
24472 done
24473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24474
24475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24476 # mode. It turns out that the SunPro C++ compiler does not properly
24477 # handle `-M -o', and we need to detect this. Also, some Intel
24478 # versions had trouble with output in subdirs
24479 am__obj=sub/conftest.${OBJEXT-o}
24480 am__minus_obj="-o $am__obj"
24481 case $depmode in
24482 gcc)
24483 # This depmode causes a compiler race in universal mode.
24484 test "$am__universal" = false || continue
24485 ;;
24486 nosideeffect)
24487 # after this tag, mechanisms are not by side-effect, so they'll
24488 # only be used when explicitly requested
24489 if test "x$enable_dependency_tracking" = xyes; then
24490 continue
24491 else
24492 break
24493 fi
24494 ;;
24495 msvisualcpp | msvcmsys)
24496 # This compiler won't grok `-c -o', but also, the minuso test has
24497 # not run yet. These depmodes are late enough in the game, and
24498 # so weak that their functioning should not be impacted.
24499 am__obj=conftest.${OBJEXT-o}
24500 am__minus_obj=
24501 ;;
24502 none) break ;;
24503 esac
24504 if depmode=$depmode \
24505 source=sub/conftest.c object=$am__obj \
24506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24508 >/dev/null 2>conftest.err &&
24509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24513 # icc doesn't choke on unknown options, it will just issue warnings
24514 # or remarks (even with -Werror). So we grep stderr for any message
24515 # that says an option was ignored or not supported.
24516 # When given -MP, icc 7.0 and 7.1 complain thusly:
24517 # icc: Command line warning: ignoring option '-M'; no argument required
24518 # The diagnosis changed in icc 8.0:
24519 # icc: Command line remark: option '-MP' not supported
24520 if (grep 'ignoring option' conftest.err ||
24521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24522 am_cv_CXX_dependencies_compiler_type=$depmode
24523 break
24524 fi
24525 fi
24526 done
24527
24528 cd ..
24529 rm -rf conftest.dir
24530else
24531 am_cv_CXX_dependencies_compiler_type=none
24532fi
24533
24534fi
24535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24536$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24537CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24538
24539 if
24540 test "x$enable_dependency_tracking" != xno \
24541 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24542 am__fastdepCXX_TRUE=
24543 am__fastdepCXX_FALSE='#'
24544else
24545 am__fastdepCXX_TRUE='#'
24546 am__fastdepCXX_FALSE=
24547fi
24548
24549
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24551$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024552if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024553 $as_echo_n "(cached) " >&6
24554else
24555
24556 ac_ext=cpp
24557ac_cpp='$CXXCPP $CPPFLAGS'
24558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24561
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563/* end confdefs.h. */
24564
24565int f(int x){return 1;}
24566int f(char x){return 1;}
24567int f(bool x){return 1;}
24568
24569int
24570main ()
24571{
24572bool b = true; return f(b);
24573 ;
24574 return 0;
24575}
24576_ACEOF
24577if ac_fn_cxx_try_compile "$LINENO"; then :
24578 ax_cv_cxx_bool=yes
24579else
24580 ax_cv_cxx_bool=no
24581fi
24582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583 ac_ext=cpp
24584ac_cpp='$CXXCPP $CPPFLAGS'
24585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24588
24589
24590fi
24591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24592$as_echo "$ax_cv_cxx_bool" >&6; }
24593if test "$ax_cv_cxx_bool" = yes; then
24594
24595$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24596
24597fi
24598
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24600$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024601if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024602 $as_echo_n "(cached) " >&6
24603else
24604
24605 ac_ext=cpp
24606ac_cpp='$CXXCPP $CPPFLAGS'
24607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24610
24611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24612/* end confdefs.h. */
24613namespace Outer { namespace Inner { int i = 0; }}
24614int
24615main ()
24616{
24617using namespace Outer::Inner; return i;
24618 ;
24619 return 0;
24620}
24621_ACEOF
24622if ac_fn_cxx_try_compile "$LINENO"; then :
24623 ax_cv_cxx_namespaces=yes
24624else
24625 ax_cv_cxx_namespaces=no
24626fi
24627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24628 ac_ext=cpp
24629ac_cpp='$CXXCPP $CPPFLAGS'
24630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24633
24634
24635fi
24636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24637$as_echo "$ax_cv_cxx_namespaces" >&6; }
24638if test "$ax_cv_cxx_namespaces" = yes; then
24639
24640$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24641
24642fi
24643
24644
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24646$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024647if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024648 $as_echo_n "(cached) " >&6
24649else
24650
24651 ac_ext=cpp
24652ac_cpp='$CXXCPP $CPPFLAGS'
24653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24656
24657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658/* end confdefs.h. */
24659#include <iostream>
24660 std::istream& is = std::cin;
24661int
24662main ()
24663{
24664
24665 ;
24666 return 0;
24667}
24668_ACEOF
24669if ac_fn_cxx_try_compile "$LINENO"; then :
24670 ax_cv_cxx_have_std_namespace=yes
24671else
24672 ax_cv_cxx_have_std_namespace=no
24673fi
24674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24675 ac_ext=cpp
24676ac_cpp='$CXXCPP $CPPFLAGS'
24677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24680
24681
24682fi
24683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24684$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24685 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24686
24687$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24688
24689 fi
24690
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24692$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024693if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024694 $as_echo_n "(cached) " >&6
24695else
24696
24697
24698 ac_ext=cpp
24699ac_cpp='$CXXCPP $CPPFLAGS'
24700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24703
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705/* end confdefs.h. */
24706#include <iostream>
24707#include <map>
24708#include <iomanip>
24709#include <cmath>
24710#ifdef HAVE_NAMESPACES
24711using namespace std;
24712#endif
24713int
24714main ()
24715{
24716return 0;
24717 ;
24718 return 0;
24719}
24720_ACEOF
24721if ac_fn_cxx_try_compile "$LINENO"; then :
24722 ac_cv_cxx_have_std_libs=yes
24723else
24724 ac_cv_cxx_have_std_libs=no
24725fi
24726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 ac_ext=cpp
24728ac_cpp='$CXXCPP $CPPFLAGS'
24729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24732
24733
24734fi
24735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24736$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24737if test "$ac_cv_cxx_have_std_libs" = yes; then
24738
24739$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24740
24741fi
24742
cristy3ed852e2009-09-05 21:47:34 +000024743
24744 OPENMP_CXXFLAGS=
24745 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024746if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024747 enableval=$enable_openmp;
24748fi
24749
24750 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24752$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024753if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024754 $as_echo_n "(cached) " >&6
24755else
cristy8b350f62009-11-15 23:12:43 +000024756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024758
24759#ifndef _OPENMP
24760 choke me
24761#endif
24762#include <omp.h>
24763int main () { return omp_get_num_threads (); }
24764
24765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024766if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024767 ac_cv_prog_cxx_openmp='none needed'
24768else
cristy8b350f62009-11-15 23:12:43 +000024769 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024770 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24771 ac_save_CXXFLAGS=$CXXFLAGS
24772 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24774/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024775
24776#ifndef _OPENMP
24777 choke me
24778#endif
24779#include <omp.h>
24780int main () { return omp_get_num_threads (); }
24781
24782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024783if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024784 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024785fi
cristy8b350f62009-11-15 23:12:43 +000024786rm -f core conftest.err conftest.$ac_objext \
24787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024788 CXXFLAGS=$ac_save_CXXFLAGS
24789 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24790 break
24791 fi
24792 done
24793fi
cristy8b350f62009-11-15 23:12:43 +000024794rm -f core conftest.err conftest.$ac_objext \
24795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024796fi
cristy8b350f62009-11-15 23:12:43 +000024797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024798$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24799 case $ac_cv_prog_cxx_openmp in #(
24800 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024801 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024802 *)
cristy8b350f62009-11-15 23:12:43 +000024803 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024804 esac
24805 fi
24806
24807
24808 ac_ext=c
24809ac_cpp='$CPP $CPPFLAGS'
24810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24812ac_compiler_gnu=$ac_cv_c_compiler_gnu
24813
24814
cristy8b350f62009-11-15 23:12:43 +000024815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024816$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24817 if \
cristy964cb7f2010-04-25 23:18:00 +000024818 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024819 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024820 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024821 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024822 have_magick_plus_plus='yes'
24823 else
24824 have_magick_plus_plus='no (failed tests)'
24825 fi
cristy8b350f62009-11-15 23:12:43 +000024826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024827$as_echo "$have_magick_plus_plus" >&6; }
24828 LIBS="$OLIBS"
24829fi
cristy73bd4a52010-10-05 11:24:23 +000024830 if test "$have_magick_plus_plus" = 'yes'; then
24831 WITH_MAGICK_PLUS_PLUS_TRUE=
24832 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24833else
24834 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24835 WITH_MAGICK_PLUS_PLUS_FALSE=
24836fi
24837
cristy3ed852e2009-09-05 21:47:34 +000024838
24839# Only check for delegate libraries in subdirectories if requested.
24840if test "$enable_delegate_build" != 'no'; then
24841 # Check for delegate sub-directories and add -I & -L options as required.
24842 # This presumes that delegates are installed as detailed in the ImageMagick
24843 # README. If delegates are installed in a standard location where the
24844 # compiler will automatically find them then these options should not be
24845 # required.
24846
24847 #
24848 # Most delegates have includes in the same directory as the library, but not all...
24849 #
24850 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024851 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 +000024852 if test -d "$builddir/$dir"; then
24853 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24854 else
24855 if test -d "$srcdirfull/$dir"; then
24856 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24857 fi
24858 fi
24859 done
24860
24861 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024862 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 +000024863 if test -d "$builddir/$dir/.libs"; then
24864 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24865 else
24866 if test -d "$srcdirfull/$dir/.libs"; then
24867 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24868 fi
24869 fi
24870 if test -d "$builddir/$dir"; then
24871 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24872 else
24873 if test -d "$srcdirfull/$dir"; then
24874 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24875 fi
24876 fi
24877 done
24878fi
24879
24880# Assume that delegate headers reside under same directory as ImageMagick
24881# installation prefix.
24882MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24883
24884#
24885# Find the X11 RGB database
24886#
cristy8b350f62009-11-15 23:12:43 +000024887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024888$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024889if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024890 $as_echo_n "(cached) " >&6
24891else
24892 # Look for the header file in a standard set of common directories.
24893# Check X11 before X11Rn because it is often a symlink to the current release.
24894 for ac_dir in \
24895 /lib/usr/lib/X11 \
24896 /usr/X11/lib \
24897 /usr/X11R4/lib \
24898 /usr/X11R5/lib \
24899 /usr/X11R6/lib \
24900 /usr/X11R7/lib \
24901 /usr/X386/lib \
24902 /usr/XFree86/lib/X11 \
24903 /usr/athena/lib \
24904 /usr/lib \
24905 /usr/lib/X11 \
24906 /usr/lib/X11R4 \
24907 /usr/lib/X11R5 \
24908 /usr/lib/X11R6 \
24909 /usr/lib/X11R7 \
24910 /usr/local/X11/lib \
24911 /usr/local/X11R4/lib \
24912 /usr/local/X11R5/lib \
24913 /usr/local/X11R6/lib \
24914 /usr/local/lib \
24915 /usr/local/lib/X11 \
24916 /usr/local/lib/X11R4 \
24917 /usr/local/lib/X11R5 \
24918 /usr/local/lib/X11R6 \
24919 /usr/local/lib/X11R7 \
24920 /usr/local/x11r5/lib \
24921 /usr/lpp/Xamples/lib \
24922 /usr/openwin/lib \
24923 /usr/openwin/share/lib \
24924 /usr/unsupported/lib \
24925 /usr/x386/lib \
24926 ; do
24927 if test -f "$ac_dir/X11/rgb.txt"; then
24928 im_cv_x_configure="$ac_dir/X11/"
24929 break
24930 elif test -f "$ac_dir/rgb.txt"; then
24931 im_cv_x_configure="$ac_dir/"
24932 break
24933 fi
24934
24935 done
24936fi
cristy8b350f62009-11-15 23:12:43 +000024937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024938$as_echo "$im_cv_x_configure" >&6; }
24939X11_CONFIGURE_PATH="$im_cv_x_configure"
24940case "${build_os}" in
24941 mingw* )
24942 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24943 ;;
24944esac
24945
24946cat >>confdefs.h <<_ACEOF
24947#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24948_ACEOF
24949
24950
24951#
24952# Find OpenMP library
24953#
24954GOMP_LIBS=''
24955if test "$enable_openmp" != 'no'; then
24956 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024958$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024959if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024960 $as_echo_n "(cached) " >&6
24961else
24962 ac_check_lib_save_LIBS=$LIBS
24963LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024965/* end confdefs.h. */
24966
24967/* Override any GCC internal prototype to avoid an error.
24968 Use char because int might match the return type of a GCC
24969 builtin and then its argument prototype would still apply. */
24970#ifdef __cplusplus
24971extern "C"
24972#endif
24973char GOMP_parallel_start ();
24974int
24975main ()
24976{
24977return GOMP_parallel_start ();
24978 ;
24979 return 0;
24980}
24981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024982if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024983 ac_cv_lib_gomp_GOMP_parallel_start=yes
24984else
cristy8b350f62009-11-15 23:12:43 +000024985 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024986fi
cristy8b350f62009-11-15 23:12:43 +000024987rm -f core conftest.err conftest.$ac_objext \
24988 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024989LIBS=$ac_check_lib_save_LIBS
24990fi
cristy8b350f62009-11-15 23:12:43 +000024991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024992$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000024993if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024994 GOMP_LIBS="-lgomp"
24995fi
24996 # gcc
24997 else
cristy8b350f62009-11-15 23:12:43 +000024998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024999$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025000if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025001 $as_echo_n "(cached) " >&6
25002else
25003 ac_check_lib_save_LIBS=$LIBS
25004LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025006/* end confdefs.h. */
25007
25008/* Override any GCC internal prototype to avoid an error.
25009 Use char because int might match the return type of a GCC
25010 builtin and then its argument prototype would still apply. */
25011#ifdef __cplusplus
25012extern "C"
25013#endif
25014char sunw_mp_register_warn ();
25015int
25016main ()
25017{
25018return sunw_mp_register_warn ();
25019 ;
25020 return 0;
25021}
25022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025023if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025024 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25025else
cristy8b350f62009-11-15 23:12:43 +000025026 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025027fi
cristy8b350f62009-11-15 23:12:43 +000025028rm -f core conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025030LIBS=$ac_check_lib_save_LIBS
25031fi
cristy8b350f62009-11-15 23:12:43 +000025032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025033$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025034if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025035 GOMP_LIBS="-lmtsk"
25036fi
25037 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025039$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025040if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025041 $as_echo_n "(cached) " >&6
25042else
25043 ac_check_lib_save_LIBS=$LIBS
25044LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025046/* end confdefs.h. */
25047
25048/* Override any GCC internal prototype to avoid an error.
25049 Use char because int might match the return type of a GCC
25050 builtin and then its argument prototype would still apply. */
25051#ifdef __cplusplus
25052extern "C"
25053#endif
25054char _xlsmpFlush ();
25055int
25056main ()
25057{
25058return _xlsmpFlush ();
25059 ;
25060 return 0;
25061}
25062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025063if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025064 ac_cv_lib_xlsmp__xlsmpFlush=yes
25065else
cristy8b350f62009-11-15 23:12:43 +000025066 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025067fi
cristy8b350f62009-11-15 23:12:43 +000025068rm -f core conftest.err conftest.$ac_objext \
25069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025070LIBS=$ac_check_lib_save_LIBS
25071fi
cristy8b350f62009-11-15 23:12:43 +000025072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025073$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025074if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025075 GOMP_LIBS="-lxlsmp"
25076fi
25077 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025079$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025080if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025081 $as_echo_n "(cached) " >&6
25082else
25083 ac_check_lib_save_LIBS=$LIBS
25084LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025086/* end confdefs.h. */
25087
25088/* Override any GCC internal prototype to avoid an error.
25089 Use char because int might match the return type of a GCC
25090 builtin and then its argument prototype would still apply. */
25091#ifdef __cplusplus
25092extern "C"
25093#endif
25094char mp_destroy ();
25095int
25096main ()
25097{
25098return mp_destroy ();
25099 ;
25100 return 0;
25101}
25102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025104 ac_cv_lib_mp_mp_destroy=yes
25105else
cristy8b350f62009-11-15 23:12:43 +000025106 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025107fi
cristy8b350f62009-11-15 23:12:43 +000025108rm -f core conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025110LIBS=$ac_check_lib_save_LIBS
25111fi
cristy8b350f62009-11-15 23:12:43 +000025112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025113$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025114if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025115 GOMP_LIBS="-lmp"
25116fi
25117 # SGI IRIX 6.5 MIPSpro C/C++
25118 fi
25119 LIBS="$GOMP_LIBS $LIBS"
25120fi
25121
25122
25123#
25124# Find Posix threads library
25125#
25126THREAD_LIBS=''
25127if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25128
25129 if test "x$PTHREAD_LIBS" = "x"; then
25130 case "${host_cpu}-${host_os}" in
25131 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025132
25133
25134
25135ac_ext=c
25136ac_cpp='$CPP $CPPFLAGS'
25137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25139ac_compiler_gnu=$ac_cv_c_compiler_gnu
25140
25141magick_pthread_lib_ok=no
25142
25143LIB=-lc_r
25144save_LIBS="$LIBS"
25145LIBS="$LIBS $LIB"
25146
25147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25148$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25150/* end confdefs.h. */
25151#include <pthread.h>
25152int
25153main ()
25154{
25155 pthread_t th;
25156 pthread_join(th, 0);
25157 pthread_attr_init(0);
25158 pthread_cleanup_push(0, 0);
25159 pthread_create(0,0,0,0);
25160 pthread_cleanup_pop(0);
25161 ;
25162 return 0;
25163}
25164_ACEOF
25165if ac_fn_c_try_link "$LINENO"; then :
25166 magick_pthread_lib_ok=yes
25167fi
25168rm -f core conftest.err conftest.$ac_objext \
25169 conftest$ac_exeext conftest.$ac_ext
25170
25171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25172$as_echo "${magick_pthread_lib_ok}" >&6; }
25173if test "$magick_pthread_lib_ok" = yes
25174then
25175 PTHREAD_LIBS=-lc_r
25176 :
25177else
25178
25179 :
25180fi
25181
25182LIBS="$save_LIBS"
25183
25184ac_ext=c
25185ac_cpp='$CPP $CPPFLAGS'
25186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25188ac_compiler_gnu=$ac_cv_c_compiler_gnu
25189
25190 ;;
cristy3ed852e2009-09-05 21:47:34 +000025191 esac
25192 fi
25193
25194 for lib in pthread pthreads; do
25195 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025196
25197
25198
25199ac_ext=c
25200ac_cpp='$CPP $CPPFLAGS'
25201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25203ac_compiler_gnu=$ac_cv_c_compiler_gnu
25204
25205magick_pthread_lib_ok=no
25206
25207LIB=-l$lib
25208save_LIBS="$LIBS"
25209LIBS="$LIBS $LIB"
25210
25211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25212$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25214/* end confdefs.h. */
25215#include <pthread.h>
25216int
25217main ()
25218{
25219 pthread_t th;
25220 pthread_join(th, 0);
25221 pthread_attr_init(0);
25222 pthread_cleanup_push(0, 0);
25223 pthread_create(0,0,0,0);
25224 pthread_cleanup_pop(0);
25225 ;
25226 return 0;
25227}
25228_ACEOF
25229if ac_fn_c_try_link "$LINENO"; then :
25230 magick_pthread_lib_ok=yes
25231fi
25232rm -f core conftest.err conftest.$ac_objext \
25233 conftest$ac_exeext conftest.$ac_ext
25234
25235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25236$as_echo "${magick_pthread_lib_ok}" >&6; }
25237if test "$magick_pthread_lib_ok" = yes
25238then
25239 PTHREAD_LIBS=-l$lib
25240 :
25241else
25242
25243 :
25244fi
25245
25246LIBS="$save_LIBS"
25247
25248ac_ext=c
25249ac_cpp='$CPP $CPPFLAGS'
25250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25252ac_compiler_gnu=$ac_cv_c_compiler_gnu
25253
25254
cristy3ed852e2009-09-05 21:47:34 +000025255 fi
25256 done
25257
25258 THREAD_LIBS="$PTHREAD_LIBS"
25259 LIBS="$LIBS $THREAD_LIBS"
25260fi
25261
25262
25263#
25264# Check for umem.
25265#
25266have_umem='no'
25267UMEM_LIBS=''
25268if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025270$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025272$as_echo "" >&6; }
25273 failed=0
25274 passed=0
cristy8b350f62009-11-15 23:12:43 +000025275 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025276if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025277 passed=`expr $passed + 1`
25278else
25279 failed=`expr $failed + 1`
25280fi
25281
25282
cristy8b350f62009-11-15 23:12:43 +000025283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025284$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025285if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025286 $as_echo_n "(cached) " >&6
25287else
25288 ac_check_lib_save_LIBS=$LIBS
25289LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025291/* end confdefs.h. */
25292
25293/* Override any GCC internal prototype to avoid an error.
25294 Use char because int might match the return type of a GCC
25295 builtin and then its argument prototype would still apply. */
25296#ifdef __cplusplus
25297extern "C"
25298#endif
25299char umem_alloc ();
25300int
25301main ()
25302{
25303return umem_alloc ();
25304 ;
25305 return 0;
25306}
25307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025308if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025309 ac_cv_lib_umem_umem_alloc=yes
25310else
cristy8b350f62009-11-15 23:12:43 +000025311 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025312fi
cristy8b350f62009-11-15 23:12:43 +000025313rm -f core conftest.err conftest.$ac_objext \
25314 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025315LIBS=$ac_check_lib_save_LIBS
25316fi
cristy8b350f62009-11-15 23:12:43 +000025317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025318$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025319if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025320 passed=`expr $passed + 1`
25321else
25322 failed=`expr $failed + 1`
25323fi
25324
cristy8b350f62009-11-15 23:12:43 +000025325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025326$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025327if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025328 $as_echo_n "(cached) " >&6
25329else
25330 ac_check_lib_save_LIBS=$LIBS
25331LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025333/* end confdefs.h. */
25334
25335/* Override any GCC internal prototype to avoid an error.
25336 Use char because int might match the return type of a GCC
25337 builtin and then its argument prototype would still apply. */
25338#ifdef __cplusplus
25339extern "C"
25340#endif
25341char umem_free ();
25342int
25343main ()
25344{
25345return umem_free ();
25346 ;
25347 return 0;
25348}
25349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025351 ac_cv_lib_umem_umem_free=yes
25352else
cristy8b350f62009-11-15 23:12:43 +000025353 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025354fi
cristy8b350f62009-11-15 23:12:43 +000025355rm -f core conftest.err conftest.$ac_objext \
25356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025357LIBS=$ac_check_lib_save_LIBS
25358fi
cristy8b350f62009-11-15 23:12:43 +000025359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025361if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 passed=`expr $passed + 1`
25363else
25364 failed=`expr $failed + 1`
25365fi
25366
cristy8b350f62009-11-15 23:12:43 +000025367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025368$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25369 if test $passed -gt 0; then
25370 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025372$as_echo "no -- some components failed test" >&6; }
25373 have_umem='no (failed tests)'
25374 else
25375 UMEM_LIBS='-lumem'
25376 LIBS="$UMEM_LIBS $LIBS"
25377
cristy8b350f62009-11-15 23:12:43 +000025378$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025379
cristy8b350f62009-11-15 23:12:43 +000025380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025381$as_echo "yes" >&6; }
25382 have_umem='yes'
25383 fi
25384 else
cristy8b350f62009-11-15 23:12:43 +000025385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025386$as_echo "no" >&6; }
25387 fi
25388fi
cristy73bd4a52010-10-05 11:24:23 +000025389 if test "$have_umem" = 'yes'; then
25390 HasUMEM_TRUE=
25391 HasUMEM_FALSE='#'
25392else
25393 HasUMEM_TRUE='#'
25394 HasUMEM_FALSE=
25395fi
25396
cristy3ed852e2009-09-05 21:47:34 +000025397
25398
25399#
25400# Add support for ccmalloc memory debugging library if requested
25401#
25402have_ccmalloc='no'
25403CCMALLOC_LIBS=''
25404if test "$enable_ccmalloc" = 'yes'; then
25405 # Extract the first word of "ccmalloc", so it can be a program name with args.
25406set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025409if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025410 $as_echo_n "(cached) " >&6
25411else
25412 case $CCMALLOCDelegate in
25413 [\\/]* | ?:[\\/]*)
25414 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25415 ;;
25416 *)
25417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25418for as_dir in $PATH
25419do
25420 IFS=$as_save_IFS
25421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25424 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025426 break 2
25427 fi
25428done
cristy8b350f62009-11-15 23:12:43 +000025429 done
cristy3ed852e2009-09-05 21:47:34 +000025430IFS=$as_save_IFS
25431
25432 ;;
25433esac
25434fi
25435CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25436if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438$as_echo "$CCMALLOCDelegate" >&6; }
25439else
cristy8b350f62009-11-15 23:12:43 +000025440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025441$as_echo "no" >&6; }
25442fi
25443
25444
25445 if test -n "$CCMALLOCDelegate"; then
25446 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25447 OLIBS="$LIBS"
25448 # Assume that gcc is used with ccmalloc.
25449 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025451$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025452if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025453 $as_echo_n "(cached) " >&6
25454else
25455 ac_check_lib_save_LIBS=$LIBS
25456LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025458/* end confdefs.h. */
25459
25460/* Override any GCC internal prototype to avoid an error.
25461 Use char because int might match the return type of a GCC
25462 builtin and then its argument prototype would still apply. */
25463#ifdef __cplusplus
25464extern "C"
25465#endif
25466char ccmalloc_malloc ();
25467int
25468main ()
25469{
25470return ccmalloc_malloc ();
25471 ;
25472 return 0;
25473}
25474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025475if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025476 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25477else
cristy8b350f62009-11-15 23:12:43 +000025478 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025479fi
cristy8b350f62009-11-15 23:12:43 +000025480rm -f core conftest.err conftest.$ac_objext \
25481 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025482LIBS=$ac_check_lib_save_LIBS
25483fi
cristy8b350f62009-11-15 23:12:43 +000025484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025485$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025486if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025487 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25488fi
25489
25490 if test -n "$CCMALLOC_LIBS"; then
25491 LIBS="$OLIBS"
25492 LIBS="$LIBS $CCMALLOC_LIBS"
25493 have_ccmalloc='yes'
25494 else
25495 LIBS="$OLIBS"
25496 fi
25497 fi
25498fi
25499
25500#
25501# Add support for efence memory debugging library if requested
25502#
25503if test "$enable_efence" = 'yes'; then
25504 EFENCE_LIBS='-lefence'
25505 LIBS="$EFENCE_LIBS $LIBS"
25506fi
25507
cristy3ed852e2009-09-05 21:47:34 +000025508
25509#
25510# Check for BZLIB
25511#
25512
25513
25514# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025515if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025516 withval=$with_bzlib; with_bzlib=$withval
25517else
25518 with_bzlib='yes'
25519fi
25520
25521
25522if test "$with_bzlib" != 'yes'; then
25523 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25524fi
25525
25526have_bzlib='no'
25527if test "$with_bzlib" != 'no'; then
25528 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025530$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025532$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025534$as_echo "" >&6; }
25535 failed=0
25536 passed=0
25537 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025538 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025539if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025540 passed=`expr $passed + 1`
25541else
25542 failed=`expr $failed + 1`
25543fi
25544
25545
cristy8b350f62009-11-15 23:12:43 +000025546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025547$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025548if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025549 $as_echo_n "(cached) " >&6
25550else
25551 ac_check_lib_save_LIBS=$LIBS
25552LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025554/* end confdefs.h. */
25555
25556/* Override any GCC internal prototype to avoid an error.
25557 Use char because int might match the return type of a GCC
25558 builtin and then its argument prototype would still apply. */
25559#ifdef __cplusplus
25560extern "C"
25561#endif
25562char BZ2_bzDecompress ();
25563int
25564main ()
25565{
25566return BZ2_bzDecompress ();
25567 ;
25568 return 0;
25569}
25570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025571if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025572 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25573else
cristy8b350f62009-11-15 23:12:43 +000025574 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025575fi
cristy8b350f62009-11-15 23:12:43 +000025576rm -f core conftest.err conftest.$ac_objext \
25577 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025578LIBS=$ac_check_lib_save_LIBS
25579fi
cristy8b350f62009-11-15 23:12:43 +000025580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025581$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025582if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025583 found_libbz=`expr $found_libbz + 1`
25584fi
25585
25586 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025588$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025589if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025590 $as_echo_n "(cached) " >&6
25591else
25592 ac_check_lib_save_LIBS=$LIBS
25593LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025595/* end confdefs.h. */
25596
25597/* Override any GCC internal prototype to avoid an error.
25598 Use char because int might match the return type of a GCC
25599 builtin and then its argument prototype would still apply. */
25600#ifdef __cplusplus
25601extern "C"
25602#endif
25603char _imp__BZ2_decompress ();
25604int
25605main ()
25606{
25607return _imp__BZ2_decompress ();
25608 ;
25609 return 0;
25610}
25611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025613 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25614else
cristy8b350f62009-11-15 23:12:43 +000025615 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025616fi
cristy8b350f62009-11-15 23:12:43 +000025617rm -f core conftest.err conftest.$ac_objext \
25618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025619LIBS=$ac_check_lib_save_LIBS
25620fi
cristy8b350f62009-11-15 23:12:43 +000025621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025622$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025623if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025624 found_libbz=`expr $found_libbz + 1`
25625fi
25626
25627 fi
25628 if test $found_libbz -gt 0; then
25629 passed=`expr $passed + 1`
25630 else
25631 failed=`expr $failed + 1`
25632 fi
cristy8b350f62009-11-15 23:12:43 +000025633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025634$as_echo_n "checking if BZLIB package is complete... " >&6; }
25635 if test $passed -gt 0; then
25636 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025638$as_echo "no -- some components failed test" >&6; }
25639 have_bzlib='no (failed tests)'
25640 else
25641 BZLIB_LIBS='-lbz2'
25642 LIBS="$BZLIB_LIBS $LIBS"
25643
cristy8b350f62009-11-15 23:12:43 +000025644$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025645
cristy8b350f62009-11-15 23:12:43 +000025646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025647$as_echo "yes" >&6; }
25648 have_bzlib='yes'
25649 fi
25650 else
cristy8b350f62009-11-15 23:12:43 +000025651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025652$as_echo "no" >&6; }
25653 fi
25654fi
cristy73bd4a52010-10-05 11:24:23 +000025655 if test "$have_bzlib" = 'yes'; then
25656 BZLIB_DELEGATE_TRUE=
25657 BZLIB_DELEGATE_FALSE='#'
25658else
25659 BZLIB_DELEGATE_TRUE='#'
25660 BZLIB_DELEGATE_FALSE=
25661fi
25662
cristy3ed852e2009-09-05 21:47:34 +000025663
25664
25665#
25666# Find the X11 include and library directories.
25667#
25668IPC_LIBS=''
25669X11_LIBS=''
25670XEXT_LIBS=''
25671XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025673$as_echo_n "checking for X... " >&6; }
25674
25675
25676# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025677if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025678 withval=$with_x;
25679fi
25680
25681# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25682if test "x$with_x" = xno; then
25683 # The user explicitly disabled X.
25684 have_x=disabled
25685else
25686 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025687 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025688 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025689 $as_echo_n "(cached) " >&6
25690else
25691 # One or both of the vars are not set, and there is no cached value.
25692ac_x_includes=no ac_x_libraries=no
25693rm -f -r conftest.dir
25694if mkdir conftest.dir; then
25695 cd conftest.dir
25696 cat >Imakefile <<'_ACEOF'
25697incroot:
25698 @echo incroot='${INCROOT}'
25699usrlibdir:
25700 @echo usrlibdir='${USRLIBDIR}'
25701libdir:
25702 @echo libdir='${LIBDIR}'
25703_ACEOF
25704 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025705 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025706 for ac_var in incroot usrlibdir libdir; do
25707 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25708 done
25709 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25710 for ac_extension in a so sl dylib la dll; do
25711 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25712 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25713 ac_im_usrlibdir=$ac_im_libdir; break
25714 fi
25715 done
25716 # Screen out bogus values from the imake configuration. They are
25717 # bogus both because they are the default anyway, and because
25718 # using them would break gcc on systems where it needs fixed includes.
25719 case $ac_im_incroot in
25720 /usr/include) ac_x_includes= ;;
25721 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25722 esac
25723 case $ac_im_usrlibdir in
25724 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25725 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25726 esac
25727 fi
25728 cd ..
25729 rm -f -r conftest.dir
25730fi
25731
25732# Standard set of common directories for X headers.
25733# Check X11 before X11Rn because it is often a symlink to the current release.
25734ac_x_header_dirs='
25735/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025736/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025737/usr/X11R6/include
25738/usr/X11R5/include
25739/usr/X11R4/include
25740
25741/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025742/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025743/usr/include/X11R6
25744/usr/include/X11R5
25745/usr/include/X11R4
25746
25747/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025748/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025749/usr/local/X11R6/include
25750/usr/local/X11R5/include
25751/usr/local/X11R4/include
25752
25753/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025754/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025755/usr/local/include/X11R6
25756/usr/local/include/X11R5
25757/usr/local/include/X11R4
25758
25759/usr/X386/include
25760/usr/x386/include
25761/usr/XFree86/include/X11
25762
25763/usr/include
25764/usr/local/include
25765/usr/unsupported/include
25766/usr/athena/include
25767/usr/local/x11r5/include
25768/usr/lpp/Xamples/include
25769
25770/usr/openwin/include
25771/usr/openwin/share/include'
25772
25773if test "$ac_x_includes" = no; then
25774 # Guess where to find include files, by looking for Xlib.h.
25775 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025777/* end confdefs.h. */
25778#include <X11/Xlib.h>
25779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025780if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025781 # We can compile using X headers with no special include directory.
25782ac_x_includes=
25783else
cristyc7083c12009-10-14 03:16:55 +000025784 for ac_dir in $ac_x_header_dirs; do
25785 if test -r "$ac_dir/X11/Xlib.h"; then
25786 ac_x_includes=$ac_dir
25787 break
25788 fi
25789done
25790fi
cristyda16f162011-02-19 23:52:17 +000025791rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025792fi # $ac_x_includes = no
25793
25794if test "$ac_x_libraries" = no; then
25795 # Check for the libraries.
25796 # See if we find them without any special options.
25797 # Don't add to $LIBS permanently.
25798 ac_save_LIBS=$LIBS
25799 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025801/* end confdefs.h. */
25802#include <X11/Xlib.h>
25803int
25804main ()
25805{
25806XrmInitialize ()
25807 ;
25808 return 0;
25809}
25810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025811if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025812 LIBS=$ac_save_LIBS
25813# We can link X programs with no special library path.
25814ac_x_libraries=
25815else
cristy8b350f62009-11-15 23:12:43 +000025816 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025817for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25818do
25819 # Don't even attempt the hair of trying to link an X program!
25820 for ac_extension in a so sl dylib la dll; do
25821 if test -r "$ac_dir/libX11.$ac_extension"; then
25822 ac_x_libraries=$ac_dir
25823 break 2
25824 fi
25825 done
25826done
25827fi
cristy8b350f62009-11-15 23:12:43 +000025828rm -f core conftest.err conftest.$ac_objext \
25829 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025830fi # $ac_x_libraries = no
25831
25832case $ac_x_includes,$ac_x_libraries in #(
25833 no,* | *,no | *\'*)
25834 # Didn't find X, or a directory has "'" in its name.
25835 ac_cv_have_x="have_x=no";; #(
25836 *)
25837 # Record where we found X for the cache.
25838 ac_cv_have_x="have_x=yes\
25839 ac_x_includes='$ac_x_includes'\
25840 ac_x_libraries='$ac_x_libraries'"
25841esac
25842fi
25843;; #(
25844 *) have_x=yes;;
25845 esac
25846 eval "$ac_cv_have_x"
25847fi # $with_x != no
25848
25849if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025851$as_echo "$have_x" >&6; }
25852 no_x=yes
25853else
25854 # If each of the values was on the command line, it overrides each guess.
25855 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25856 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25857 # Update the cache value to reflect the command line values.
25858 ac_cv_have_x="have_x=yes\
25859 ac_x_includes='$x_includes'\
25860 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025862$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25863fi
25864
cristy3ed852e2009-09-05 21:47:34 +000025865if test "$no_x" = yes; then
25866 # Not all programs may use this symbol, but it does not hurt to define it.
25867
cristy8b350f62009-11-15 23:12:43 +000025868$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025869
25870 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25871else
25872 if test -n "$x_includes"; then
25873 X_CFLAGS="$X_CFLAGS -I$x_includes"
25874 fi
25875
25876 # It would also be nice to do this for all -L options, not just this one.
25877 if test -n "$x_libraries"; then
25878 X_LIBS="$X_LIBS -L$x_libraries"
25879 # For Solaris; some versions of Sun CC require a space after -R and
25880 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25883 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25884 ac_xsave_c_werror_flag=$ac_c_werror_flag
25885 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025887/* end confdefs.h. */
25888
25889int
25890main ()
25891{
25892
25893 ;
25894 return 0;
25895}
25896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025897if ac_fn_c_try_link "$LINENO"; then :
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025899$as_echo "no" >&6; }
25900 X_LIBS="$X_LIBS -R$x_libraries"
25901else
cristy8b350f62009-11-15 23:12:43 +000025902 LIBS="$ac_xsave_LIBS -R $x_libraries"
25903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025904/* end confdefs.h. */
25905
25906int
25907main ()
25908{
25909
25910 ;
25911 return 0;
25912}
25913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025914if ac_fn_c_try_link "$LINENO"; then :
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025916$as_echo "yes" >&6; }
25917 X_LIBS="$X_LIBS -R $x_libraries"
25918else
cristy8b350f62009-11-15 23:12:43 +000025919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025920$as_echo "neither works" >&6; }
25921fi
cristy8b350f62009-11-15 23:12:43 +000025922rm -f core conftest.err conftest.$ac_objext \
25923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025924fi
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 +000025927 ac_c_werror_flag=$ac_xsave_c_werror_flag
25928 LIBS=$ac_xsave_LIBS
25929 fi
25930
25931 # Check for system-dependent libraries X programs must link with.
25932 # Do this before checking for the system-independent R6 libraries
25933 # (-lICE), since we may need -lsocket or whatever for X linking.
25934
25935 if test "$ISC" = yes; then
25936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25937 else
25938 # Martyn Johnson says this is needed for Ultrix, if the X
25939 # libraries were built with DECnet support. And Karl Berry says
25940 # the Alpha needs dnet_stub (dnet does not exist).
25941 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025943/* end confdefs.h. */
25944
25945/* Override any GCC internal prototype to avoid an error.
25946 Use char because int might match the return type of a GCC
25947 builtin and then its argument prototype would still apply. */
25948#ifdef __cplusplus
25949extern "C"
25950#endif
25951char XOpenDisplay ();
25952int
25953main ()
25954{
25955return XOpenDisplay ();
25956 ;
25957 return 0;
25958}
25959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025960if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025961
cristy8b350f62009-11-15 23:12:43 +000025962else
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025964$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025965if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025966 $as_echo_n "(cached) " >&6
25967else
25968 ac_check_lib_save_LIBS=$LIBS
25969LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025971/* end confdefs.h. */
25972
25973/* Override any GCC internal prototype to avoid an error.
25974 Use char because int might match the return type of a GCC
25975 builtin and then its argument prototype would still apply. */
25976#ifdef __cplusplus
25977extern "C"
25978#endif
25979char dnet_ntoa ();
25980int
25981main ()
25982{
25983return dnet_ntoa ();
25984 ;
25985 return 0;
25986}
25987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025989 ac_cv_lib_dnet_dnet_ntoa=yes
25990else
cristy8b350f62009-11-15 23:12:43 +000025991 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025992fi
cristy8b350f62009-11-15 23:12:43 +000025993rm -f core conftest.err conftest.$ac_objext \
25994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025995LIBS=$ac_check_lib_save_LIBS
25996fi
cristy8b350f62009-11-15 23:12:43 +000025997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025998$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000025999if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026000 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26001fi
26002
26003 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026006if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026007 $as_echo_n "(cached) " >&6
26008else
26009 ac_check_lib_save_LIBS=$LIBS
26010LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026012/* end confdefs.h. */
26013
26014/* Override any GCC internal prototype to avoid an error.
26015 Use char because int might match the return type of a GCC
26016 builtin and then its argument prototype would still apply. */
26017#ifdef __cplusplus
26018extern "C"
26019#endif
26020char dnet_ntoa ();
26021int
26022main ()
26023{
26024return dnet_ntoa ();
26025 ;
26026 return 0;
26027}
26028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026030 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26031else
cristy8b350f62009-11-15 23:12:43 +000026032 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026033fi
cristy8b350f62009-11-15 23:12:43 +000026034rm -f core conftest.err conftest.$ac_objext \
26035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026036LIBS=$ac_check_lib_save_LIBS
26037fi
cristy8b350f62009-11-15 23:12:43 +000026038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026040if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26042fi
26043
26044 fi
26045fi
cristy8b350f62009-11-15 23:12:43 +000026046rm -f core conftest.err conftest.$ac_objext \
26047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026048 LIBS="$ac_xsave_LIBS"
26049
26050 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26051 # to get the SysV transport functions.
26052 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26053 # needs -lnsl.
26054 # The nsl library prevents programs from opening the X display
26055 # on Irix 5.2, according to T.E. Dickey.
26056 # The functions gethostbyname, getservbyname, and inet_addr are
26057 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026058 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026059if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026060
cristy3ed852e2009-09-05 21:47:34 +000026061fi
26062
cristy3ed852e2009-09-05 21:47:34 +000026063 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026065$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026066if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026067 $as_echo_n "(cached) " >&6
26068else
26069 ac_check_lib_save_LIBS=$LIBS
26070LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026072/* end confdefs.h. */
26073
26074/* Override any GCC internal prototype to avoid an error.
26075 Use char because int might match the return type of a GCC
26076 builtin and then its argument prototype would still apply. */
26077#ifdef __cplusplus
26078extern "C"
26079#endif
26080char gethostbyname ();
26081int
26082main ()
26083{
26084return gethostbyname ();
26085 ;
26086 return 0;
26087}
26088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026089if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026090 ac_cv_lib_nsl_gethostbyname=yes
26091else
cristy8b350f62009-11-15 23:12:43 +000026092 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026093fi
cristy8b350f62009-11-15 23:12:43 +000026094rm -f core conftest.err conftest.$ac_objext \
26095 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026096LIBS=$ac_check_lib_save_LIBS
26097fi
cristy8b350f62009-11-15 23:12:43 +000026098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026099$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026100if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026101 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26102fi
26103
26104 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026106$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026107if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026108 $as_echo_n "(cached) " >&6
26109else
26110 ac_check_lib_save_LIBS=$LIBS
26111LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026113/* end confdefs.h. */
26114
26115/* Override any GCC internal prototype to avoid an error.
26116 Use char because int might match the return type of a GCC
26117 builtin and then its argument prototype would still apply. */
26118#ifdef __cplusplus
26119extern "C"
26120#endif
26121char gethostbyname ();
26122int
26123main ()
26124{
26125return gethostbyname ();
26126 ;
26127 return 0;
26128}
26129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026131 ac_cv_lib_bsd_gethostbyname=yes
26132else
cristy8b350f62009-11-15 23:12:43 +000026133 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026134fi
cristy8b350f62009-11-15 23:12:43 +000026135rm -f core conftest.err conftest.$ac_objext \
26136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026137LIBS=$ac_check_lib_save_LIBS
26138fi
cristy8b350f62009-11-15 23:12:43 +000026139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026141if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26143fi
26144
26145 fi
26146 fi
26147
26148 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26149 # socket/setsockopt and other routines are undefined under SCO ODT
26150 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26151 # on later versions), says Simon Leinen: it contains gethostby*
26152 # variants that don't use the name server (or something). -lsocket
26153 # must be given before -lnsl if both are needed. We assume that
26154 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026155 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026156if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026157
cristy3ed852e2009-09-05 21:47:34 +000026158fi
26159
cristy3ed852e2009-09-05 21:47:34 +000026160 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026162$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026163if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026164 $as_echo_n "(cached) " >&6
26165else
26166 ac_check_lib_save_LIBS=$LIBS
26167LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026169/* end confdefs.h. */
26170
26171/* Override any GCC internal prototype to avoid an error.
26172 Use char because int might match the return type of a GCC
26173 builtin and then its argument prototype would still apply. */
26174#ifdef __cplusplus
26175extern "C"
26176#endif
26177char connect ();
26178int
26179main ()
26180{
26181return connect ();
26182 ;
26183 return 0;
26184}
26185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026187 ac_cv_lib_socket_connect=yes
26188else
cristy8b350f62009-11-15 23:12:43 +000026189 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026190fi
cristy8b350f62009-11-15 23:12:43 +000026191rm -f core conftest.err conftest.$ac_objext \
26192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026193LIBS=$ac_check_lib_save_LIBS
26194fi
cristy8b350f62009-11-15 23:12:43 +000026195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026196$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026197if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026198 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26199fi
26200
26201 fi
26202
26203 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026204 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026205if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026206
cristy3ed852e2009-09-05 21:47:34 +000026207fi
26208
cristy3ed852e2009-09-05 21:47:34 +000026209 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026211$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026212if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026213 $as_echo_n "(cached) " >&6
26214else
26215 ac_check_lib_save_LIBS=$LIBS
26216LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026218/* end confdefs.h. */
26219
26220/* Override any GCC internal prototype to avoid an error.
26221 Use char because int might match the return type of a GCC
26222 builtin and then its argument prototype would still apply. */
26223#ifdef __cplusplus
26224extern "C"
26225#endif
26226char remove ();
26227int
26228main ()
26229{
26230return remove ();
26231 ;
26232 return 0;
26233}
26234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026236 ac_cv_lib_posix_remove=yes
26237else
cristy8b350f62009-11-15 23:12:43 +000026238 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026239fi
cristy8b350f62009-11-15 23:12:43 +000026240rm -f core conftest.err conftest.$ac_objext \
26241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026242LIBS=$ac_check_lib_save_LIBS
26243fi
cristy8b350f62009-11-15 23:12:43 +000026244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026245$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026246if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26248fi
26249
26250 fi
26251
26252 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026253 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026254if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026255
cristy3ed852e2009-09-05 21:47:34 +000026256fi
26257
cristy3ed852e2009-09-05 21:47:34 +000026258 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026260$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026261if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026262 $as_echo_n "(cached) " >&6
26263else
26264 ac_check_lib_save_LIBS=$LIBS
26265LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026267/* end confdefs.h. */
26268
26269/* Override any GCC internal prototype to avoid an error.
26270 Use char because int might match the return type of a GCC
26271 builtin and then its argument prototype would still apply. */
26272#ifdef __cplusplus
26273extern "C"
26274#endif
26275char shmat ();
26276int
26277main ()
26278{
26279return shmat ();
26280 ;
26281 return 0;
26282}
26283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026285 ac_cv_lib_ipc_shmat=yes
26286else
cristy8b350f62009-11-15 23:12:43 +000026287 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026288fi
cristy8b350f62009-11-15 23:12:43 +000026289rm -f core conftest.err conftest.$ac_objext \
26290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026291LIBS=$ac_check_lib_save_LIBS
26292fi
cristy8b350f62009-11-15 23:12:43 +000026293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026294$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026295if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26297fi
26298
26299 fi
26300 fi
26301
26302 # Check for libraries that X11R6 Xt/Xaw programs need.
26303 ac_save_LDFLAGS=$LDFLAGS
26304 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26305 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26306 # check for ICE first), but we must link in the order -lSM -lICE or
26307 # we get undefined symbols. So assume we have SM if we have ICE.
26308 # These have to be linked with before -lX11, unlike the other
26309 # libraries we check for below, so use a different variable.
26310 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026312$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026313if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026314 $as_echo_n "(cached) " >&6
26315else
26316 ac_check_lib_save_LIBS=$LIBS
26317LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026319/* end confdefs.h. */
26320
26321/* Override any GCC internal prototype to avoid an error.
26322 Use char because int might match the return type of a GCC
26323 builtin and then its argument prototype would still apply. */
26324#ifdef __cplusplus
26325extern "C"
26326#endif
26327char IceConnectionNumber ();
26328int
26329main ()
26330{
26331return IceConnectionNumber ();
26332 ;
26333 return 0;
26334}
26335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026337 ac_cv_lib_ICE_IceConnectionNumber=yes
26338else
cristy8b350f62009-11-15 23:12:43 +000026339 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026340fi
cristy8b350f62009-11-15 23:12:43 +000026341rm -f core conftest.err conftest.$ac_objext \
26342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026343LIBS=$ac_check_lib_save_LIBS
26344fi
cristy8b350f62009-11-15 23:12:43 +000026345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026346$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026347if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026348 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26349fi
26350
26351 LDFLAGS=$ac_save_LDFLAGS
26352
26353fi
26354
26355if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026357$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026359$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026361$as_echo "" >&6; }
26362 LDFLAGS="$LDFLAGS $X_LIBS"
26363 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26364 LIBS="$X11_LIBS $LIBS"
26365 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26366
26367
cristy8b350f62009-11-15 23:12:43 +000026368$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026369
26370 #
26371 # Check for X11 shared memory extension
26372 #
26373 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026374 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026375if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026376 have_shmctl='yes'
26377fi
26378
26379 if test "$have_shmctl" != 'yes'; then
26380 PERSIST_LIBS=$LIBS
26381 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026383/* end confdefs.h. */
26384
26385/* Override any GCC internal prototype to avoid an error.
26386 Use char because int might match the return type of a GCC
26387 builtin and then its argument prototype would still apply. */
26388#ifdef __cplusplus
26389extern "C"
26390#endif
26391char shmctl ();
26392int
26393main ()
26394{
26395return shmctl ();
26396 ;
26397 return 0;
26398}
26399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026401 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026402fi
cristy8b350f62009-11-15 23:12:43 +000026403rm -f core conftest.err conftest.$ac_objext \
26404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026405 LIBS=$PERSIST_LIBS
26406 fi
26407
26408 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026410$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026411if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026412 $as_echo_n "(cached) " >&6
26413else
26414 ac_check_lib_save_LIBS=$LIBS
26415LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026417/* end confdefs.h. */
26418
26419/* Override any GCC internal prototype to avoid an error.
26420 Use char because int might match the return type of a GCC
26421 builtin and then its argument prototype would still apply. */
26422#ifdef __cplusplus
26423extern "C"
26424#endif
26425char XShmAttach ();
26426int
26427main ()
26428{
26429return XShmAttach ();
26430 ;
26431 return 0;
26432}
26433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026434if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026435 ac_cv_lib_Xext_XShmAttach=yes
26436else
cristy8b350f62009-11-15 23:12:43 +000026437 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026438fi
cristy8b350f62009-11-15 23:12:43 +000026439rm -f core conftest.err conftest.$ac_objext \
26440 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026441LIBS=$ac_check_lib_save_LIBS
26442fi
cristy8b350f62009-11-15 23:12:43 +000026443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026444$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026445if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026446 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026447$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026448
26449fi
26450
26451 fi
26452
26453 #
26454 # Check for X11 shape extension
26455 #
cristy8b350f62009-11-15 23:12:43 +000026456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026457$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026458if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 $as_echo_n "(cached) " >&6
26460else
26461 ac_check_lib_save_LIBS=$LIBS
26462LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026464/* end confdefs.h. */
26465
26466/* Override any GCC internal prototype to avoid an error.
26467 Use char because int might match the return type of a GCC
26468 builtin and then its argument prototype would still apply. */
26469#ifdef __cplusplus
26470extern "C"
26471#endif
26472char XShapeCombineMask ();
26473int
26474main ()
26475{
26476return XShapeCombineMask ();
26477 ;
26478 return 0;
26479}
26480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026482 ac_cv_lib_Xext_XShapeCombineMask=yes
26483else
cristy8b350f62009-11-15 23:12:43 +000026484 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000026485fi
cristy8b350f62009-11-15 23:12:43 +000026486rm -f core conftest.err conftest.$ac_objext \
26487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026488LIBS=$ac_check_lib_save_LIBS
26489fi
cristy8b350f62009-11-15 23:12:43 +000026490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026491$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026492if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026493 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026494$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026495
26496fi
26497
cristy8b350f62009-11-15 23:12:43 +000026498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026499$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026500if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026501 $as_echo_n "(cached) " >&6
26502else
26503 ac_check_lib_save_LIBS=$LIBS
26504LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026506/* end confdefs.h. */
26507
26508/* Override any GCC internal prototype to avoid an error.
26509 Use char because int might match the return type of a GCC
26510 builtin and then its argument prototype would still apply. */
26511#ifdef __cplusplus
26512extern "C"
26513#endif
26514char XtSetEventDispatcher ();
26515int
26516main ()
26517{
26518return XtSetEventDispatcher ();
26519 ;
26520 return 0;
26521}
26522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026523if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026524 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26525else
cristy8b350f62009-11-15 23:12:43 +000026526 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026527fi
cristy8b350f62009-11-15 23:12:43 +000026528rm -f core conftest.err conftest.$ac_objext \
26529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026530LIBS=$ac_check_lib_save_LIBS
26531fi
cristy8b350f62009-11-15 23:12:43 +000026532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026533$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026534if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026535 XT_LIBS='-lXt'
26536fi
26537
26538 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26539fi
26540if test "$no_x" != 'yes'; then
26541 have_x='yes'
26542else
26543 have_x='no'
26544fi
cristy73bd4a52010-10-05 11:24:23 +000026545 if test "$have_x" = 'yes'; then
26546 X11_DELEGATE_TRUE=
26547 X11_DELEGATE_FALSE='#'
26548else
26549 X11_DELEGATE_TRUE='#'
26550 X11_DELEGATE_FALSE=
26551fi
26552
cristy3ed852e2009-09-05 21:47:34 +000026553
26554
26555
26556
26557#
26558# Check for ZLIB
26559#
26560
26561# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026562if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026563 withval=$with_zlib; with_zlib=$withval
26564else
26565 with_zlib='yes'
26566fi
26567
26568
26569if test "$with_zlib" != 'yes'; then
26570 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26571fi
26572
26573have_zlib='no'
26574ZLIB_LIBS=''
26575if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026577$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026579$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026581$as_echo "" >&6; }
26582 ZLIB_LIBS=''
26583 failed=0
26584 passed=0
cristy8b350f62009-11-15 23:12:43 +000026585 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026586if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026587 passed=`expr $passed + 1`
26588else
26589 failed=`expr $failed + 1`
26590fi
26591
26592
cristy8b350f62009-11-15 23:12:43 +000026593 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026594if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026595 passed=`expr $passed + 1`
26596else
26597 failed=`expr $failed + 1`
26598fi
26599
26600
cristy8b350f62009-11-15 23:12:43 +000026601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026602$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026603if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026604 $as_echo_n "(cached) " >&6
26605else
26606 ac_check_lib_save_LIBS=$LIBS
26607LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026609/* end confdefs.h. */
26610
26611/* Override any GCC internal prototype to avoid an error.
26612 Use char because int might match the return type of a GCC
26613 builtin and then its argument prototype would still apply. */
26614#ifdef __cplusplus
26615extern "C"
26616#endif
26617char compress ();
26618int
26619main ()
26620{
26621return compress ();
26622 ;
26623 return 0;
26624}
26625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026627 ac_cv_lib_z_compress=yes
26628else
cristy8b350f62009-11-15 23:12:43 +000026629 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026630fi
cristy8b350f62009-11-15 23:12:43 +000026631rm -f core conftest.err conftest.$ac_objext \
26632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026633LIBS=$ac_check_lib_save_LIBS
26634fi
cristy8b350f62009-11-15 23:12:43 +000026635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026636$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026637if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026638 passed=`expr $passed + 1`
26639else
26640 failed=`expr $failed + 1`
26641fi
26642
cristy8b350f62009-11-15 23:12:43 +000026643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026645if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026646 $as_echo_n "(cached) " >&6
26647else
26648 ac_check_lib_save_LIBS=$LIBS
26649LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026651/* end confdefs.h. */
26652
26653/* Override any GCC internal prototype to avoid an error.
26654 Use char because int might match the return type of a GCC
26655 builtin and then its argument prototype would still apply. */
26656#ifdef __cplusplus
26657extern "C"
26658#endif
26659char uncompress ();
26660int
26661main ()
26662{
26663return uncompress ();
26664 ;
26665 return 0;
26666}
26667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026669 ac_cv_lib_z_uncompress=yes
26670else
cristy8b350f62009-11-15 23:12:43 +000026671 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026672fi
cristy8b350f62009-11-15 23:12:43 +000026673rm -f core conftest.err conftest.$ac_objext \
26674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026675LIBS=$ac_check_lib_save_LIBS
26676fi
cristy8b350f62009-11-15 23:12:43 +000026677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026679if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026680 passed=`expr $passed + 1`
26681else
26682 failed=`expr $failed + 1`
26683fi
26684
cristy8b350f62009-11-15 23:12:43 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026687if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026688 $as_echo_n "(cached) " >&6
26689else
26690 ac_check_lib_save_LIBS=$LIBS
26691LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026693/* end confdefs.h. */
26694
26695/* Override any GCC internal prototype to avoid an error.
26696 Use char because int might match the return type of a GCC
26697 builtin and then its argument prototype would still apply. */
26698#ifdef __cplusplus
26699extern "C"
26700#endif
26701char deflate ();
26702int
26703main ()
26704{
26705return deflate ();
26706 ;
26707 return 0;
26708}
26709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026710if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026711 ac_cv_lib_z_deflate=yes
26712else
cristy8b350f62009-11-15 23:12:43 +000026713 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026714fi
cristy8b350f62009-11-15 23:12:43 +000026715rm -f core conftest.err conftest.$ac_objext \
26716 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026717LIBS=$ac_check_lib_save_LIBS
26718fi
cristy8b350f62009-11-15 23:12:43 +000026719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026720$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026721if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026722 passed=`expr $passed + 1`
26723else
26724 failed=`expr $failed + 1`
26725fi
26726
cristy8b350f62009-11-15 23:12:43 +000026727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026728$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026729if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026730 $as_echo_n "(cached) " >&6
26731else
26732 ac_check_lib_save_LIBS=$LIBS
26733LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026735/* end confdefs.h. */
26736
26737/* Override any GCC internal prototype to avoid an error.
26738 Use char because int might match the return type of a GCC
26739 builtin and then its argument prototype would still apply. */
26740#ifdef __cplusplus
26741extern "C"
26742#endif
26743char inflate ();
26744int
26745main ()
26746{
26747return inflate ();
26748 ;
26749 return 0;
26750}
26751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026753 ac_cv_lib_z_inflate=yes
26754else
cristy8b350f62009-11-15 23:12:43 +000026755 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026756fi
cristy8b350f62009-11-15 23:12:43 +000026757rm -f core conftest.err conftest.$ac_objext \
26758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026759LIBS=$ac_check_lib_save_LIBS
26760fi
cristy8b350f62009-11-15 23:12:43 +000026761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026763if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026764 passed=`expr $passed + 1`
26765else
26766 failed=`expr $failed + 1`
26767fi
26768
cristy8b350f62009-11-15 23:12:43 +000026769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026770$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026771if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026772 $as_echo_n "(cached) " >&6
26773else
26774 ac_check_lib_save_LIBS=$LIBS
26775LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026777/* end confdefs.h. */
26778
26779/* Override any GCC internal prototype to avoid an error.
26780 Use char because int might match the return type of a GCC
26781 builtin and then its argument prototype would still apply. */
26782#ifdef __cplusplus
26783extern "C"
26784#endif
26785char gzseek ();
26786int
26787main ()
26788{
26789return gzseek ();
26790 ;
26791 return 0;
26792}
26793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 ac_cv_lib_z_gzseek=yes
26796else
cristy8b350f62009-11-15 23:12:43 +000026797 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026798fi
cristy8b350f62009-11-15 23:12:43 +000026799rm -f core conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026801LIBS=$ac_check_lib_save_LIBS
26802fi
cristy8b350f62009-11-15 23:12:43 +000026803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026805if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026806 passed=`expr $passed + 1`
26807else
26808 failed=`expr $failed + 1`
26809fi
26810
cristy8b350f62009-11-15 23:12:43 +000026811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026812$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026813if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026814 $as_echo_n "(cached) " >&6
26815else
26816 ac_check_lib_save_LIBS=$LIBS
26817LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026819/* end confdefs.h. */
26820
26821/* Override any GCC internal prototype to avoid an error.
26822 Use char because int might match the return type of a GCC
26823 builtin and then its argument prototype would still apply. */
26824#ifdef __cplusplus
26825extern "C"
26826#endif
26827char gztell ();
26828int
26829main ()
26830{
26831return gztell ();
26832 ;
26833 return 0;
26834}
26835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026836if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026837 ac_cv_lib_z_gztell=yes
26838else
cristy8b350f62009-11-15 23:12:43 +000026839 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026840fi
cristy8b350f62009-11-15 23:12:43 +000026841rm -f core conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026843LIBS=$ac_check_lib_save_LIBS
26844fi
cristy8b350f62009-11-15 23:12:43 +000026845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026847if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 passed=`expr $passed + 1`
26849else
26850 failed=`expr $failed + 1`
26851fi
26852
cristy8b350f62009-11-15 23:12:43 +000026853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026854$as_echo_n "checking if ZLIB package is complete... " >&6; }
26855 if test $passed -gt 0; then
26856 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026858$as_echo "no -- some components failed test" >&6; }
26859 have_zlib='no (failed tests)'
26860 else
26861 ZLIB_LIBS='-lz'
26862 LIBS="$ZLIB_LIBS $LIBS"
26863
cristy8b350f62009-11-15 23:12:43 +000026864$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026865
cristy8b350f62009-11-15 23:12:43 +000026866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026867$as_echo "yes" >&6; }
26868 have_zlib='yes'
26869 fi
26870 else
cristy8b350f62009-11-15 23:12:43 +000026871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026872$as_echo "no" >&6; }
26873 fi
26874fi
cristy73bd4a52010-10-05 11:24:23 +000026875 if test "$have_zlib" = 'yes'; then
26876 ZLIB_DELEGATE_TRUE=
26877 ZLIB_DELEGATE_FALSE='#'
26878else
26879 ZLIB_DELEGATE_TRUE='#'
26880 ZLIB_DELEGATE_FALSE=
26881fi
26882
cristy3ed852e2009-09-05 21:47:34 +000026883
26884
26885#
26886# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26887#
26888LIB_DL=''
26889if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026891$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026892if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026893 $as_echo_n "(cached) " >&6
26894else
26895 ac_check_lib_save_LIBS=$LIBS
26896LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026898/* end confdefs.h. */
26899
26900/* Override any GCC internal prototype to avoid an error.
26901 Use char because int might match the return type of a GCC
26902 builtin and then its argument prototype would still apply. */
26903#ifdef __cplusplus
26904extern "C"
26905#endif
26906char dlopen ();
26907int
26908main ()
26909{
26910return dlopen ();
26911 ;
26912 return 0;
26913}
26914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026916 ac_cv_lib_dl_dlopen=yes
26917else
cristy8b350f62009-11-15 23:12:43 +000026918 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026919fi
cristy8b350f62009-11-15 23:12:43 +000026920rm -f core conftest.err conftest.$ac_objext \
26921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026922LIBS=$ac_check_lib_save_LIBS
26923fi
cristy8b350f62009-11-15 23:12:43 +000026924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026925$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026926if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026927 LIB_DL='-ldl'
26928fi
26929
26930 LIBS="$LIB_DL $LIBS"
26931fi
26932
26933
26934
26935#
26936# Check for Autotrace delegate library.
26937#
26938
26939# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026940if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026941 withval=$with_autotrace; with_autotrace=$withval
26942else
26943 with_autotrace='no'
26944fi
26945
26946
26947if test "$with_autotrace" != 'yes'; then
26948 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26949fi
26950
26951have_autotrace='no'
26952AUTOTRACE_CFLAGS=""
26953AUTOTRACE_LIBS=""
26954AUTOTRACE_PKG=""
26955if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026957$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026958
26959pkg_failed=no
26960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26961$as_echo_n "checking for AUTOTRACE... " >&6; }
26962
26963if test -n "$AUTOTRACE_CFLAGS"; then
26964 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26965 elif test -n "$PKG_CONFIG"; then
26966 if test -n "$PKG_CONFIG" && \
26967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26968 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26969 ac_status=$?
26970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26971 test $ac_status = 0; }; then
26972 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26973else
26974 pkg_failed=yes
26975fi
26976 else
26977 pkg_failed=untried
26978fi
26979if test -n "$AUTOTRACE_LIBS"; then
26980 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26981 elif test -n "$PKG_CONFIG"; then
26982 if test -n "$PKG_CONFIG" && \
26983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26984 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26985 ac_status=$?
26986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26987 test $ac_status = 0; }; then
26988 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26989else
26990 pkg_failed=yes
26991fi
26992 else
26993 pkg_failed=untried
26994fi
26995
26996
26997
26998if test $pkg_failed = yes; then
26999
27000if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27001 _pkg_short_errors_supported=yes
27002else
27003 _pkg_short_errors_supported=no
27004fi
27005 if test $_pkg_short_errors_supported = yes; then
27006 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27007 else
27008 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27009 fi
27010 # Put the nasty error message in config.log where it belongs
27011 echo "$AUTOTRACE_PKG_ERRORS" >&5
27012
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27014$as_echo "no" >&6; }
27015 have_autotrace=no
27016elif test $pkg_failed = untried; then
27017 have_autotrace=no
27018else
27019 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27020 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27022$as_echo "yes" >&6; }
27023 have_autotrace=yes
27024fi
cristy8b350f62009-11-15 23:12:43 +000027025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027026$as_echo "" >&6; }
27027fi
27028
27029if test "$have_autotrace" = 'yes'; then
27030 failed=0
27031
cristy8b350f62009-11-15 23:12:43 +000027032$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027033
27034 if test "$with_modules" = 'no'; then
27035 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27036 fi
27037fi
27038
cristy73bd4a52010-10-05 11:24:23 +000027039 if test "$have_autotrace" = 'yes'; then
27040 AUTOTRACE_DELEGATE_TRUE=
27041 AUTOTRACE_DELEGATE_FALSE='#'
27042else
27043 AUTOTRACE_DELEGATE_TRUE='#'
27044 AUTOTRACE_DELEGATE_FALSE=
27045fi
27046
cristy3ed852e2009-09-05 21:47:34 +000027047
27048
27049
27050
27051#
27052# Check for Display Postscript delegate library.
27053#
27054
27055# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027056if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027057 withval=$with_dps; with_dps=$withval
27058else
27059 with_dps='yes'
27060fi
27061
27062
27063if test "$with_dps" != 'yes'; then
27064 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27065fi
27066
27067have_dps='no'
27068DPS_LIBS=''
27069if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027071$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027073$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027075$as_echo "" >&6; }
27076 failed=0
27077 passed=0
27078 PERSIST_CPPFLAGS="$CPPFLAGS"
27079 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027080 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 +000027081if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 passed=`expr $passed + 1`
27083else
27084 failed=`expr $failed + 1`
27085fi
27086
27087
27088 # DPS issues:
27089 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27090 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27091 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27092 # ImageMagick itself doesn't use -lXt.
27093 have_libdps='no'
27094 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027097if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027098 $as_echo_n "(cached) " >&6
27099else
27100 ac_check_lib_save_LIBS=$LIBS
27101LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027103/* end confdefs.h. */
27104
27105/* Override any GCC internal prototype to avoid an error.
27106 Use char because int might match the return type of a GCC
27107 builtin and then its argument prototype would still apply. */
27108#ifdef __cplusplus
27109extern "C"
27110#endif
27111char DPSInitialize ();
27112int
27113main ()
27114{
27115return DPSInitialize ();
27116 ;
27117 return 0;
27118}
27119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027121 ac_cv_lib_dps_DPSInitialize=yes
27122else
cristy8b350f62009-11-15 23:12:43 +000027123 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027124fi
cristy8b350f62009-11-15 23:12:43 +000027125rm -f core conftest.err conftest.$ac_objext \
27126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027127LIBS=$ac_check_lib_save_LIBS
27128fi
cristy8b350f62009-11-15 23:12:43 +000027129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027130$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027131if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027132 have_libdps='yes'
27133else
27134 have_libdps='no'
27135fi
27136
27137 if test "$have_libdps" != 'yes'; then
27138 # Unset cache variable so we can try again.
27139 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027141$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027142if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 $as_echo_n "(cached) " >&6
27144else
27145 ac_check_lib_save_LIBS=$LIBS
27146LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027148/* end confdefs.h. */
27149
27150/* Override any GCC internal prototype to avoid an error.
27151 Use char because int might match the return type of a GCC
27152 builtin and then its argument prototype would still apply. */
27153#ifdef __cplusplus
27154extern "C"
27155#endif
27156char DPSInitialize ();
27157int
27158main ()
27159{
27160return DPSInitialize ();
27161 ;
27162 return 0;
27163}
27164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027165if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 ac_cv_lib_dps_DPSInitialize=yes
27167else
cristy8b350f62009-11-15 23:12:43 +000027168 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027169fi
cristy8b350f62009-11-15 23:12:43 +000027170rm -f core conftest.err conftest.$ac_objext \
27171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027172LIBS=$ac_check_lib_save_LIBS
27173fi
cristy8b350f62009-11-15 23:12:43 +000027174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027175$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027176if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027177 have_libdps='yes'
27178else
27179 have_libdps='no'
27180fi
27181
27182 if test "$have_libdps" = 'yes'; then
27183 LIBDPS_XT='-lXt'
27184 fi
27185 fi
27186 if test "$have_libdps" = 'yes'; then
27187 passed=`expr $passed + 1`
27188 else
27189 failed=`expr $failed + 1`
27190 fi
cristy8b350f62009-11-15 23:12:43 +000027191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027192$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027193if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027194 $as_echo_n "(cached) " >&6
27195else
27196 ac_check_lib_save_LIBS=$LIBS
27197LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027199/* end confdefs.h. */
27200
27201/* Override any GCC internal prototype to avoid an error.
27202 Use char because int might match the return type of a GCC
27203 builtin and then its argument prototype would still apply. */
27204#ifdef __cplusplus
27205extern "C"
27206#endif
27207char XDPSPixelsPerPoint ();
27208int
27209main ()
27210{
27211return XDPSPixelsPerPoint ();
27212 ;
27213 return 0;
27214}
27215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027217 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27218else
cristy8b350f62009-11-15 23:12:43 +000027219 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027220fi
cristy8b350f62009-11-15 23:12:43 +000027221rm -f core conftest.err conftest.$ac_objext \
27222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027223LIBS=$ac_check_lib_save_LIBS
27224fi
cristy8b350f62009-11-15 23:12:43 +000027225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027226$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027227if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 passed=`expr $passed + 1`
27229else
27230 failed=`expr $failed + 1`
27231fi
27232
cristy8b350f62009-11-15 23:12:43 +000027233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027234$as_echo_n "checking if DPS package is complete... " >&6; }
27235 if test $passed -gt 0; then
27236 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027238$as_echo "no -- some components failed test" >&6; }
27239 have_dps='no (failed tests)'
27240 CPPFLAGS="$PERSIST_CPPFLAGS"
27241 else
27242 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27243 LIBS="$DPS_LIBS $LIBS"
27244
cristy8b350f62009-11-15 23:12:43 +000027245$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027246
cristy8b350f62009-11-15 23:12:43 +000027247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027248$as_echo "yes" >&6; }
27249 have_dps='yes'
27250 fi
27251 else
cristy8b350f62009-11-15 23:12:43 +000027252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027253$as_echo "no" >&6; }
27254 CPPFLAGS=$PERSIST_CPPFLAGS
27255 fi
27256fi
cristy73bd4a52010-10-05 11:24:23 +000027257 if test "$have_dps" = 'yes'; then
27258 DPS_DELEGATE_TRUE=
27259 DPS_DELEGATE_FALSE='#'
27260else
27261 DPS_DELEGATE_TRUE='#'
27262 DPS_DELEGATE_FALSE=
27263fi
27264
cristy3ed852e2009-09-05 21:47:34 +000027265
27266
27267
27268#
27269# Check for DJVU delegate library.
27270#
27271
27272# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027273if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027274 withval=$with_djvu; with_djvu=$withval
27275else
27276 with_djvu='yes'
27277fi
27278
27279
27280if test "$with_djvu" != 'yes'; then
27281 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27282fi
27283
27284have_djvu='no'
27285DJVU_LIBS=''
27286if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027288$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027290$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027292$as_echo "" >&6; }
27293 failed=0
27294 passed=0
cristy8b350f62009-11-15 23:12:43 +000027295 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 +000027296if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027297 passed=`expr $passed + 1`
27298else
27299 failed=`expr $failed + 1`
27300fi
27301
27302
cristy8b350f62009-11-15 23:12:43 +000027303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027304$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027305if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027306 $as_echo_n "(cached) " >&6
27307else
27308 ac_check_lib_save_LIBS=$LIBS
27309LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027311/* end confdefs.h. */
27312
27313/* Override any GCC internal prototype to avoid an error.
27314 Use char because int might match the return type of a GCC
27315 builtin and then its argument prototype would still apply. */
27316#ifdef __cplusplus
27317extern "C"
27318#endif
27319char ddjvu_context_create ();
27320int
27321main ()
27322{
27323return ddjvu_context_create ();
27324 ;
27325 return 0;
27326}
27327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027328if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027329 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27330else
cristy8b350f62009-11-15 23:12:43 +000027331 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027332fi
cristy8b350f62009-11-15 23:12:43 +000027333rm -f core conftest.err conftest.$ac_objext \
27334 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027335LIBS=$ac_check_lib_save_LIBS
27336fi
cristy8b350f62009-11-15 23:12:43 +000027337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027338$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027339if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 passed=`expr $passed + 1`
27341else
27342 failed=`expr $failed + 1`
27343fi
27344
cristy8b350f62009-11-15 23:12:43 +000027345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo_n "checking if DJVU package is complete... " >&6; }
27347 if test $passed -gt 0; then
27348 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027350$as_echo "no -- some components failed test" >&6; }
27351 have_djvu='no (failed tests)'
27352 else
27353 DJVU_LIBS='-ldjvulibre'
27354 LIBS="$DJVU_LIBS $LIBS"
27355
cristy8b350f62009-11-15 23:12:43 +000027356$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027357
cristy8b350f62009-11-15 23:12:43 +000027358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo "yes" >&6; }
27360 have_djvu='yes'
27361 fi
27362 else
cristy8b350f62009-11-15 23:12:43 +000027363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027364$as_echo "no" >&6; }
27365 fi
27366fi
cristy73bd4a52010-10-05 11:24:23 +000027367 if test "$have_djvu" = 'yes'; then
27368 DJVU_DELEGATE_TRUE=
27369 DJVU_DELEGATE_FALSE='#'
27370else
27371 DJVU_DELEGATE_TRUE='#'
27372 DJVU_DELEGATE_FALSE=
27373fi
27374
cristy3ed852e2009-09-05 21:47:34 +000027375
27376
27377
27378#
cristy430a7312010-01-21 20:44:04 +000027379# Set DejaVu font directory.
27380#
27381
27382# Check whether --with-dejavu-font-dir was given.
27383if test "${with_dejavu_font_dir+set}" = set; then :
27384 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27385else
27386 with_dejavu_font_dir='default'
27387fi
27388
27389
27390if test "$with_dejavu_font_dir" != 'default'; then
27391 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27392fi
27393
27394
27395#
cristy3ed852e2009-09-05 21:47:34 +000027396# Check for FFTW delegate library.
27397#
27398
27399# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027400if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027401 withval=$with_fftw; with_fftw=$withval
27402else
27403 with_fftw='yes'
27404fi
27405
27406
27407if test "$with_fftw" != 'yes'; then
27408 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27409fi
27410
27411have_fftw='no'
27412FFTW_LIBS=''
27413if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027415$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027417$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027419$as_echo "" >&6; }
27420 failed=0
27421 passed=0
cristy8b350f62009-11-15 23:12:43 +000027422 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027423if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027424 passed=`expr $passed + 1`
27425else
27426 failed=`expr $failed + 1`
27427fi
27428
27429
cristy8b350f62009-11-15 23:12:43 +000027430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027431$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027432if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 $as_echo_n "(cached) " >&6
27434else
27435 ac_check_lib_save_LIBS=$LIBS
27436LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027438/* end confdefs.h. */
27439
27440/* Override any GCC internal prototype to avoid an error.
27441 Use char because int might match the return type of a GCC
27442 builtin and then its argument prototype would still apply. */
27443#ifdef __cplusplus
27444extern "C"
27445#endif
27446char fftw_execute ();
27447int
27448main ()
27449{
27450return fftw_execute ();
27451 ;
27452 return 0;
27453}
27454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027455if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027456 ac_cv_lib_fftw3_fftw_execute=yes
27457else
cristy8b350f62009-11-15 23:12:43 +000027458 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027459fi
cristy8b350f62009-11-15 23:12:43 +000027460rm -f core conftest.err conftest.$ac_objext \
27461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027462LIBS=$ac_check_lib_save_LIBS
27463fi
cristy8b350f62009-11-15 23:12:43 +000027464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027465$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027466if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027467 passed=`expr $passed + 1`
27468else
27469 failed=`expr $failed + 1`
27470fi
27471
cristy8b350f62009-11-15 23:12:43 +000027472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027473$as_echo_n "checking if FFTW package is complete... " >&6; }
27474 if test $passed -gt 0; then
27475 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027477$as_echo "no -- some components failed test" >&6; }
27478 have_fftw='no (failed tests)'
27479 else
27480 FFTW_LIBS='-lfftw3'
27481 LIBS="$FFTW_LIBS $LIBS"
27482
cristy8b350f62009-11-15 23:12:43 +000027483$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027484
cristy8b350f62009-11-15 23:12:43 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo "yes" >&6; }
27487 have_fftw='yes'
27488 fi
27489 else
cristy8b350f62009-11-15 23:12:43 +000027490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027491$as_echo "no" >&6; }
27492 fi
27493fi
cristy73bd4a52010-10-05 11:24:23 +000027494 if test "$have_fftw" = 'yes'; then
27495 FFTW_DELEGATE_TRUE=
27496 FFTW_DELEGATE_FALSE='#'
27497else
27498 FFTW_DELEGATE_TRUE='#'
27499 FFTW_DELEGATE_FALSE=
27500fi
27501
cristy3ed852e2009-09-05 21:47:34 +000027502
27503
27504
27505#
27506# Check for FlashPIX delegate library.
27507#
27508
27509# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027510if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027511 withval=$with_fpx; with_fpx=$withval
27512else
27513 with_fpx='yes'
27514fi
27515
27516
27517if test "$with_fpx" != 'yes'; then
27518 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27519fi
27520
27521have_fpx='no'
27522FPX_LIBS=''
27523if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027525$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027527$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027529$as_echo "" >&6; }
27530 failed=0
27531 passed=0
27532 ac_ext=cpp
27533ac_cpp='$CXXCPP $CPPFLAGS'
27534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27537
27538
cristy8b350f62009-11-15 23:12:43 +000027539ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027540if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027541 passed=`expr $passed + 1`
27542else
27543 failed=`expr $failed + 1`
27544fi
27545
27546
cristy8b350f62009-11-15 23:12:43 +000027547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027548$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027549if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027550 $as_echo_n "(cached) " >&6
27551else
27552 ac_check_lib_save_LIBS=$LIBS
27553LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027555/* end confdefs.h. */
27556
27557/* Override any GCC internal prototype to avoid an error.
27558 Use char because int might match the return type of a GCC
27559 builtin and then its argument prototype would still apply. */
27560#ifdef __cplusplus
27561extern "C"
27562#endif
27563char FPX_OpenImageByFilename ();
27564int
27565main ()
27566{
27567return FPX_OpenImageByFilename ();
27568 ;
27569 return 0;
27570}
27571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027572if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027573 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27574else
cristy8b350f62009-11-15 23:12:43 +000027575 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027576fi
cristy8b350f62009-11-15 23:12:43 +000027577rm -f core conftest.err conftest.$ac_objext \
27578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027579LIBS=$ac_check_lib_save_LIBS
27580fi
cristy8b350f62009-11-15 23:12:43 +000027581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027582$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027583if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027584 passed=`expr $passed + 1`
27585else
27586 failed=`expr $failed + 1`
27587fi
27588
27589 ac_ext=c
27590ac_cpp='$CPP $CPPFLAGS'
27591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27593ac_compiler_gnu=$ac_cv_c_compiler_gnu
27594
cristy8b350f62009-11-15 23:12:43 +000027595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027596$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27597 if test $passed -gt 0; then
27598 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027600$as_echo "no -- some components failed test" >&6; }
27601 have_fpx='no (failed tests)'
27602 else
27603 FPX_LIBS='-lfpx'
27604
cristy8b350f62009-11-15 23:12:43 +000027605$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027606
cristy8b350f62009-11-15 23:12:43 +000027607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027608$as_echo "yes" >&6; }
27609 have_fpx='yes'
27610 PERLMAINCC="$CXX"
27611 fi
27612 else
cristy8b350f62009-11-15 23:12:43 +000027613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo "no" >&6; }
27615 fi
27616fi
cristy73bd4a52010-10-05 11:24:23 +000027617 if test "$have_fpx" = 'yes'; then
27618 FPX_DELEGATE_TRUE=
27619 FPX_DELEGATE_FALSE='#'
27620else
27621 FPX_DELEGATE_TRUE='#'
27622 FPX_DELEGATE_FALSE=
27623fi
27624
cristy3ed852e2009-09-05 21:47:34 +000027625
27626
27627
27628#
27629# Check for fontconfig delegate library.
27630#
27631
27632# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027633if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027634 withval=$with_fontconfig; with_fontconfig=$withval
27635else
27636 with_fontconfig=$have_x
27637fi
27638
27639
27640if test "$with_fontconfig" != 'yes'; then
27641 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27642fi
27643
27644have_fontconfig='no'
27645FONTCONFIG_CFLAGS=""
27646FONTCONFIG_LIBS=""
27647FONTCONFIG_PKG=""
27648if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027651
27652pkg_failed=no
27653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27654$as_echo_n "checking for FONTCONFIG... " >&6; }
27655
27656if test -n "$FONTCONFIG_CFLAGS"; then
27657 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27658 elif test -n "$PKG_CONFIG"; then
27659 if test -n "$PKG_CONFIG" && \
27660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27661 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27662 ac_status=$?
27663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27664 test $ac_status = 0; }; then
27665 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27666else
27667 pkg_failed=yes
27668fi
27669 else
27670 pkg_failed=untried
27671fi
27672if test -n "$FONTCONFIG_LIBS"; then
27673 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27674 elif test -n "$PKG_CONFIG"; then
27675 if test -n "$PKG_CONFIG" && \
27676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27677 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27678 ac_status=$?
27679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27680 test $ac_status = 0; }; then
27681 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27682else
27683 pkg_failed=yes
27684fi
27685 else
27686 pkg_failed=untried
27687fi
27688
27689
27690
27691if test $pkg_failed = yes; then
27692
27693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27694 _pkg_short_errors_supported=yes
27695else
27696 _pkg_short_errors_supported=no
27697fi
27698 if test $_pkg_short_errors_supported = yes; then
27699 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27700 else
27701 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27702 fi
27703 # Put the nasty error message in config.log where it belongs
27704 echo "$FONTCONFIG_PKG_ERRORS" >&5
27705
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27707$as_echo "no" >&6; }
27708 have_fontconfig=no
27709elif test $pkg_failed = untried; then
27710 have_fontconfig=no
27711else
27712 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27713 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27715$as_echo "yes" >&6; }
27716 have_fontconfig=yes
27717fi
cristy8b350f62009-11-15 23:12:43 +000027718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027719$as_echo "" >&6; }
27720fi
27721
27722if test "$have_fontconfig" = 'yes'; then
27723
cristy8b350f62009-11-15 23:12:43 +000027724$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027725
cristyd09bcf92010-03-25 03:04:45 +000027726 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027727 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027728 fi
cristy3ed852e2009-09-05 21:47:34 +000027729fi
27730
cristy73bd4a52010-10-05 11:24:23 +000027731 if test "$have_fontconfig" = 'yes'; then
27732 FONTCONFIG_DELEGATE_TRUE=
27733 FONTCONFIG_DELEGATE_FALSE='#'
27734else
27735 FONTCONFIG_DELEGATE_TRUE='#'
27736 FONTCONFIG_DELEGATE_FALSE=
27737fi
27738
cristy3ed852e2009-09-05 21:47:34 +000027739
27740
27741
27742
27743#
27744# Check for freetype delegate library.
27745#
27746
27747# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027748if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027749 withval=$with_freetype; with_freetype=$withval
27750else
27751 with_freetype='yes'
27752fi
27753
27754
27755
27756if test "$with_freetype" != 'yes'; then
27757 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27758fi
27759
27760have_freetype='no'
27761FREETYPE_LIBS=''
27762if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027764$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo "" >&6; }
27769 failed=0
27770 passed=0
cristy66291112009-10-03 22:44:36 +000027771 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027772 PERSIST_CPPFLAGS="$CPPFLAGS"
27773 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27774 :
27775 else
27776 freetype_config=''
27777 for ac_prog in freetype-config
27778do
27779 # Extract the first word of "$ac_prog", so it can be a program name with args.
27780set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027783if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027784 $as_echo_n "(cached) " >&6
27785else
27786 if test -n "$freetype_config"; then
27787 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27788else
27789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27790for as_dir in $PATH
27791do
27792 IFS=$as_save_IFS
27793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27796 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027798 break 2
27799 fi
27800done
cristy8b350f62009-11-15 23:12:43 +000027801 done
cristy3ed852e2009-09-05 21:47:34 +000027802IFS=$as_save_IFS
27803
27804fi
27805fi
27806freetype_config=$ac_cv_prog_freetype_config
27807if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809$as_echo "$freetype_config" >&6; }
27810else
cristy8b350f62009-11-15 23:12:43 +000027811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027812$as_echo "no" >&6; }
27813fi
27814
27815
27816 test -n "$freetype_config" && break
27817done
27818 if test -n "$freetype_config"; then
27819 freetype_cflags=`$freetype_config --cflags`
27820 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027821 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027822 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27823 fi
27824 fi
27825
27826 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027828$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027829if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027830 $as_echo_n "(cached) " >&6
27831else
27832 ac_check_lib_save_LIBS=$LIBS
27833LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027835/* end confdefs.h. */
27836
27837/* Override any GCC internal prototype to avoid an error.
27838 Use char because int might match the return type of a GCC
27839 builtin and then its argument prototype would still apply. */
27840#ifdef __cplusplus
27841extern "C"
27842#endif
27843char FT_Init_FreeType ();
27844int
27845main ()
27846{
27847return FT_Init_FreeType ();
27848 ;
27849 return 0;
27850}
27851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027853 ac_cv_lib_freetype_FT_Init_FreeType=yes
27854else
cristy8b350f62009-11-15 23:12:43 +000027855 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027856fi
cristy8b350f62009-11-15 23:12:43 +000027857rm -f core conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027859LIBS=$ac_check_lib_save_LIBS
27860fi
cristy8b350f62009-11-15 23:12:43 +000027861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027863if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 FREETYPE_LIBS='-lfreetype'
27865fi
27866
27867 if test "$FREETYPE_LIBS" != ''; then
27868 passed=`expr $passed + 1`
27869 else
27870 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027871 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027872 fi
27873 fi
27874
cristy8b350f62009-11-15 23:12:43 +000027875 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027876if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027877 FT2BUILD_H='#include <ft2build.h>'
27878else
27879 ft2build=''
27880fi
27881
27882
cristy8b350f62009-11-15 23:12:43 +000027883 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27884"
cristyda16f162011-02-19 23:52:17 +000027885if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027886 have_freetype_h='yes'
27887else
27888 have_freetype_h='no'
27889fi
27890
27891
27892 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27893 passed=`expr $passed + 1`
27894 else
27895 failed=`expr $failed + 1`
27896 CPPFLAGS="$PERSIST_CPPFLAGS"
27897 fi
27898
cristy8b350f62009-11-15 23:12:43 +000027899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027900$as_echo_n "checking if FreeType package is complete... " >&6; }
27901 if test $passed -gt 0; then
27902 if test $failed -gt 0; then
27903 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027905$as_echo "no -- some components failed test" >&6; }
27906 have_freetype='no (failed tests)'
27907 else
27908 LIBS="$FREETYPE_LIBS $LIBS"
27909
cristy8b350f62009-11-15 23:12:43 +000027910$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027911
27912 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27913
cristy8b350f62009-11-15 23:12:43 +000027914$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027915
27916 fi
cristy8b350f62009-11-15 23:12:43 +000027917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027918$as_echo "yes" >&6; }
27919 have_freetype='yes'
27920 fi
27921 else
cristy8b350f62009-11-15 23:12:43 +000027922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027923$as_echo "no" >&6; }
27924 fi
27925fi
cristy73bd4a52010-10-05 11:24:23 +000027926 if test "$have_freetype" = 'yes'; then
27927 FREETYPE_DELEGATE_TRUE=
27928 FREETYPE_DELEGATE_FALSE='#'
27929else
27930 FREETYPE_DELEGATE_TRUE='#'
27931 FREETYPE_DELEGATE_FALSE=
27932fi
27933
cristy3ed852e2009-09-05 21:47:34 +000027934
27935
27936
27937
27938#
27939# Check for Ghostscript library or framework.
27940#
27941# Test for iapi.h & test for gsapi_new_instance in -lgs
27942# or -framework Ghostscript
27943
27944
27945# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027946if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027947 withval=$with_gslib; with_gslib=$withval
27948else
27949 with_gslib='no'
27950fi
27951
27952
cristyb7931f12009-09-25 10:22:21 +000027953gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027954if test "$with_gslib" != 'yes'; then
27955 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27956fi
27957
27958have_gslib='no'
27959GS_LIBS=''
27960if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027962$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027964$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027966$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027967 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027968 failed=0
27969 passed=0
cristy8b350f62009-11-15 23:12:43 +000027970 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 +000027971if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027972 passed=`expr $passed + 1`
27973else
27974 failed=`expr $failed + 1`
27975fi
27976
27977
cristy8b350f62009-11-15 23:12:43 +000027978 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 +000027979if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027980 passed=`expr $passed + 1`
27981else
27982 failed=`expr $failed + 1`
27983fi
27984
27985
cristy73bd4a52010-10-05 11:24:23 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27987$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027988if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027989 $as_echo_n "(cached) " >&6
27990else
27991 ac_check_framework_save_LIBS=$LIBS
27992LIBS="-framework Ghostscript $LIBS"
27993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994/* end confdefs.h. */
27995
27996/* Override any GCC internal prototype to avoid an error.
27997 Use char because int might match the return type of a GCC
27998 builtin and then its argument prototype would still apply. */
27999#ifdef __cplusplus
28000extern "C"
28001#endif
28002char gsapi_new_instance ();
28003int
28004main ()
28005{
28006return gsapi_new_instance ();
28007 ;
28008 return 0;
28009}
28010_ACEOF
28011if ac_fn_c_try_link "$LINENO"; then :
28012 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28013else
28014 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28015fi
28016rm -f core conftest.err conftest.$ac_objext \
28017 conftest$ac_exeext conftest.$ac_ext
28018LIBS=$ac_check_framework_save_LIBS
28019fi
28020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28021$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28022if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28023 framework=`expr $framework + 1`
28024else
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028026$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028027if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028028 $as_echo_n "(cached) " >&6
28029else
28030 ac_check_lib_save_LIBS=$LIBS
28031LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028033/* end confdefs.h. */
28034
28035/* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28038#ifdef __cplusplus
28039extern "C"
28040#endif
28041char gsapi_new_instance ();
28042int
28043main ()
28044{
28045return gsapi_new_instance ();
28046 ;
28047 return 0;
28048}
28049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028050if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028051 ac_cv_lib_gs_gsapi_new_instance=yes
28052else
cristy8b350f62009-11-15 23:12:43 +000028053 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028054fi
cristy8b350f62009-11-15 23:12:43 +000028055rm -f core conftest.err conftest.$ac_objext \
28056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028057LIBS=$ac_check_lib_save_LIBS
28058fi
cristy8b350f62009-11-15 23:12:43 +000028059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028060$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028061if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 passed=`expr $passed + 1`
28063else
28064 failed=`expr $failed + 1`
28065fi
cristy73bd4a52010-10-05 11:24:23 +000028066
28067fi
cristy8b350f62009-11-15 23:12:43 +000028068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028069$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28070 if test $passed -gt 0; then
28071 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028073$as_echo "no -- some components failed test" >&6; }
28074 have_gslib='no (failed tests)'
28075 else
28076 if test $framework -gt 0; then
28077 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028078 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028080$as_echo "yes, using framework." >&6; }
28081 else
cristy8b350f62009-11-15 23:12:43 +000028082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo "yes, using library." >&6; }
28084 GS_LIBS='-lgs'
28085 fi
28086 LIBS="$GS_LIBS $LIBS"
28087
cristy8b350f62009-11-15 23:12:43 +000028088$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028089
28090 have_gslib='yes'
28091 fi
28092 else
cristy8b350f62009-11-15 23:12:43 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "no" >&6; }
28095 fi
28096fi
cristy73bd4a52010-10-05 11:24:23 +000028097 if test "$have_gslib" = 'yes'; then
28098 GS_DELEGATE_TRUE=
28099 GS_DELEGATE_FALSE='#'
28100else
28101 GS_DELEGATE_TRUE='#'
28102 GS_DELEGATE_FALSE=
28103fi
28104
cristy3ed852e2009-09-05 21:47:34 +000028105
28106
28107# Set default font search path
28108
28109# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028110if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 withval=$with_fontpath; with_fontpath=$withval
28112else
28113 with_fontpath=''
28114fi
28115
28116
28117if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28118 with_fontpath=''
28119else
28120
28121cat >>confdefs.h <<_ACEOF
28122#define MAGICK_FONT_PATH "$with_fontpath"
28123_ACEOF
28124
28125fi
28126if test "$with_fontpath=" != ''; then
28127 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28128fi
28129
28130# Set Ghostscript font directory
28131
28132# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028133if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028134 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28135else
28136 with_gs_font_dir='default'
28137fi
28138
28139
28140if test "$with_gs_font_dir" != 'default'; then
28141 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28142fi
28143
28144
28145#
28146# Check for GVC delegate library.
28147#
28148
28149# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028150if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028151 withval=$with_gvc; with_gvc=$withval
28152else
28153 with_gvc='yes'
28154fi
28155
28156
28157if test "$with_gvc" != 'yes'; then
28158 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28159fi
28160
28161GVC_PKG=""
28162if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028164$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028165
28166pkg_failed=no
28167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28168$as_echo_n "checking for GVC... " >&6; }
28169
28170if test -n "$GVC_CFLAGS"; then
28171 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28172 elif test -n "$PKG_CONFIG"; then
28173 if test -n "$PKG_CONFIG" && \
28174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28175 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28176 ac_status=$?
28177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28178 test $ac_status = 0; }; then
28179 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28180else
28181 pkg_failed=yes
28182fi
28183 else
28184 pkg_failed=untried
28185fi
28186if test -n "$GVC_LIBS"; then
28187 pkg_cv_GVC_LIBS="$GVC_LIBS"
28188 elif test -n "$PKG_CONFIG"; then
28189 if test -n "$PKG_CONFIG" && \
28190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28191 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28192 ac_status=$?
28193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28194 test $ac_status = 0; }; then
28195 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28196else
28197 pkg_failed=yes
28198fi
28199 else
28200 pkg_failed=untried
28201fi
28202
28203
28204
28205if test $pkg_failed = yes; then
28206
28207if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28208 _pkg_short_errors_supported=yes
28209else
28210 _pkg_short_errors_supported=no
28211fi
28212 if test $_pkg_short_errors_supported = yes; then
28213 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28214 else
28215 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28216 fi
28217 # Put the nasty error message in config.log where it belongs
28218 echo "$GVC_PKG_ERRORS" >&5
28219
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28221$as_echo "no" >&6; }
28222 have_gvc=no
28223elif test $pkg_failed = untried; then
28224 have_gvc=no
28225else
28226 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28227 GVC_LIBS=$pkg_cv_GVC_LIBS
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28229$as_echo "yes" >&6; }
28230 have_gvc=yes
28231fi
cristy8b350f62009-11-15 23:12:43 +000028232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028233$as_echo "" >&6; }
28234fi
28235
28236if test "$have_gvc" = 'yes'; then
28237
cristy8b350f62009-11-15 23:12:43 +000028238$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028239
28240 if test "$with_modules" = 'no'; then
28241 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28242 fi
28243fi
28244
cristy73bd4a52010-10-05 11:24:23 +000028245 if test "$have_gvc" = 'yes'; then
28246 GVC_DELEGATE_TRUE=
28247 GVC_DELEGATE_FALSE='#'
28248else
28249 GVC_DELEGATE_TRUE='#'
28250 GVC_DELEGATE_FALSE=
28251fi
28252
cristy3ed852e2009-09-05 21:47:34 +000028253
28254
28255
28256
28257#
28258# Check for JBIG delegate library.
28259#
28260
28261
28262# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028263if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028264 withval=$with_jbig; with_jbig=$withval
28265else
28266 with_jbig='yes'
28267fi
28268
28269
28270have_jbig='no'
28271JBIG_LIBS=''
28272if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028274$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028278$as_echo "" >&6; }
28279 failed=0
28280 passed=0
cristy8b350f62009-11-15 23:12:43 +000028281 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028282if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028283 passed=`expr $passed + 1`
28284else
28285 failed=`expr $failed + 1`
28286fi
28287
28288
cristy8b350f62009-11-15 23:12:43 +000028289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028290$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028291if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028292 $as_echo_n "(cached) " >&6
28293else
28294 ac_check_lib_save_LIBS=$LIBS
28295LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028297/* end confdefs.h. */
28298
28299/* Override any GCC internal prototype to avoid an error.
28300 Use char because int might match the return type of a GCC
28301 builtin and then its argument prototype would still apply. */
28302#ifdef __cplusplus
28303extern "C"
28304#endif
28305char jbg_dec_init ();
28306int
28307main ()
28308{
28309return jbg_dec_init ();
28310 ;
28311 return 0;
28312}
28313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028315 ac_cv_lib_jbig_jbg_dec_init=yes
28316else
cristy8b350f62009-11-15 23:12:43 +000028317 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028318fi
cristy8b350f62009-11-15 23:12:43 +000028319rm -f core conftest.err conftest.$ac_objext \
28320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028321LIBS=$ac_check_lib_save_LIBS
28322fi
cristy8b350f62009-11-15 23:12:43 +000028323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028324$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028325if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028326 passed=`expr $passed + 1`
28327else
28328 failed=`expr $failed + 1`
28329fi
28330
cristy8b350f62009-11-15 23:12:43 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028332$as_echo_n "checking if JBIG package is complete... " >&6; }
28333 if test $passed -gt 0; then
28334 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028336$as_echo "no -- some components failed test" >&6; }
28337 have_jbig='no (failed tests)'
28338 else
28339 JBIG_LIBS='-ljbig'
28340 LIBS="$JBIG_LIBS $LIBS"
28341
cristy8b350f62009-11-15 23:12:43 +000028342$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028343
cristy8b350f62009-11-15 23:12:43 +000028344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028345$as_echo "yes" >&6; }
28346 have_jbig='yes'
28347 fi
28348 else
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo "no" >&6; }
28351 fi
28352fi
cristy73bd4a52010-10-05 11:24:23 +000028353 if test "$have_jbig" = 'yes'; then
28354 JBIG_DELEGATE_TRUE=
28355 JBIG_DELEGATE_FALSE='#'
28356else
28357 JBIG_DELEGATE_TRUE='#'
28358 JBIG_DELEGATE_FALSE=
28359fi
28360
cristy3ed852e2009-09-05 21:47:34 +000028361
28362
28363
28364#
28365# Check for JPEG delegate library.
28366#
28367
28368# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028369if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028370 withval=$with_jpeg; with_jpeg=$withval
28371else
28372 with_jpeg='yes'
28373fi
28374
28375
28376if test "$with_jpeg" != 'yes'; then
28377 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28378fi
28379
28380have_jpeg='no'
28381JPEG_LIBS=''
28382if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028384$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028386$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028388$as_echo "" >&6; }
28389 failed=0
28390 passed=0
cristy8b350f62009-11-15 23:12:43 +000028391 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028392if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028393 passed=`expr $passed + 1`
28394else
28395 failed=`expr $failed + 1`
28396fi
28397
28398
cristy8b350f62009-11-15 23:12:43 +000028399 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028400if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028401 passed=`expr $passed + 1`
28402else
28403 failed=`expr $failed + 1`
28404fi
28405
28406
cristy8b350f62009-11-15 23:12:43 +000028407 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028408if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028409 passed=`expr $passed + 1`
28410else
28411 failed=`expr $failed + 1`
28412fi
28413
28414
cristy8b350f62009-11-15 23:12:43 +000028415 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028416if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028417 passed=`expr $passed + 1`
28418else
28419 failed=`expr $failed + 1`
28420fi
28421
28422
cristy8b350f62009-11-15 23:12:43 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028424$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028425if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028426 $as_echo_n "(cached) " >&6
28427else
28428 ac_check_lib_save_LIBS=$LIBS
28429LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028431/* end confdefs.h. */
28432
28433/* Override any GCC internal prototype to avoid an error.
28434 Use char because int might match the return type of a GCC
28435 builtin and then its argument prototype would still apply. */
28436#ifdef __cplusplus
28437extern "C"
28438#endif
28439char jpeg_read_header ();
28440int
28441main ()
28442{
28443return jpeg_read_header ();
28444 ;
28445 return 0;
28446}
28447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028448if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028449 ac_cv_lib_jpeg_jpeg_read_header=yes
28450else
cristy8b350f62009-11-15 23:12:43 +000028451 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028452fi
cristy8b350f62009-11-15 23:12:43 +000028453rm -f core conftest.err conftest.$ac_objext \
28454 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028455LIBS=$ac_check_lib_save_LIBS
28456fi
cristy8b350f62009-11-15 23:12:43 +000028457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028458$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028459if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028460 passed=`expr $passed + 1`
28461else
28462 failed=`expr $failed + 1`
28463fi
28464
28465
28466# Test for compatible JPEG library
28467if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028469$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028470if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028471 $as_echo_n "(cached) " >&6
28472else
cristy8b350f62009-11-15 23:12:43 +000028473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028474/* end confdefs.h. */
28475#include <stdio.h>
28476#include <stdlib.h>
28477#include <jpeglib.h>
28478
28479int
28480main ()
28481{
28482
28483#if JPEG_LIB_VERSION < 62
28484#error IJG JPEG library must be version 6b or newer!
28485#endif
28486return 0;
28487
28488 ;
28489 return 0;
28490}
28491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028492if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028493 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28494else
cristy8b350f62009-11-15 23:12:43 +000028495 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028496fi
cristy3ed852e2009-09-05 21:47:34 +000028497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28498fi
cristy8b350f62009-11-15 23:12:43 +000028499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028500$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28501fi
cristy8b350f62009-11-15 23:12:43 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028503$as_echo_n "checking if JPEG package is complete... " >&6; }
28504 if test $passed -gt 0; then
28505 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028507$as_echo "no -- some components failed test" >&6; }
28508 have_jpeg='no (failed tests)'
28509 else
28510 JPEG_LIBS='-ljpeg'
28511 LIBS="$JPEG_LIBS $LIBS"
28512
cristy8b350f62009-11-15 23:12:43 +000028513$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028514
cristy8b350f62009-11-15 23:12:43 +000028515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028516$as_echo "yes" >&6; }
28517 have_jpeg='yes'
28518 fi
28519 else
cristy8b350f62009-11-15 23:12:43 +000028520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo "no" >&6; }
28522 fi
28523fi
cristy73bd4a52010-10-05 11:24:23 +000028524 if test "$have_jpeg" = 'yes'; then
28525 JPEG_DELEGATE_TRUE=
28526 JPEG_DELEGATE_FALSE='#'
28527else
28528 JPEG_DELEGATE_TRUE='#'
28529 JPEG_DELEGATE_FALSE=
28530fi
28531
cristy3ed852e2009-09-05 21:47:34 +000028532
28533
28534
28535#
28536# Check for JPEG Version 2 delegate library.
28537#
28538
28539# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028540if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 withval=$with_jp2; with_jp2=$withval
28542else
28543 with_jp2='yes'
28544fi
28545
28546
28547if test "$with_jp2" != 'yes'; then
28548 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28549fi
28550
28551have_jp2='no'
28552JP2_LIBS=''
28553if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028557$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028559$as_echo "" >&6; }
28560 failed=0
28561 passed=0
cristy8b350f62009-11-15 23:12:43 +000028562 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 +000028563if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 passed=`expr $passed + 1`
28565else
28566 failed=`expr $failed + 1`
28567fi
28568
28569
cristy8b350f62009-11-15 23:12:43 +000028570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028571$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028572if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028573 $as_echo_n "(cached) " >&6
28574else
28575 ac_check_lib_save_LIBS=$LIBS
28576LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028578/* end confdefs.h. */
28579
28580/* Override any GCC internal prototype to avoid an error.
28581 Use char because int might match the return type of a GCC
28582 builtin and then its argument prototype would still apply. */
28583#ifdef __cplusplus
28584extern "C"
28585#endif
28586char jas_stream_fopen ();
28587int
28588main ()
28589{
28590return jas_stream_fopen ();
28591 ;
28592 return 0;
28593}
28594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028595if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028596 ac_cv_lib_jasper_jas_stream_fopen=yes
28597else
cristy8b350f62009-11-15 23:12:43 +000028598 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028599fi
cristy8b350f62009-11-15 23:12:43 +000028600rm -f core conftest.err conftest.$ac_objext \
28601 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028602LIBS=$ac_check_lib_save_LIBS
28603fi
cristy8b350f62009-11-15 23:12:43 +000028604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028605$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028606if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028607 passed=`expr $passed + 1`
28608else
28609 failed=`expr $failed + 1`
28610fi
28611
cristy8b350f62009-11-15 23:12:43 +000028612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028613$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28614 if test $passed -gt 0; then
28615 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028617$as_echo "no -- some components failed test" >&6; }
28618 have_jp2='no (failed tests)'
28619 else
28620 JP2_LIBS='-ljasper'
28621 LIBS="$JP2_LIBS $LIBS"
28622
cristy8b350f62009-11-15 23:12:43 +000028623$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028624
cristy8b350f62009-11-15 23:12:43 +000028625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028626$as_echo "yes" >&6; }
28627 have_jp2='yes'
28628 fi
28629 else
cristy8b350f62009-11-15 23:12:43 +000028630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028631$as_echo "no" >&6; }
28632 fi
28633fi
cristy73bd4a52010-10-05 11:24:23 +000028634 if test "$have_jp2" = 'yes'; then
28635 JP2_DELEGATE_TRUE=
28636 JP2_DELEGATE_FALSE='#'
28637else
28638 JP2_DELEGATE_TRUE='#'
28639 JP2_DELEGATE_FALSE=
28640fi
28641
cristy3ed852e2009-09-05 21:47:34 +000028642
28643
28644
28645#
28646# Check for LCMS delegate library.
28647#
cristy71203402010-06-18 13:12:03 +000028648# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028649
28650# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028651if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028652 withval=$with_lcms; with_lcms=$withval
28653else
28654 with_lcms='yes'
28655fi
28656
cristy71203402010-06-18 13:12:03 +000028657if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28659fi
28660
cristy71203402010-06-18 13:12:03 +000028661# Disable LCMS2.
28662
28663# Check whether --with-lcms2 was given.
28664if test "${with_lcms2+set}" = set; then :
28665 withval=$with_lcms2; with_lcms2=$withval
28666else
28667 with_lcms2='yes'
28668fi
28669
28670if test "$with_lcms2" != 'yes' ; then
28671 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28672fi
28673
28674have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028675LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028676if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28680$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028682$as_echo "" >&6; }
28683 failed=0
28684 passed=0
28685 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028686
28687 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028688 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028689if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028690 have_lcms_header='yes'
28691fi
28692
28693
28694 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028695
28696$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28697
cristy71203402010-06-18 13:12:03 +000028698 passed=`expr $passed + 1`
28699 fi
28700
28701 # Check for <lcms2/lcms2.h)
28702 if test "$have_lcms_header" != 'yes'; then
28703 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 +000028704if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028705 have_lcms_header='yes'
28706fi
28707
28708
cristy71203402010-06-18 13:12:03 +000028709 if test "$have_lcms_header" = 'yes'; then
28710 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028711
cristy71203402010-06-18 13:12:03 +000028712$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028713
cristy71203402010-06-18 13:12:03 +000028714 fi
cristyd09bcf92010-03-25 03:04:45 +000028715 fi
cristy71203402010-06-18 13:12:03 +000028716
28717 # Failed to find lcms header?
28718 if test "$have_lcms_header" != 'yes'; then
28719 failed=`expr $failed + 1`
28720 fi
28721
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28723$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028724if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028725 $as_echo_n "(cached) " >&6
28726else
28727 ac_check_lib_save_LIBS=$LIBS
28728LIBS="-llcms2 $LIBS"
28729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28730/* end confdefs.h. */
28731
28732/* Override any GCC internal prototype to avoid an error.
28733 Use char because int might match the return type of a GCC
28734 builtin and then its argument prototype would still apply. */
28735#ifdef __cplusplus
28736extern "C"
28737#endif
cristy71203402010-06-18 13:12:03 +000028738char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028739int
28740main ()
28741{
cristy71203402010-06-18 13:12:03 +000028742return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028743 ;
28744 return 0;
28745}
28746_ACEOF
28747if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028748 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028749else
cristy71203402010-06-18 13:12:03 +000028750 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028751fi
28752rm -f core conftest.err conftest.$ac_objext \
28753 conftest$ac_exeext conftest.$ac_ext
28754LIBS=$ac_check_lib_save_LIBS
28755fi
cristy71203402010-06-18 13:12:03 +000028756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28757$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028758if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028759 passed=`expr $passed + 1`
28760else
28761 failed=`expr $failed + 1`
28762fi
28763
cristy71203402010-06-18 13:12:03 +000028764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28765$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028766 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028767 if test $failed -gt 0; then
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028769$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028770 have_lcms2='no (failed tests)'
28771 else
28772 LCMS_LIBS='-llcms2'
28773 LIBS="$LCMS_LIBS $LIBS"
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028775$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028776 have_lcms2='yes'
28777 fi
cristyd09bcf92010-03-25 03:04:45 +000028778 else
cristy71203402010-06-18 13:12:03 +000028779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028780$as_echo "no" >&6; }
28781 fi
28782fi
28783
cristy71203402010-06-18 13:12:03 +000028784#
28785# Check for LCMS v1 (1.11 or later)
28786#
28787if test $have_lcms2 = 'yes'; then
28788 with_lcms='no'
28789fi
28790
28791have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028792if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28794$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28796$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28798$as_echo "" >&6; }
28799 failed=0
28800 passed=0
28801 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028802
28803 # Check for <lcms.h>
28804 if test "$have_lcms_header" != 'yes'; then
28805 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028806if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028807 have_lcms_header='yes'
28808fi
28809
28810
cristy71203402010-06-18 13:12:03 +000028811 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028812 passed=`expr $passed + 1`
28813
cristy8b350f62009-11-15 23:12:43 +000028814$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028815
cristy71203402010-06-18 13:12:03 +000028816 fi
28817 fi
28818
28819 # Check for <lcms/lcms.h>
28820 if test "$have_lcms_header" != 'yes'; then
28821 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 +000028822if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028823 have_lcms_header='yes'
28824fi
28825
28826
cristy71203402010-06-18 13:12:03 +000028827 if test "$have_lcms_header" = 'yes'; then
28828 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028829
cristy8b350f62009-11-15 23:12:43 +000028830$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028831
cristy71203402010-06-18 13:12:03 +000028832 fi
cristy3ed852e2009-09-05 21:47:34 +000028833 fi
cristy71203402010-06-18 13:12:03 +000028834
28835 # Failed to find lcms header?
28836 if test "$have_lcms_header" != 'yes'; then
28837 failed=`expr $failed + 1`
28838 fi
28839
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28841$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028842if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028843 $as_echo_n "(cached) " >&6
28844else
28845 ac_check_lib_save_LIBS=$LIBS
28846LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028848/* end confdefs.h. */
28849
28850/* Override any GCC internal prototype to avoid an error.
28851 Use char because int might match the return type of a GCC
28852 builtin and then its argument prototype would still apply. */
28853#ifdef __cplusplus
28854extern "C"
28855#endif
cristy71203402010-06-18 13:12:03 +000028856char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028857int
28858main ()
28859{
cristy71203402010-06-18 13:12:03 +000028860return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028861 ;
28862 return 0;
28863}
28864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028865if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028866 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028867else
cristy71203402010-06-18 13:12:03 +000028868 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028869fi
cristy8b350f62009-11-15 23:12:43 +000028870rm -f core conftest.err conftest.$ac_objext \
28871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028872LIBS=$ac_check_lib_save_LIBS
28873fi
cristy71203402010-06-18 13:12:03 +000028874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28875$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028876if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028877 passed=`expr $passed + 1`
28878else
28879 failed=`expr $failed + 1`
28880fi
28881
cristy8b350f62009-11-15 23:12:43 +000028882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028883$as_echo_n "checking if LCMS package is complete... " >&6; }
28884 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028885 if test $failed -gt 0; then
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028887$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028888 have_lcms='no (failed tests)'
28889 else
28890 LCMS_LIBS='-llcms'
28891 LIBS="$LCMS_LIBS $LIBS"
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028894 have_lcms='yes'
28895 fi
cristy3ed852e2009-09-05 21:47:34 +000028896 else
cristy71203402010-06-18 13:12:03 +000028897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028898$as_echo "no" >&6; }
28899 fi
28900fi
cristy71203402010-06-18 13:12:03 +000028901
cristy73bd4a52010-10-05 11:24:23 +000028902 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28903 LCMS_DELEGATE_TRUE=
28904 LCMS_DELEGATE_FALSE='#'
28905else
28906 LCMS_DELEGATE_TRUE='#'
28907 LCMS_DELEGATE_FALSE=
28908fi
28909
cristy71203402010-06-18 13:12:03 +000028910if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28911
28912$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28913
28914fi
28915
cristy3ed852e2009-09-05 21:47:34 +000028916
28917
28918
28919#
28920# Check for the LQR (Liquid Rescale) delegate library.
28921#
28922
28923# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028924if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028925 withval=$with_lqr; with_lqr=$withval
28926else
28927 with_lqr='yes'
28928fi
28929
28930
28931if test "$with_lqr" != 'yes'; then
28932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28933fi
28934
28935have_lqr='no'
28936LQR_CFLAGS=""
28937LQR_LIBS=""
28938LQR_PKG=""
28939if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028941$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028942
28943pkg_failed=no
28944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28945$as_echo_n "checking for LQR... " >&6; }
28946
28947if test -n "$LQR_CFLAGS"; then
28948 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28949 elif test -n "$PKG_CONFIG"; then
28950 if test -n "$PKG_CONFIG" && \
28951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28952 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28953 ac_status=$?
28954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28955 test $ac_status = 0; }; then
28956 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28957else
28958 pkg_failed=yes
28959fi
28960 else
28961 pkg_failed=untried
28962fi
28963if test -n "$LQR_LIBS"; then
28964 pkg_cv_LQR_LIBS="$LQR_LIBS"
28965 elif test -n "$PKG_CONFIG"; then
28966 if test -n "$PKG_CONFIG" && \
28967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28968 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28969 ac_status=$?
28970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28971 test $ac_status = 0; }; then
28972 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28973else
28974 pkg_failed=yes
28975fi
28976 else
28977 pkg_failed=untried
28978fi
28979
28980
28981
28982if test $pkg_failed = yes; then
28983
28984if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28985 _pkg_short_errors_supported=yes
28986else
28987 _pkg_short_errors_supported=no
28988fi
28989 if test $_pkg_short_errors_supported = yes; then
28990 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28991 else
28992 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28993 fi
28994 # Put the nasty error message in config.log where it belongs
28995 echo "$LQR_PKG_ERRORS" >&5
28996
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28998$as_echo "no" >&6; }
28999 have_lqr=no
29000elif test $pkg_failed = untried; then
29001 have_lqr=no
29002else
29003 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29004 LQR_LIBS=$pkg_cv_LQR_LIBS
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29006$as_echo "yes" >&6; }
29007 have_lqr=yes
29008fi
cristy8b350f62009-11-15 23:12:43 +000029009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029010$as_echo "" >&6; }
29011fi
29012
29013if test "$have_lqr" = 'yes'; then
29014
cristy8b350f62009-11-15 23:12:43 +000029015$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029016
29017 CFLAGS="$LQR_CFLAGS $CFLAGS"
29018fi
29019
cristy73bd4a52010-10-05 11:24:23 +000029020 if test "$have_lqr" = 'yes'; then
29021 LQR_DELEGATE_TRUE=
29022 LQR_DELEGATE_FALSE='#'
29023else
29024 LQR_DELEGATE_TRUE='#'
29025 LQR_DELEGATE_FALSE=
29026fi
29027
cristy3ed852e2009-09-05 21:47:34 +000029028
29029
29030
29031
cristyfbb0ef02010-12-19 02:32:11 +000029032# Disable LZMA (lzma library)
29033
29034# Check whether --with-lzma was given.
29035if test "${with_lzma+set}" = set; then :
29036 withval=$with_lzma; with_lzma=$withval
29037else
29038 with_lzma='yes'
29039fi
29040
29041if test "$with_lzma" != 'yes' ; then
29042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29043fi
29044
29045#
29046# Check for LZMA
29047#
29048have_lzma='no'
29049LZMA_LIBS=''
29050if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29052$as_echo "-------------------------------------------------------------" >&6; }
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29054$as_echo_n "checking for LZMA... " >&6; }
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29056$as_echo "" >&6; }
29057 failed=0
29058 passed=0
29059 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029060if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029061 passed=`expr $passed + 1`
29062else
29063 failed=`expr $failed + 1`
29064fi
29065
29066
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29068$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029069if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029070 $as_echo_n "(cached) " >&6
29071else
29072 ac_check_lib_save_LIBS=$LIBS
29073LIBS="-llzma $LIBS"
29074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29075/* end confdefs.h. */
29076
29077/* Override any GCC internal prototype to avoid an error.
29078 Use char because int might match the return type of a GCC
29079 builtin and then its argument prototype would still apply. */
29080#ifdef __cplusplus
29081extern "C"
29082#endif
29083char lzma_code ();
29084int
29085main ()
29086{
29087return lzma_code ();
29088 ;
29089 return 0;
29090}
29091_ACEOF
29092if ac_fn_c_try_link "$LINENO"; then :
29093 ac_cv_lib_lzma_lzma_code=yes
29094else
29095 ac_cv_lib_lzma_lzma_code=no
29096fi
29097rm -f core conftest.err conftest.$ac_objext \
29098 conftest$ac_exeext conftest.$ac_ext
29099LIBS=$ac_check_lib_save_LIBS
29100fi
29101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29102$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029103if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029104 passed=`expr $passed + 1`
29105else
29106 failed=`expr $failed + 1`
29107fi
29108
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29110$as_echo_n "checking if LZMA package is complete... " >&6; }
29111 if test $passed -gt 0; then
29112 if test $failed -gt 0; then
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29114$as_echo "no -- some components failed test" >&6; }
29115 have_lzma='no (failed tests)'
29116 else
29117 LZMA_LIBS='-llzma'
29118 LIBS="$LZMA_LIBS $LIBS"
29119
29120$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29121
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29123$as_echo "yes" >&6; }
29124 have_lzma='yes'
29125 fi
29126 else
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29128$as_echo "no" >&6; }
29129 fi
29130fi
29131 if test "$have_lzma" = 'yes'; then
29132 LZMA_DELEGATE_TRUE=
29133 LZMA_DELEGATE_FALSE='#'
29134else
29135 LZMA_DELEGATE_TRUE='#'
29136 LZMA_DELEGATE_FALSE=
29137fi
29138
29139
29140
29141
cristy3ed852e2009-09-05 21:47:34 +000029142#
29143# Check for the OpenEXR delegate library.
29144#
29145
29146# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029147if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029148 withval=$with_openexr; with_openexr=$withval
29149else
29150 with_openexr='yes'
29151fi
29152
29153
29154if test "$with_openexr" != 'yes'; then
29155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29156fi
29157
29158have_openexr='no'
29159OPENEXR_CFLAGS=""
29160OPENEXR_LIBS=""
29161OPENEXR_PKG=""
29162if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029164$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029165
29166pkg_failed=no
29167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29168$as_echo_n "checking for OPENEXR... " >&6; }
29169
29170if test -n "$OPENEXR_CFLAGS"; then
29171 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29172 elif test -n "$PKG_CONFIG"; then
29173 if test -n "$PKG_CONFIG" && \
29174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29175 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29176 ac_status=$?
29177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29178 test $ac_status = 0; }; then
29179 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29180else
29181 pkg_failed=yes
29182fi
29183 else
29184 pkg_failed=untried
29185fi
29186if test -n "$OPENEXR_LIBS"; then
29187 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29188 elif test -n "$PKG_CONFIG"; then
29189 if test -n "$PKG_CONFIG" && \
29190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29191 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29192 ac_status=$?
29193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29194 test $ac_status = 0; }; then
29195 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29196else
29197 pkg_failed=yes
29198fi
29199 else
29200 pkg_failed=untried
29201fi
29202
29203
29204
29205if test $pkg_failed = yes; then
29206
29207if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29208 _pkg_short_errors_supported=yes
29209else
29210 _pkg_short_errors_supported=no
29211fi
29212 if test $_pkg_short_errors_supported = yes; then
29213 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29214 else
29215 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29216 fi
29217 # Put the nasty error message in config.log where it belongs
29218 echo "$OPENEXR_PKG_ERRORS" >&5
29219
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29221$as_echo "no" >&6; }
29222 have_openexr=no
29223elif test $pkg_failed = untried; then
29224 have_openexr=no
29225else
29226 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29227 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29229$as_echo "yes" >&6; }
29230 have_openexr=yes
29231fi
cristy8b350f62009-11-15 23:12:43 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029233$as_echo "" >&6; }
29234fi
29235
29236if test "$have_openexr" = 'yes'; then
29237
cristy8b350f62009-11-15 23:12:43 +000029238$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029239
29240 if test "$with_modules" = 'no'; then
29241 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29242 fi
29243fi
29244
cristy73bd4a52010-10-05 11:24:23 +000029245 if test "$have_openexr" = 'yes'; then
29246 OPENEXR_DELEGATE_TRUE=
29247 OPENEXR_DELEGATE_FALSE='#'
29248else
29249 OPENEXR_DELEGATE_TRUE='#'
29250 OPENEXR_DELEGATE_FALSE=
29251fi
29252
cristy3ed852e2009-09-05 21:47:34 +000029253
29254
29255
29256
29257#
29258# Check for PNG delegate library.
29259#
29260
29261# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029262if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029263 withval=$with_png; with_png=$withval
29264else
29265 with_png='yes'
29266fi
29267
29268
29269if test "$with_png" != 'yes'; then
29270 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29271fi
29272
29273have_png='no'
29274PNG_LIBS=''
29275if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029277$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029279$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029281$as_echo "" >&6; }
29282 failed=0
29283 passed=0
cristy8b350f62009-11-15 23:12:43 +000029284 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029285if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029286 passed=`expr $passed + 1`
29287else
29288 failed=`expr $failed + 1`
29289fi
29290
29291
cristy8b350f62009-11-15 23:12:43 +000029292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029293$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029294if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029295 $as_echo_n "(cached) " >&6
29296else
29297 ac_check_lib_save_LIBS=$LIBS
29298LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029300/* end confdefs.h. */
29301
29302/* Override any GCC internal prototype to avoid an error.
29303 Use char because int might match the return type of a GCC
29304 builtin and then its argument prototype would still apply. */
29305#ifdef __cplusplus
29306extern "C"
29307#endif
29308char png_get_io_ptr ();
29309int
29310main ()
29311{
29312return png_get_io_ptr ();
29313 ;
29314 return 0;
29315}
29316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029318 ac_cv_lib_png_png_get_io_ptr=yes
29319else
cristy8b350f62009-11-15 23:12:43 +000029320 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029321fi
cristy8b350f62009-11-15 23:12:43 +000029322rm -f core conftest.err conftest.$ac_objext \
29323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029324LIBS=$ac_check_lib_save_LIBS
29325fi
cristy8b350f62009-11-15 23:12:43 +000029326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029327$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029328if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029329 passed=`expr $passed + 1`
29330else
29331 failed=`expr $failed + 1`
29332fi
29333
cristy8b350f62009-11-15 23:12:43 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo_n "checking if PNG package is complete... " >&6; }
29336 if test $passed -gt 0; then
29337 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029339$as_echo "no -- some components failed test" >&6; }
29340 have_png='no (failed tests)'
29341 else
29342 PNG_LIBS='-lpng'
29343 LIBS="$PNG_LIBS $LIBS"
29344
cristy8b350f62009-11-15 23:12:43 +000029345$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029346
cristy8b350f62009-11-15 23:12:43 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029348$as_echo "yes" >&6; }
29349 have_png='yes'
29350 fi
29351 else
cristy8b350f62009-11-15 23:12:43 +000029352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029353$as_echo "no" >&6; }
29354 fi
29355fi
cristy73bd4a52010-10-05 11:24:23 +000029356 if test "$have_png" = 'yes'; then
29357 PNG_DELEGATE_TRUE=
29358 PNG_DELEGATE_FALSE='#'
29359else
29360 PNG_DELEGATE_TRUE='#'
29361 PNG_DELEGATE_FALSE=
29362fi
29363
cristy3ed852e2009-09-05 21:47:34 +000029364
29365
29366
29367#
29368# Check for RSVG delegate library.
29369#
29370
29371# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029372if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029373 withval=$with_rsvg; with_rsvg=$withval
29374else
29375 with_rsvg=$have_x
29376fi
29377
29378
29379if test "$with_rsvg" != 'yes'; then
29380 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29381fi
29382
29383have_rsvg='no'
29384have_cairo='no'
29385RSVG_CFLAGS=""
29386RSVG_LIBS=""
29387RSVG_PKG=""
29388if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029390$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029391
29392pkg_failed=no
29393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29394$as_echo_n "checking for RSVG... " >&6; }
29395
29396if test -n "$RSVG_CFLAGS"; then
29397 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29398 elif test -n "$PKG_CONFIG"; then
29399 if test -n "$PKG_CONFIG" && \
29400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29401 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29402 ac_status=$?
29403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29404 test $ac_status = 0; }; then
29405 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29406else
29407 pkg_failed=yes
29408fi
29409 else
29410 pkg_failed=untried
29411fi
29412if test -n "$RSVG_LIBS"; then
29413 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29414 elif test -n "$PKG_CONFIG"; then
29415 if test -n "$PKG_CONFIG" && \
29416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29417 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29418 ac_status=$?
29419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29420 test $ac_status = 0; }; then
29421 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29422else
29423 pkg_failed=yes
29424fi
29425 else
29426 pkg_failed=untried
29427fi
29428
29429
29430
29431if test $pkg_failed = yes; then
29432
29433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29434 _pkg_short_errors_supported=yes
29435else
29436 _pkg_short_errors_supported=no
29437fi
29438 if test $_pkg_short_errors_supported = yes; then
29439 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29440 else
29441 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29442 fi
29443 # Put the nasty error message in config.log where it belongs
29444 echo "$RSVG_PKG_ERRORS" >&5
29445
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29447$as_echo "no" >&6; }
29448 have_rsvg=no
29449elif test $pkg_failed = untried; then
29450 have_rsvg=no
29451else
29452 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29453 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29455$as_echo "yes" >&6; }
29456 have_rsvg=yes
29457fi
cristy8b350f62009-11-15 23:12:43 +000029458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029459$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029460
29461pkg_failed=no
29462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29463$as_echo_n "checking for CAIRO_SVG... " >&6; }
29464
29465if test -n "$CAIRO_SVG_CFLAGS"; then
29466 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29467 elif test -n "$PKG_CONFIG"; then
29468 if test -n "$PKG_CONFIG" && \
29469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29470 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29471 ac_status=$?
29472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29473 test $ac_status = 0; }; then
29474 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29475else
29476 pkg_failed=yes
29477fi
29478 else
29479 pkg_failed=untried
29480fi
29481if test -n "$CAIRO_SVG_LIBS"; then
29482 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29483 elif test -n "$PKG_CONFIG"; then
29484 if test -n "$PKG_CONFIG" && \
29485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29486 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29487 ac_status=$?
29488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29489 test $ac_status = 0; }; then
29490 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29491else
29492 pkg_failed=yes
29493fi
29494 else
29495 pkg_failed=untried
29496fi
29497
29498
29499
29500if test $pkg_failed = yes; then
29501
29502if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29503 _pkg_short_errors_supported=yes
29504else
29505 _pkg_short_errors_supported=no
29506fi
29507 if test $_pkg_short_errors_supported = yes; then
29508 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29509 else
29510 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29511 fi
29512 # Put the nasty error message in config.log where it belongs
29513 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29514
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29516$as_echo "no" >&6; }
29517 have_cairo=no
29518elif test $pkg_failed = untried; then
29519 have_cairo=no
29520else
29521 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29522 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29524$as_echo "yes" >&6; }
29525 have_cairo=yes
29526fi
cristy8b350f62009-11-15 23:12:43 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029528$as_echo "" >&6; }
29529fi
29530
29531if test "$have_rsvg" = 'yes'; then
29532
cristy8b350f62009-11-15 23:12:43 +000029533$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029534
29535 if test "$with_modules" = 'no'; then
29536 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29537 fi
29538fi
29539
29540if test "$have_cairo" = 'yes'; then
29541
cristy8b350f62009-11-15 23:12:43 +000029542$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029543
29544 if test "$with_modules" = 'no'; then
29545 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29546 fi
29547fi
29548
cristy73bd4a52010-10-05 11:24:23 +000029549 if test "$have_rsvg" = 'yes'; then
29550 RSVG_DELEGATE_TRUE=
29551 RSVG_DELEGATE_FALSE='#'
29552else
29553 RSVG_DELEGATE_TRUE='#'
29554 RSVG_DELEGATE_FALSE=
29555fi
29556
29557 if test "$have_cairo" = 'yes'; then
29558 CAIRO_DELEGATE_TRUE=
29559 CAIRO_DELEGATE_FALSE='#'
29560else
29561 CAIRO_DELEGATE_TRUE='#'
29562 CAIRO_DELEGATE_FALSE=
29563fi
29564
cristy3ed852e2009-09-05 21:47:34 +000029565
29566
29567
29568
29569#
29570# Check for TIFF delegate library.
29571#
29572
29573# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029574if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029575 withval=$with_tiff; with_tiff=$withval
29576else
29577 with_tiff='yes'
29578fi
29579
29580
29581if test "$with_tiff" != 'yes'; then
29582 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29583fi
29584
29585have_tiff='no'
29586TIFF_LIBS=''
29587if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029589$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029591$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029593$as_echo "" >&6; }
29594 failed=0
29595 passed=0
cristy8b350f62009-11-15 23:12:43 +000029596 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029597if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029598 passed=`expr $passed + 1`
29599else
29600 failed=`expr $failed + 1`
29601fi
29602
29603
cristy8b350f62009-11-15 23:12:43 +000029604 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029605if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029606 passed=`expr $passed + 1`
29607else
29608 failed=`expr $failed + 1`
29609fi
29610
29611
cristy8b350f62009-11-15 23:12:43 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029613$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029614if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029615 $as_echo_n "(cached) " >&6
29616else
29617 ac_check_lib_save_LIBS=$LIBS
29618LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029620/* end confdefs.h. */
29621
29622/* Override any GCC internal prototype to avoid an error.
29623 Use char because int might match the return type of a GCC
29624 builtin and then its argument prototype would still apply. */
29625#ifdef __cplusplus
29626extern "C"
29627#endif
29628char TIFFOpen ();
29629int
29630main ()
29631{
29632return TIFFOpen ();
29633 ;
29634 return 0;
29635}
29636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029637if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029638 ac_cv_lib_tiff_TIFFOpen=yes
29639else
cristy8b350f62009-11-15 23:12:43 +000029640 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029641fi
cristy8b350f62009-11-15 23:12:43 +000029642rm -f core conftest.err conftest.$ac_objext \
29643 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029644LIBS=$ac_check_lib_save_LIBS
29645fi
cristy8b350f62009-11-15 23:12:43 +000029646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029647$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029648if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029649 passed=`expr $passed + 1`
29650else
29651 failed=`expr $failed + 1`
29652fi
29653
cristy8b350f62009-11-15 23:12:43 +000029654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029655$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029656if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029657 $as_echo_n "(cached) " >&6
29658else
29659 ac_check_lib_save_LIBS=$LIBS
29660LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029662/* end confdefs.h. */
29663
29664/* Override any GCC internal prototype to avoid an error.
29665 Use char because int might match the return type of a GCC
29666 builtin and then its argument prototype would still apply. */
29667#ifdef __cplusplus
29668extern "C"
29669#endif
29670char TIFFClientOpen ();
29671int
29672main ()
29673{
29674return TIFFClientOpen ();
29675 ;
29676 return 0;
29677}
29678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029680 ac_cv_lib_tiff_TIFFClientOpen=yes
29681else
cristy8b350f62009-11-15 23:12:43 +000029682 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029683fi
cristy8b350f62009-11-15 23:12:43 +000029684rm -f core conftest.err conftest.$ac_objext \
29685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029686LIBS=$ac_check_lib_save_LIBS
29687fi
cristy8b350f62009-11-15 23:12:43 +000029688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029689$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029690if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029691 passed=`expr $passed + 1`
29692else
29693 failed=`expr $failed + 1`
29694fi
29695
cristyb97f1002010-07-26 14:02:57 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29697$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029698if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029699 $as_echo_n "(cached) " >&6
29700else
29701 ac_check_lib_save_LIBS=$LIBS
29702LIBS="-ltiff $LIBS"
29703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29704/* end confdefs.h. */
29705
29706/* Override any GCC internal prototype to avoid an error.
29707 Use char because int might match the return type of a GCC
29708 builtin and then its argument prototype would still apply. */
29709#ifdef __cplusplus
29710extern "C"
29711#endif
29712char TIFFIsBigEndian ();
29713int
29714main ()
29715{
29716return TIFFIsBigEndian ();
29717 ;
29718 return 0;
29719}
29720_ACEOF
29721if ac_fn_c_try_link "$LINENO"; then :
29722 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29723else
29724 ac_cv_lib_tiff_TIFFIsBigEndian=no
29725fi
29726rm -f core conftest.err conftest.$ac_objext \
29727 conftest$ac_exeext conftest.$ac_ext
29728LIBS=$ac_check_lib_save_LIBS
29729fi
29730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29731$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029732if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000029733 passed=`expr $passed + 1`
29734else
29735 failed=`expr $failed + 1`
29736fi
29737
cristy8b350f62009-11-15 23:12:43 +000029738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029739$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029740if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029741 $as_echo_n "(cached) " >&6
29742else
29743 ac_check_lib_save_LIBS=$LIBS
29744LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029746/* end confdefs.h. */
29747
29748/* Override any GCC internal prototype to avoid an error.
29749 Use char because int might match the return type of a GCC
29750 builtin and then its argument prototype would still apply. */
29751#ifdef __cplusplus
29752extern "C"
29753#endif
29754char TIFFIsByteSwapped ();
29755int
29756main ()
29757{
29758return TIFFIsByteSwapped ();
29759 ;
29760 return 0;
29761}
29762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029764 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29765else
cristy8b350f62009-11-15 23:12:43 +000029766 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029767fi
cristy8b350f62009-11-15 23:12:43 +000029768rm -f core conftest.err conftest.$ac_objext \
29769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029770LIBS=$ac_check_lib_save_LIBS
29771fi
cristy8b350f62009-11-15 23:12:43 +000029772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029773$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029774if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029775 passed=`expr $passed + 1`
29776else
29777 failed=`expr $failed + 1`
29778fi
29779
cristy8b350f62009-11-15 23:12:43 +000029780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029782if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029783 $as_echo_n "(cached) " >&6
29784else
29785 ac_check_lib_save_LIBS=$LIBS
29786LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029788/* end confdefs.h. */
29789
29790/* Override any GCC internal prototype to avoid an error.
29791 Use char because int might match the return type of a GCC
29792 builtin and then its argument prototype would still apply. */
29793#ifdef __cplusplus
29794extern "C"
29795#endif
29796char TIFFReadRGBATile ();
29797int
29798main ()
29799{
29800return TIFFReadRGBATile ();
29801 ;
29802 return 0;
29803}
29804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029806 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29807else
cristy8b350f62009-11-15 23:12:43 +000029808 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029809fi
cristy8b350f62009-11-15 23:12:43 +000029810rm -f core conftest.err conftest.$ac_objext \
29811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029812LIBS=$ac_check_lib_save_LIBS
29813fi
cristy8b350f62009-11-15 23:12:43 +000029814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029815$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029816if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029817 passed=`expr $passed + 1`
29818else
29819 failed=`expr $failed + 1`
29820fi
29821
cristy8b350f62009-11-15 23:12:43 +000029822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029823$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029824if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029825 $as_echo_n "(cached) " >&6
29826else
29827 ac_check_lib_save_LIBS=$LIBS
29828LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029830/* end confdefs.h. */
29831
29832/* Override any GCC internal prototype to avoid an error.
29833 Use char because int might match the return type of a GCC
29834 builtin and then its argument prototype would still apply. */
29835#ifdef __cplusplus
29836extern "C"
29837#endif
29838char TIFFReadRGBAStrip ();
29839int
29840main ()
29841{
29842return TIFFReadRGBAStrip ();
29843 ;
29844 return 0;
29845}
29846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029847if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029848 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29849else
cristy8b350f62009-11-15 23:12:43 +000029850 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029851fi
cristy8b350f62009-11-15 23:12:43 +000029852rm -f core conftest.err conftest.$ac_objext \
29853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029854LIBS=$ac_check_lib_save_LIBS
29855fi
cristy8b350f62009-11-15 23:12:43 +000029856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029857$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029858if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029859 passed=`expr $passed + 1`
29860else
29861 failed=`expr $failed + 1`
29862fi
29863
cristy8b350f62009-11-15 23:12:43 +000029864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029865$as_echo_n "checking if TIFF package is complete... " >&6; }
29866 if test $passed -gt 0; then
29867 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029869$as_echo "no -- some components failed test" >&6; }
29870 have_tiff='no (failed tests)'
29871 else
29872 TIFF_LIBS='-ltiff'
29873 LIBS="$TIFF_LIBS $LIBS"
29874
cristy8b350f62009-11-15 23:12:43 +000029875$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029876
cristy8b350f62009-11-15 23:12:43 +000029877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029878$as_echo "yes" >&6; }
29879 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029880 for ac_header in tiffconf.h
29881do :
29882 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029883if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029884 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029885#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029886_ACEOF
29887
29888fi
29889
29890done
29891
cristy8b350f62009-11-15 23:12:43 +000029892 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029893 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29894 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029895do :
29896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29897ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029898if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029899 cat >>confdefs.h <<_ACEOF
29900#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29901_ACEOF
29902
29903fi
29904done
29905
29906 fi
29907 else
cristy8b350f62009-11-15 23:12:43 +000029908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029909$as_echo "no" >&6; }
29910 fi
29911fi
cristy73bd4a52010-10-05 11:24:23 +000029912 if test "$have_tiff" = 'yes'; then
29913 TIFF_DELEGATE_TRUE=
29914 TIFF_DELEGATE_FALSE='#'
29915else
29916 TIFF_DELEGATE_TRUE='#'
29917 TIFF_DELEGATE_FALSE=
29918fi
29919
cristy3ed852e2009-09-05 21:47:34 +000029920
29921
29922
29923#
29924# Set Windows font directory.
29925#
29926
29927# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029928if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029929 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29930else
29931 with_windows_font_dir=''
29932fi
29933
29934if test "$with_windows_font_dir" != '' ; then
29935 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29936fi
29937
29938
29939#
29940# Check for WMF delegate library.
29941#
29942
29943# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029944if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029945 withval=$with_wmf; with_wmf=$withval
29946else
cristy8d63d1d2010-01-06 20:38:37 +000029947 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029948fi
29949
29950
29951if test "$with_wmf" != 'yes'; then
29952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29953fi
29954
29955have_wmf='no'
29956WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029957if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029959$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029961$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029963$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029964 failed=0
29965 passed=0
29966 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 +000029967if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000029968 passed=`expr $passed + 1`
29969else
29970 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029971fi
29972
29973
cristy735e8942010-04-02 20:32:57 +000029974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29975$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029976if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029977 $as_echo_n "(cached) " >&6
29978else
29979 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029980LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029982/* end confdefs.h. */
29983
29984/* Override any GCC internal prototype to avoid an error.
29985 Use char because int might match the return type of a GCC
29986 builtin and then its argument prototype would still apply. */
29987#ifdef __cplusplus
29988extern "C"
29989#endif
cristy735e8942010-04-02 20:32:57 +000029990char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029991int
29992main ()
29993{
cristy735e8942010-04-02 20:32:57 +000029994return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029995 ;
29996 return 0;
29997}
29998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029999if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030000 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030001else
cristy735e8942010-04-02 20:32:57 +000030002 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030003fi
cristy8b350f62009-11-15 23:12:43 +000030004rm -f core conftest.err conftest.$ac_objext \
30005 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030006LIBS=$ac_check_lib_save_LIBS
30007fi
cristy735e8942010-04-02 20:32:57 +000030008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30009$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030010if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030011 passed=`expr $passed + 1`
30012else
30013 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030014fi
30015
cristy735e8942010-04-02 20:32:57 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30017$as_echo_n "checking if WMF package is complete... " >&6; }
30018 if test $passed -gt 0; then
30019 if test $failed -gt 0; then
30020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30021$as_echo "no -- some components failed test" >&6; }
30022 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030023 else
cristy735e8942010-04-02 20:32:57 +000030024 WMF_LIBS='-lwmf -lwmflite'
30025 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030026
cristy8b350f62009-11-15 23:12:43 +000030027$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030028
cristy735e8942010-04-02 20:32:57 +000030029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030030$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030031 have_wmf='yes'
30032 fi
cristy3ed852e2009-09-05 21:47:34 +000030033 else
cristy8b350f62009-11-15 23:12:43 +000030034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030035$as_echo "no" >&6; }
30036 fi
30037fi
cristy73bd4a52010-10-05 11:24:23 +000030038 if test "$have_wmf" = 'yes'; then
30039 WMF_DELEGATE_TRUE=
30040 WMF_DELEGATE_FALSE='#'
30041else
30042 WMF_DELEGATE_TRUE='#'
30043 WMF_DELEGATE_FALSE=
30044fi
30045
cristy3ed852e2009-09-05 21:47:34 +000030046
30047
30048
30049
cristy735e8942010-04-02 20:32:57 +000030050
cristy3ed852e2009-09-05 21:47:34 +000030051#
30052# Check for XML delegate library.
30053#
30054
30055# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030056if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030057 withval=$with_xml; with_xml=$withval
30058else
30059 with_xml=$have_x
30060fi
30061
30062
30063if test "$with_xml" != 'yes' ; then
30064 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30065fi
30066
30067have_xml='no'
30068XML_LIBS=''
30069if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030071$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030073$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030075$as_echo "" >&6; }
30076 PERSIST_LDFLAGS=$LDFLAGS
30077 PERSIST_CPPFLAGS=$CPPFLAGS
30078 xml2_config=''
30079 for ac_prog in xml2-config
30080do
30081 # Extract the first word of "$ac_prog", so it can be a program name with args.
30082set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030085if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030086 $as_echo_n "(cached) " >&6
30087else
30088 if test -n "$xml2_config"; then
30089 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30090else
30091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30092for as_dir in $PATH
30093do
30094 IFS=$as_save_IFS
30095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30098 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030100 break 2
30101 fi
30102done
cristy8b350f62009-11-15 23:12:43 +000030103 done
cristy3ed852e2009-09-05 21:47:34 +000030104IFS=$as_save_IFS
30105
30106fi
30107fi
30108xml2_config=$ac_cv_prog_xml2_config
30109if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030111$as_echo "$xml2_config" >&6; }
30112else
cristy8b350f62009-11-15 23:12:43 +000030113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030114$as_echo "no" >&6; }
30115fi
30116
30117
30118 test -n "$xml2_config" && break
30119done
30120 if test -n "$xml2_config"; then
30121 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30122 # the shared library installed under /usr/lib, whereas the package
30123 # installs itself under $prefix/libxml and $prefix/lib.
30124 xml2_prefix=`xml2-config --prefix`
30125 if test -d "${xml2_prefix}/include/libxml2"; then
30126 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30127 fi
30128 if test "${xml2_prefix}" != '/usr'; then
30129 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30130 fi
30131 fi
30132 failed=0
30133 passed=0
cristy8b350f62009-11-15 23:12:43 +000030134 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 +000030135if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030136 passed=`expr $passed + 1`
30137else
30138 failed=`expr $failed + 1`
30139fi
30140
30141
cristy8b350f62009-11-15 23:12:43 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030144if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030145 $as_echo_n "(cached) " >&6
30146else
30147 ac_check_lib_save_LIBS=$LIBS
30148LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030150/* end confdefs.h. */
30151
30152/* Override any GCC internal prototype to avoid an error.
30153 Use char because int might match the return type of a GCC
30154 builtin and then its argument prototype would still apply. */
30155#ifdef __cplusplus
30156extern "C"
30157#endif
30158char xmlParseExternalEntity ();
30159int
30160main ()
30161{
30162return xmlParseExternalEntity ();
30163 ;
30164 return 0;
30165}
30166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030168 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30169else
cristy8b350f62009-11-15 23:12:43 +000030170 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030171fi
cristy8b350f62009-11-15 23:12:43 +000030172rm -f core conftest.err conftest.$ac_objext \
30173 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030174LIBS=$ac_check_lib_save_LIBS
30175fi
cristy8b350f62009-11-15 23:12:43 +000030176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030177$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030178if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030179 passed=`expr $passed + 1`
30180else
30181 failed=`expr $failed + 1`
30182fi
30183
cristy8b350f62009-11-15 23:12:43 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030185$as_echo_n "checking if XML package is complete... " >&6; }
30186 if test $passed -gt 0; then
30187 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030189$as_echo "no -- some components failed test" >&6; }
30190 have_xml='no (failed tests)'
30191 LDFLAGS="$PERSIST_LDFLAGS"
30192 CPPFLAGS="$PERSIST_CPPFLAGS"
30193 else
30194 XML_LIBS='-lxml2'
30195 LIBS="$XML_LIBS $LIBS"
30196
cristy8b350f62009-11-15 23:12:43 +000030197$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030198
cristy8b350f62009-11-15 23:12:43 +000030199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030200$as_echo "yes" >&6; }
30201 have_xml='yes'
30202 fi
30203 else
cristy8b350f62009-11-15 23:12:43 +000030204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030205$as_echo "no" >&6; }
30206 fi
30207fi
cristy73bd4a52010-10-05 11:24:23 +000030208 if test "$have_xml" = 'yes'; then
30209 XML_DELEGATE_TRUE=
30210 XML_DELEGATE_FALSE='#'
30211else
30212 XML_DELEGATE_TRUE='#'
30213 XML_DELEGATE_FALSE=
30214fi
30215
cristy3ed852e2009-09-05 21:47:34 +000030216
30217
30218
30219# Substitute compiler name to build/link PerlMagick
30220#
30221
30222
30223#
30224# Configure install Paths
30225#
30226
30227# Subdirectory under lib to place ImageMagick lib files
30228LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30229
30230cat >>confdefs.h <<_ACEOF
30231#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30232_ACEOF
30233
30234
30235# Path to ImageMagick bin directory
30236EXECUTABLE_PATH="${BIN_DIR}"
30237DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30238case "${build_os}" in
30239 mingw* )
30240 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30241 ;;
30242esac
30243
30244cat >>confdefs.h <<_ACEOF
30245#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30246_ACEOF
30247
30248
30249
30250# Path to ImageMagick lib
30251LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30252DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30253case "${build_os}" in
30254 mingw* )
30255 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30256 ;;
30257esac
30258
30259cat >>confdefs.h <<_ACEOF
30260#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30261_ACEOF
30262
30263
30264
30265# Subdirectory under lib to place ImageMagick configuration files
30266CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30267
30268cat >>confdefs.h <<_ACEOF
30269#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30270_ACEOF
30271
30272CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30273DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30274case "${build_os}" in
30275 mingw* )
30276 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30277 ;;
30278esac
30279
30280cat >>confdefs.h <<_ACEOF
30281#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30282_ACEOF
30283
30284
30285
30286#
30287# Subdirectory under lib to place ImageMagick coder module files
30288CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30289
30290cat >>confdefs.h <<_ACEOF
30291#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30292_ACEOF
30293
30294CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30295DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30296case "${build_os}" in
30297 mingw* )
30298 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30299 ;;
30300esac
30301
30302cat >>confdefs.h <<_ACEOF
30303#define CODER_PATH "$DEFINE_CODER_PATH"
30304_ACEOF
30305
30306
30307
30308#
30309# Subdirectory under lib to place ImageMagick filter module files
30310FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30311
30312cat >>confdefs.h <<_ACEOF
30313#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30314_ACEOF
30315
30316FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30317DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30318case "${build_os}" in
30319 mingw* )
30320 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30321 ;;
30322esac
30323
30324cat >>confdefs.h <<_ACEOF
30325#define FILTER_PATH "$DEFINE_FILTER_PATH"
30326_ACEOF
30327
30328
30329
30330#
30331# Path to ImageMagick documentation files
30332DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30333DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
30334DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
30335case "${build_os}" in
30336 mingw* )
30337 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30338 ;;
30339esac
30340
30341cat >>confdefs.h <<_ACEOF
30342#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30343_ACEOF
30344
30345
30346
30347#
30348# Path to ImageMagick share files
30349SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30350SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30351DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
30352case "${build_os}" in
30353 mingw* )
30354 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
30355 ;;
30356esac
30357
30358cat >>confdefs.h <<_ACEOF
30359#define SHARE_PATH "$DEFINE_SHARE_PATH"
30360_ACEOF
30361
30362
30363
30364# Subdirectory under share to place ImageMagick configuration files
30365SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30366
30367cat >>confdefs.h <<_ACEOF
30368#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
30369_ACEOF
30370
30371SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
30372DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
30373case "${build_os}" in
30374 mingw* )
30375 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
30376 ;;
30377esac
30378
30379cat >>confdefs.h <<_ACEOF
30380#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
30381_ACEOF
30382
30383
30384
30385#
30386# program_transform_name is formed for use in a Makefile, so create a
30387# modified version for use in a shell script.
30388configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30389
30390# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030392$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030394$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030396$as_echo "" >&6; }
30397AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030398BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030399BZIPDelegateDefault='bzip2'
30400BrowseDelegateDefault='xdg-open'
30401CGMDecodeDelegateDefault='ralcgm'
30402CatDelegateDefault='cat'
30403DNGDecodeDelegateDefault='ufraw-batch'
30404GVCDecodeDelegateDefault='dot'
30405DVIDecodeDelegateDefault='dvips'
30406EchoDelegateDefault='echo'
30407EditorDelegateDefault='xterm'
30408FIGDecodeDelegateDefault='fig2dev'
30409ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30410DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30411MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30412GnuplotDecodeDelegateDefault='gnuplot'
30413HDRDecodeDelegateDefault='ra_pfm'
30414HPGLDecodeDelegateDefault='hp2xx'
30415HTMLDecodeDelegateDefault='html2ps'
30416ILBMDecodeDelegateDefault='ilbmtoppm'
30417ILBMEncodeDelegateDefault='ppmtoilbm'
30418LPDelegateDefault='lp'
30419LPRDelegateDefault='lpr'
30420LZWDecodeDelegateDefault='uncompress'
30421LZWEncodeDelegateDefault='compress'
30422LaunchDelegateDefault='gimp'
30423MANDelegateDefault='groff'
30424MPEGDecodeDelegateDefault='ffmpeg'
30425MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030426MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030427MVDelegateDefault='mv'
30428PCLDelegateDefault='pcl6'
30429PGPDecodeDelegateDefault='pgpv'
30430POVDelegateDefault='povray'
30431if test "$native_win32_build" = 'yes'; then
30432 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030433elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030434 PSDelegateDefault='gsc'
30435else
30436 PSDelegateDefault='gs'
30437fi
30438RLEEncodeDelegateDefault='rawtorle'
30439RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030440RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030441SCANDecodeDelegateDefault='scanimage'
30442TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030443UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000030444WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000030445WMFDecodeDelegateDefault='wmf2eps'
30446WWWDecodeDelegateDefault='curl'
30447XPSDelegateDefault='gxps'
30448ZipDelegateDefault='gzip'
30449
30450# Search for delegates
30451# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30452set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030455if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030456 $as_echo_n "(cached) " >&6
30457else
30458 case $AutotraceDecodeDelegate in
30459 [\\/]* | ?:[\\/]*)
30460 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30461 ;;
30462 *)
30463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30464for as_dir in $PATH
30465do
30466 IFS=$as_save_IFS
30467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30470 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030472 break 2
30473 fi
30474done
cristy8b350f62009-11-15 23:12:43 +000030475 done
cristy3ed852e2009-09-05 21:47:34 +000030476IFS=$as_save_IFS
30477
30478 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30479 ;;
30480esac
30481fi
30482AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30483if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030485$as_echo "$AutotraceDecodeDelegate" >&6; }
30486else
cristy8b350f62009-11-15 23:12:43 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030488$as_echo "no" >&6; }
30489fi
30490
30491
cristy3ed852e2009-09-05 21:47:34 +000030492# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30493set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030496if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030497 $as_echo_n "(cached) " >&6
30498else
30499 case $BlenderDecodeDelegate in
30500 [\\/]* | ?:[\\/]*)
30501 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30502 ;;
30503 *)
30504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30505for as_dir in $PATH
30506do
30507 IFS=$as_save_IFS
30508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30511 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513 break 2
30514 fi
30515done
cristy8b350f62009-11-15 23:12:43 +000030516 done
cristy3ed852e2009-09-05 21:47:34 +000030517IFS=$as_save_IFS
30518
30519 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30520 ;;
30521esac
30522fi
30523BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30524if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030526$as_echo "$BlenderDecodeDelegate" >&6; }
30527else
cristy8b350f62009-11-15 23:12:43 +000030528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030529$as_echo "no" >&6; }
30530fi
30531
30532
30533# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30534set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030537if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030538 $as_echo_n "(cached) " >&6
30539else
30540 case $BZIPDelegate in
30541 [\\/]* | ?:[\\/]*)
30542 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30543 ;;
30544 *)
30545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30546for as_dir in $PATH
30547do
30548 IFS=$as_save_IFS
30549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30552 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554 break 2
30555 fi
30556done
cristy8b350f62009-11-15 23:12:43 +000030557 done
cristy3ed852e2009-09-05 21:47:34 +000030558IFS=$as_save_IFS
30559
30560 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30561 ;;
30562esac
30563fi
30564BZIPDelegate=$ac_cv_path_BZIPDelegate
30565if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030567$as_echo "$BZIPDelegate" >&6; }
30568else
cristy8b350f62009-11-15 23:12:43 +000030569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030570$as_echo "no" >&6; }
30571fi
30572
30573
30574# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30575set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030578if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030579 $as_echo_n "(cached) " >&6
30580else
30581 case $BrowseDelegate in
30582 [\\/]* | ?:[\\/]*)
30583 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30584 ;;
30585 *)
30586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30587for as_dir in $PATH
30588do
30589 IFS=$as_save_IFS
30590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30593 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595 break 2
30596 fi
30597done
cristy8b350f62009-11-15 23:12:43 +000030598 done
cristy3ed852e2009-09-05 21:47:34 +000030599IFS=$as_save_IFS
30600
30601 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30602 ;;
30603esac
30604fi
30605BrowseDelegate=$ac_cv_path_BrowseDelegate
30606if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030608$as_echo "$BrowseDelegate" >&6; }
30609else
cristy8b350f62009-11-15 23:12:43 +000030610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030611$as_echo "no" >&6; }
30612fi
30613
30614
30615# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30616set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030619if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030620 $as_echo_n "(cached) " >&6
30621else
30622 case $CGMDecodeDelegate in
30623 [\\/]* | ?:[\\/]*)
30624 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30625 ;;
30626 *)
30627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30628for as_dir in $PATH
30629do
30630 IFS=$as_save_IFS
30631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30634 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030636 break 2
30637 fi
30638done
cristy8b350f62009-11-15 23:12:43 +000030639 done
cristy3ed852e2009-09-05 21:47:34 +000030640IFS=$as_save_IFS
30641
30642 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30643 ;;
30644esac
30645fi
30646CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30647if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030649$as_echo "$CGMDecodeDelegate" >&6; }
30650else
cristy8b350f62009-11-15 23:12:43 +000030651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030652$as_echo "no" >&6; }
30653fi
30654
30655
30656# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30657set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030660if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030661 $as_echo_n "(cached) " >&6
30662else
30663 case $CatDelegate in
30664 [\\/]* | ?:[\\/]*)
30665 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30666 ;;
30667 *)
30668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30669for as_dir in $PATH
30670do
30671 IFS=$as_save_IFS
30672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30675 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677 break 2
30678 fi
30679done
cristy8b350f62009-11-15 23:12:43 +000030680 done
cristy3ed852e2009-09-05 21:47:34 +000030681IFS=$as_save_IFS
30682
30683 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30684 ;;
30685esac
30686fi
30687CatDelegate=$ac_cv_path_CatDelegate
30688if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030690$as_echo "$CatDelegate" >&6; }
30691else
cristy8b350f62009-11-15 23:12:43 +000030692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030693$as_echo "no" >&6; }
30694fi
30695
30696
30697# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30698set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030701if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030702 $as_echo_n "(cached) " >&6
30703else
30704 case $DNGDecodeDelegate in
30705 [\\/]* | ?:[\\/]*)
30706 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30707 ;;
30708 *)
30709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30710for as_dir in $PATH
30711do
30712 IFS=$as_save_IFS
30713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30716 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030718 break 2
30719 fi
30720done
cristy8b350f62009-11-15 23:12:43 +000030721 done
cristy3ed852e2009-09-05 21:47:34 +000030722IFS=$as_save_IFS
30723
30724 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30725 ;;
30726esac
30727fi
30728DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30729if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030731$as_echo "$DNGDecodeDelegate" >&6; }
30732else
cristy8b350f62009-11-15 23:12:43 +000030733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030734$as_echo "no" >&6; }
30735fi
30736
30737
30738# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30739set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030742if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030743 $as_echo_n "(cached) " >&6
30744else
30745 case $GVCDecodeDelegate in
30746 [\\/]* | ?:[\\/]*)
30747 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30748 ;;
30749 *)
30750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30751for as_dir in $PATH
30752do
30753 IFS=$as_save_IFS
30754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30757 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030759 break 2
30760 fi
30761done
cristy8b350f62009-11-15 23:12:43 +000030762 done
cristy3ed852e2009-09-05 21:47:34 +000030763IFS=$as_save_IFS
30764
30765 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30766 ;;
30767esac
30768fi
30769GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30770if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030772$as_echo "$GVCDecodeDelegate" >&6; }
30773else
cristy8b350f62009-11-15 23:12:43 +000030774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030775$as_echo "no" >&6; }
30776fi
30777
30778
30779# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30780set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030783if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030784 $as_echo_n "(cached) " >&6
30785else
30786 case $DVIDecodeDelegate in
30787 [\\/]* | ?:[\\/]*)
30788 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30789 ;;
30790 *)
30791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30792for as_dir in $PATH
30793do
30794 IFS=$as_save_IFS
30795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30798 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030800 break 2
30801 fi
30802done
cristy8b350f62009-11-15 23:12:43 +000030803 done
cristy3ed852e2009-09-05 21:47:34 +000030804IFS=$as_save_IFS
30805
30806 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30807 ;;
30808esac
30809fi
30810DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30811if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030813$as_echo "$DVIDecodeDelegate" >&6; }
30814else
cristy8b350f62009-11-15 23:12:43 +000030815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030816$as_echo "no" >&6; }
30817fi
30818
30819
30820# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30821set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030824if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030825 $as_echo_n "(cached) " >&6
30826else
30827 case $EchoDelegate in
30828 [\\/]* | ?:[\\/]*)
30829 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30830 ;;
30831 *)
30832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30833for as_dir in $PATH
30834do
30835 IFS=$as_save_IFS
30836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30839 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841 break 2
30842 fi
30843done
cristy8b350f62009-11-15 23:12:43 +000030844 done
cristy3ed852e2009-09-05 21:47:34 +000030845IFS=$as_save_IFS
30846
30847 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30848 ;;
30849esac
30850fi
30851EchoDelegate=$ac_cv_path_EchoDelegate
30852if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030854$as_echo "$EchoDelegate" >&6; }
30855else
cristy8b350f62009-11-15 23:12:43 +000030856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030857$as_echo "no" >&6; }
30858fi
30859
30860
30861# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30862set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030865if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030866 $as_echo_n "(cached) " >&6
30867else
30868 case $EditorDelegate in
30869 [\\/]* | ?:[\\/]*)
30870 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30871 ;;
30872 *)
30873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30874for as_dir in $PATH
30875do
30876 IFS=$as_save_IFS
30877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30880 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030882 break 2
30883 fi
30884done
cristy8b350f62009-11-15 23:12:43 +000030885 done
cristy3ed852e2009-09-05 21:47:34 +000030886IFS=$as_save_IFS
30887
30888 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30889 ;;
30890esac
30891fi
30892EditorDelegate=$ac_cv_path_EditorDelegate
30893if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030895$as_echo "$EditorDelegate" >&6; }
30896else
cristy8b350f62009-11-15 23:12:43 +000030897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030898$as_echo "no" >&6; }
30899fi
30900
30901
30902# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30903set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030906if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030907 $as_echo_n "(cached) " >&6
30908else
30909 case $FIGDecodeDelegate in
30910 [\\/]* | ?:[\\/]*)
30911 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30912 ;;
30913 *)
30914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30915for as_dir in $PATH
30916do
30917 IFS=$as_save_IFS
30918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30921 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030923 break 2
30924 fi
30925done
cristy8b350f62009-11-15 23:12:43 +000030926 done
cristy3ed852e2009-09-05 21:47:34 +000030927IFS=$as_save_IFS
30928
30929 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30930 ;;
30931esac
30932fi
30933FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30934if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030936$as_echo "$FIGDecodeDelegate" >&6; }
30937else
cristy8b350f62009-11-15 23:12:43 +000030938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030939$as_echo "no" >&6; }
30940fi
30941
30942
30943# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30944set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030947if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030948 $as_echo_n "(cached) " >&6
30949else
30950 case $ConvertDelegate in
30951 [\\/]* | ?:[\\/]*)
30952 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30953 ;;
30954 *)
30955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30956for as_dir in $PATH
30957do
30958 IFS=$as_save_IFS
30959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30962 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030964 break 2
30965 fi
30966done
cristy8b350f62009-11-15 23:12:43 +000030967 done
cristy3ed852e2009-09-05 21:47:34 +000030968IFS=$as_save_IFS
30969
30970 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30971 ;;
30972esac
30973fi
30974ConvertDelegate=$ac_cv_path_ConvertDelegate
30975if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030977$as_echo "$ConvertDelegate" >&6; }
30978else
cristy8b350f62009-11-15 23:12:43 +000030979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030980$as_echo "no" >&6; }
30981fi
30982
30983
30984# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30985set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030988if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030989 $as_echo_n "(cached) " >&6
30990else
30991 case $DisplayDelegate in
30992 [\\/]* | ?:[\\/]*)
30993 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30994 ;;
30995 *)
30996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30997for as_dir in $PATH
30998do
30999 IFS=$as_save_IFS
31000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31003 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031005 break 2
31006 fi
31007done
cristy8b350f62009-11-15 23:12:43 +000031008 done
cristy3ed852e2009-09-05 21:47:34 +000031009IFS=$as_save_IFS
31010
31011 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31012 ;;
31013esac
31014fi
31015DisplayDelegate=$ac_cv_path_DisplayDelegate
31016if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031018$as_echo "$DisplayDelegate" >&6; }
31019else
cristy8b350f62009-11-15 23:12:43 +000031020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031021$as_echo "no" >&6; }
31022fi
31023
31024
31025# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31026set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031029if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031030 $as_echo_n "(cached) " >&6
31031else
31032 case $MogrifyDelegate in
31033 [\\/]* | ?:[\\/]*)
31034 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31035 ;;
31036 *)
31037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31038for as_dir in $PATH
31039do
31040 IFS=$as_save_IFS
31041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31044 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031046 break 2
31047 fi
31048done
cristy8b350f62009-11-15 23:12:43 +000031049 done
cristy3ed852e2009-09-05 21:47:34 +000031050IFS=$as_save_IFS
31051
31052 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31053 ;;
31054esac
31055fi
31056MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31057if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031059$as_echo "$MogrifyDelegate" >&6; }
31060else
cristy8b350f62009-11-15 23:12:43 +000031061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031062$as_echo "no" >&6; }
31063fi
31064
31065
31066# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31067set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031070if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031071 $as_echo_n "(cached) " >&6
31072else
31073 case $GnuplotDecodeDelegate in
31074 [\\/]* | ?:[\\/]*)
31075 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31076 ;;
31077 *)
31078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31079for as_dir in $PATH
31080do
31081 IFS=$as_save_IFS
31082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31085 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031087 break 2
31088 fi
31089done
cristy8b350f62009-11-15 23:12:43 +000031090 done
cristy3ed852e2009-09-05 21:47:34 +000031091IFS=$as_save_IFS
31092
31093 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31094 ;;
31095esac
31096fi
31097GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31098if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031100$as_echo "$GnuplotDecodeDelegate" >&6; }
31101else
cristy8b350f62009-11-15 23:12:43 +000031102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031103$as_echo "no" >&6; }
31104fi
31105
31106
31107# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
31108set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031111if ${ac_cv_path_HDRDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031112 $as_echo_n "(cached) " >&6
31113else
31114 case $HDRDecodeDelegate in
31115 [\\/]* | ?:[\\/]*)
31116 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
31117 ;;
31118 *)
31119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31120for as_dir in $PATH
31121do
31122 IFS=$as_save_IFS
31123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31126 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031128 break 2
31129 fi
31130done
cristy8b350f62009-11-15 23:12:43 +000031131 done
cristy3ed852e2009-09-05 21:47:34 +000031132IFS=$as_save_IFS
31133
31134 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
31135 ;;
31136esac
31137fi
31138HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
31139if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031141$as_echo "$HDRDecodeDelegate" >&6; }
31142else
cristy8b350f62009-11-15 23:12:43 +000031143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031144$as_echo "no" >&6; }
31145fi
31146
31147
31148# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31149set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031151$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031152if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031153 $as_echo_n "(cached) " >&6
31154else
31155 case $HPGLDecodeDelegate in
31156 [\\/]* | ?:[\\/]*)
31157 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31158 ;;
31159 *)
31160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31161for as_dir in $PATH
31162do
31163 IFS=$as_save_IFS
31164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31167 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031169 break 2
31170 fi
31171done
cristy8b350f62009-11-15 23:12:43 +000031172 done
cristy3ed852e2009-09-05 21:47:34 +000031173IFS=$as_save_IFS
31174
31175 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31176 ;;
31177esac
31178fi
31179HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31180if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031182$as_echo "$HPGLDecodeDelegate" >&6; }
31183else
cristy8b350f62009-11-15 23:12:43 +000031184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031185$as_echo "no" >&6; }
31186fi
31187
31188
31189# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31190set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031192$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031193if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031194 $as_echo_n "(cached) " >&6
31195else
31196 case $HTMLDecodeDelegate in
31197 [\\/]* | ?:[\\/]*)
31198 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31199 ;;
31200 *)
31201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31202for as_dir in $PATH
31203do
31204 IFS=$as_save_IFS
31205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31208 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031210 break 2
31211 fi
31212done
cristy8b350f62009-11-15 23:12:43 +000031213 done
cristy3ed852e2009-09-05 21:47:34 +000031214IFS=$as_save_IFS
31215
31216 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31217 ;;
31218esac
31219fi
31220HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31221if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031223$as_echo "$HTMLDecodeDelegate" >&6; }
31224else
cristy8b350f62009-11-15 23:12:43 +000031225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031226$as_echo "no" >&6; }
31227fi
31228
31229
31230# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31231set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031234if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031235 $as_echo_n "(cached) " >&6
31236else
31237 case $ILBMDecodeDelegate in
31238 [\\/]* | ?:[\\/]*)
31239 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31240 ;;
31241 *)
31242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31243for as_dir in $PATH
31244do
31245 IFS=$as_save_IFS
31246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31249 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031251 break 2
31252 fi
31253done
cristy8b350f62009-11-15 23:12:43 +000031254 done
cristy3ed852e2009-09-05 21:47:34 +000031255IFS=$as_save_IFS
31256
31257 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31258 ;;
31259esac
31260fi
31261ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31262if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031264$as_echo "$ILBMDecodeDelegate" >&6; }
31265else
cristy8b350f62009-11-15 23:12:43 +000031266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031267$as_echo "no" >&6; }
31268fi
31269
31270
31271# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31272set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031274$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031275if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031276 $as_echo_n "(cached) " >&6
31277else
31278 case $ILBMEncodeDelegate in
31279 [\\/]* | ?:[\\/]*)
31280 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31281 ;;
31282 *)
31283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31284for as_dir in $PATH
31285do
31286 IFS=$as_save_IFS
31287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31290 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031292 break 2
31293 fi
31294done
cristy8b350f62009-11-15 23:12:43 +000031295 done
cristy3ed852e2009-09-05 21:47:34 +000031296IFS=$as_save_IFS
31297
31298 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31299 ;;
31300esac
31301fi
31302ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31303if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031305$as_echo "$ILBMEncodeDelegate" >&6; }
31306else
cristy8b350f62009-11-15 23:12:43 +000031307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031308$as_echo "no" >&6; }
31309fi
31310
31311
31312# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31313set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031316if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031317 $as_echo_n "(cached) " >&6
31318else
31319 case $LPDelegate in
31320 [\\/]* | ?:[\\/]*)
31321 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31322 ;;
31323 *)
31324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31325for as_dir in $PATH
31326do
31327 IFS=$as_save_IFS
31328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31331 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031333 break 2
31334 fi
31335done
cristy8b350f62009-11-15 23:12:43 +000031336 done
cristy3ed852e2009-09-05 21:47:34 +000031337IFS=$as_save_IFS
31338
31339 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31340 ;;
31341esac
31342fi
31343LPDelegate=$ac_cv_path_LPDelegate
31344if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031346$as_echo "$LPDelegate" >&6; }
31347else
cristy8b350f62009-11-15 23:12:43 +000031348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031349$as_echo "no" >&6; }
31350fi
31351
31352
31353# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31354set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031357if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031358 $as_echo_n "(cached) " >&6
31359else
31360 case $LPRDelegate in
31361 [\\/]* | ?:[\\/]*)
31362 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31363 ;;
31364 *)
31365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31366for as_dir in $PATH
31367do
31368 IFS=$as_save_IFS
31369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31372 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031374 break 2
31375 fi
31376done
cristy8b350f62009-11-15 23:12:43 +000031377 done
cristy3ed852e2009-09-05 21:47:34 +000031378IFS=$as_save_IFS
31379
31380 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31381 ;;
31382esac
31383fi
31384LPRDelegate=$ac_cv_path_LPRDelegate
31385if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031387$as_echo "$LPRDelegate" >&6; }
31388else
cristy8b350f62009-11-15 23:12:43 +000031389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031390$as_echo "no" >&6; }
31391fi
31392
31393
31394# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31395set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031397$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031398if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031399 $as_echo_n "(cached) " >&6
31400else
31401 case $LZWDecodeDelegate in
31402 [\\/]* | ?:[\\/]*)
31403 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31404 ;;
31405 *)
31406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31407for as_dir in $PATH
31408do
31409 IFS=$as_save_IFS
31410 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031411 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31413 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031415 break 2
31416 fi
31417done
cristy8b350f62009-11-15 23:12:43 +000031418 done
cristy3ed852e2009-09-05 21:47:34 +000031419IFS=$as_save_IFS
31420
31421 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31422 ;;
31423esac
31424fi
31425LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31426if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031428$as_echo "$LZWDecodeDelegate" >&6; }
31429else
cristy8b350f62009-11-15 23:12:43 +000031430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031431$as_echo "no" >&6; }
31432fi
31433
31434
31435# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31436set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031439if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031440 $as_echo_n "(cached) " >&6
31441else
31442 case $LZWEncodeDelegate in
31443 [\\/]* | ?:[\\/]*)
31444 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31445 ;;
31446 *)
31447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31448for as_dir in $PATH
31449do
31450 IFS=$as_save_IFS
31451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31454 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031456 break 2
31457 fi
31458done
cristy8b350f62009-11-15 23:12:43 +000031459 done
cristy3ed852e2009-09-05 21:47:34 +000031460IFS=$as_save_IFS
31461
31462 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31463 ;;
31464esac
31465fi
31466LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31467if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031469$as_echo "$LZWEncodeDelegate" >&6; }
31470else
cristy8b350f62009-11-15 23:12:43 +000031471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031472$as_echo "no" >&6; }
31473fi
31474
31475
31476# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31477set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031480if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031481 $as_echo_n "(cached) " >&6
31482else
31483 case $LaunchDelegate in
31484 [\\/]* | ?:[\\/]*)
31485 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31486 ;;
31487 *)
31488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31489for as_dir in $PATH
31490do
31491 IFS=$as_save_IFS
31492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31495 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031497 break 2
31498 fi
31499done
cristy8b350f62009-11-15 23:12:43 +000031500 done
cristy3ed852e2009-09-05 21:47:34 +000031501IFS=$as_save_IFS
31502
31503 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31504 ;;
31505esac
31506fi
31507LaunchDelegate=$ac_cv_path_LaunchDelegate
31508if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031510$as_echo "$LaunchDelegate" >&6; }
31511else
cristy8b350f62009-11-15 23:12:43 +000031512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031513$as_echo "no" >&6; }
31514fi
31515
31516
31517# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31518set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031521if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031522 $as_echo_n "(cached) " >&6
31523else
31524 case $MANDelegate in
31525 [\\/]* | ?:[\\/]*)
31526 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31527 ;;
31528 *)
31529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31530for as_dir in $PATH
31531do
31532 IFS=$as_save_IFS
31533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31536 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031538 break 2
31539 fi
31540done
cristy8b350f62009-11-15 23:12:43 +000031541 done
cristy3ed852e2009-09-05 21:47:34 +000031542IFS=$as_save_IFS
31543
31544 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31545 ;;
31546esac
31547fi
31548MANDelegate=$ac_cv_path_MANDelegate
31549if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031551$as_echo "$MANDelegate" >&6; }
31552else
cristy8b350f62009-11-15 23:12:43 +000031553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031554$as_echo "no" >&6; }
31555fi
31556
31557
31558# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31559set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031562if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031563 $as_echo_n "(cached) " >&6
31564else
31565 case $MPEGDecodeDelegate in
31566 [\\/]* | ?:[\\/]*)
31567 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31568 ;;
31569 *)
31570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31571for as_dir in $PATH
31572do
31573 IFS=$as_save_IFS
31574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31577 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031579 break 2
31580 fi
31581done
cristy8b350f62009-11-15 23:12:43 +000031582 done
cristy3ed852e2009-09-05 21:47:34 +000031583IFS=$as_save_IFS
31584
31585 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31586 ;;
31587esac
31588fi
31589MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31590if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031592$as_echo "$MPEGDecodeDelegate" >&6; }
31593else
cristy8b350f62009-11-15 23:12:43 +000031594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031595$as_echo "no" >&6; }
31596fi
31597
31598
31599# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31600set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031603if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031604 $as_echo_n "(cached) " >&6
31605else
31606 case $MPEGEncodeDelegate in
31607 [\\/]* | ?:[\\/]*)
31608 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31609 ;;
31610 *)
31611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31612for as_dir in $PATH
31613do
31614 IFS=$as_save_IFS
31615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31618 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031620 break 2
31621 fi
31622done
cristy8b350f62009-11-15 23:12:43 +000031623 done
cristy3ed852e2009-09-05 21:47:34 +000031624IFS=$as_save_IFS
31625
31626 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31627 ;;
31628esac
31629fi
31630MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31631if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031633$as_echo "$MPEGEncodeDelegate" >&6; }
31634else
cristy8b350f62009-11-15 23:12:43 +000031635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031636$as_echo "no" >&6; }
31637fi
31638
31639
cristy935c86e2010-06-05 23:50:07 +000031640# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31641set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031644if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031645 $as_echo_n "(cached) " >&6
31646else
31647 case $MrSIDDecodeDelegate in
31648 [\\/]* | ?:[\\/]*)
31649 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31650 ;;
31651 *)
31652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31653for as_dir in $PATH
31654do
31655 IFS=$as_save_IFS
31656 test -z "$as_dir" && as_dir=.
31657 for ac_exec_ext in '' $ac_executable_extensions; do
31658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31659 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31661 break 2
31662 fi
31663done
31664 done
31665IFS=$as_save_IFS
31666
31667 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31668 ;;
31669esac
31670fi
31671MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31672if test -n "$MrSIDDecodeDelegate"; then
31673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31674$as_echo "$MrSIDDecodeDelegate" >&6; }
31675else
31676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31677$as_echo "no" >&6; }
31678fi
31679
31680
cristy3ed852e2009-09-05 21:47:34 +000031681# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31682set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031685if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031686 $as_echo_n "(cached) " >&6
31687else
31688 case $MVDelegate in
31689 [\\/]* | ?:[\\/]*)
31690 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31691 ;;
31692 *)
31693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31694for as_dir in $PATH
31695do
31696 IFS=$as_save_IFS
31697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31700 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031702 break 2
31703 fi
31704done
cristy8b350f62009-11-15 23:12:43 +000031705 done
cristy3ed852e2009-09-05 21:47:34 +000031706IFS=$as_save_IFS
31707
31708 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31709 ;;
31710esac
31711fi
31712MVDelegate=$ac_cv_path_MVDelegate
31713if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031715$as_echo "$MVDelegate" >&6; }
31716else
cristy8b350f62009-11-15 23:12:43 +000031717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031718$as_echo "no" >&6; }
31719fi
31720
31721
31722# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31723set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031726if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031727 $as_echo_n "(cached) " >&6
31728else
31729 case $PCLDelegate in
31730 [\\/]* | ?:[\\/]*)
31731 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31732 ;;
31733 *)
31734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31735for as_dir in $PATH
31736do
31737 IFS=$as_save_IFS
31738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31741 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031743 break 2
31744 fi
31745done
cristy8b350f62009-11-15 23:12:43 +000031746 done
cristy3ed852e2009-09-05 21:47:34 +000031747IFS=$as_save_IFS
31748
31749 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31750 ;;
31751esac
31752fi
31753PCLDelegate=$ac_cv_path_PCLDelegate
31754if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031756$as_echo "$PCLDelegate" >&6; }
31757else
cristy8b350f62009-11-15 23:12:43 +000031758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031759$as_echo "no" >&6; }
31760fi
31761
31762
31763# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31764set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031767if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031768 $as_echo_n "(cached) " >&6
31769else
31770 case $PGPDecodeDelegate in
31771 [\\/]* | ?:[\\/]*)
31772 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31773 ;;
31774 *)
31775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31776for as_dir in $PATH
31777do
31778 IFS=$as_save_IFS
31779 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31782 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031784 break 2
31785 fi
31786done
cristy8b350f62009-11-15 23:12:43 +000031787 done
cristy3ed852e2009-09-05 21:47:34 +000031788IFS=$as_save_IFS
31789
31790 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31791 ;;
31792esac
31793fi
31794PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31795if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031797$as_echo "$PGPDecodeDelegate" >&6; }
31798else
cristy8b350f62009-11-15 23:12:43 +000031799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031800$as_echo "no" >&6; }
31801fi
31802
31803
31804# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31805set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031808if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031809 $as_echo_n "(cached) " >&6
31810else
31811 case $POVDelegate in
31812 [\\/]* | ?:[\\/]*)
31813 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31814 ;;
31815 *)
31816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31817for as_dir in $PATH
31818do
31819 IFS=$as_save_IFS
31820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31823 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031825 break 2
31826 fi
31827done
cristy8b350f62009-11-15 23:12:43 +000031828 done
cristy3ed852e2009-09-05 21:47:34 +000031829IFS=$as_save_IFS
31830
31831 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31832 ;;
31833esac
31834fi
31835POVDelegate=$ac_cv_path_POVDelegate
31836if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031838$as_echo "$POVDelegate" >&6; }
31839else
cristy8b350f62009-11-15 23:12:43 +000031840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031841$as_echo "no" >&6; }
31842fi
31843
31844
31845for ac_prog in gsx gsc "$PSDelegateDefault"
31846do
31847 # Extract the first word of "$ac_prog", so it can be a program name with args.
31848set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031851if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031852 $as_echo_n "(cached) " >&6
31853else
31854 case $PSDelegate in
31855 [\\/]* | ?:[\\/]*)
31856 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31857 ;;
31858 *)
31859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31860for as_dir in $PATH
31861do
31862 IFS=$as_save_IFS
31863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31866 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031868 break 2
31869 fi
31870done
cristy8b350f62009-11-15 23:12:43 +000031871 done
cristy3ed852e2009-09-05 21:47:34 +000031872IFS=$as_save_IFS
31873
31874 ;;
31875esac
31876fi
31877PSDelegate=$ac_cv_path_PSDelegate
31878if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031880$as_echo "$PSDelegate" >&6; }
31881else
cristy8b350f62009-11-15 23:12:43 +000031882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031883$as_echo "no" >&6; }
31884fi
31885
31886
31887 test -n "$PSDelegate" && break
31888done
31889test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31890
31891# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31892set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031894$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031895if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031896 $as_echo_n "(cached) " >&6
31897else
31898 case $RLEEncodeDelegate in
31899 [\\/]* | ?:[\\/]*)
31900 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31901 ;;
31902 *)
31903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31904for as_dir in $PATH
31905do
31906 IFS=$as_save_IFS
31907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31910 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912 break 2
31913 fi
31914done
cristy8b350f62009-11-15 23:12:43 +000031915 done
cristy3ed852e2009-09-05 21:47:34 +000031916IFS=$as_save_IFS
31917
31918 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31919 ;;
31920esac
31921fi
31922RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31923if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo "$RLEEncodeDelegate" >&6; }
31926else
cristy8b350f62009-11-15 23:12:43 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo "no" >&6; }
31929fi
31930
31931
31932# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31933set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031936if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031937 $as_echo_n "(cached) " >&6
31938else
31939 case $RMDelegate in
31940 [\\/]* | ?:[\\/]*)
31941 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31942 ;;
31943 *)
31944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31945for as_dir in $PATH
31946do
31947 IFS=$as_save_IFS
31948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31951 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953 break 2
31954 fi
31955done
cristy8b350f62009-11-15 23:12:43 +000031956 done
cristy3ed852e2009-09-05 21:47:34 +000031957IFS=$as_save_IFS
31958
31959 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31960 ;;
31961esac
31962fi
31963RMDelegate=$ac_cv_path_RMDelegate
31964if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo "$RMDelegate" >&6; }
31967else
cristy8b350f62009-11-15 23:12:43 +000031968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031969$as_echo "no" >&6; }
31970fi
31971
31972
cristy4689cf02010-02-17 21:15:45 +000031973# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31974set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031977if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000031978 $as_echo_n "(cached) " >&6
31979else
31980 case $RSVGDecodeDelegate in
31981 [\\/]* | ?:[\\/]*)
31982 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31983 ;;
31984 *)
31985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31986for as_dir in $PATH
31987do
31988 IFS=$as_save_IFS
31989 test -z "$as_dir" && as_dir=.
31990 for ac_exec_ext in '' $ac_executable_extensions; do
31991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31992 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31994 break 2
31995 fi
31996done
31997 done
31998IFS=$as_save_IFS
31999
32000 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32001 ;;
32002esac
32003fi
32004RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32005if test -n "$RSVGDecodeDelegate"; then
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32007$as_echo "$RSVGDecodeDelegate" >&6; }
32008else
32009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32010$as_echo "no" >&6; }
32011fi
32012
32013
cristy3ed852e2009-09-05 21:47:34 +000032014# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32015set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032018if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032019 $as_echo_n "(cached) " >&6
32020else
32021 case $SCANDecodeDelegate in
32022 [\\/]* | ?:[\\/]*)
32023 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32024 ;;
32025 *)
32026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32027for as_dir in $PATH
32028do
32029 IFS=$as_save_IFS
32030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32033 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032035 break 2
32036 fi
32037done
cristy8b350f62009-11-15 23:12:43 +000032038 done
cristy3ed852e2009-09-05 21:47:34 +000032039IFS=$as_save_IFS
32040
32041 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32042 ;;
32043esac
32044fi
32045SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32046if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032048$as_echo "$SCANDecodeDelegate" >&6; }
32049else
cristy8b350f62009-11-15 23:12:43 +000032050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo "no" >&6; }
32052fi
32053
32054
32055# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32056set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032058$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032059if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032060 $as_echo_n "(cached) " >&6
32061else
32062 case $TXTDelegate in
32063 [\\/]* | ?:[\\/]*)
32064 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32065 ;;
32066 *)
32067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32068for as_dir in $PATH
32069do
32070 IFS=$as_save_IFS
32071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32074 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032076 break 2
32077 fi
32078done
cristy8b350f62009-11-15 23:12:43 +000032079 done
cristy3ed852e2009-09-05 21:47:34 +000032080IFS=$as_save_IFS
32081
32082 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32083 ;;
32084esac
32085fi
32086TXTDelegate=$ac_cv_path_TXTDelegate
32087if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo "$TXTDelegate" >&6; }
32090else
cristy8b350f62009-11-15 23:12:43 +000032091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032092$as_echo "no" >&6; }
32093fi
32094
32095
cristy5ac9ac82010-07-29 13:24:24 +000032096# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32097set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32099$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032100if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032101 $as_echo_n "(cached) " >&6
32102else
32103 case $UniconvertorDelegate in
32104 [\\/]* | ?:[\\/]*)
32105 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32106 ;;
32107 *)
32108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32109for as_dir in $PATH
32110do
32111 IFS=$as_save_IFS
32112 test -z "$as_dir" && as_dir=.
32113 for ac_exec_ext in '' $ac_executable_extensions; do
32114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32115 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32117 break 2
32118 fi
32119done
32120 done
32121IFS=$as_save_IFS
32122
32123 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32124 ;;
32125esac
32126fi
32127UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32128if test -n "$UniconvertorDelegate"; then
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32130$as_echo "$UniconvertorDelegate" >&6; }
32131else
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32133$as_echo "no" >&6; }
32134fi
32135
32136
cristy23f7a922010-10-11 00:27:48 +000032137# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
32138set dummy "$WEBPDelegateDefault"; ac_word=$2
32139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032141if ${ac_cv_path_WEBPDelegate+:} false; then :
cristy23f7a922010-10-11 00:27:48 +000032142 $as_echo_n "(cached) " >&6
32143else
32144 case $WEBPDelegate in
32145 [\\/]* | ?:[\\/]*)
32146 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
32147 ;;
32148 *)
32149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32150for as_dir in $PATH
32151do
32152 IFS=$as_save_IFS
32153 test -z "$as_dir" && as_dir=.
32154 for ac_exec_ext in '' $ac_executable_extensions; do
32155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32156 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
32157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32158 break 2
32159 fi
32160done
32161 done
32162IFS=$as_save_IFS
32163
32164 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
32165 ;;
32166esac
32167fi
32168WEBPDelegate=$ac_cv_path_WEBPDelegate
32169if test -n "$WEBPDelegate"; then
32170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
32171$as_echo "$WEBPDelegate" >&6; }
32172else
32173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32174$as_echo "no" >&6; }
32175fi
32176
32177
cristy3ed852e2009-09-05 21:47:34 +000032178# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32179set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032182if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032183 $as_echo_n "(cached) " >&6
32184else
32185 case $WMFDecodeDelegate in
32186 [\\/]* | ?:[\\/]*)
32187 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32188 ;;
32189 *)
32190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32191for as_dir in $PATH
32192do
32193 IFS=$as_save_IFS
32194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32197 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032199 break 2
32200 fi
32201done
cristy8b350f62009-11-15 23:12:43 +000032202 done
cristy3ed852e2009-09-05 21:47:34 +000032203IFS=$as_save_IFS
32204
32205 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32206 ;;
32207esac
32208fi
32209WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32210if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo "$WMFDecodeDelegate" >&6; }
32213else
cristy8b350f62009-11-15 23:12:43 +000032214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032215$as_echo "no" >&6; }
32216fi
32217
32218
32219# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32220set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032223if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032224 $as_echo_n "(cached) " >&6
32225else
32226 case $WWWDecodeDelegate in
32227 [\\/]* | ?:[\\/]*)
32228 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32229 ;;
32230 *)
32231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32232for as_dir in $PATH
32233do
32234 IFS=$as_save_IFS
32235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32238 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032240 break 2
32241 fi
32242done
cristy8b350f62009-11-15 23:12:43 +000032243 done
cristy3ed852e2009-09-05 21:47:34 +000032244IFS=$as_save_IFS
32245
32246 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32247 ;;
32248esac
32249fi
32250WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32251if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032253$as_echo "$WWWDecodeDelegate" >&6; }
32254else
cristy8b350f62009-11-15 23:12:43 +000032255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032256$as_echo "no" >&6; }
32257fi
32258
32259
32260# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32261set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032263$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032264if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032265 $as_echo_n "(cached) " >&6
32266else
32267 case $XPSDelegate in
32268 [\\/]* | ?:[\\/]*)
32269 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32270 ;;
32271 *)
32272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32273for as_dir in $PATH
32274do
32275 IFS=$as_save_IFS
32276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32279 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032281 break 2
32282 fi
32283done
cristy8b350f62009-11-15 23:12:43 +000032284 done
cristy3ed852e2009-09-05 21:47:34 +000032285IFS=$as_save_IFS
32286
32287 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32288 ;;
32289esac
32290fi
32291XPSDelegate=$ac_cv_path_XPSDelegate
32292if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032294$as_echo "$XPSDelegate" >&6; }
32295else
cristy8b350f62009-11-15 23:12:43 +000032296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032297$as_echo "no" >&6; }
32298fi
32299
32300
32301# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32302set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032305if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032306 $as_echo_n "(cached) " >&6
32307else
32308 case $ZipDelegate in
32309 [\\/]* | ?:[\\/]*)
32310 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32311 ;;
32312 *)
32313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32314for as_dir in $PATH
32315do
32316 IFS=$as_save_IFS
32317 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32320 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032322 break 2
32323 fi
32324done
cristy8b350f62009-11-15 23:12:43 +000032325 done
cristy3ed852e2009-09-05 21:47:34 +000032326IFS=$as_save_IFS
32327
32328 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32329 ;;
32330esac
32331fi
32332ZipDelegate=$ac_cv_path_ZipDelegate
32333if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032335$as_echo "$ZipDelegate" >&6; }
32336else
cristy8b350f62009-11-15 23:12:43 +000032337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032338$as_echo "no" >&6; }
32339fi
32340
32341
32342
32343# Prefer lpr to lp; lp needs options tacked on.
32344if test "$LPRDelegate" != no; then
32345 PrintDelegate="$LPRDelegate"
32346else
32347 PrintDelegate="$LPDelegate -c -s"
32348fi
32349
32350
32351# Installed ImageMagick utiltity paths
32352ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32353DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32354MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32355
32356# Set delegate booleans
32357have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32358have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32359have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32360have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32361have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032362have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032363have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32364have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
32365have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
32366have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32367have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32368
32369#
32370# Test for font directories
32371#
32372type_include_files=''
32373
cristy430a7312010-01-21 20:44:04 +000032374# Dejavu fonts.
32375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32376$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32377dejavu_font_dir=''
32378if test "${with_dejavu_font_dir}" != 'default'; then
32379 dejavu_font_dir="${with_dejavu_font_dir}/"
32380else
32381 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32382 if test -f "${font_dir}DejaVuSerif.ttf"; then
32383 dejavu_font_dir="${font_dir}"
32384 break 1
32385 fi
32386 done
32387fi
32388if test "${dejavu_font_dir}x" != 'x'; then
32389 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32391$as_echo "$dejavu_font_dir" >&6; }
32392else
32393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32394$as_echo "not found!" >&6; };
32395fi
32396
32397
cristy3ed852e2009-09-05 21:47:34 +000032398# Windows
32399windows_font_dir=''
32400if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32401 windows_font_dir="${with_windows_font_dir}/"
32402fi
cristy430a7312010-01-21 20:44:04 +000032403if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032404 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32405 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32406 fi
32407 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32408 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32409 fi
32410 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32411 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32412 fi
32413fi
cristy430a7312010-01-21 20:44:04 +000032414if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032415 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32416fi
32417
32418
32419# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032421$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32422ghostscript_font_dir=''
32423if test "${with_gs_font_dir}" != 'default'; then
32424 ghostscript_font_dir="${with_gs_font_dir}/"
32425else
32426 if test "${native_win32_build}" = 'yes'; then
32427 # Native Windows Build
32428 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32429 if test -f "${font_dir}a010013l.pfb"; then
32430 ghostscript_font_dir="$font_dir"
32431 break 1
32432 fi
32433 done
32434 if test "${PSDelegate}" != 'gswin32c'; then
32435 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32436 fi
32437 else
32438 # Linux / Mac OS X / Unix Build
32439 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
32440 if test -f "${font_dir}a010013l.pfb"; then
32441 ghostscript_font_dir="${font_dir}"
32442 break 1
32443 fi
32444 done
32445 if test "${ghostscript_font_dir}x" = 'x'; then
32446 if test "$PSDelegate" != 'gs'; then
32447 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32448 fi
32449 fi
32450 fi
32451fi
32452if test "${ghostscript_font_dir}x" != 'x'; then
32453 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032455$as_echo "$ghostscript_font_dir" >&6; }
32456else
cristy8b350f62009-11-15 23:12:43 +000032457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032458$as_echo "not found!" >&6; };
32459fi
32460
32461case "${build_os}" in
32462 mingw* )
32463 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32464 ;;
32465esac
32466
32467
32468
32469#
32470# Handle case where user doesn't want frozen paths
32471#
32472if test "$with_frozenpaths" != 'yes'; then
32473 # Re-set delegate definitions to default (no paths)
32474 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032475 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32476 BZIPDelegate="$BZIPDelegateDefault"
32477 BrowseDelegate="$BrowseDelegateDefault"
32478 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32479 CatDelegate="$CatDelegateDefault"
32480 ConvertDelegate="$ConvertDelegateDefault"
32481 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32482 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32483 EchoDelegate="$EchoDelegateDefault"
32484 EditorDelegate="$EditorDelegateDefault"
32485 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32486 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32487 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32488 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32489 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32490 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32491 LPDelegate="$LPDelegateDefault"
32492 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32493 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32494 LaunchDelegate="$LaunchDelegateDefault"
32495 MANDelegate="$MANDelegateDefault"
32496 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32497 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032498 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032499 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32500 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032501 PCLDelegate="$PCLDelegateDefault"
32502 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32503 POVDelegate="$POVDelegateDefault"
32504 PSDelegate="$PSDelegateDefault"
32505 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
32506 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32507 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032508 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032509 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32510 ShowImageDelegate="$ShowImageDelegateDefault"
32511 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032512 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000032513 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032514 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32515 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32516 XPSDelegate="$XPSDelegateDefault"
32517 ZipDelegate="$ZipDelegateDefault"
32518fi
32519
32520# Delegate substitutions
32521
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
cristy935c86e2010-06-05 23:50:07 +000032563
cristy5ac9ac82010-07-29 13:24:24 +000032564
cristy3ed852e2009-09-05 21:47:34 +000032565#
32566# RPM support.
32567#
32568RPM=''
32569for ac_prog in gnutar gtar tar
32570do
32571 # Extract the first word of "$ac_prog", so it can be a program name with args.
32572set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032575if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032576 $as_echo_n "(cached) " >&6
32577else
32578 if test -n "$TAR"; then
32579 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32580else
32581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32582for as_dir in $PATH
32583do
32584 IFS=$as_save_IFS
32585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32588 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032590 break 2
32591 fi
32592done
cristy8b350f62009-11-15 23:12:43 +000032593 done
cristy3ed852e2009-09-05 21:47:34 +000032594IFS=$as_save_IFS
32595
32596fi
32597fi
32598TAR=$ac_cv_prog_TAR
32599if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032601$as_echo "$TAR" >&6; }
32602else
cristy8b350f62009-11-15 23:12:43 +000032603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032604$as_echo "no" >&6; }
32605fi
32606
32607
32608 test -n "$TAR" && break
32609done
32610
32611for ac_prog in perl
32612do
32613 # Extract the first word of "$ac_prog", so it can be a program name with args.
32614set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032617if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032618 $as_echo_n "(cached) " >&6
32619else
32620 if test -n "$PERL"; then
32621 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32622else
32623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32624for as_dir in $PATH
32625do
32626 IFS=$as_save_IFS
32627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32630 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032632 break 2
32633 fi
32634done
cristy8b350f62009-11-15 23:12:43 +000032635 done
cristy3ed852e2009-09-05 21:47:34 +000032636IFS=$as_save_IFS
32637
32638fi
32639fi
32640PERL=$ac_cv_prog_PERL
32641if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643$as_echo "$PERL" >&6; }
32644else
cristy8b350f62009-11-15 23:12:43 +000032645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032646$as_echo "no" >&6; }
32647fi
32648
32649
32650 test -n "$PERL" && break
32651done
32652
32653for ac_prog in rpmbuild rpm
32654do
32655 # Extract the first word of "$ac_prog", so it can be a program name with args.
32656set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032659if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032660 $as_echo_n "(cached) " >&6
32661else
32662 if test -n "$RPM"; then
32663 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32664else
32665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32666for as_dir in $PATH
32667do
32668 IFS=$as_save_IFS
32669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32672 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032674 break 2
32675 fi
32676done
cristy8b350f62009-11-15 23:12:43 +000032677 done
cristy3ed852e2009-09-05 21:47:34 +000032678IFS=$as_save_IFS
32679
32680fi
32681fi
32682RPM=$ac_cv_prog_RPM
32683if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032685$as_echo "$RPM" >&6; }
32686else
cristy8b350f62009-11-15 23:12:43 +000032687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032688$as_echo "no" >&6; }
32689fi
32690
32691
32692 test -n "$RPM" && break
32693done
32694
32695
cristy73bd4a52010-10-05 11:24:23 +000032696ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32697
32698
32699AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32700
32701
32702AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32703
32704
32705AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32706
32707
32708 if test "x$RPM" != "x" ; then
32709 RPM_DELEGATE_TRUE=
32710 RPM_DELEGATE_FALSE='#'
32711else
32712 RPM_DELEGATE_TRUE='#'
32713 RPM_DELEGATE_FALSE=
32714fi
32715
cristy3ed852e2009-09-05 21:47:34 +000032716
32717#
32718# 7ZIP support (http://p7zip.sourceforge.net/)
32719#
32720P7ZIP=''
32721for ac_prog in 7za
32722do
32723 # Extract the first word of "$ac_prog", so it can be a program name with args.
32724set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032727if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032728 $as_echo_n "(cached) " >&6
32729else
32730 if test -n "$P7ZIP"; then
32731 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32732else
32733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32734for as_dir in $PATH
32735do
32736 IFS=$as_save_IFS
32737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32740 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032742 break 2
32743 fi
32744done
cristy8b350f62009-11-15 23:12:43 +000032745 done
cristy3ed852e2009-09-05 21:47:34 +000032746IFS=$as_save_IFS
32747
32748fi
32749fi
32750P7ZIP=$ac_cv_prog_P7ZIP
32751if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032753$as_echo "$P7ZIP" >&6; }
32754else
cristy8b350f62009-11-15 23:12:43 +000032755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032756$as_echo "no" >&6; }
32757fi
32758
32759
32760 test -n "$P7ZIP" && break
32761done
32762
32763
cristy73bd4a52010-10-05 11:24:23 +000032764 if test "x$P7ZIP" != "x" ; then
32765 P7ZIP_DELEGATE_TRUE=
32766 P7ZIP_DELEGATE_FALSE='#'
32767else
32768 P7ZIP_DELEGATE_TRUE='#'
32769 P7ZIP_DELEGATE_FALSE=
32770fi
32771
cristy3ed852e2009-09-05 21:47:34 +000032772
32773#
32774# ZIP support (http://www.info-zip.org/Zip.html)
32775#
32776ZIP=''
32777for ac_prog in zip
32778do
32779 # Extract the first word of "$ac_prog", so it can be a program name with args.
32780set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032783if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032784 $as_echo_n "(cached) " >&6
32785else
32786 if test -n "$ZIP"; then
32787 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32788else
32789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32790for as_dir in $PATH
32791do
32792 IFS=$as_save_IFS
32793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32796 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032798 break 2
32799 fi
32800done
cristy8b350f62009-11-15 23:12:43 +000032801 done
cristy3ed852e2009-09-05 21:47:34 +000032802IFS=$as_save_IFS
32803
32804fi
32805fi
32806ZIP=$ac_cv_prog_ZIP
32807if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032809$as_echo "$ZIP" >&6; }
32810else
cristy8b350f62009-11-15 23:12:43 +000032811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812$as_echo "no" >&6; }
32813fi
32814
32815
32816 test -n "$ZIP" && break
32817done
32818
32819
cristy73bd4a52010-10-05 11:24:23 +000032820 if test "x$ZIP" != "x" ; then
32821 ZIP_DELEGATE_TRUE=
32822 ZIP_DELEGATE_FALSE='#'
32823else
32824 ZIP_DELEGATE_TRUE='#'
32825 ZIP_DELEGATE_FALSE=
32826fi
32827
cristy3ed852e2009-09-05 21:47:34 +000032828
32829#
32830# GhostPCL related configuration.
32831#
32832PCLColorDevice=ppmraw
32833PCLCMYKDevice=bmpsep8
32834PCLMonoDevice=pbmraw
32835if test -z "$PCLVersion"; then
32836 PCLVersion='unknown'
32837fi
32838if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032840$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032842$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032844$as_echo "" >&6; }
32845 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032847$as_echo_n "checking for pcl color device... " >&6; }
32848 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32849 :
32850 else
32851 PCLColorDevice=ppmraw
32852 fi
cristy8b350f62009-11-15 23:12:43 +000032853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854$as_echo "$PCLColorDevice" >&6; }
32855
32856 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032858$as_echo_n "checking for pcl CMYK device... " >&6; }
32859 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32860 :
32861 else
32862 PCLCMYKDevice=$PCLColorDevice
32863 fi
cristy8b350f62009-11-15 23:12:43 +000032864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032865$as_echo "$PCLCMYKDevice" >&6; }
32866
32867 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo_n "checking for pcl mono device... " >&6; }
32870 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32871 :
32872 else
32873 PCLMonoDevice=$PCLColorDevice
32874 fi
cristy8b350f62009-11-15 23:12:43 +000032875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo "$PCLMonoDevice" >&6; }
32877fi
32878
32879
32880
32881
32882
32883
32884#
32885# GhostXPS related configuration.
32886#
32887XPSColorDevice=ppmraw
32888XPSCMYKDevice=bmpsep8
32889XPSMonoDevice=pbmraw
32890if test -z "$XPSVersion"; then
32891 XPSVersion='unknown'
32892fi
32893if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032895$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032899$as_echo "" >&6; }
32900 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032902$as_echo_n "checking for xps color device... " >&6; }
32903 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32904 :
32905 else
32906 XPSColorDevice=ppmraw
32907 fi
cristy8b350f62009-11-15 23:12:43 +000032908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909$as_echo "$XPSColorDevice" >&6; }
32910
32911 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032913$as_echo_n "checking for xps CMYK device... " >&6; }
32914 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32915 :
32916 else
32917 XPSCMYKDevice=$XPSColorDevice
32918 fi
cristy8b350f62009-11-15 23:12:43 +000032919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032920$as_echo "$XPSCMYKDevice" >&6; }
32921
32922 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032924$as_echo_n "checking for xps mono device... " >&6; }
32925 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32926 :
32927 else
32928 XPSMonoDevice=$XPSColorDevice
32929 fi
cristy8b350f62009-11-15 23:12:43 +000032930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo "$XPSMonoDevice" >&6; }
32932fi
32933
32934
32935
32936
32937
32938
32939#
32940# Ghostscript related configuration.
32941#
cristya97426c2011-02-04 01:41:27 +000032942GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032943GSColorDevice=pnmraw
32944GSCMYKDevice=pam
32945GSMonoDevice=pbmraw
32946GSPDFDevice=pdfwrite
32947GSPSDevice=pswrite
32948GSEPSDevice=epswrite
32949GSVersion='unknown'
32950if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032954$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032956$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo_n "checking for Ghostscript version... " >&6; }
32959 if GSVersion=`$PSDelegate --version`; then
32960 :
32961 else
32962 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32963 fi
cristy8b350f62009-11-15 23:12:43 +000032964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032965$as_echo "$GSVersion" >&6; }
32966
32967 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032969$as_echo_n "checking for gs alpha device... " >&6; }
32970 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32971 :
32972 else
32973 GSAlphaDevice=pnmraw
32974 fi
cristy8b350f62009-11-15 23:12:43 +000032975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976$as_echo "$GSAlphaDevice" >&6; }
32977
32978 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo_n "checking for gs color device... " >&6; }
32981 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32982 :
32983 else
32984 GSColorDevice=pnmraw
32985 fi
cristy8b350f62009-11-15 23:12:43 +000032986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032987$as_echo "$GSColorDevice" >&6; }
32988
32989 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032991$as_echo_n "checking for gs CMYK device... " >&6; }
32992 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32993 :
32994 else
32995 GSCMYKDevice=bmpsep8
32996 fi
cristy8b350f62009-11-15 23:12:43 +000032997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo "$GSCMYKDevice" >&6; }
32999
33000 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033002$as_echo_n "checking for gs mono device... " >&6; }
33003 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33004 :
33005 else
33006 GSMonoDevice=$GSColorDevice
33007 fi
cristy8b350f62009-11-15 23:12:43 +000033008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo "$GSMonoDevice" >&6; }
33010
33011 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033013$as_echo_n "checking for gs PDF writing device... " >&6; }
33014 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33015 :
33016 else
33017 GSPDFDevice=nodevice
33018 fi
cristy8b350f62009-11-15 23:12:43 +000033019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033020$as_echo "$GSPDFDevice" >&6; }
33021
33022 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024$as_echo_n "checking for gs PS writing device... " >&6; }
33025 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33026 :
33027 else
33028 GSPSDevice=nodevice
33029 fi
cristy8b350f62009-11-15 23:12:43 +000033030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033031$as_echo "$GSPSDevice" >&6; }
33032
33033 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033035$as_echo_n "checking for gs EPS writing device... " >&6; }
33036 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33037 :
33038 else
33039 GSEPSDevice=nodevice
33040 fi
cristy8b350f62009-11-15 23:12:43 +000033041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033042$as_echo "$GSEPSDevice" >&6; }
33043fi
33044
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054#
33055# PerlMagick-related configuration
33056#
33057
33058# Look for PERL if PerlMagick requested
33059# If name/path of desired PERL interpreter is specified, look for that one first
33060have_perl='no'
33061if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033063$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033065$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033067$as_echo "" >&6; }
33068 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033070$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033071if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033072 $as_echo_n "(cached) " >&6
33073else
33074 ac_cv_path_PERL="$with_perl"
33075fi
cristy8b350f62009-11-15 23:12:43 +000033076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo "$ac_cv_path_PERL" >&6; };
33078 PERL=$ac_cv_path_PERL
33079 have_perl="$ac_cv_path_PERL"
33080 else
33081 for ac_prog in perl perl5
33082do
33083 # Extract the first word of "$ac_prog", so it can be a program name with args.
33084set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033087if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033088 $as_echo_n "(cached) " >&6
33089else
33090 case $PERL in
33091 [\\/]* | ?:[\\/]*)
33092 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33093 ;;
33094 *)
33095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33096for as_dir in $PATH
33097do
33098 IFS=$as_save_IFS
33099 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33102 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033104 break 2
33105 fi
33106done
cristy8b350f62009-11-15 23:12:43 +000033107 done
cristy3ed852e2009-09-05 21:47:34 +000033108IFS=$as_save_IFS
33109
33110 ;;
33111esac
33112fi
33113PERL=$ac_cv_path_PERL
33114if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo "$PERL" >&6; }
33117else
cristy8b350f62009-11-15 23:12:43 +000033118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo "no" >&6; }
33120fi
33121
33122
33123 test -n "$PERL" && break
33124done
33125 if test "$ac_cv_path_PERL"; then
33126 have_perl="$ac_cv_path_PERL"
33127 fi
33128 fi
33129fi
33130
cristy949301e2010-01-06 01:38:40 +000033131if test "$with_perl" != 'yes' ; then
33132 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33133fi
33134
33135PERL_SUPPORTS_DESTDIR='no'
33136
cristy3ed852e2009-09-05 21:47:34 +000033137with_perl_static='no'
33138with_perl_dynamic='no'
33139if test "$have_perl" != 'no'; then
33140 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33141 with_perl_static='yes'
33142 fi
33143 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33144 with_perl_dynamic='yes'
33145 fi
33146 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033147
33148
33149
33150
33151 if test -n "$PERL"; then :
33152
33153 ax_perl_version="5.8.1"
33154
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33156$as_echo_n "checking for perl version... " >&6; }
33157
33158 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33159
33160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33161$as_echo "$perl_version" >&6; }
33162
33163 PERL_VERSION=$perl_version
33164
33165
33166
33167
33168
33169 # Used to indicate true or false condition
33170 ax_compare_version=false
33171
33172 # Convert the two version strings to be compared into a format that
33173 # allows a simple string comparison. The end result is that a version
33174 # string of the form 1.12.5-r617 will be converted to the form
33175 # 0001001200050617. In other words, each number is zero padded to four
33176 # digits, and non digits are removed.
33177
33178 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33179 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33180 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33181 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33182 -e 's/[^0-9]//g'`
33183
33184
33185 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33186 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33187 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33188 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33189 -e 's/[^0-9]//g'`
33190
33191
33192 ax_compare_version=`echo "x$ax_compare_version_A
33193x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33194
33195
33196
33197 if test "$ax_compare_version" = "true" ; then
33198
33199 :
33200 PERL_SUPPORTS_DESTDIR='yes'
33201
33202 else
33203 :
33204 PERL_SUPPORTS_DESTDIR='no'
33205
33206 fi
33207
33208
33209else
33210
33211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33212$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33213 PERL_SUPPORTS_DESTDIR='no'
33214
cristy3ed852e2009-09-05 21:47:34 +000033215fi
cristy73bd4a52010-10-05 11:24:23 +000033216
33217fi
33218 if test "$have_perl" != 'no'; then
33219 WITH_PERL_TRUE=
33220 WITH_PERL_FALSE='#'
33221else
33222 WITH_PERL_TRUE='#'
33223 WITH_PERL_FALSE=
33224fi
33225
33226 if test $with_perl_static = 'yes'; then
33227 WITH_PERL_STATIC_TRUE=
33228 WITH_PERL_STATIC_FALSE='#'
33229else
33230 WITH_PERL_STATIC_TRUE='#'
33231 WITH_PERL_STATIC_FALSE=
33232fi
33233
33234 if test $with_perl_dynamic = 'yes'; then
33235 WITH_PERL_DYNAMIC_TRUE=
33236 WITH_PERL_DYNAMIC_FALSE='#'
33237else
33238 WITH_PERL_DYNAMIC_TRUE='#'
33239 WITH_PERL_DYNAMIC_FALSE=
33240fi
33241
cristy3ed852e2009-09-05 21:47:34 +000033242
33243
33244# Determine path to pick up MagickCore library from for use with building PerlMagick
33245MAGICKCORE_PATH="${LIB_DIR}"
33246if test $with_perl_static = 'yes'; then
33247 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33248 libtool_objdir=$objdir
33249
33250 # Linker search path to library, followed by -lMagickCore
33251 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33252fi
33253
33254
33255# Create a simple string containing format names for all delegate libraries
33256DELEGATES=''
33257if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33258if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33259if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33260if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33261if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33262if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33263if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33264if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33265if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33266if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33267if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33268if test "$have_jpeg" = 'yes'; then
33269 DELEGATES="$DELEGATES jpeg";
33270 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33271fi
33272if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033273if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033274if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33275if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033276if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033277if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33278if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33279if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33280if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33281if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33282if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33283if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33284if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33285if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33286
33287
33288
33289#
33290# Handle special compiler flags
33291#
33292
33293# Add '-p' if prof source profiling support enabled
33294if test "$enable_prof" = 'yes'; then
33295 CFLAGS="-p $CFLAGS"
33296 CXXFLAGS="-p $CXXFLAGS"
33297 LDFLAGS="-p $LDFLAGS"
33298fi
33299
33300# Add '-pg' if gprof source profiling support enabled
33301if test "$enable_gprof" = 'yes'; then
33302 CFLAGS="-pg $CFLAGS"
33303 CXXFLAGS="-pg $CXXFLAGS"
33304 LDFLAGS="-pg $LDFLAGS"
33305fi
33306
33307# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33308# This is a gcc-specific feature
33309if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033311$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033312if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033313 $as_echo_n "(cached) " >&6
33314else
33315 ac_check_lib_save_LIBS=$LIBS
33316LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033318/* end confdefs.h. */
33319
33320/* Override any GCC internal prototype to avoid an error.
33321 Use char because int might match the return type of a GCC
33322 builtin and then its argument prototype would still apply. */
33323#ifdef __cplusplus
33324extern "C"
33325#endif
33326char _gcov_init ();
33327int
33328main ()
33329{
33330return _gcov_init ();
33331 ;
33332 return 0;
33333}
33334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033336 ac_cv_lib_gcov__gcov_init=yes
33337else
cristy8b350f62009-11-15 23:12:43 +000033338 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033339fi
cristy8b350f62009-11-15 23:12:43 +000033340rm -f core conftest.err conftest.$ac_objext \
33341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033342LIBS=$ac_check_lib_save_LIBS
33343fi
cristy8b350f62009-11-15 23:12:43 +000033344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033345$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033346if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033347 cat >>confdefs.h <<_ACEOF
33348#define HAVE_LIBGCOV 1
33349_ACEOF
33350
33351 LIBS="-lgcov $LIBS"
33352
33353fi
33354
cristy8b350f62009-11-15 23:12:43 +000033355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033356$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033357if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033358 $as_echo_n "(cached) " >&6
33359else
33360 ac_check_lib_save_LIBS=$LIBS
33361LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033363/* end confdefs.h. */
33364
33365/* Override any GCC internal prototype to avoid an error.
33366 Use char because int might match the return type of a GCC
33367 builtin and then its argument prototype would still apply. */
33368#ifdef __cplusplus
33369extern "C"
33370#endif
33371char __gcov_init ();
33372int
33373main ()
33374{
33375return __gcov_init ();
33376 ;
33377 return 0;
33378}
33379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033381 ac_cv_lib_gcov___gcov_init=yes
33382else
cristy8b350f62009-11-15 23:12:43 +000033383 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033384fi
cristy8b350f62009-11-15 23:12:43 +000033385rm -f core conftest.err conftest.$ac_objext \
33386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033387LIBS=$ac_check_lib_save_LIBS
33388fi
cristy8b350f62009-11-15 23:12:43 +000033389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033391if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033392 cat >>confdefs.h <<_ACEOF
33393#define HAVE_LIBGCOV 1
33394_ACEOF
33395
33396 LIBS="-lgcov $LIBS"
33397
33398fi
33399
33400 case "$target_os" in
33401 darwin*)
33402 OSX_GCOV_LDFLAG="-Wl,-single_module"
33403 ;;
33404 *)
33405 OSX_GCOV_LDFLAG=""
33406 ;;
33407 esac
33408
33409 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33410 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33411 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33412fi
33413
33414#
33415# Build library dependency list for libMagickCore
33416#
33417
33418MAGICK_LIBLTDL='' # Libltdl for build
33419MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33420MAGICK_LTDLDEPS='' # extra libltdl dependencies
33421if test "$with_ltdl" != 'no'
33422then
33423 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33424 MAGICK_API_LIBLTDL='-lltdl'
33425 fi
33426 MAGICK_LIBLTDL=${LIBLTDL}
33427 MAGICK_LTDLDEPS=${LTDLDEPS}
33428fi
33429
33430
33431
33432if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033433 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 +000033434else
cristyfbb0ef02010-12-19 02:32:11 +000033435 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 $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 +000033436fi
33437
33438
33439#
33440# Remove extraneous spaces from output variables (asthetic)
33441#
33442X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33443X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33444X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33445X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33446
33447CC=`echo $CC | sed -e 's/ */ /g'`
33448CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33449CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33450CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33451DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33452DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33453LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33454TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33455MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33456#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33457
33458# Pass only user-provided LIBS as "global" libraries
33459LIBS=$USER_LIBS
33460
33461#AC_SUBST(CPPFLAGS)
33462
33463#AC_SUBST(LDFLAGS)
33464#AC_SUBST(X_PRE_LIBS)
33465#AC_SUBST(X_LIBS)
33466#AC_SUBST(X_EXTRA_LIBS)
33467
33468MAGICK_CFLAGS=$CFLAGS
33469MAGICK_CXXFLAGS="$CXXFLAGS"
33470MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33471MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33472MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33473MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33474
33475
33476
33477
33478
33479
33480
33481
cristyfd9dcd42010-08-08 18:07:02 +000033482
cristy3ed852e2009-09-05 21:47:34 +000033483# Set configured scripts to executable.
33484ac_config_commands="$ac_config_commands default"
33485
33486ac_config_commands="$ac_config_commands MagickCore-config.in"
33487
33488ac_config_commands="$ac_config_commands Magick-config.in"
33489
33490ac_config_commands="$ac_config_commands MagickWand-config.in"
33491
33492ac_config_commands="$ac_config_commands Wand-config.in"
33493
33494ac_config_commands="$ac_config_commands Magick++-config.in"
33495
33496ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33497
33498
cristy8b350f62009-11-15 23:12:43 +000033499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502$as_echo "Update ImageMagick configuration" >&6; }
33503cat >confcache <<\_ACEOF
33504# This file is a shell script that caches the results of configure
33505# tests run on this system so they can be shared between configure
33506# scripts and configure runs, see configure's option --config-cache.
33507# It is not useful on other systems. If it contains results you don't
33508# want to keep, you may remove or edit it.
33509#
33510# config.status only pays attention to the cache file if you give it
33511# the --recheck option to rerun configure.
33512#
33513# `ac_cv_env_foo' variables (set or unset) will be overridden when
33514# loading this file, other *unset* `ac_cv_foo' will be assigned the
33515# following values.
33516
33517_ACEOF
33518
33519# The following way of writing the cache mishandles newlines in values,
33520# but we know of no workaround that is simple, portable, and efficient.
33521# So, we kill variables containing newlines.
33522# Ultrix sh set writes to stderr and can't be redirected directly,
33523# and sets the high bit in the cache file unless we assign to the vars.
33524(
33525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33526 eval ac_val=\$$ac_var
33527 case $ac_val in #(
33528 *${as_nl}*)
33529 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33532 esac
33533 case $ac_var in #(
33534 _ | IFS | as_nl) ;; #(
33535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033536 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033537 esac ;;
33538 esac
33539 done
33540
33541 (set) 2>&1 |
33542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33543 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033544 # `set' does not quote correctly, so add quotes: double-quote
33545 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033546 sed -n \
33547 "s/'/'\\\\''/g;
33548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33549 ;; #(
33550 *)
33551 # `set' quotes correctly as required by POSIX, so do not add quotes.
33552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33553 ;;
33554 esac |
33555 sort
33556) |
33557 sed '
33558 /^ac_cv_env_/b end
33559 t clear
33560 :clear
33561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33562 t end
33563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33564 :end' >>confcache
33565if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33566 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033567 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033569$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033570 if test ! -f "$cache_file" || test -h "$cache_file"; then
33571 cat confcache >"$cache_file"
33572 else
33573 case $cache_file in #(
33574 */* | ?:*)
33575 mv -f confcache "$cache_file"$$ &&
33576 mv -f "$cache_file"$$ "$cache_file" ;; #(
33577 *)
33578 mv -f confcache "$cache_file" ;;
33579 esac
33580 fi
33581 fi
cristy3ed852e2009-09-05 21:47:34 +000033582 else
cristy8b350f62009-11-15 23:12:43 +000033583 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33585 fi
33586fi
33587rm -f confcache
33588
33589test "x$prefix" = xNONE && prefix=$ac_default_prefix
33590# Let make expand exec_prefix.
33591test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33592
33593DEFS=-DHAVE_CONFIG_H
33594
33595ac_libobjs=
33596ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033597U=
cristy3ed852e2009-09-05 21:47:34 +000033598for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33599 # 1. Remove the extension, and $U if already installed.
33600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33603 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033606done
33607LIBOBJS=$ac_libobjs
33608
33609LTLIBOBJS=$ac_ltlibobjs
33610
33611
cristy73bd4a52010-10-05 11:24:23 +000033612 if test -n "$EXEEXT"; then
33613 am__EXEEXT_TRUE=
33614 am__EXEEXT_FALSE='#'
33615else
33616 am__EXEEXT_TRUE='#'
33617 am__EXEEXT_FALSE=
33618fi
cristy3ed852e2009-09-05 21:47:34 +000033619
cristy73bd4a52010-10-05 11:24:23 +000033620if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033621 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033622Usually this means the macro was only invoked conditionally." "$LINENO" 5
33623fi
33624if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033625 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033626Usually this means the macro was only invoked conditionally." "$LINENO" 5
33627fi
33628if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033629 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033630Usually this means the macro was only invoked conditionally." "$LINENO" 5
33631fi
33632if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033633 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033634Usually this means the macro was only invoked conditionally." "$LINENO" 5
33635fi
33636if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033637 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033638Usually this means the macro was only invoked conditionally." "$LINENO" 5
33639fi
33640if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033641 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033642Usually this means the macro was only invoked conditionally." "$LINENO" 5
33643fi
33644if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033645 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033646Usually this means the macro was only invoked conditionally." "$LINENO" 5
33647fi
33648if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033649 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033650Usually this means the macro was only invoked conditionally." "$LINENO" 5
33651fi
cristy73bd4a52010-10-05 11:24:23 +000033652if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033653 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033654Usually this means the macro was only invoked conditionally." "$LINENO" 5
33655fi
33656if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033657 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033658Usually this means the macro was only invoked conditionally." "$LINENO" 5
33659fi
33660LT_CONFIG_H=config/config.h
33661
33662 _ltdl_libobjs=
33663 _ltdl_ltlibobjs=
33664 if test -n "$_LT_LIBOBJS"; then
33665 # Remove the extension.
33666 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33667 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33668 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33669 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33670 done
33671 fi
33672 ltdl_LIBOBJS=$_ltdl_libobjs
33673
33674 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33675
33676
33677if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033678 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033679Usually this means the macro was only invoked conditionally." "$LINENO" 5
33680fi
33681if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033682 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033683Usually this means the macro was only invoked conditionally." "$LINENO" 5
33684fi
33685if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033686 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033687Usually this means the macro was only invoked conditionally." "$LINENO" 5
33688fi
33689if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033690 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033691Usually this means the macro was only invoked conditionally." "$LINENO" 5
33692fi
33693
33694if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033695 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033696Usually this means the macro was only invoked conditionally." "$LINENO" 5
33697fi
33698if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033699 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033700Usually this means the macro was only invoked conditionally." "$LINENO" 5
33701fi
33702if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033703 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033704Usually this means the macro was only invoked conditionally." "$LINENO" 5
33705fi
33706if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033707 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033708Usually this means the macro was only invoked conditionally." "$LINENO" 5
33709fi
33710if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033711 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033712Usually this means the macro was only invoked conditionally." "$LINENO" 5
33713fi
33714if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033715 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033716Usually this means the macro was only invoked conditionally." "$LINENO" 5
33717fi
33718if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033719 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033720Usually this means the macro was only invoked conditionally." "$LINENO" 5
33721fi
33722if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033723 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033724Usually this means the macro was only invoked conditionally." "$LINENO" 5
33725fi
33726if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033727 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033728Usually this means the macro was only invoked conditionally." "$LINENO" 5
33729fi
33730if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033731 as_fn_error $? "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033735 as_fn_error $? "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033739 as_fn_error $? "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033743 as_fn_error $? "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033747 as_fn_error $? "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033751 as_fn_error $? "conditional \"GVC_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 "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033755 as_fn_error $? "conditional \"JBIG_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 "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033759 as_fn_error $? "conditional \"JPEG_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 "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033763 as_fn_error $? "conditional \"JP2_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 "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033767 as_fn_error $? "conditional \"LCMS_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 "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033771 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033772Usually this means the macro was only invoked conditionally." "$LINENO" 5
33773fi
cristyfbb0ef02010-12-19 02:32:11 +000033774if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33775 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33776Usually this means the macro was only invoked conditionally." "$LINENO" 5
33777fi
cristy73bd4a52010-10-05 11:24:23 +000033778if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033779 as_fn_error $? "conditional \"OPENEXR_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 "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033783 as_fn_error $? "conditional \"PNG_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 "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033787 as_fn_error $? "conditional \"RSVG_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 "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033791 as_fn_error $? "conditional \"CAIRO_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 "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033795 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033796Usually this means the macro was only invoked conditionally." "$LINENO" 5
33797fi
33798if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033799 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033800Usually this means the macro was only invoked conditionally." "$LINENO" 5
33801fi
33802if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033803 as_fn_error $? "conditional \"XML_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 "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033807 as_fn_error $? "conditional \"RPM_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 "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033811 as_fn_error $? "conditional \"P7ZIP_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 "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033815 as_fn_error $? "conditional \"ZIP_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 "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033819 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033820Usually this means the macro was only invoked conditionally." "$LINENO" 5
33821fi
33822if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033823 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033824Usually this means the macro was only invoked conditionally." "$LINENO" 5
33825fi
33826if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033827 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033828Usually this means the macro was only invoked conditionally." "$LINENO" 5
33829fi
cristy3ed852e2009-09-05 21:47:34 +000033830
cristyda16f162011-02-19 23:52:17 +000033831: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033832ac_write_fail=0
33833ac_clean_files_save=$ac_clean_files
33834ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033835{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033837as_write_fail=0
33838cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033839#! $SHELL
33840# Generated by $as_me.
33841# Run this file to recreate the current configuration.
33842# Compiler output produced by configure, useful for debugging
33843# configure, is in config.log if it exists.
33844
33845debug=false
33846ac_cs_recheck=false
33847ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033848
cristy8b350f62009-11-15 23:12:43 +000033849SHELL=\${CONFIG_SHELL-$SHELL}
33850export SHELL
33851_ASEOF
33852cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33853## -------------------- ##
33854## M4sh Initialization. ##
33855## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033856
33857# Be more Bourne compatible
33858DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033859if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033860 emulate sh
33861 NULLCMD=:
33862 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33863 # is contrary to our usage. Disable this feature.
33864 alias -g '${1+"$@"}'='"$@"'
33865 setopt NO_GLOB_SUBST
33866else
cristy8b350f62009-11-15 23:12:43 +000033867 case `(set -o) 2>/dev/null` in #(
33868 *posix*) :
33869 set -o posix ;; #(
33870 *) :
33871 ;;
cristy3ed852e2009-09-05 21:47:34 +000033872esac
cristy3ed852e2009-09-05 21:47:34 +000033873fi
33874
33875
cristy3ed852e2009-09-05 21:47:34 +000033876as_nl='
33877'
33878export as_nl
33879# Printing a long string crashes Solaris 7 /usr/bin/printf.
33880as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33881as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033883# Prefer a ksh shell builtin over an external printf program on Solaris,
33884# but without wasting forks for bash or zsh.
33885if test -z "$BASH_VERSION$ZSH_VERSION" \
33886 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33887 as_echo='print -r --'
33888 as_echo_n='print -rn --'
33889elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033890 as_echo='printf %s\n'
33891 as_echo_n='printf %s'
33892else
33893 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33894 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33895 as_echo_n='/usr/ucb/echo -n'
33896 else
33897 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33898 as_echo_n_body='eval
33899 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033900 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033901 *"$as_nl"*)
33902 expr "X$arg" : "X\\(.*\\)$as_nl";
33903 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33904 esac;
33905 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33906 '
33907 export as_echo_n_body
33908 as_echo_n='sh -c $as_echo_n_body as_echo'
33909 fi
33910 export as_echo_body
33911 as_echo='sh -c $as_echo_body as_echo'
33912fi
33913
33914# The user is always right.
33915if test "${PATH_SEPARATOR+set}" != set; then
33916 PATH_SEPARATOR=:
33917 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33918 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33919 PATH_SEPARATOR=';'
33920 }
33921fi
33922
cristy3ed852e2009-09-05 21:47:34 +000033923
33924# IFS
33925# We need space, tab and new line, in precisely that order. Quoting is
33926# there to prevent editors from complaining about space-tab.
33927# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33928# splitting by setting IFS to empty value.)
33929IFS=" "" $as_nl"
33930
33931# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033932as_myself=
cristy8b350f62009-11-15 23:12:43 +000033933case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033934 *[\\/]* ) as_myself=$0 ;;
33935 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33936for as_dir in $PATH
33937do
33938 IFS=$as_save_IFS
33939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033940 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33941 done
cristy3ed852e2009-09-05 21:47:34 +000033942IFS=$as_save_IFS
33943
33944 ;;
33945esac
33946# We did not find ourselves, most probably we were run as `sh COMMAND'
33947# in which case we are not to be found in the path.
33948if test "x$as_myself" = x; then
33949 as_myself=$0
33950fi
33951if test ! -f "$as_myself"; then
33952 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033953 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033954fi
33955
cristy8b350f62009-11-15 23:12:43 +000033956# Unset variables that we do not need and which cause bugs (e.g. in
33957# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33958# suppresses any "Segmentation fault" message there. '((' could
33959# trigger a bug in pdksh 5.2.14.
33960for as_var in BASH_ENV ENV MAIL MAILPATH
33961do eval test x\${$as_var+set} = xset \
33962 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033963done
33964PS1='$ '
33965PS2='> '
33966PS4='+ '
33967
33968# NLS nuisances.
33969LC_ALL=C
33970export LC_ALL
33971LANGUAGE=C
33972export LANGUAGE
33973
cristy8b350f62009-11-15 23:12:43 +000033974# CDPATH.
33975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33976
33977
cristy98dddb52010-11-04 00:30:15 +000033978# as_fn_error STATUS ERROR [LINENO LOG_FD]
33979# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033980# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33981# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000033982# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033983as_fn_error ()
33984{
cristy98dddb52010-11-04 00:30:15 +000033985 as_status=$1; test $as_status -eq 0 && as_status=1
33986 if test "$4"; then
33987 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33988 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033989 fi
cristy98dddb52010-11-04 00:30:15 +000033990 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033991 as_fn_exit $as_status
33992} # as_fn_error
33993
33994
33995# as_fn_set_status STATUS
33996# -----------------------
33997# Set $? to STATUS, without forking.
33998as_fn_set_status ()
33999{
34000 return $1
34001} # as_fn_set_status
34002
34003# as_fn_exit STATUS
34004# -----------------
34005# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34006as_fn_exit ()
34007{
34008 set +e
34009 as_fn_set_status $1
34010 exit $1
34011} # as_fn_exit
34012
34013# as_fn_unset VAR
34014# ---------------
34015# Portably unset VAR.
34016as_fn_unset ()
34017{
34018 { eval $1=; unset $1;}
34019}
34020as_unset=as_fn_unset
34021# as_fn_append VAR VALUE
34022# ----------------------
34023# Append the text in VALUE to the end of the definition contained in VAR. Take
34024# advantage of any shell optimizations that allow amortized linear growth over
34025# repeated appends, instead of the typical quadratic growth present in naive
34026# implementations.
34027if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34028 eval 'as_fn_append ()
34029 {
34030 eval $1+=\$2
34031 }'
34032else
34033 as_fn_append ()
34034 {
34035 eval $1=\$$1\$2
34036 }
34037fi # as_fn_append
34038
34039# as_fn_arith ARG...
34040# ------------------
34041# Perform arithmetic evaluation on the ARGs, and store the result in the
34042# global $as_val. Take advantage of shells that can avoid forks. The arguments
34043# must be portable across $(()) and expr.
34044if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34045 eval 'as_fn_arith ()
34046 {
34047 as_val=$(( $* ))
34048 }'
34049else
34050 as_fn_arith ()
34051 {
34052 as_val=`expr "$@" || test $? -eq 1`
34053 }
34054fi # as_fn_arith
34055
34056
cristy3ed852e2009-09-05 21:47:34 +000034057if expr a : '\(a\)' >/dev/null 2>&1 &&
34058 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34059 as_expr=expr
34060else
34061 as_expr=false
34062fi
34063
34064if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34065 as_basename=basename
34066else
34067 as_basename=false
34068fi
34069
cristy8b350f62009-11-15 23:12:43 +000034070if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34071 as_dirname=dirname
34072else
34073 as_dirname=false
34074fi
cristy3ed852e2009-09-05 21:47:34 +000034075
cristy3ed852e2009-09-05 21:47:34 +000034076as_me=`$as_basename -- "$0" ||
34077$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34078 X"$0" : 'X\(//\)$' \| \
34079 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34080$as_echo X/"$0" |
34081 sed '/^.*\/\([^/][^/]*\)\/*$/{
34082 s//\1/
34083 q
34084 }
34085 /^X\/\(\/\/\)$/{
34086 s//\1/
34087 q
34088 }
34089 /^X\/\(\/\).*/{
34090 s//\1/
34091 q
34092 }
34093 s/.*/./; q'`
34094
cristy8b350f62009-11-15 23:12:43 +000034095# Avoid depending upon Character Ranges.
34096as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34097as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34098as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34099as_cr_digits='0123456789'
34100as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034101
34102ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034103case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034104-n*)
cristy8b350f62009-11-15 23:12:43 +000034105 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034106 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034107 xy) ECHO_C='\c';;
34108 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34109 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034110 esac;;
34111*)
34112 ECHO_N='-n';;
34113esac
cristy3ed852e2009-09-05 21:47:34 +000034114
34115rm -f conf$$ conf$$.exe conf$$.file
34116if test -d conf$$.dir; then
34117 rm -f conf$$.dir/conf$$.file
34118else
34119 rm -f conf$$.dir
34120 mkdir conf$$.dir 2>/dev/null
34121fi
34122if (echo >conf$$.file) 2>/dev/null; then
34123 if ln -s conf$$.file conf$$ 2>/dev/null; then
34124 as_ln_s='ln -s'
34125 # ... but there are two gotchas:
34126 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34127 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34128 # In both cases, we have to default to `cp -p'.
34129 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34130 as_ln_s='cp -p'
34131 elif ln conf$$.file conf$$ 2>/dev/null; then
34132 as_ln_s=ln
34133 else
34134 as_ln_s='cp -p'
34135 fi
34136else
34137 as_ln_s='cp -p'
34138fi
34139rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34140rmdir conf$$.dir 2>/dev/null
34141
cristy8b350f62009-11-15 23:12:43 +000034142
34143# as_fn_mkdir_p
34144# -------------
34145# Create "$as_dir" as a directory, including parents if necessary.
34146as_fn_mkdir_p ()
34147{
34148
34149 case $as_dir in #(
34150 -*) as_dir=./$as_dir;;
34151 esac
34152 test -d "$as_dir" || eval $as_mkdir_p || {
34153 as_dirs=
34154 while :; do
34155 case $as_dir in #(
34156 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34157 *) as_qdir=$as_dir;;
34158 esac
34159 as_dirs="'$as_qdir' $as_dirs"
34160 as_dir=`$as_dirname -- "$as_dir" ||
34161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34162 X"$as_dir" : 'X\(//\)[^/]' \| \
34163 X"$as_dir" : 'X\(//\)$' \| \
34164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34165$as_echo X"$as_dir" |
34166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34167 s//\1/
34168 q
34169 }
34170 /^X\(\/\/\)[^/].*/{
34171 s//\1/
34172 q
34173 }
34174 /^X\(\/\/\)$/{
34175 s//\1/
34176 q
34177 }
34178 /^X\(\/\).*/{
34179 s//\1/
34180 q
34181 }
34182 s/.*/./; q'`
34183 test -d "$as_dir" && break
34184 done
34185 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034186 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034187
34188
34189} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034190if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034191 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034192else
34193 test -d ./-p && rmdir ./-p
34194 as_mkdir_p=false
34195fi
34196
34197if test -x / >/dev/null 2>&1; then
34198 as_test_x='test -x'
34199else
34200 if ls -dL / >/dev/null 2>&1; then
34201 as_ls_L_option=L
34202 else
34203 as_ls_L_option=
34204 fi
34205 as_test_x='
34206 eval sh -c '\''
34207 if test -d "$1"; then
34208 test -d "$1/.";
34209 else
cristy8b350f62009-11-15 23:12:43 +000034210 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034211 -*)set "./$1";;
34212 esac;
cristy8b350f62009-11-15 23:12:43 +000034213 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034214 ???[sx]*):;;*)false;;esac;fi
34215 '\'' sh
34216 '
34217fi
34218as_executable_p=$as_test_x
34219
34220# Sed expression to map a string onto a valid CPP name.
34221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34222
34223# Sed expression to map a string onto a valid variable name.
34224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34225
34226
34227exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034228## ----------------------------------- ##
34229## Main body of $CONFIG_STATUS script. ##
34230## ----------------------------------- ##
34231_ASEOF
34232test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034233
cristy8b350f62009-11-15 23:12:43 +000034234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34235# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034236# report actual input values of CONFIG_FILES etc. instead of their
34237# values after options handling.
34238ac_log="
cristyee742642011-02-26 02:49:59 +000034239This file was extended by ImageMagick $as_me 6.6.8, which was
cristyda16f162011-02-19 23:52:17 +000034240generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034241
34242 CONFIG_FILES = $CONFIG_FILES
34243 CONFIG_HEADERS = $CONFIG_HEADERS
34244 CONFIG_LINKS = $CONFIG_LINKS
34245 CONFIG_COMMANDS = $CONFIG_COMMANDS
34246 $ $0 $@
34247
34248on `(hostname || uname -n) 2>/dev/null | sed 1q`
34249"
34250
34251_ACEOF
34252
34253case $ac_config_files in *"
34254"*) set x $ac_config_files; shift; ac_config_files=$*;;
34255esac
34256
34257case $ac_config_headers in *"
34258"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34259esac
34260
34261
34262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34263# Files that config.status was made for.
34264config_files="$ac_config_files"
34265config_headers="$ac_config_headers"
34266config_commands="$ac_config_commands"
34267
34268_ACEOF
34269
34270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34271ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034272\`$as_me' instantiates files and other configuration actions
34273from templates according to the current configuration. Unless the files
34274and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034275
cristy8b350f62009-11-15 23:12:43 +000034276Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034277
34278 -h, --help print this help, then exit
34279 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034280 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034281 -q, --quiet, --silent
34282 do not print progress messages
34283 -d, --debug don't remove temporary files
34284 --recheck update $as_me by reconfiguring in the same conditions
34285 --file=FILE[:TEMPLATE]
34286 instantiate the configuration file FILE
34287 --header=FILE[:TEMPLATE]
34288 instantiate the configuration header FILE
34289
34290Configuration files:
34291$config_files
34292
34293Configuration headers:
34294$config_headers
34295
34296Configuration commands:
34297$config_commands
34298
cristy8b350f62009-11-15 23:12:43 +000034299Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034300
34301_ACEOF
34302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034303ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034304ac_cs_version="\\
cristyee742642011-02-26 02:49:59 +000034305ImageMagick config.status 6.6.8
cristyda16f162011-02-19 23:52:17 +000034306configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034307 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034308
cristy98dddb52010-11-04 00:30:15 +000034309Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034310This config.status script is free software; the Free Software Foundation
34311gives unlimited permission to copy, distribute and modify it."
34312
34313ac_pwd='$ac_pwd'
34314srcdir='$srcdir'
34315INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034316MKDIR_P='$MKDIR_P'
34317AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034318test -n "\$AWK" || AWK=awk
34319_ACEOF
34320
34321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34322# The default lists apply if the user does not specify any file.
34323ac_need_defaults=:
34324while test $# != 0
34325do
34326 case $1 in
cristyda16f162011-02-19 23:52:17 +000034327 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34329 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34330 ac_shift=:
34331 ;;
cristyda16f162011-02-19 23:52:17 +000034332 --*=)
34333 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34334 ac_optarg=
34335 ac_shift=:
34336 ;;
cristy3ed852e2009-09-05 21:47:34 +000034337 *)
34338 ac_option=$1
34339 ac_optarg=$2
34340 ac_shift=shift
34341 ;;
34342 esac
34343
34344 case $ac_option in
34345 # Handling of the options.
34346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34347 ac_cs_recheck=: ;;
34348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34349 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034350 --config | --confi | --conf | --con | --co | --c )
34351 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034352 --debug | --debu | --deb | --de | --d | -d )
34353 debug=: ;;
34354 --file | --fil | --fi | --f )
34355 $ac_shift
34356 case $ac_optarg in
34357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034358 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034359 esac
cristy8b350f62009-11-15 23:12:43 +000034360 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034361 ac_need_defaults=false;;
34362 --header | --heade | --head | --hea )
34363 $ac_shift
34364 case $ac_optarg in
34365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34366 esac
cristy8b350f62009-11-15 23:12:43 +000034367 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034368 ac_need_defaults=false;;
34369 --he | --h)
34370 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034371 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034372Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034373 --help | --hel | -h )
34374 $as_echo "$ac_cs_usage"; exit ;;
34375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34376 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34377 ac_cs_silent=: ;;
34378
34379 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034380 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034381Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034382
cristy8b350f62009-11-15 23:12:43 +000034383 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034384 ac_need_defaults=false ;;
34385
34386 esac
34387 shift
34388done
34389
34390ac_configure_extra_args=
34391
34392if $ac_cs_silent; then
34393 exec 6>/dev/null
34394 ac_configure_extra_args="$ac_configure_extra_args --silent"
34395fi
34396
34397_ACEOF
34398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34399if \$ac_cs_recheck; then
34400 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34401 shift
34402 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34403 CONFIG_SHELL='$SHELL'
34404 export CONFIG_SHELL
34405 exec "\$@"
34406fi
34407
34408_ACEOF
34409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34410exec 5>>config.log
34411{
34412 echo
34413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34414## Running $as_me. ##
34415_ASBOX
34416 $as_echo "$ac_log"
34417} >&5
34418
34419_ACEOF
34420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034421#
34422# INIT-COMMANDS
34423#
34424PACKAGE="$PACKAGE"
34425AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34426
34427
34428# The HP-UX ksh and POSIX shell print the target directory to stdout
34429# if CDPATH is set.
34430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34431
34432sed_quote_subst='$sed_quote_subst'
34433double_quote_subst='$double_quote_subst'
34434delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034435SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34436Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34437GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34438EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34439FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34440SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34441ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34442LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34443macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34444macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34445AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34446DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34447OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34448enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34449enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34450pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34451enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34452host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34453host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34454host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34455build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34456build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34457build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34458NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34459LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34460max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34461ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34462exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34463lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34464lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34465lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034466lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34467lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034468reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34469reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34470deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34471file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034472file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34473want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34474sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034475AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34476AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034477archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034478STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34479RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34480old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34481old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34482old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34483lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34484CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34485CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34486compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34487GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34488lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34489lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34490lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34491lt_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 +000034492nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34493lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034494objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34495MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34496lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034497lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034498lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034499lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34500lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34501need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034502MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034503DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34504NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34505LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34506OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34507OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34508libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34509shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34510extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34511archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34512enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34513export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34514whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34515compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34516old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34517old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34518archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34519archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34520module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34521module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34522with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34523allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34524no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34525hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34526hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34527hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34528hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34529hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34530hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34531hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34532hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34533inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34534link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034535always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34536export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34537exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34538include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34539prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034540postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034541file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34542variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34543need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34544need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34545version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34546runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34547shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34548shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34549libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34550library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34551soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34552install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34553postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34554postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34555finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34556finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34557hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34558sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34559sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34560hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34561enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34562enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34563enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34564old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34565striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34566compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34567predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34568postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34569predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34570postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34571compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34572LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34573reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34574reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34575old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34576compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34577GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34578lt_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 +000034579lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034580lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034581lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34582lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34583archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34584enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34585export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34586whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34587compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34588old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34589old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34590archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34591archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34592module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34593module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34594with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34595allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34596no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34597hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34598hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34599hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34600hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34601hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34602hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34603hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34604hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34605inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34606link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034607always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34608export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34609exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34610include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34611prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034612postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034613file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34614hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34615compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34616predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34617postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34618predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34619postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34620compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034621
34622LTCC='$LTCC'
34623LTCFLAGS='$LTCFLAGS'
34624compiler='$compiler_DEFAULT'
34625
cristy0c60a692010-11-04 01:09:47 +000034626# A function that is used when there is no print builtin or printf.
34627func_fallback_echo ()
34628{
34629 eval 'cat <<_LTECHO_EOF
34630\$1
34631_LTECHO_EOF'
34632}
34633
cristy73bd4a52010-10-05 11:24:23 +000034634# Quote evaled strings.
34635for var in SED \
34636GREP \
34637EGREP \
34638FGREP \
cristy0c60a692010-11-04 01:09:47 +000034639SHELL \
34640ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034641LD \
cristy0c60a692010-11-04 01:09:47 +000034642AS \
34643DLLTOOL \
34644OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034645NM \
34646LN_S \
34647lt_SP2NL \
34648lt_NL2SP \
34649reload_flag \
34650deplibs_check_method \
34651file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034652file_magic_glob \
34653want_nocaseglob \
34654sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034655AR \
34656AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034657archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034658STRIP \
34659RANLIB \
34660CC \
34661CFLAGS \
34662compiler \
34663lt_cv_sys_global_symbol_pipe \
34664lt_cv_sys_global_symbol_to_cdecl \
34665lt_cv_sys_global_symbol_to_c_name_address \
34666lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034667nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034668lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034669lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034670lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034671lt_prog_compiler_static \
34672lt_cv_prog_compiler_c_o \
34673need_locks \
cristyda16f162011-02-19 23:52:17 +000034674MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034675DSYMUTIL \
34676NMEDIT \
34677LIPO \
34678OTOOL \
34679OTOOL64 \
34680shrext_cmds \
34681export_dynamic_flag_spec \
34682whole_archive_flag_spec \
34683compiler_needs_object \
34684with_gnu_ld \
34685allow_undefined_flag \
34686no_undefined_flag \
34687hardcode_libdir_flag_spec \
34688hardcode_libdir_flag_spec_ld \
34689hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034690exclude_expsyms \
34691include_expsyms \
34692file_list_spec \
34693variables_saved_for_relink \
34694libname_spec \
34695library_names_spec \
34696soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034697install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034698finish_eval \
34699old_striplib \
34700striplib \
34701compiler_lib_search_dirs \
34702predep_objects \
34703postdep_objects \
34704predeps \
34705postdeps \
34706compiler_lib_search_path \
34707LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034708reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034709compiler_CXX \
34710lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034711lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034712lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034713lt_prog_compiler_static_CXX \
34714lt_cv_prog_compiler_c_o_CXX \
34715export_dynamic_flag_spec_CXX \
34716whole_archive_flag_spec_CXX \
34717compiler_needs_object_CXX \
34718with_gnu_ld_CXX \
34719allow_undefined_flag_CXX \
34720no_undefined_flag_CXX \
34721hardcode_libdir_flag_spec_CXX \
34722hardcode_libdir_flag_spec_ld_CXX \
34723hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034724exclude_expsyms_CXX \
34725include_expsyms_CXX \
34726file_list_spec_CXX \
34727compiler_lib_search_dirs_CXX \
34728predep_objects_CXX \
34729postdep_objects_CXX \
34730predeps_CXX \
34731postdeps_CXX \
34732compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034734 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034736 ;;
34737 *)
34738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34739 ;;
34740 esac
34741done
34742
34743# Double-quote double-evaled strings.
34744for var in reload_cmds \
34745old_postinstall_cmds \
34746old_postuninstall_cmds \
34747old_archive_cmds \
34748extract_expsyms_cmds \
34749old_archive_from_new_cmds \
34750old_archive_from_expsyms_cmds \
34751archive_cmds \
34752archive_expsym_cmds \
34753module_cmds \
34754module_expsym_cmds \
34755export_symbols_cmds \
34756prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034757postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034758postinstall_cmds \
34759postuninstall_cmds \
34760finish_cmds \
34761sys_lib_search_path_spec \
34762sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034763reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034764old_archive_cmds_CXX \
34765old_archive_from_new_cmds_CXX \
34766old_archive_from_expsyms_cmds_CXX \
34767archive_cmds_CXX \
34768archive_expsym_cmds_CXX \
34769module_cmds_CXX \
34770module_expsym_cmds_CXX \
34771export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034772prelink_cmds_CXX \
34773postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034774 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034775 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034776 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034777 ;;
34778 *)
34779 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34780 ;;
34781 esac
34782done
34783
cristy73bd4a52010-10-05 11:24:23 +000034784ac_aux_dir='$ac_aux_dir'
34785xsi_shell='$xsi_shell'
34786lt_shell_append='$lt_shell_append'
34787
34788# See if we are running on zsh, and set the options which allow our
34789# commands through without removal of \ escapes INIT.
34790if test -n "\${ZSH_VERSION+set}" ; then
34791 setopt NO_GLOB_SUBST
34792fi
34793
34794
34795 PACKAGE='$PACKAGE'
34796 VERSION='$VERSION'
34797 TIMESTAMP='$TIMESTAMP'
34798 RM='$RM'
34799 ofile='$ofile'
34800
34801
34802
34803
34804
34805
cristy3ed852e2009-09-05 21:47:34 +000034806_ACEOF
34807
34808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34809
34810# Handling of arguments.
34811for ac_config_target in $ac_config_targets
34812do
34813 case $ac_config_target in
34814 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034815 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034816 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34817 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34818 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34819 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34820 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034821 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034822 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34823 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34824 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34825 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34826 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34827 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34828 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34829 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34830 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34831 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34832 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34833 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34834 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34835 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34836 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34837 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34838 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34839 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34840 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34841 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34842 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34843 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34844 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34845 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34846 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34847 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34848 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34849 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34850 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34851 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34852 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34853 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34854 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34856 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034857 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34858 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34859 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34860 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34861 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34862 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34863 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34864
cristy98dddb52010-11-04 00:30:15 +000034865 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034866 esac
34867done
34868
34869
34870# If the user did not use the arguments to specify the items to instantiate,
34871# then the envvar interface is used. Set only those that are not.
34872# We use the long form for the default assignment because of an extremely
34873# bizarre bug on SunOS 4.1.3.
34874if $ac_need_defaults; then
34875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34878fi
34879
34880# Have a temporary directory for convenience. Make it in the build tree
34881# simply because there is no reason against having it here, and in addition,
34882# creating and moving files from /tmp can sometimes cause problems.
34883# Hook for its removal unless debugging.
34884# Note that there is a small window in which the directory will not be cleaned:
34885# after its creation but before its name has been assigned to `$tmp'.
34886$debug ||
34887{
cristyda16f162011-02-19 23:52:17 +000034888 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034889 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034890 : "${ac_tmp:=$tmp}"
34891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034892' 0
cristy8b350f62009-11-15 23:12:43 +000034893 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034894}
34895# Create a (secure) tmp directory for tmp files.
34896
34897{
34898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034899 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034900} ||
34901{
34902 tmp=./conf$$-$RANDOM
34903 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034904} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034905ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034906
34907# Set up the scripts for CONFIG_FILES section.
34908# No need to generate them if there are no CONFIG_FILES.
34909# This happens for instance with `./config.status config.h'.
34910if test -n "$CONFIG_FILES"; then
34911
34912
cristy8b350f62009-11-15 23:12:43 +000034913ac_cr=`echo X | tr X '\015'`
34914# On cygwin, bash can eat \r inside `` if the user requested igncr.
34915# But we know of no other shell where ac_cr would be empty at this
34916# point, so we can use a bashism as a fallback.
34917if test "x$ac_cr" = x; then
34918 eval ac_cr=\$\'\\r\'
34919fi
cristy3ed852e2009-09-05 21:47:34 +000034920ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34921if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034922 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034923else
34924 ac_cs_awk_cr=$ac_cr
34925fi
34926
cristyda16f162011-02-19 23:52:17 +000034927echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034928_ACEOF
34929
34930
34931{
34932 echo "cat >conf$$subs.awk <<_ACEOF" &&
34933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34934 echo "_ACEOF"
34935} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34937ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034938ac_delim='%!_!# '
34939for ac_last_try in false false false false false :; do
34940 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034942
34943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34944 if test $ac_delim_n = $ac_delim_num; then
34945 break
34946 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034948 else
34949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34950 fi
34951done
34952rm -f conf$$subs.sh
34953
34954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000034955cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034956_ACEOF
34957sed -n '
34958h
34959s/^/S["/; s/!.*/"]=/
34960p
34961g
34962s/^[^!]*!//
34963:repl
34964t repl
34965s/'"$ac_delim"'$//
34966t delim
34967:nl
34968h
cristycd4c5312009-11-22 01:19:08 +000034969s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034970t more1
34971s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34972p
34973n
34974b repl
34975:more1
34976s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34977p
34978g
34979s/.\{148\}//
34980t nl
34981:delim
34982h
cristycd4c5312009-11-22 01:19:08 +000034983s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034984t more2
34985s/["\\]/\\&/g; s/^/"/; s/$/"/
34986p
34987b
34988:more2
34989s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34990p
34991g
34992s/.\{148\}//
34993t delim
34994' <conf$$subs.awk | sed '
34995/^[^""]/{
34996 N
34997 s/\n//
34998}
34999' >>$CONFIG_STATUS || ac_write_fail=1
35000rm -f conf$$subs.awk
35001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35002_ACAWK
cristyda16f162011-02-19 23:52:17 +000035003cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035004 for (key in S) S_is_set[key] = 1
35005 FS = ""
35006
35007}
35008{
35009 line = $ 0
35010 nfields = split(line, field, "@")
35011 substed = 0
35012 len = length(field[1])
35013 for (i = 2; i < nfields; i++) {
35014 key = field[i]
35015 keylen = length(key)
35016 if (S_is_set[key]) {
35017 value = S[key]
35018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35019 len += length(value) + length(field[++i])
35020 substed = 1
35021 } else
35022 len += 1 + keylen
35023 }
35024
35025 print line
35026}
35027
35028_ACAWK
35029_ACEOF
35030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35031if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35033else
35034 cat
cristyda16f162011-02-19 23:52:17 +000035035fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035037_ACEOF
35038
cristy98dddb52010-11-04 00:30:15 +000035039# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35040# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035041# trailing colons and then remove the whole line if VPATH becomes empty
35042# (actually we leave an empty line to preserve line numbers).
35043if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35045h
35046s///
35047s/^/:/
35048s/[ ]*$/:/
35049s/:\$(srcdir):/:/g
35050s/:\${srcdir}:/:/g
35051s/:@srcdir@:/:/g
35052s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035053s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035054x
35055s/\(=[ ]*\).*/\1/
35056G
35057s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035058s/^[^=]*=[ ]*$//
35059}'
35060fi
35061
35062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35063fi # test -n "$CONFIG_FILES"
35064
35065# Set up the scripts for CONFIG_HEADERS section.
35066# No need to generate them if there are no CONFIG_HEADERS.
35067# This happens for instance with `./config.status Makefile'.
35068if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035069cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035070BEGIN {
35071_ACEOF
35072
35073# Transform confdefs.h into an awk script `defines.awk', embedded as
35074# here-document in config.status, that substitutes the proper values into
35075# config.h.in to produce config.h.
35076
35077# Create a delimiter string that does not exist in confdefs.h, to ease
35078# handling of long lines.
35079ac_delim='%!_!# '
35080for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035081 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35082 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035083 break
35084 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035085 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035086 else
35087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35088 fi
35089done
35090
35091# For the awk script, D is an array of macro values keyed by name,
35092# likewise P contains macro parameters if any. Preserve backslash
35093# newline sequences.
35094
35095ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35096sed -n '
35097s/.\{148\}/&'"$ac_delim"'/g
35098t rset
35099:rset
35100s/^[ ]*#[ ]*define[ ][ ]*/ /
35101t def
35102d
35103:def
35104s/\\$//
35105t bsnl
35106s/["\\]/\\&/g
35107s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35108D["\1"]=" \3"/p
35109s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35110d
35111:bsnl
35112s/["\\]/\\&/g
35113s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35114D["\1"]=" \3\\\\\\n"\\/p
35115t cont
35116s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35117t cont
35118d
35119:cont
35120n
35121s/.\{148\}/&'"$ac_delim"'/g
35122t clear
35123:clear
35124s/\\$//
35125t bsnlc
35126s/["\\]/\\&/g; s/^/"/; s/$/"/p
35127d
35128:bsnlc
35129s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35130b cont
35131' <confdefs.h | sed '
35132s/'"$ac_delim"'/"\\\
35133"/g' >>$CONFIG_STATUS || ac_write_fail=1
35134
35135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35136 for (key in D) D_is_set[key] = 1
35137 FS = ""
35138}
35139/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35140 line = \$ 0
35141 split(line, arg, " ")
35142 if (arg[1] == "#") {
35143 defundef = arg[2]
35144 mac1 = arg[3]
35145 } else {
35146 defundef = substr(arg[1], 2)
35147 mac1 = arg[2]
35148 }
35149 split(mac1, mac2, "(") #)
35150 macro = mac2[1]
35151 prefix = substr(line, 1, index(line, defundef) - 1)
35152 if (D_is_set[macro]) {
35153 # Preserve the white space surrounding the "#".
35154 print prefix "define", macro P[macro] D[macro]
35155 next
35156 } else {
35157 # Replace #undef with comments. This is necessary, for example,
35158 # in the case of _POSIX_SOURCE, which is predefined and required
35159 # on some systems where configure will not decide to define it.
35160 if (defundef == "undef") {
35161 print "/*", prefix defundef, macro, "*/"
35162 next
35163 }
35164 }
35165}
35166{ print }
35167_ACAWK
35168_ACEOF
35169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035170 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035171fi # test -n "$CONFIG_HEADERS"
35172
35173
35174eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35175shift
35176for ac_tag
35177do
35178 case $ac_tag in
35179 :[FHLC]) ac_mode=$ac_tag; continue;;
35180 esac
35181 case $ac_mode$ac_tag in
35182 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035183 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035184 :[FH]-) ac_tag=-:-;;
35185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35186 esac
35187 ac_save_IFS=$IFS
35188 IFS=:
35189 set x $ac_tag
35190 IFS=$ac_save_IFS
35191 shift
35192 ac_file=$1
35193 shift
35194
35195 case $ac_mode in
35196 :L) ac_source=$1;;
35197 :[FH])
35198 ac_file_inputs=
35199 for ac_f
35200 do
35201 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035202 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035203 *) # Look for the file first in the build tree, then in the source tree
35204 # (if the path is not absolute). The absolute path cannot be DOS-style,
35205 # because $ac_f cannot contain `:'.
35206 test -f "$ac_f" ||
35207 case $ac_f in
35208 [\\/$]*) false;;
35209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35210 esac ||
cristy98dddb52010-11-04 00:30:15 +000035211 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035212 esac
35213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035214 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035215 done
35216
35217 # Let's still pretend it is `configure' which instantiates (i.e., don't
35218 # use $as_me), people would be surprised to read:
35219 # /* config.h. Generated by config.status. */
35220 configure_input='Generated from '`
35221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35222 `' by configure.'
35223 if test x"$ac_file" != x-; then
35224 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226$as_echo "$as_me: creating $ac_file" >&6;}
35227 fi
35228 # Neutralize special characters interpreted by sed in replacement strings.
35229 case $configure_input in #(
35230 *\&* | *\|* | *\\* )
35231 ac_sed_conf_input=`$as_echo "$configure_input" |
35232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35233 *) ac_sed_conf_input=$configure_input;;
35234 esac
35235
35236 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035237 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035239 esac
35240 ;;
35241 esac
35242
35243 ac_dir=`$as_dirname -- "$ac_file" ||
35244$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35245 X"$ac_file" : 'X\(//\)[^/]' \| \
35246 X"$ac_file" : 'X\(//\)$' \| \
35247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35248$as_echo X"$ac_file" |
35249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35250 s//\1/
35251 q
35252 }
35253 /^X\(\/\/\)[^/].*/{
35254 s//\1/
35255 q
35256 }
35257 /^X\(\/\/\)$/{
35258 s//\1/
35259 q
35260 }
35261 /^X\(\/\).*/{
35262 s//\1/
35263 q
35264 }
35265 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035266 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035267 ac_builddir=.
35268
35269case "$ac_dir" in
35270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35271*)
35272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35273 # A ".." for each directory in $ac_dir_suffix.
35274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35275 case $ac_top_builddir_sub in
35276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35278 esac ;;
35279esac
35280ac_abs_top_builddir=$ac_pwd
35281ac_abs_builddir=$ac_pwd$ac_dir_suffix
35282# for backward compatibility:
35283ac_top_builddir=$ac_top_build_prefix
35284
35285case $srcdir in
35286 .) # We are building in place.
35287 ac_srcdir=.
35288 ac_top_srcdir=$ac_top_builddir_sub
35289 ac_abs_top_srcdir=$ac_pwd ;;
35290 [\\/]* | ?:[\\/]* ) # Absolute name.
35291 ac_srcdir=$srcdir$ac_dir_suffix;
35292 ac_top_srcdir=$srcdir
35293 ac_abs_top_srcdir=$srcdir ;;
35294 *) # Relative name.
35295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35296 ac_top_srcdir=$ac_top_build_prefix$srcdir
35297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35298esac
35299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35300
35301
35302 case $ac_mode in
35303 :F)
35304 #
35305 # CONFIG_FILE
35306 #
35307
35308 case $INSTALL in
35309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35311 esac
cristy73bd4a52010-10-05 11:24:23 +000035312 ac_MKDIR_P=$MKDIR_P
35313 case $MKDIR_P in
35314 [\\/$]* | ?:[\\/]* ) ;;
35315 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35316 esac
cristy3ed852e2009-09-05 21:47:34 +000035317_ACEOF
35318
35319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35320# If the template does not know about datarootdir, expand it.
35321# FIXME: This hack should be removed a few years after 2.60.
35322ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035323ac_sed_dataroot='
35324/datarootdir/ {
35325 p
35326 q
35327}
35328/@datadir@/p
35329/@docdir@/p
35330/@infodir@/p
35331/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035332/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035333case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35334*datarootdir*) ac_datarootdir_seen=yes;;
35335*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035337$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35338_ACEOF
35339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35340 ac_datarootdir_hack='
35341 s&@datadir@&$datadir&g
35342 s&@docdir@&$docdir&g
35343 s&@infodir@&$infodir&g
35344 s&@localedir@&$localedir&g
35345 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035346 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035347esac
35348_ACEOF
35349
35350# Neutralize VPATH when `$srcdir' = `.'.
35351# Shell code in configure.ac might set extrasub.
35352# FIXME: do we really want to maintain this feature?
35353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35354ac_sed_extra="$ac_vpsub
35355$extrasub
35356_ACEOF
35357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35358:t
35359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35360s|@configure_input@|$ac_sed_conf_input|;t t
35361s&@top_builddir@&$ac_top_builddir_sub&;t t
35362s&@top_build_prefix@&$ac_top_build_prefix&;t t
35363s&@srcdir@&$ac_srcdir&;t t
35364s&@abs_srcdir@&$ac_abs_srcdir&;t t
35365s&@top_srcdir@&$ac_top_srcdir&;t t
35366s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35367s&@builddir@&$ac_builddir&;t t
35368s&@abs_builddir@&$ac_abs_builddir&;t t
35369s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35370s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035371s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035372$ac_datarootdir_hack
35373"
cristyda16f162011-02-19 23:52:17 +000035374eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35375 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035376
35377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35380 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035382which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035383$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035384which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035385
cristyda16f162011-02-19 23:52:17 +000035386 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035387 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035390 esac \
cristy98dddb52010-11-04 00:30:15 +000035391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035392 ;;
35393 :H)
35394 #
35395 # CONFIG_HEADER
35396 #
35397 if test x"$ac_file" != x-; then
35398 {
35399 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35401 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035404 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035405$as_echo "$as_me: $ac_file is unchanged" >&6;}
35406 else
35407 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035408 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035410 fi
35411 else
35412 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035414 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035415 fi
cristy73bd4a52010-10-05 11:24:23 +000035416# Compute "$ac_file"'s index in $config_headers.
35417_am_arg="$ac_file"
35418_am_stamp_count=1
35419for _am_header in $config_headers :; do
35420 case $_am_header in
35421 $_am_arg | $_am_arg:* )
35422 break ;;
35423 * )
35424 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35425 esac
35426done
35427echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35428$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35429 X"$_am_arg" : 'X\(//\)[^/]' \| \
35430 X"$_am_arg" : 'X\(//\)$' \| \
35431 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35432$as_echo X"$_am_arg" |
35433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35434 s//\1/
35435 q
35436 }
35437 /^X\(\/\/\)[^/].*/{
35438 s//\1/
35439 q
35440 }
35441 /^X\(\/\/\)$/{
35442 s//\1/
35443 q
35444 }
35445 /^X\(\/\).*/{
35446 s//\1/
35447 q
35448 }
35449 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035450 ;;
35451
cristy8b350f62009-11-15 23:12:43 +000035452 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035453$as_echo "$as_me: executing $ac_file commands" >&6;}
35454 ;;
35455 esac
35456
35457
35458 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035459 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35460ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35461ac_prefix_conf_PKG=`echo MagickCore`
35462ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35463ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35464ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35465if test ".$ac_prefix_conf_INP" = "."; then
35466 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35467 case "$ac_file" in
35468 *.h) ac_prefix_conf_INP=$ac_file ;;
35469 *)
35470 esac
35471 test ".$ac_prefix_conf_INP" != "." && break
35472 done
35473fi
35474if test ".$ac_prefix_conf_INP" = "."; then
35475 case "$ac_prefix_conf_OUT" in
35476 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35477 ;;
35478 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35479 ;;
35480 *) ac_prefix_conf_INP=config.h
35481 ;;
35482 esac
35483fi
35484if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035485 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035486else
35487 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35488 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35489 fi fi
35490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35491$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35492 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035493 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35494 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35495 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35496 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35497 $as_echo "#endif/" >> conftest.prefix
35498 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35499 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35500 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035501 # now executing _script on _DEF input to create _OUT output file
35502 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35503 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35504 echo ' ' >>$tmp/pconfig.h
35505 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35506
35507 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35508 echo ' ' >>$tmp/pconfig.h
35509 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35510 echo "#endif" >>$tmp/pconfig.h
35511 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35512 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35513$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35514 else
35515 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35516$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35517 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35518 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35519 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35520$as_echo X"$ac_prefix_conf_OUT" |
35521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35522 s//\1/
35523 q
35524 }
35525 /^X\(\/\/\)[^/].*/{
35526 s//\1/
35527 q
35528 }
35529 /^X\(\/\/\)$/{
35530 s//\1/
35531 q
35532 }
35533 /^X\(\/\).*/{
35534 s//\1/
35535 q
35536 }
35537 s/.*/./; q'`
35538 as_dir="$ac_dir"; as_fn_mkdir_p
35539 rm -f "$ac_prefix_conf_OUT"
35540 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35541 fi
35542 cp conftest.prefix _configs.sed
35543 else
cristy98dddb52010-11-04 00:30:15 +000035544 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 +000035545 fi
35546 rm -f conftest.*
35547fi
35548 ;;
35549 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35550 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35551 # are listed without --file. Let's play safe and only enable the eval
35552 # if we detect the quoting.
35553 case $CONFIG_FILES in
35554 *\'*) eval set x "$CONFIG_FILES" ;;
35555 *) set x $CONFIG_FILES ;;
35556 esac
35557 shift
35558 for mf
35559 do
35560 # Strip MF so we end up with the name of the file.
35561 mf=`echo "$mf" | sed -e 's/:.*$//'`
35562 # Check whether this is an Automake generated Makefile or not.
35563 # We used to match only the files named `Makefile.in', but
35564 # some people rename them; so instead we look at the file content.
35565 # Grep'ing the first line is not enough: some people post-process
35566 # each Makefile.in and add a new line on top of each file to say so.
35567 # Grep'ing the whole file is not good either: AIX grep has a line
35568 # limit of 2048, but all sed's we know have understand at least 4000.
35569 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35570 dirpart=`$as_dirname -- "$mf" ||
35571$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35572 X"$mf" : 'X\(//\)[^/]' \| \
35573 X"$mf" : 'X\(//\)$' \| \
35574 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35575$as_echo X"$mf" |
35576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35577 s//\1/
35578 q
35579 }
35580 /^X\(\/\/\)[^/].*/{
35581 s//\1/
35582 q
35583 }
35584 /^X\(\/\/\)$/{
35585 s//\1/
35586 q
35587 }
35588 /^X\(\/\).*/{
35589 s//\1/
35590 q
35591 }
35592 s/.*/./; q'`
35593 else
35594 continue
35595 fi
35596 # Extract the definition of DEPDIR, am__include, and am__quote
35597 # from the Makefile without running `make'.
35598 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35599 test -z "$DEPDIR" && continue
35600 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35601 test -z "am__include" && continue
35602 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35603 # When using ansi2knr, U may be empty or an underscore; expand it
35604 U=`sed -n 's/^U = //p' < "$mf"`
35605 # Find all dependency output files, they are included files with
35606 # $(DEPDIR) in their names. We invoke sed twice because it is the
35607 # simplest approach to changing $(DEPDIR) to its actual value in the
35608 # expansion.
35609 for file in `sed -n "
35610 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35611 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35612 # Make sure the directory exists.
35613 test -f "$dirpart/$file" && continue
35614 fdir=`$as_dirname -- "$file" ||
35615$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35616 X"$file" : 'X\(//\)[^/]' \| \
35617 X"$file" : 'X\(//\)$' \| \
35618 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35619$as_echo X"$file" |
35620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35621 s//\1/
35622 q
35623 }
35624 /^X\(\/\/\)[^/].*/{
35625 s//\1/
35626 q
35627 }
35628 /^X\(\/\/\)$/{
35629 s//\1/
35630 q
35631 }
35632 /^X\(\/\).*/{
35633 s//\1/
35634 q
35635 }
35636 s/.*/./; q'`
35637 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35638 # echo "creating $dirpart/$file"
35639 echo '# dummy' > "$dirpart/$file"
35640 done
35641 done
35642}
35643 ;;
35644 "libtool":C)
35645
35646 # See if we are running on zsh, and set the options which allow our
35647 # commands through without removal of \ escapes.
35648 if test -n "${ZSH_VERSION+set}" ; then
35649 setopt NO_GLOB_SUBST
35650 fi
35651
35652 cfgfile="${ofile}T"
35653 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35654 $RM "$cfgfile"
35655
35656 cat <<_LT_EOF >> "$cfgfile"
35657#! $SHELL
35658
35659# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35660# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35661# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35662# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35663#
35664# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035665# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35666# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035667# Written by Gordon Matzigkeit, 1996
35668#
35669# This file is part of GNU Libtool.
35670#
35671# GNU Libtool is free software; you can redistribute it and/or
35672# modify it under the terms of the GNU General Public License as
35673# published by the Free Software Foundation; either version 2 of
35674# the License, or (at your option) any later version.
35675#
35676# As a special exception to the GNU General Public License,
35677# if you distribute this file as part of a program or library that
35678# is built using GNU Libtool, you may include this file under the
35679# same distribution terms that you use for the rest of that program.
35680#
35681# GNU Libtool is distributed in the hope that it will be useful,
35682# but WITHOUT ANY WARRANTY; without even the implied warranty of
35683# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35684# GNU General Public License for more details.
35685#
35686# You should have received a copy of the GNU General Public License
35687# along with GNU Libtool; see the file COPYING. If not, a copy
35688# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35689# obtained by writing to the Free Software Foundation, Inc.,
35690# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35691
35692
35693# The names of the tagged configurations supported by this script.
35694available_tags="CXX "
35695
35696# ### BEGIN LIBTOOL CONFIG
35697
35698# A sed program that does not truncate output.
35699SED=$lt_SED
35700
35701# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35702Xsed="\$SED -e 1s/^X//"
35703
35704# A grep program that handles long lines.
35705GREP=$lt_GREP
35706
35707# An ERE matcher.
35708EGREP=$lt_EGREP
35709
35710# A literal string matcher.
35711FGREP=$lt_FGREP
35712
cristy0c60a692010-11-04 01:09:47 +000035713# Shell to use when invoking shell scripts.
35714SHELL=$lt_SHELL
35715
35716# An echo program that protects backslashes.
35717ECHO=$lt_ECHO
35718
cristy73bd4a52010-10-05 11:24:23 +000035719# Which release of libtool.m4 was used?
35720macro_version=$macro_version
35721macro_revision=$macro_revision
35722
35723# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035724AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035725
35726# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035727DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035728
35729# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035730OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035731
35732# Whether or not to build shared libraries.
35733build_libtool_libs=$enable_shared
35734
35735# Whether or not to build static libraries.
35736build_old_libs=$enable_static
35737
35738# What type of objects to build.
35739pic_mode=$pic_mode
35740
35741# Whether or not to optimize for fast installation.
35742fast_install=$enable_fast_install
35743
35744# The host system.
35745host_alias=$host_alias
35746host=$host
35747host_os=$host_os
35748
35749# The build system.
35750build_alias=$build_alias
35751build=$build
35752build_os=$build_os
35753
35754# A BSD- or MS-compatible name lister.
35755NM=$lt_NM
35756
35757# Whether we need soft or hard links.
35758LN_S=$lt_LN_S
35759
35760# What is the maximum length of a command?
35761max_cmd_len=$max_cmd_len
35762
35763# Object file suffix (normally "o").
35764objext=$ac_objext
35765
35766# Executable file suffix (normally "").
35767exeext=$exeext
35768
35769# whether the shell understands "unset".
35770lt_unset=$lt_unset
35771
35772# turn spaces into newlines.
35773SP2NL=$lt_lt_SP2NL
35774
35775# turn newlines into spaces.
35776NL2SP=$lt_lt_NL2SP
35777
cristyda16f162011-02-19 23:52:17 +000035778# convert \$build file names to \$host format.
35779to_host_file_cmd=$lt_cv_to_host_file_cmd
35780
35781# convert \$build files to toolchain format.
35782to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35783
cristy73bd4a52010-10-05 11:24:23 +000035784# Method to check whether dependent libraries are shared objects.
35785deplibs_check_method=$lt_deplibs_check_method
35786
cristyda16f162011-02-19 23:52:17 +000035787# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035788file_magic_cmd=$lt_file_magic_cmd
35789
cristyda16f162011-02-19 23:52:17 +000035790# How to find potential files when deplibs_check_method = "file_magic".
35791file_magic_glob=$lt_file_magic_glob
35792
35793# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35794want_nocaseglob=$lt_want_nocaseglob
35795
35796# Command to associate shared and link libraries.
35797sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35798
cristy73bd4a52010-10-05 11:24:23 +000035799# The archiver.
35800AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035801
35802# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035803AR_FLAGS=$lt_AR_FLAGS
35804
cristyda16f162011-02-19 23:52:17 +000035805# How to feed a file listing to the archiver.
35806archiver_list_spec=$lt_archiver_list_spec
35807
cristy73bd4a52010-10-05 11:24:23 +000035808# A symbol stripping program.
35809STRIP=$lt_STRIP
35810
35811# Commands used to install an old-style archive.
35812RANLIB=$lt_RANLIB
35813old_postinstall_cmds=$lt_old_postinstall_cmds
35814old_postuninstall_cmds=$lt_old_postuninstall_cmds
35815
cristy0c60a692010-11-04 01:09:47 +000035816# Whether to use a lock for old archive extraction.
35817lock_old_archive_extraction=$lock_old_archive_extraction
35818
cristy73bd4a52010-10-05 11:24:23 +000035819# A C compiler.
35820LTCC=$lt_CC
35821
35822# LTCC compiler flags.
35823LTCFLAGS=$lt_CFLAGS
35824
35825# Take the output of nm and produce a listing of raw symbols and C names.
35826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35827
35828# Transform the output of nm in a proper C declaration.
35829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35830
35831# Transform the output of nm in a C name address pair.
35832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35833
35834# Transform the output of nm in a C name address pair when lib prefix is needed.
35835global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35836
cristyda16f162011-02-19 23:52:17 +000035837# Specify filename containing input files for \$NM.
35838nm_file_list_spec=$lt_nm_file_list_spec
35839
35840# The root where to search for dependent libraries,and in which our libraries should be installed.
35841lt_sysroot=$lt_sysroot
35842
cristy73bd4a52010-10-05 11:24:23 +000035843# The name of the directory that contains temporary libtool files.
35844objdir=$objdir
35845
cristy73bd4a52010-10-05 11:24:23 +000035846# Used to examine libraries when file_magic_cmd begins with "file".
35847MAGIC_CMD=$MAGIC_CMD
35848
35849# Must we lock files when doing compilation?
35850need_locks=$lt_need_locks
35851
cristyda16f162011-02-19 23:52:17 +000035852# Manifest tool.
35853MANIFEST_TOOL=$lt_MANIFEST_TOOL
35854
cristy73bd4a52010-10-05 11:24:23 +000035855# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35856DSYMUTIL=$lt_DSYMUTIL
35857
35858# Tool to change global to local symbols on Mac OS X.
35859NMEDIT=$lt_NMEDIT
35860
35861# Tool to manipulate fat objects and archives on Mac OS X.
35862LIPO=$lt_LIPO
35863
35864# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35865OTOOL=$lt_OTOOL
35866
35867# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35868OTOOL64=$lt_OTOOL64
35869
35870# Old archive suffix (normally "a").
35871libext=$libext
35872
35873# Shared library suffix (normally ".so").
35874shrext_cmds=$lt_shrext_cmds
35875
35876# The commands to extract the exported symbol list from a shared archive.
35877extract_expsyms_cmds=$lt_extract_expsyms_cmds
35878
35879# Variables whose values should be saved in libtool wrapper scripts and
35880# restored at link time.
35881variables_saved_for_relink=$lt_variables_saved_for_relink
35882
35883# Do we need the "lib" prefix for modules?
35884need_lib_prefix=$need_lib_prefix
35885
35886# Do we need a version for libraries?
35887need_version=$need_version
35888
35889# Library versioning type.
35890version_type=$version_type
35891
35892# Shared library runtime path variable.
35893runpath_var=$runpath_var
35894
35895# Shared library path variable.
35896shlibpath_var=$shlibpath_var
35897
35898# Is shlibpath searched before the hard-coded library search path?
35899shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35900
35901# Format of library name prefix.
35902libname_spec=$lt_libname_spec
35903
35904# List of archive names. First name is the real one, the rest are links.
35905# The last name is the one that the linker finds with -lNAME
35906library_names_spec=$lt_library_names_spec
35907
35908# The coded name of the library, if different from the real name.
35909soname_spec=$lt_soname_spec
35910
cristy0c60a692010-11-04 01:09:47 +000035911# Permission mode override for installation of shared libraries.
35912install_override_mode=$lt_install_override_mode
35913
cristy73bd4a52010-10-05 11:24:23 +000035914# Command to use after installation of a shared archive.
35915postinstall_cmds=$lt_postinstall_cmds
35916
35917# Command to use after uninstallation of a shared archive.
35918postuninstall_cmds=$lt_postuninstall_cmds
35919
35920# Commands used to finish a libtool library installation in a directory.
35921finish_cmds=$lt_finish_cmds
35922
35923# As "finish_cmds", except a single script fragment to be evaled but
35924# not shown.
35925finish_eval=$lt_finish_eval
35926
35927# Whether we should hardcode library paths into libraries.
35928hardcode_into_libs=$hardcode_into_libs
35929
35930# Compile-time system search path for libraries.
35931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35932
35933# Run-time system search path for libraries.
35934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35935
35936# Whether dlopen is supported.
35937dlopen_support=$enable_dlopen
35938
35939# Whether dlopen of programs is supported.
35940dlopen_self=$enable_dlopen_self
35941
35942# Whether dlopen of statically linked programs is supported.
35943dlopen_self_static=$enable_dlopen_self_static
35944
35945# Commands to strip libraries.
35946old_striplib=$lt_old_striplib
35947striplib=$lt_striplib
35948
35949
35950# The linker used to build libraries.
35951LD=$lt_LD
35952
cristy0c60a692010-11-04 01:09:47 +000035953# How to create reloadable object files.
35954reload_flag=$lt_reload_flag
35955reload_cmds=$lt_reload_cmds
35956
cristy73bd4a52010-10-05 11:24:23 +000035957# Commands used to build an old-style archive.
35958old_archive_cmds=$lt_old_archive_cmds
35959
35960# A language specific compiler.
35961CC=$lt_compiler
35962
35963# Is the compiler the GNU compiler?
35964with_gcc=$GCC
35965
35966# Compiler flag to turn off builtin functions.
35967no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35968
cristy73bd4a52010-10-05 11:24:23 +000035969# Additional compiler flags for building library objects.
35970pic_flag=$lt_lt_prog_compiler_pic
35971
cristyda16f162011-02-19 23:52:17 +000035972# How to pass a linker flag through the compiler.
35973wl=$lt_lt_prog_compiler_wl
35974
cristy73bd4a52010-10-05 11:24:23 +000035975# Compiler flag to prevent dynamic linking.
35976link_static_flag=$lt_lt_prog_compiler_static
35977
35978# Does compiler simultaneously support -c and -o options?
35979compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35980
35981# Whether or not to add -lc for building shared libraries.
35982build_libtool_need_lc=$archive_cmds_need_lc
35983
35984# Whether or not to disallow shared libs when runtime libs are static.
35985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35986
35987# Compiler flag to allow reflexive dlopens.
35988export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35989
35990# Compiler flag to generate shared objects directly from archives.
35991whole_archive_flag_spec=$lt_whole_archive_flag_spec
35992
35993# Whether the compiler copes with passing no objects directly.
35994compiler_needs_object=$lt_compiler_needs_object
35995
35996# Create an old-style archive from a shared archive.
35997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35998
35999# Create a temporary old-style archive to link instead of a shared archive.
36000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36001
36002# Commands used to build a shared archive.
36003archive_cmds=$lt_archive_cmds
36004archive_expsym_cmds=$lt_archive_expsym_cmds
36005
36006# Commands used to build a loadable module if different from building
36007# a shared archive.
36008module_cmds=$lt_module_cmds
36009module_expsym_cmds=$lt_module_expsym_cmds
36010
36011# Whether we are building with GNU ld or not.
36012with_gnu_ld=$lt_with_gnu_ld
36013
36014# Flag that allows shared libraries with undefined symbols to be built.
36015allow_undefined_flag=$lt_allow_undefined_flag
36016
36017# Flag that enforces no undefined symbols.
36018no_undefined_flag=$lt_no_undefined_flag
36019
36020# Flag to hardcode \$libdir into a binary during linking.
36021# This must work even if \$libdir does not exist
36022hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36023
36024# If ld is used when linking, flag to hardcode \$libdir into a binary
36025# during linking. This must work even if \$libdir does not exist.
36026hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36027
36028# Whether we need a single "-rpath" flag with a separated argument.
36029hardcode_libdir_separator=$lt_hardcode_libdir_separator
36030
36031# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36032# DIR into the resulting binary.
36033hardcode_direct=$hardcode_direct
36034
36035# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36036# DIR into the resulting binary and the resulting library dependency is
36037# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36038# library is relocated.
36039hardcode_direct_absolute=$hardcode_direct_absolute
36040
36041# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36042# into the resulting binary.
36043hardcode_minus_L=$hardcode_minus_L
36044
36045# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36046# into the resulting binary.
36047hardcode_shlibpath_var=$hardcode_shlibpath_var
36048
36049# Set to "yes" if building a shared library automatically hardcodes DIR
36050# into the library and all subsequent libraries and executables linked
36051# against it.
36052hardcode_automatic=$hardcode_automatic
36053
36054# Set to yes if linker adds runtime paths of dependent libraries
36055# to runtime path list.
36056inherit_rpath=$inherit_rpath
36057
36058# Whether libtool must link a program against all its dependency libraries.
36059link_all_deplibs=$link_all_deplibs
36060
cristy73bd4a52010-10-05 11:24:23 +000036061# Set to "yes" if exported symbols are required.
36062always_export_symbols=$always_export_symbols
36063
36064# The commands to list exported symbols.
36065export_symbols_cmds=$lt_export_symbols_cmds
36066
36067# Symbols that should not be listed in the preloaded symbols.
36068exclude_expsyms=$lt_exclude_expsyms
36069
36070# Symbols that must always be exported.
36071include_expsyms=$lt_include_expsyms
36072
36073# Commands necessary for linking programs (against libraries) with templates.
36074prelink_cmds=$lt_prelink_cmds
36075
cristyda16f162011-02-19 23:52:17 +000036076# Commands necessary for finishing linking programs.
36077postlink_cmds=$lt_postlink_cmds
36078
cristy73bd4a52010-10-05 11:24:23 +000036079# Specify filename containing input files.
36080file_list_spec=$lt_file_list_spec
36081
36082# How to hardcode a shared library path into an executable.
36083hardcode_action=$hardcode_action
36084
36085# The directories searched by this compiler when creating a shared library.
36086compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36087
36088# Dependencies to place before and after the objects being linked to
36089# create a shared library.
36090predep_objects=$lt_predep_objects
36091postdep_objects=$lt_postdep_objects
36092predeps=$lt_predeps
36093postdeps=$lt_postdeps
36094
36095# The library search path used internally by the compiler when linking
36096# a shared library.
36097compiler_lib_search_path=$lt_compiler_lib_search_path
36098
36099# ### END LIBTOOL CONFIG
36100
36101_LT_EOF
36102
36103 case $host_os in
36104 aix3*)
36105 cat <<\_LT_EOF >> "$cfgfile"
36106# AIX sometimes has problems with the GCC collect2 program. For some
36107# reason, if we set the COLLECT_NAMES environment variable, the problems
36108# vanish in a puff of smoke.
36109if test "X${COLLECT_NAMES+set}" != Xset; then
36110 COLLECT_NAMES=
36111 export COLLECT_NAMES
36112fi
36113_LT_EOF
36114 ;;
36115 esac
36116
36117
36118ltmain="$ac_aux_dir/ltmain.sh"
36119
36120
36121 # We use sed instead of cat because bash on DJGPP gets confused if
36122 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36123 # text mode, it properly converts lines to CR/LF. This bash problem
36124 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036125 sed '$q' "$ltmain" >> "$cfgfile" \
36126 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036127
cristyda16f162011-02-19 23:52:17 +000036128 if test x"$xsi_shell" = xyes; then
36129 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36130func_dirname ()\
36131{\
36132\ case ${1} in\
36133\ */*) func_dirname_result="${1%/*}${2}" ;;\
36134\ * ) func_dirname_result="${3}" ;;\
36135\ esac\
36136} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36137 && mv -f "$cfgfile.tmp" "$cfgfile" \
36138 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36139test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036140
36141
cristyda16f162011-02-19 23:52:17 +000036142 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36143func_basename ()\
36144{\
36145\ func_basename_result="${1##*/}"\
36146} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36147 && mv -f "$cfgfile.tmp" "$cfgfile" \
36148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36149test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036150
36151
cristyda16f162011-02-19 23:52:17 +000036152 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36153func_dirname_and_basename ()\
36154{\
36155\ case ${1} in\
36156\ */*) func_dirname_result="${1%/*}${2}" ;;\
36157\ * ) func_dirname_result="${3}" ;;\
36158\ esac\
36159\ func_basename_result="${1##*/}"\
36160} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36161 && mv -f "$cfgfile.tmp" "$cfgfile" \
36162 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36163test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036164
cristyda16f162011-02-19 23:52:17 +000036165
36166 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36167func_stripname ()\
36168{\
36169\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36170\ # positional parameters, so assign one to ordinary parameter first.\
36171\ func_stripname_result=${3}\
36172\ func_stripname_result=${func_stripname_result#"${1}"}\
36173\ func_stripname_result=${func_stripname_result%"${2}"}\
36174} # Extended-shell func_stripname 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=:
36178
36179
36180 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36181func_split_long_opt ()\
36182{\
36183\ func_split_long_opt_name=${1%%=*}\
36184\ func_split_long_opt_arg=${1#*=}\
36185} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36186 && mv -f "$cfgfile.tmp" "$cfgfile" \
36187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36188test 0 -eq $? || _lt_function_replace_fail=:
36189
36190
36191 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36192func_split_short_opt ()\
36193{\
36194\ func_split_short_opt_arg=${1#??}\
36195\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36196} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36197 && mv -f "$cfgfile.tmp" "$cfgfile" \
36198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36199test 0 -eq $? || _lt_function_replace_fail=:
36200
36201
36202 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36203func_lo2o ()\
36204{\
36205\ case ${1} in\
36206\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36207\ *) func_lo2o_result=${1} ;;\
36208\ esac\
36209} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36210 && mv -f "$cfgfile.tmp" "$cfgfile" \
36211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36212test 0 -eq $? || _lt_function_replace_fail=:
36213
36214
36215 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36216func_xform ()\
36217{\
36218 func_xform_result=${1%.*}.lo\
36219} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36220 && mv -f "$cfgfile.tmp" "$cfgfile" \
36221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36222test 0 -eq $? || _lt_function_replace_fail=:
36223
36224
36225 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36226func_arith ()\
36227{\
36228 func_arith_result=$(( $* ))\
36229} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36230 && mv -f "$cfgfile.tmp" "$cfgfile" \
36231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36232test 0 -eq $? || _lt_function_replace_fail=:
36233
36234
36235 sed -e '/^func_len ()$/,/^} # func_len /c\
36236func_len ()\
36237{\
36238 func_len_result=${#1}\
36239} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36240 && mv -f "$cfgfile.tmp" "$cfgfile" \
36241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36242test 0 -eq $? || _lt_function_replace_fail=:
36243
36244fi
36245
36246if test x"$lt_shell_append" = xyes; then
36247 sed -e '/^func_append ()$/,/^} # func_append /c\
36248func_append ()\
36249{\
36250 eval "${1}+=\\${2}"\
36251} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36252 && mv -f "$cfgfile.tmp" "$cfgfile" \
36253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36254test 0 -eq $? || _lt_function_replace_fail=:
36255
36256
36257 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36258func_append_quoted ()\
36259{\
36260\ func_quote_for_eval "${2}"\
36261\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36262} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36263 && mv -f "$cfgfile.tmp" "$cfgfile" \
36264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36265test 0 -eq $? || _lt_function_replace_fail=:
36266
36267
36268 # Save a `func_append' function call where possible by direct use of '+='
36269 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36270 && mv -f "$cfgfile.tmp" "$cfgfile" \
36271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36272 test 0 -eq $? || _lt_function_replace_fail=:
36273else
36274 # Save a `func_append' function call even when '+=' is not available
36275 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36276 && mv -f "$cfgfile.tmp" "$cfgfile" \
36277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36278 test 0 -eq $? || _lt_function_replace_fail=:
36279fi
36280
36281if test x"$_lt_function_replace_fail" = x":"; then
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36283$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36284fi
36285
36286
36287 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036288 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36289 chmod +x "$ofile"
36290
36291
36292 cat <<_LT_EOF >> "$ofile"
36293
36294# ### BEGIN LIBTOOL TAG CONFIG: CXX
36295
36296# The linker used to build libraries.
36297LD=$lt_LD_CXX
36298
cristy0c60a692010-11-04 01:09:47 +000036299# How to create reloadable object files.
36300reload_flag=$lt_reload_flag_CXX
36301reload_cmds=$lt_reload_cmds_CXX
36302
cristy73bd4a52010-10-05 11:24:23 +000036303# Commands used to build an old-style archive.
36304old_archive_cmds=$lt_old_archive_cmds_CXX
36305
36306# A language specific compiler.
36307CC=$lt_compiler_CXX
36308
36309# Is the compiler the GNU compiler?
36310with_gcc=$GCC_CXX
36311
36312# Compiler flag to turn off builtin functions.
36313no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36314
cristy73bd4a52010-10-05 11:24:23 +000036315# Additional compiler flags for building library objects.
36316pic_flag=$lt_lt_prog_compiler_pic_CXX
36317
cristyda16f162011-02-19 23:52:17 +000036318# How to pass a linker flag through the compiler.
36319wl=$lt_lt_prog_compiler_wl_CXX
36320
cristy73bd4a52010-10-05 11:24:23 +000036321# Compiler flag to prevent dynamic linking.
36322link_static_flag=$lt_lt_prog_compiler_static_CXX
36323
36324# Does compiler simultaneously support -c and -o options?
36325compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36326
36327# Whether or not to add -lc for building shared libraries.
36328build_libtool_need_lc=$archive_cmds_need_lc_CXX
36329
36330# Whether or not to disallow shared libs when runtime libs are static.
36331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36332
36333# Compiler flag to allow reflexive dlopens.
36334export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36335
36336# Compiler flag to generate shared objects directly from archives.
36337whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36338
36339# Whether the compiler copes with passing no objects directly.
36340compiler_needs_object=$lt_compiler_needs_object_CXX
36341
36342# Create an old-style archive from a shared archive.
36343old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36344
36345# Create a temporary old-style archive to link instead of a shared archive.
36346old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36347
36348# Commands used to build a shared archive.
36349archive_cmds=$lt_archive_cmds_CXX
36350archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36351
36352# Commands used to build a loadable module if different from building
36353# a shared archive.
36354module_cmds=$lt_module_cmds_CXX
36355module_expsym_cmds=$lt_module_expsym_cmds_CXX
36356
36357# Whether we are building with GNU ld or not.
36358with_gnu_ld=$lt_with_gnu_ld_CXX
36359
36360# Flag that allows shared libraries with undefined symbols to be built.
36361allow_undefined_flag=$lt_allow_undefined_flag_CXX
36362
36363# Flag that enforces no undefined symbols.
36364no_undefined_flag=$lt_no_undefined_flag_CXX
36365
36366# Flag to hardcode \$libdir into a binary during linking.
36367# This must work even if \$libdir does not exist
36368hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36369
36370# If ld is used when linking, flag to hardcode \$libdir into a binary
36371# during linking. This must work even if \$libdir does not exist.
36372hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36373
36374# Whether we need a single "-rpath" flag with a separated argument.
36375hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36376
36377# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36378# DIR into the resulting binary.
36379hardcode_direct=$hardcode_direct_CXX
36380
36381# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36382# DIR into the resulting binary and the resulting library dependency is
36383# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36384# library is relocated.
36385hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36386
36387# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36388# into the resulting binary.
36389hardcode_minus_L=$hardcode_minus_L_CXX
36390
36391# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36392# into the resulting binary.
36393hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36394
36395# Set to "yes" if building a shared library automatically hardcodes DIR
36396# into the library and all subsequent libraries and executables linked
36397# against it.
36398hardcode_automatic=$hardcode_automatic_CXX
36399
36400# Set to yes if linker adds runtime paths of dependent libraries
36401# to runtime path list.
36402inherit_rpath=$inherit_rpath_CXX
36403
36404# Whether libtool must link a program against all its dependency libraries.
36405link_all_deplibs=$link_all_deplibs_CXX
36406
cristy73bd4a52010-10-05 11:24:23 +000036407# Set to "yes" if exported symbols are required.
36408always_export_symbols=$always_export_symbols_CXX
36409
36410# The commands to list exported symbols.
36411export_symbols_cmds=$lt_export_symbols_cmds_CXX
36412
36413# Symbols that should not be listed in the preloaded symbols.
36414exclude_expsyms=$lt_exclude_expsyms_CXX
36415
36416# Symbols that must always be exported.
36417include_expsyms=$lt_include_expsyms_CXX
36418
36419# Commands necessary for linking programs (against libraries) with templates.
36420prelink_cmds=$lt_prelink_cmds_CXX
36421
cristyda16f162011-02-19 23:52:17 +000036422# Commands necessary for finishing linking programs.
36423postlink_cmds=$lt_postlink_cmds_CXX
36424
cristy73bd4a52010-10-05 11:24:23 +000036425# Specify filename containing input files.
36426file_list_spec=$lt_file_list_spec_CXX
36427
36428# How to hardcode a shared library path into an executable.
36429hardcode_action=$hardcode_action_CXX
36430
36431# The directories searched by this compiler when creating a shared library.
36432compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36433
36434# Dependencies to place before and after the objects being linked to
36435# create a shared library.
36436predep_objects=$lt_predep_objects_CXX
36437postdep_objects=$lt_postdep_objects_CXX
36438predeps=$lt_predeps_CXX
36439postdeps=$lt_postdeps_CXX
36440
36441# The library search path used internally by the compiler when linking
36442# a shared library.
36443compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36444
36445# ### END LIBTOOL TAG CONFIG: CXX
36446_LT_EOF
36447
36448 ;;
cristy3ed852e2009-09-05 21:47:34 +000036449 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36450 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36451 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36452 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36453 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36454 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36455
36456 esac
36457done # for ac_tag
36458
36459
cristy8b350f62009-11-15 23:12:43 +000036460as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036461_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036462ac_clean_files=$ac_clean_files_save
36463
36464test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036465 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036466
36467
36468# configure is writing to config.log, and then calls config.status.
36469# config.status does its own redirection, appending to config.log.
36470# Unfortunately, on DOS this fails, as config.log is still kept open
36471# by configure, so config.status won't be able to write to it; its
36472# output is simply discarded. So we exec the FD to /dev/null,
36473# effectively closing config.log, so it can be properly (re)opened and
36474# appended to by config.status. When coming back to configure, we
36475# need to make the FD available again.
36476if test "$no_create" != yes; then
36477 ac_cs_success=:
36478 ac_config_status_args=
36479 test "$silent" = yes &&
36480 ac_config_status_args="$ac_config_status_args --quiet"
36481 exec 5>/dev/null
36482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36483 exec 5>>config.log
36484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36485 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036486 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036487fi
36488if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036490$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36491fi
36492
36493
36494rm -f magick-version
36495
cristy430a7312010-01-21 20:44:04 +000036496result_dejavu_font_dir='none'
36497if test "${dejavu_font_dir}x" != 'x'; then
36498 result_dejavu_font_dir=$dejavu_font_dir
36499fi
36500
cristy3ed852e2009-09-05 21:47:34 +000036501result_ghostscript_font_dir='none'
36502if test "${ghostscript_font_dir}x" != 'x'; then
36503 result_ghostscript_font_dir=$ghostscript_font_dir
36504fi
36505
36506result_windows_font_dir='none'
36507if test "${windows_font_dir}x" != 'x'; then
36508 result_windows_font_dir=${windows_font_dir}
36509fi
36510
cristy8b350f62009-11-15 23:12:43 +000036511{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036512ImageMagick is configured as follows. Please verify that this configuration
36513matches your expectations.
36514
36515Host system type: $host
36516Build system type: $build
36517
36518 Option Value
36519-------------------------------------------------------------------------------
36520Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36521Static libraries --enable-static=$enable_static $libtool_build_static_libs
36522Module support --with-modules=$with_modules $with_modules
36523GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36524Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36525High Dynamic Range Imagery
36526 --enable-hdri=$enable_hdri $enable_hdri
36527
36528Delegate Configuration:
36529BZLIB --with-bzlib=$with_bzlib $have_bzlib
36530Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036531Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036532DJVU --with-djvu=$with_djvu $have_djvu
36533DPS --with-dps=$with_dps $have_dps
36534FFTW --with-fftw=$with_fftw $have_fftw
36535FlashPIX --with-fpx=$with_fpx $have_fpx
36536FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36537FreeType --with-freetype=$with_freetype $have_freetype
36538GhostPCL None $PCLDelegate ($PCLVersion)
36539GhostXPS None $XPSDelegate ($XPSVersion)
36540Ghostscript None $PSDelegate ($GSVersion)
36541Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36542Ghostscript lib --with-gslib=$with_gslib $have_gslib
36543Graphviz --with-gvc=$with_gvc $have_gvc
36544JBIG --with-jbig=$with_jbig $have_jbig
36545JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36546JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036547LCMS v1 --with-lcms=$with_lcms $have_lcms
36548LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036549LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036550LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036551Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36552OpenEXR --with-openexr=$with_openexr $have_openexr
36553PERL --with-perl=$with_perl $have_perl
36554PNG --with-png=$with_png $have_png
36555RSVG --with-rsvg=$with_rsvg $have_rsvg
36556TIFF --with-tiff=$with_tiff $have_tiff
36557Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36558WMF --with-wmf=$with_wmf $have_wmf
36559X11 --with-x=$with_x $have_x
36560XML --with-xml=$with_xml $have_xml
36561ZLIB --with-zlib=$with_zlib $have_zlib
36562
36563X11 Configuration:
36564 X_CFLAGS = $X_CFLAGS
36565 X_PRE_LIBS = $X_PRE_LIBS
36566 X_LIBS = $X_LIBS
36567 X_EXTRA_LIBS = $X_EXTRA_LIBS
36568
36569Options used to compile and link:
36570 PREFIX = $PREFIX_DIR
36571 EXEC-PREFIX = $EXEC_PREFIX_DIR
36572 VERSION = $PACKAGE_VERSION
36573 CC = $CC
36574 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036575 CPPFLAGS = $MAGICK_CPPFLAGS
36576 PCFLAGS = $MAGICK_PCFLAGS
36577 DEFS = $DEFS
36578 LDFLAGS = $LDFLAGS
36579 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36580 LIBS = $MAGICK_LIBS
36581 CXX = $CXX
36582 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036583 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036584" >&5
36585$as_echo "
36586ImageMagick is configured as follows. Please verify that this configuration
36587matches your expectations.
36588
36589Host system type: $host
36590Build system type: $build
36591
36592 Option Value
36593-------------------------------------------------------------------------------
36594Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36595Static libraries --enable-static=$enable_static $libtool_build_static_libs
36596Module support --with-modules=$with_modules $with_modules
36597GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36598Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36599High Dynamic Range Imagery
36600 --enable-hdri=$enable_hdri $enable_hdri
36601
36602Delegate Configuration:
36603BZLIB --with-bzlib=$with_bzlib $have_bzlib
36604Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036605Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036606DJVU --with-djvu=$with_djvu $have_djvu
36607DPS --with-dps=$with_dps $have_dps
36608FFTW --with-fftw=$with_fftw $have_fftw
36609FlashPIX --with-fpx=$with_fpx $have_fpx
36610FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36611FreeType --with-freetype=$with_freetype $have_freetype
36612GhostPCL None $PCLDelegate ($PCLVersion)
36613GhostXPS None $XPSDelegate ($XPSVersion)
36614Ghostscript None $PSDelegate ($GSVersion)
36615Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36616Ghostscript lib --with-gslib=$with_gslib $have_gslib
36617Graphviz --with-gvc=$with_gvc $have_gvc
36618JBIG --with-jbig=$with_jbig $have_jbig
36619JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36620JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036621LCMS v1 --with-lcms=$with_lcms $have_lcms
36622LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036623LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036624LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036625Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36626OpenEXR --with-openexr=$with_openexr $have_openexr
36627PERL --with-perl=$with_perl $have_perl
36628PNG --with-png=$with_png $have_png
36629RSVG --with-rsvg=$with_rsvg $have_rsvg
36630TIFF --with-tiff=$with_tiff $have_tiff
36631Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36632WMF --with-wmf=$with_wmf $have_wmf
36633X11 --with-x=$with_x $have_x
36634XML --with-xml=$with_xml $have_xml
36635ZLIB --with-zlib=$with_zlib $have_zlib
36636
36637X11 Configuration:
36638 X_CFLAGS = $X_CFLAGS
36639 X_PRE_LIBS = $X_PRE_LIBS
36640 X_LIBS = $X_LIBS
36641 X_EXTRA_LIBS = $X_EXTRA_LIBS
36642
36643Options used to compile and link:
36644 PREFIX = $PREFIX_DIR
36645 EXEC-PREFIX = $EXEC_PREFIX_DIR
36646 VERSION = $PACKAGE_VERSION
36647 CC = $CC
36648 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036649 CPPFLAGS = $MAGICK_CPPFLAGS
36650 PCFLAGS = $MAGICK_PCFLAGS
36651 DEFS = $DEFS
36652 LDFLAGS = $LDFLAGS
36653 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36654 LIBS = $MAGICK_LIBS
36655 CXX = $CXX
36656 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036657 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036658" >&6; }