blob: 757e3abb7cafd8bbdbabd4cf72fb3625faffb3be [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000756PANGOFT2_DELEGATE_FALSE
757PANGOFT2_DELEGATE_TRUE
758PANGO_DELEGATE_FALSE
759PANGO_DELEGATE_TRUE
760PANGO_LIBS
761PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000762OPENEXR_DELEGATE_FALSE
763OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764OPENEXR_LIBS
765OPENEXR_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000766LZMA_LIBS
cristyfbb0ef02010-12-19 02:32:11 +0000767LZMA_DELEGATE_FALSE
768LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000769LQR_DELEGATE_FALSE
770LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771LQR_LIBS
772LQR_CFLAGS
773LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774LCMS_DELEGATE_FALSE
775LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JP2_DELEGATE_FALSE
778JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000779JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000780JPEG_DELEGATE_FALSE
781JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783JBIG_DELEGATE_FALSE
784JBIG_DELEGATE_TRUE
785GVC_DELEGATE_FALSE
786GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787GVC_LIBS
788GVC_CFLAGS
789GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000790GS_DELEGATE_FALSE
791GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000793FREETYPE_DELEGATE_FALSE
794FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000795freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000796FONTCONFIG_DELEGATE_FALSE
797FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FONTCONFIG_LIBS
799FONTCONFIG_CFLAGS
800FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801FPX_DELEGATE_FALSE
802FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804FFTW_DELEGATE_FALSE
805FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807DJVU_DELEGATE_FALSE
808DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810DPS_DELEGATE_FALSE
811DPS_DELEGATE_TRUE
812AUTOTRACE_DELEGATE_FALSE
813AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814AUTOTRACE_LIBS
815AUTOTRACE_CFLAGS
816LIB_DL
817ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818ZLIB_DELEGATE_FALSE
819ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820XEXT_LIBS
821X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822X11_DELEGATE_FALSE
823X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824X_EXTRA_LIBS
825X_LIBS
826X_PRE_LIBS
827X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000828XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000829BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830BZLIB_DELEGATE_FALSE
831BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832CCMALLOCDelegate
833UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834HasUMEM_FALSE
835HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836THREAD_LIBS
837GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838WITH_MAGICK_PLUS_PLUS_FALSE
839WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000841MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000842POW_LIB
843LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000844UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000845UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000848UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000850INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000851INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT32_T
856UINT16_T
857INT16_T
858UINT8_T
859INT8_T
860LIBRARY_EXTRA_CPPFLAGS
861MODULE_EXTRA_CPPFLAGS
862LIBSTDCLDFLAGS
863PERL_MAKE_OPTIONS
864QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000865MAINT
866MAINTAINER_MODE_FALSE
867MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868MAGICK_HDRI
869DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000870WITH_LTDL_FALSE
871WITH_LTDL_TRUE
872WITH_MODULES_FALSE
873WITH_MODULES_TRUE
874WITH_SHARED_LIBS_FALSE
875WITH_SHARED_LIBS_TRUE
876LTDLOPEN
877LT_CONFIG_H
878CONVENIENCE_LTDL_FALSE
879CONVENIENCE_LTDL_TRUE
880INSTALL_LTDL_FALSE
881INSTALL_LTDL_TRUE
882ARGZ_H
883sys_symbol_underscore
884LIBADD_DL
885LT_DLPREOPEN
886LIBADD_DLD_LINK
887LIBADD_SHL_LOAD
888LIBADD_DLOPEN
889LT_DLLOADERS
890INCLTDL
891LTDLINCL
892LTDLDEPS
893LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000894LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000895CXXCPP
896OTOOL64
897OTOOL
898LIPO
899NMEDIT
900DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000901MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000902RANLIB
cristyda16f162011-02-19 23:52:17 +0000903ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000904AR
905NM
906ac_ct_DUMPBIN
907DUMPBIN
908LIBTOOL
909OBJDUMP
910DLLTOOL
911AS
cristy3ed852e2009-09-05 21:47:34 +0000912LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000913CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000914CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000915OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000916PTHREAD_CFLAGS
917PTHREAD_LIBS
918PTHREAD_CC
919ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000920WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000921USING_CL_FALSE
922USING_CL_TRUE
923CYGWIN_BUILD_FALSE
924CYGWIN_BUILD_TRUE
925WIN32_NATIVE_BUILD_FALSE
926WIN32_NATIVE_BUILD_TRUE
927WINGDI32_DELEGATE_FALSE
928WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000930PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000931LN_S
cristy3ed852e2009-09-05 21:47:34 +0000932LD
cristy73bd4a52010-10-05 11:24:23 +0000933FGREP
934SED
935am__fastdepCXX_FALSE
936am__fastdepCXX_TRUE
937CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000938ac_ct_CXX
939CXXFLAGS
940CXX
cristya0b81c32010-01-22 02:54:33 +0000941EGREP
942GREP
943CPP
cristy73bd4a52010-10-05 11:24:23 +0000944am__fastdepCC_FALSE
945am__fastdepCC_TRUE
946CCDEPMODE
947AMDEPBACKSLASH
948AMDEP_FALSE
949AMDEP_TRUE
950am__quote
951am__include
952DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000953OBJEXT
954EXEEXT
955ac_ct_CC
956CPPFLAGS
957LDFLAGS
958CFLAGS
959CC
960DIRSEP
961MAGICK_FILTER_MODULE_PATH
962MAGICK_CONFIGURE_BUILD_PATH
963MAGICK_CONFIGURE_SRC_PATH
964MAGICK_CODER_MODULE_PATH
965MAN_DIR
966INFO_DIR
967PERSISTINCLUDE_DIR
968INCLUDE_DIR
969LIB_DIR
970LOCALSTATE_DIR
971SHAREDSTATE_DIR
972SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000973DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000974DATA_DIR
975LIBEXEC_DIR
976SBIN_DIR
977BIN_DIR
978EXEC_PREFIX_DIR
979PREFIX_DIR
980CONFIG_STATUS_DEPENDENCIES
981MAGICK_LIB_VERSION_NUMBER
982MAGICK_LIB_VERSION_TEXT
983MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000984AM_BACKSLASH
985AM_DEFAULT_VERBOSITY
986am__untar
987am__tar
988AMTAR
989am__leading_dot
990SET_MAKE
991AWK
992mkdir_p
993MKDIR_P
994INSTALL_STRIP_PROGRAM
995STRIP
996install_sh
997MAKEINFO
998AUTOHEADER
999AUTOMAKE
1000AUTOCONF
1001ACLOCAL
1002VERSION
1003PACKAGE
1004CYGPATH_W
1005am__isrc
1006INSTALL_DATA
1007INSTALL_SCRIPT
1008INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001009PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001010PACKAGE_RELEASE_DATE
1011PACKAGE_LIB_VERSION_NUMBER
1012PACKAGE_LIB_VERSION
1013PACKAGE_CHANGE_DATE
1014PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001015PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001016MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001017MAGICK_LIBRARY_VERSION_INFO
1018MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001019MAGICK_LIBRARY_AGE
1020MAGICK_LIBRARY_REVISION
1021MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001022MAGICK_TARGET_OS
1023MAGICK_TARGET_VENDOR
1024MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001025target_os
1026target_vendor
1027target_cpu
1028target
1029host_os
1030host_vendor
1031host_cpu
1032host
1033build_os
1034build_vendor
1035build_cpu
1036build
1037CONFIGURE_ARGS
1038DISTCHECK_CONFIG_FLAGS
1039target_alias
1040host_alias
1041build_alias
1042LIBS
1043ECHO_T
1044ECHO_N
1045ECHO_C
1046DEFS
1047mandir
1048localedir
1049libdir
1050psdir
1051pdfdir
1052dvidir
1053htmldir
1054infodir
1055docdir
1056oldincludedir
1057includedir
1058localstatedir
1059sharedstatedir
1060sysconfdir
1061datadir
1062datarootdir
1063libexecdir
1064sbindir
1065bindir
1066program_transform_name
1067prefix
1068exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001069PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001070PACKAGE_BUGREPORT
1071PACKAGE_STRING
1072PACKAGE_VERSION
1073PACKAGE_TARNAME
1074PACKAGE_NAME
1075PATH_SEPARATOR
1076SHELL'
1077ac_subst_files=''
1078ac_user_opts='
1079enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001080enable_silent_rules
1081enable_dependency_tracking
1082with_gnu_ld
1083with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001084enable_bounds_checking
1085enable_osx_universal_binary
1086with_threads
1087enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001088enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001089enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001090enable_shared
1091enable_static
1092with_pic
1093enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001094with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001095enable_libtool_lock
1096with_included_ltdl
1097with_ltdl_include
1098with_ltdl_lib
1099enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001100with_modules
1101enable_delegate_build
1102enable_deprecated
1103enable_installed
1104enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001105enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001106enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001107enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001108enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001109enable_ccmalloc
1110enable_efence
1111enable_prof
1112enable_gprof
1113enable_gcov
1114with_method_prefix
1115with_quantum_depth
1116with_cache
1117with_frozenpaths
1118with_magick_plus_plus
1119with_perl
1120with_perl_options
1121with_umem
1122with_libstdc
1123with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001124with_x
cristy3ed852e2009-09-05 21:47:34 +00001125with_zlib
1126with_autotrace
1127with_dps
1128with_djvu
cristy430a7312010-01-21 20:44:04 +00001129with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001130with_fftw
1131with_fpx
1132with_fontconfig
1133with_freetype
1134with_gslib
1135with_fontpath
1136with_gs_font_dir
1137with_gvc
1138with_jbig
1139with_jpeg
1140with_jp2
1141with_lcms
cristy71203402010-06-18 13:12:03 +00001142with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001143with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001144with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001145with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001146with_pango
cristy3ed852e2009-09-05 21:47:34 +00001147with_png
1148with_rsvg
1149with_tiff
cristyb1860752011-03-14 00:27:46 +00001150with_webp
cristy3ed852e2009-09-05 21:47:34 +00001151with_windows_font_dir
1152with_wmf
1153with_xml
1154'
1155 ac_precious_vars='build_alias
1156host_alias
1157target_alias
1158CC
1159CFLAGS
1160LDFLAGS
1161LIBS
1162CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001163CPP
cristy3ed852e2009-09-05 21:47:34 +00001164CXX
1165CXXFLAGS
1166CCC
cristy73bd4a52010-10-05 11:24:23 +00001167PKG_CONFIG
1168CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001169XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001170AUTOTRACE_CFLAGS
1171AUTOTRACE_LIBS
1172FONTCONFIG_CFLAGS
1173FONTCONFIG_LIBS
1174GVC_CFLAGS
1175GVC_LIBS
1176LQR_CFLAGS
1177LQR_LIBS
1178OPENEXR_CFLAGS
1179OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001180PANGO_CFLAGS
1181PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001182RSVG_CFLAGS
1183RSVG_LIBS
1184CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001185CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001186
1187
1188# Initialize some variables set by options.
1189ac_init_help=
1190ac_init_version=false
1191ac_unrecognized_opts=
1192ac_unrecognized_sep=
1193# The variables have the same names as the options, with
1194# dashes changed to underlines.
1195cache_file=/dev/null
1196exec_prefix=NONE
1197no_create=
1198no_recursion=
1199prefix=NONE
1200program_prefix=NONE
1201program_suffix=NONE
1202program_transform_name=s,x,x,
1203silent=
1204site=
1205srcdir=
1206verbose=
1207x_includes=NONE
1208x_libraries=NONE
1209
1210# Installation directory options.
1211# These are left unexpanded so users can "make install exec_prefix=/foo"
1212# and all the variables that are supposed to be based on exec_prefix
1213# by default will actually change.
1214# Use braces instead of parens because sh, perl, etc. also accept them.
1215# (The list follows the same order as the GNU Coding Standards.)
1216bindir='${exec_prefix}/bin'
1217sbindir='${exec_prefix}/sbin'
1218libexecdir='${exec_prefix}/libexec'
1219datarootdir='${prefix}/share'
1220datadir='${datarootdir}'
1221sysconfdir='${prefix}/etc'
1222sharedstatedir='${prefix}/com'
1223localstatedir='${prefix}/var'
1224includedir='${prefix}/include'
1225oldincludedir='/usr/include'
1226docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1227infodir='${datarootdir}/info'
1228htmldir='${docdir}'
1229dvidir='${docdir}'
1230pdfdir='${docdir}'
1231psdir='${docdir}'
1232libdir='${exec_prefix}/lib'
1233localedir='${datarootdir}/locale'
1234mandir='${datarootdir}/man'
1235
1236ac_prev=
1237ac_dashdash=
1238for ac_option
1239do
1240 # If the previous option needs an argument, assign it.
1241 if test -n "$ac_prev"; then
1242 eval $ac_prev=\$ac_option
1243 ac_prev=
1244 continue
1245 fi
1246
1247 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001248 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1249 *=) ac_optarg= ;;
1250 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001251 esac
1252
1253 # Accept the important Cygnus configure options, so we can diagnose typos.
1254
1255 case $ac_dashdash$ac_option in
1256 --)
1257 ac_dashdash=yes ;;
1258
1259 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1260 ac_prev=bindir ;;
1261 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1262 bindir=$ac_optarg ;;
1263
1264 -build | --build | --buil | --bui | --bu)
1265 ac_prev=build_alias ;;
1266 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1267 build_alias=$ac_optarg ;;
1268
1269 -cache-file | --cache-file | --cache-fil | --cache-fi \
1270 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1271 ac_prev=cache_file ;;
1272 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1273 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1274 cache_file=$ac_optarg ;;
1275
1276 --config-cache | -C)
1277 cache_file=config.cache ;;
1278
1279 -datadir | --datadir | --datadi | --datad)
1280 ac_prev=datadir ;;
1281 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1282 datadir=$ac_optarg ;;
1283
1284 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1285 | --dataroo | --dataro | --datar)
1286 ac_prev=datarootdir ;;
1287 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1288 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1289 datarootdir=$ac_optarg ;;
1290
1291 -disable-* | --disable-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001295 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300"enable_$ac_useropt"
1301"*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval enable_$ac_useropt=no ;;
1306
1307 -docdir | --docdir | --docdi | --doc | --do)
1308 ac_prev=docdir ;;
1309 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1310 docdir=$ac_optarg ;;
1311
1312 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1313 ac_prev=dvidir ;;
1314 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1315 dvidir=$ac_optarg ;;
1316
1317 -enable-* | --enable-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001321 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1325 *"
1326"enable_$ac_useropt"
1327"*) ;;
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1330 esac
1331 eval enable_$ac_useropt=\$ac_optarg ;;
1332
1333 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1334 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1335 | --exec | --exe | --ex)
1336 ac_prev=exec_prefix ;;
1337 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1338 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1339 | --exec=* | --exe=* | --ex=*)
1340 exec_prefix=$ac_optarg ;;
1341
1342 -gas | --gas | --ga | --g)
1343 # Obsolete; use --with-gas.
1344 with_gas=yes ;;
1345
1346 -help | --help | --hel | --he | -h)
1347 ac_init_help=long ;;
1348 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1349 ac_init_help=recursive ;;
1350 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1351 ac_init_help=short ;;
1352
1353 -host | --host | --hos | --ho)
1354 ac_prev=host_alias ;;
1355 -host=* | --host=* | --hos=* | --ho=*)
1356 host_alias=$ac_optarg ;;
1357
1358 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1359 ac_prev=htmldir ;;
1360 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1361 | --ht=*)
1362 htmldir=$ac_optarg ;;
1363
1364 -includedir | --includedir | --includedi | --included | --include \
1365 | --includ | --inclu | --incl | --inc)
1366 ac_prev=includedir ;;
1367 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1368 | --includ=* | --inclu=* | --incl=* | --inc=*)
1369 includedir=$ac_optarg ;;
1370
1371 -infodir | --infodir | --infodi | --infod | --info | --inf)
1372 ac_prev=infodir ;;
1373 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1374 infodir=$ac_optarg ;;
1375
1376 -libdir | --libdir | --libdi | --libd)
1377 ac_prev=libdir ;;
1378 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1379 libdir=$ac_optarg ;;
1380
1381 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1382 | --libexe | --libex | --libe)
1383 ac_prev=libexecdir ;;
1384 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1385 | --libexe=* | --libex=* | --libe=*)
1386 libexecdir=$ac_optarg ;;
1387
1388 -localedir | --localedir | --localedi | --localed | --locale)
1389 ac_prev=localedir ;;
1390 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1391 localedir=$ac_optarg ;;
1392
1393 -localstatedir | --localstatedir | --localstatedi | --localstated \
1394 | --localstate | --localstat | --localsta | --localst | --locals)
1395 ac_prev=localstatedir ;;
1396 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1397 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1398 localstatedir=$ac_optarg ;;
1399
1400 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1401 ac_prev=mandir ;;
1402 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1403 mandir=$ac_optarg ;;
1404
1405 -nfp | --nfp | --nf)
1406 # Obsolete; use --without-fp.
1407 with_fp=no ;;
1408
1409 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1410 | --no-cr | --no-c | -n)
1411 no_create=yes ;;
1412
1413 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1414 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1415 no_recursion=yes ;;
1416
1417 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1418 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1419 | --oldin | --oldi | --old | --ol | --o)
1420 ac_prev=oldincludedir ;;
1421 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1422 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1423 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1424 oldincludedir=$ac_optarg ;;
1425
1426 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1427 ac_prev=prefix ;;
1428 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1429 prefix=$ac_optarg ;;
1430
1431 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1432 | --program-pre | --program-pr | --program-p)
1433 ac_prev=program_prefix ;;
1434 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1435 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1436 program_prefix=$ac_optarg ;;
1437
1438 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1439 | --program-suf | --program-su | --program-s)
1440 ac_prev=program_suffix ;;
1441 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1442 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1443 program_suffix=$ac_optarg ;;
1444
1445 -program-transform-name | --program-transform-name \
1446 | --program-transform-nam | --program-transform-na \
1447 | --program-transform-n | --program-transform- \
1448 | --program-transform | --program-transfor \
1449 | --program-transfo | --program-transf \
1450 | --program-trans | --program-tran \
1451 | --progr-tra | --program-tr | --program-t)
1452 ac_prev=program_transform_name ;;
1453 -program-transform-name=* | --program-transform-name=* \
1454 | --program-transform-nam=* | --program-transform-na=* \
1455 | --program-transform-n=* | --program-transform-=* \
1456 | --program-transform=* | --program-transfor=* \
1457 | --program-transfo=* | --program-transf=* \
1458 | --program-trans=* | --program-tran=* \
1459 | --progr-tra=* | --program-tr=* | --program-t=*)
1460 program_transform_name=$ac_optarg ;;
1461
1462 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1463 ac_prev=pdfdir ;;
1464 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1465 pdfdir=$ac_optarg ;;
1466
1467 -psdir | --psdir | --psdi | --psd | --ps)
1468 ac_prev=psdir ;;
1469 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1470 psdir=$ac_optarg ;;
1471
1472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1473 | -silent | --silent | --silen | --sile | --sil)
1474 silent=yes ;;
1475
1476 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1477 ac_prev=sbindir ;;
1478 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1479 | --sbi=* | --sb=*)
1480 sbindir=$ac_optarg ;;
1481
1482 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1483 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1484 | --sharedst | --shareds | --shared | --share | --shar \
1485 | --sha | --sh)
1486 ac_prev=sharedstatedir ;;
1487 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1488 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1489 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1490 | --sha=* | --sh=*)
1491 sharedstatedir=$ac_optarg ;;
1492
1493 -site | --site | --sit)
1494 ac_prev=site ;;
1495 -site=* | --site=* | --sit=*)
1496 site=$ac_optarg ;;
1497
1498 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1499 ac_prev=srcdir ;;
1500 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1501 srcdir=$ac_optarg ;;
1502
1503 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1504 | --syscon | --sysco | --sysc | --sys | --sy)
1505 ac_prev=sysconfdir ;;
1506 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1507 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1508 sysconfdir=$ac_optarg ;;
1509
1510 -target | --target | --targe | --targ | --tar | --ta | --t)
1511 ac_prev=target_alias ;;
1512 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1513 target_alias=$ac_optarg ;;
1514
1515 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1516 verbose=yes ;;
1517
1518 -version | --version | --versio | --versi | --vers | -V)
1519 ac_init_version=: ;;
1520
1521 -with-* | --with-*)
1522 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1523 # Reject names that are not valid shell variable names.
1524 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001525 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001526 ac_useropt_orig=$ac_useropt
1527 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1528 case $ac_user_opts in
1529 *"
1530"with_$ac_useropt"
1531"*) ;;
1532 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1533 ac_unrecognized_sep=', ';;
1534 esac
1535 eval with_$ac_useropt=\$ac_optarg ;;
1536
1537 -without-* | --without-*)
1538 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1539 # Reject names that are not valid shell variable names.
1540 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001541 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001542 ac_useropt_orig=$ac_useropt
1543 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1544 case $ac_user_opts in
1545 *"
1546"with_$ac_useropt"
1547"*) ;;
1548 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1549 ac_unrecognized_sep=', ';;
1550 esac
1551 eval with_$ac_useropt=no ;;
1552
1553 --x)
1554 # Obsolete; use --with-x.
1555 with_x=yes ;;
1556
1557 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1558 | --x-incl | --x-inc | --x-in | --x-i)
1559 ac_prev=x_includes ;;
1560 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1561 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1562 x_includes=$ac_optarg ;;
1563
1564 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1565 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1566 ac_prev=x_libraries ;;
1567 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1568 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1569 x_libraries=$ac_optarg ;;
1570
cristy98dddb52010-11-04 00:30:15 +00001571 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1572Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001573 ;;
1574
1575 *=*)
1576 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1577 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001578 case $ac_envvar in #(
1579 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001580 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001581 esac
cristy3ed852e2009-09-05 21:47:34 +00001582 eval $ac_envvar=\$ac_optarg
1583 export $ac_envvar ;;
1584
1585 *)
1586 # FIXME: should be removed in autoconf 3.0.
1587 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1588 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1589 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001590 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001591 ;;
1592
1593 esac
1594done
1595
1596if test -n "$ac_prev"; then
1597 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001598 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001599fi
1600
1601if test -n "$ac_unrecognized_opts"; then
1602 case $enable_option_checking in
1603 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001604 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001605 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1606 esac
1607fi
1608
1609# Check all directory arguments for consistency.
1610for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1611 datadir sysconfdir sharedstatedir localstatedir includedir \
1612 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1613 libdir localedir mandir
1614do
1615 eval ac_val=\$$ac_var
1616 # Remove trailing slashes.
1617 case $ac_val in
1618 */ )
1619 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1620 eval $ac_var=\$ac_val;;
1621 esac
1622 # Be sure to have absolute directory names.
1623 case $ac_val in
1624 [\\/$]* | ?:[\\/]* ) continue;;
1625 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1626 esac
cristy98dddb52010-11-04 00:30:15 +00001627 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001628done
1629
1630# There might be people who depend on the old broken behavior: `$host'
1631# used to hold the argument of --host etc.
1632# FIXME: To remove some day.
1633build=$build_alias
1634host=$host_alias
1635target=$target_alias
1636
1637# FIXME: To remove some day.
1638if test "x$host_alias" != x; then
1639 if test "x$build_alias" = x; then
1640 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001641 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1642 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001643 elif test "x$build_alias" != "x$host_alias"; then
1644 cross_compiling=yes
1645 fi
1646fi
1647
1648ac_tool_prefix=
1649test -n "$host_alias" && ac_tool_prefix=$host_alias-
1650
1651test "$silent" = yes && exec 6>/dev/null
1652
1653
1654ac_pwd=`pwd` && test -n "$ac_pwd" &&
1655ac_ls_di=`ls -di .` &&
1656ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001657 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001658test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001659 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001660
1661
1662# Find the source files, if location was not specified.
1663if test -z "$srcdir"; then
1664 ac_srcdir_defaulted=yes
1665 # Try the directory containing this script, then the parent directory.
1666 ac_confdir=`$as_dirname -- "$as_myself" ||
1667$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1668 X"$as_myself" : 'X\(//\)[^/]' \| \
1669 X"$as_myself" : 'X\(//\)$' \| \
1670 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1671$as_echo X"$as_myself" |
1672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1673 s//\1/
1674 q
1675 }
1676 /^X\(\/\/\)[^/].*/{
1677 s//\1/
1678 q
1679 }
1680 /^X\(\/\/\)$/{
1681 s//\1/
1682 q
1683 }
1684 /^X\(\/\).*/{
1685 s//\1/
1686 q
1687 }
1688 s/.*/./; q'`
1689 srcdir=$ac_confdir
1690 if test ! -r "$srcdir/$ac_unique_file"; then
1691 srcdir=..
1692 fi
1693else
1694 ac_srcdir_defaulted=no
1695fi
1696if test ! -r "$srcdir/$ac_unique_file"; then
1697 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001698 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001699fi
1700ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1701ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001702 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001703 pwd)`
1704# When building in place, set srcdir=.
1705if test "$ac_abs_confdir" = "$ac_pwd"; then
1706 srcdir=.
1707fi
1708# Remove unnecessary trailing slashes from srcdir.
1709# Double slashes in file names in object file debugging info
1710# mess up M-x gdb in Emacs.
1711case $srcdir in
1712*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1713esac
1714for ac_var in $ac_precious_vars; do
1715 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1716 eval ac_env_${ac_var}_value=\$${ac_var}
1717 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1718 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1719done
1720
1721#
1722# Report the --help message.
1723#
1724if test "$ac_init_help" = "long"; then
1725 # Omit some internal or obsolete options to make the list less imposing.
1726 # This message is too long to be a string in the A/UX 3.1 sh.
1727 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001728\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001729
1730Usage: $0 [OPTION]... [VAR=VALUE]...
1731
1732To assign environment variables (e.g., CC, CFLAGS...), specify them as
1733VAR=VALUE. See below for descriptions of some of the useful variables.
1734
1735Defaults for the options are specified in brackets.
1736
1737Configuration:
1738 -h, --help display this help and exit
1739 --help=short display options specific to this package
1740 --help=recursive display the short help of all the included packages
1741 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001742 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001743 --cache-file=FILE cache test results in FILE [disabled]
1744 -C, --config-cache alias for \`--cache-file=config.cache'
1745 -n, --no-create do not create output files
1746 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1747
1748Installation directories:
1749 --prefix=PREFIX install architecture-independent files in PREFIX
1750 [$ac_default_prefix]
1751 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1752 [PREFIX]
1753
1754By default, \`make install' will install all the files in
1755\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1756an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1757for instance \`--prefix=\$HOME'.
1758
1759For better control, use the options below.
1760
1761Fine tuning of the installation directories:
1762 --bindir=DIR user executables [EPREFIX/bin]
1763 --sbindir=DIR system admin executables [EPREFIX/sbin]
1764 --libexecdir=DIR program executables [EPREFIX/libexec]
1765 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1766 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1767 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1768 --libdir=DIR object code libraries [EPREFIX/lib]
1769 --includedir=DIR C header files [PREFIX/include]
1770 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1771 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1772 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1773 --infodir=DIR info documentation [DATAROOTDIR/info]
1774 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1775 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001776 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001777 --htmldir=DIR html documentation [DOCDIR]
1778 --dvidir=DIR dvi documentation [DOCDIR]
1779 --pdfdir=DIR pdf documentation [DOCDIR]
1780 --psdir=DIR ps documentation [DOCDIR]
1781_ACEOF
1782
1783 cat <<\_ACEOF
1784
cristy73bd4a52010-10-05 11:24:23 +00001785Program names:
1786 --program-prefix=PREFIX prepend PREFIX to installed program names
1787 --program-suffix=SUFFIX append SUFFIX to installed program names
1788 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1789
cristy3ed852e2009-09-05 21:47:34 +00001790X features:
1791 --x-includes=DIR X include files are in DIR
1792 --x-libraries=DIR X library files are in DIR
1793
1794System types:
1795 --build=BUILD configure for building on BUILD [guessed]
1796 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1797 --target=TARGET configure for building compilers for TARGET [HOST]
1798_ACEOF
1799fi
1800
1801if test -n "$ac_init_help"; then
1802 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001803 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001804 esac
1805 cat <<\_ACEOF
1806
1807Optional Features:
1808 --disable-option-checking ignore unrecognized --enable/--with options
1809 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1810 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001811 --enable-silent-rules less verbose build output (undo: `make V=1')
1812 --disable-silent-rules verbose build output (undo: `make V=0')
1813 --disable-dependency-tracking speeds up one-time build
1814 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001815 --bounds-checking enable run-time bounds-checking
1816 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001817 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001818 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001819 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001820 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001821 --enable-shared[=PKGS] build shared libraries [default=yes]
1822 --enable-static[=PKGS] build static libraries [default=yes]
1823 --enable-fast-install[=PKGS]
1824 optimize for fast installation [default=yes]
1825 --disable-libtool-lock avoid locking (might break parallel builds)
1826 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001827 --enable-delegate-build look for delegate libraries in build directory
1828 --disable-deprecated exclude deprecated methods in MagickCore and
1829 MagickWand API's
1830 --disable-installed Formally install ImageMagick under PREFIX
1831 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001832 --enable-zero-configuration
1833 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001834 zero-configuration ImageMagick
1835 --enable-hdri accurately represent the wide range of intensity
1836 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001837 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001838 --enable-maintainer-mode enable make rules and dependencies not useful
1839 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001840 --enable-ccmalloc enable 'ccmalloc' memory debug support
1841 --enable-efence enable 'efence' memory debug support
1842 --enable-prof enable 'prof' profiling support
1843 --enable-gprof enable 'gprof' profiling support
1844 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001845 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001846
1847Optional Packages:
1848 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1849 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001850 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1851 --with-dmalloc use dmalloc, as in
1852 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001853 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001854 --with-pic try to use only PIC/non-PIC objects [default=use
1855 both]
cristyda16f162011-02-19 23:52:17 +00001856 --with-sysroot=DIR Search for dependent libraries within DIR
1857 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001858 --with-included-ltdl use the GNU ltdl sources included here
1859 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1860 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001861 --with-modules enable building dynamically loadable modules
1862 --with-method-prefix=PREFIX
1863 prefix MagickCore API methods
1864 --with-quantum-depth=DEPTH
1865 number of bits in a pixel quantum (default 16)
1866 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1867 memory)
1868 --with-frozenpaths freeze delegate paths
1869 --without-magick-plus-plus
1870 disable build/install of Magick++
1871 --with-perl enable build/install of PerlMagick
1872 --with-perl-options=OPTIONS
1873 options to pass on command-line when generating
1874 PerlMagick's build file
1875 --with-umem enable umem memory allocation library support
1876 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1877 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001878 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001879 --without-zlib disable ZLIB support
1880 --with-autotrace enable autotrace support
1881 --without-dps disable Display Postscript support
1882 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001883 --with-dejavu-font-dir=DIR
1884 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001885 --without-fftw disable FFTW support
1886 --without-fpx disable FlashPIX support
1887 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001888 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001889 --without-gslib enable Ghostscript library support
1890 --with-fontpath=DIR prepend to default font search path
1891 --with-gs-font-dir=DIR Ghostscript font directory
1892 --without-gvc disable GVC support
1893 --without-jbig disable JBIG support
1894 --without-jpeg disable JPEG support
1895 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001896 --without-lcms disable lcms (v1.1X) support
1897 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001898 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001899 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001900 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001901 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001902 --without-png disable PNG support
1903 --without-rsvg disable RSVG support
1904 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001905 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001906 --with-windows-font-dir=DIR
1907 directory containing MS-Windows fonts
1908 --without-wmf disable WMF support
1909 --without-xml disable XML support
1910
1911Some influential environment variables:
1912 CC C compiler command
1913 CFLAGS C compiler flags
1914 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1915 nonstandard directory <lib dir>
1916 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001917 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001918 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001919 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001920 CXX C++ compiler command
1921 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001922 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001923 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001924 XMKMF Path to xmkmf, Makefile generator for X Window System
1925 AUTOTRACE_CFLAGS
1926 C compiler flags for AUTOTRACE, overriding pkg-config
1927 AUTOTRACE_LIBS
1928 linker flags for AUTOTRACE, overriding pkg-config
1929 FONTCONFIG_CFLAGS
1930 C compiler flags for FONTCONFIG, overriding pkg-config
1931 FONTCONFIG_LIBS
1932 linker flags for FONTCONFIG, overriding pkg-config
1933 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1934 GVC_LIBS linker flags for GVC, overriding pkg-config
1935 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1936 LQR_LIBS linker flags for LQR, overriding pkg-config
1937 OPENEXR_CFLAGS
1938 C compiler flags for OPENEXR, overriding pkg-config
1939 OPENEXR_LIBS
1940 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001941 PANGO_CFLAGS
1942 C compiler flags for PANGO, overriding pkg-config
1943 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001944 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1945 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1946 CAIRO_SVG_CFLAGS
1947 C compiler flags for CAIRO_SVG, overriding pkg-config
1948 CAIRO_SVG_LIBS
1949 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001950
1951Use these variables to override the choices made by `configure' or to help
1952it to find libraries and programs with nonstandard names/locations.
1953
1954Report bugs to <http://www.imagemagick.org>.
1955_ACEOF
1956ac_status=$?
1957fi
1958
1959if test "$ac_init_help" = "recursive"; then
1960 # If there are subdirs, report their specific --help.
1961 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1962 test -d "$ac_dir" ||
1963 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1964 continue
1965 ac_builddir=.
1966
1967case "$ac_dir" in
1968.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1969*)
1970 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1971 # A ".." for each directory in $ac_dir_suffix.
1972 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1973 case $ac_top_builddir_sub in
1974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1976 esac ;;
1977esac
1978ac_abs_top_builddir=$ac_pwd
1979ac_abs_builddir=$ac_pwd$ac_dir_suffix
1980# for backward compatibility:
1981ac_top_builddir=$ac_top_build_prefix
1982
1983case $srcdir in
1984 .) # We are building in place.
1985 ac_srcdir=.
1986 ac_top_srcdir=$ac_top_builddir_sub
1987 ac_abs_top_srcdir=$ac_pwd ;;
1988 [\\/]* | ?:[\\/]* ) # Absolute name.
1989 ac_srcdir=$srcdir$ac_dir_suffix;
1990 ac_top_srcdir=$srcdir
1991 ac_abs_top_srcdir=$srcdir ;;
1992 *) # Relative name.
1993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1994 ac_top_srcdir=$ac_top_build_prefix$srcdir
1995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1996esac
1997ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1998
1999 cd "$ac_dir" || { ac_status=$?; continue; }
2000 # Check for guested configure.
2001 if test -f "$ac_srcdir/configure.gnu"; then
2002 echo &&
2003 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2004 elif test -f "$ac_srcdir/configure"; then
2005 echo &&
2006 $SHELL "$ac_srcdir/configure" --help=recursive
2007 else
2008 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2009 fi || ac_status=$?
2010 cd "$ac_pwd" || { ac_status=$?; break; }
2011 done
2012fi
2013
2014test -n "$ac_init_help" && exit $ac_status
2015if $ac_init_version; then
2016 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002017ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002018generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002019
cristy98dddb52010-11-04 00:30:15 +00002020Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002021This configure script is free software; the Free Software Foundation
2022gives unlimited permission to copy, distribute and modify it.
2023_ACEOF
2024 exit
2025fi
cristy8b350f62009-11-15 23:12:43 +00002026
2027## ------------------------ ##
2028## Autoconf initialization. ##
2029## ------------------------ ##
2030
2031# ac_fn_c_try_compile LINENO
2032# --------------------------
2033# Try to compile conftest.$ac_ext, and return whether this succeeded.
2034ac_fn_c_try_compile ()
2035{
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext
2038 if { { ac_try="$ac_compile"
2039case "(($ac_try" in
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2042esac
2043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044$as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_compile") 2>conftest.err
2046 ac_status=$?
2047 if test -s conftest.err; then
2048 grep -v '^ *+' conftest.err >conftest.er1
2049 cat conftest.er1 >&5
2050 mv -f conftest.er1 conftest.err
2051 fi
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_c_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest.$ac_objext; then :
2057 ac_retval=0
2058else
2059 $as_echo "$as_me: failed program was:" >&5
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 ac_retval=1
2063fi
cristyda16f162011-02-19 23:52:17 +00002064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002065 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002066
2067} # ac_fn_c_try_compile
2068
cristy95646052009-11-28 23:05:30 +00002069# ac_fn_c_try_cpp LINENO
2070# ----------------------
2071# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2072ac_fn_c_try_cpp ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if { { ac_try="$ac_cpp conftest.$ac_ext"
2076case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079esac
2080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081$as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2083 ac_status=$?
2084 if test -s conftest.err; then
2085 grep -v '^ *+' conftest.err >conftest.er1
2086 cat conftest.er1 >&5
2087 mv -f conftest.er1 conftest.err
2088 fi
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002090 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2092 test ! -s conftest.err
2093 }; then :
2094 ac_retval=0
2095else
2096 $as_echo "$as_me: failed program was:" >&5
2097sed 's/^/| /' conftest.$ac_ext >&5
2098
2099 ac_retval=1
2100fi
cristyda16f162011-02-19 23:52:17 +00002101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002102 as_fn_set_status $ac_retval
2103
2104} # ac_fn_c_try_cpp
2105
cristy8b350f62009-11-15 23:12:43 +00002106# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2107# -------------------------------------------------------
2108# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2109# the include files in INCLUDES and setting the cache variable VAR
2110# accordingly.
2111ac_fn_c_check_header_mongrel ()
2112{
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002114 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002117if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002118 $as_echo_n "(cached) " >&6
2119fi
2120eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123else
2124 # Is the header compilable?
2125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2126$as_echo_n "checking $2 usability... " >&6; }
2127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130#include <$2>
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_header_compiler=yes
2134else
2135 ac_header_compiler=no
2136fi
2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2139$as_echo "$ac_header_compiler" >&6; }
2140
2141# Is the header present?
2142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2143$as_echo_n "checking $2 presence... " >&6; }
2144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h. */
2146#include <$2>
2147_ACEOF
2148if ac_fn_c_try_cpp "$LINENO"; then :
2149 ac_header_preproc=yes
2150else
2151 ac_header_preproc=no
2152fi
cristyda16f162011-02-19 23:52:17 +00002153rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2155$as_echo "$ac_header_preproc" >&6; }
2156
2157# So? What about this header?
2158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2159 yes:no: )
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2161$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164 ;;
2165 no:yes:* )
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2167$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2169$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2171$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2173$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002176( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002177## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002178## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002179 ) | sed "s/^/$as_me: WARNING: /" >&2
2180 ;;
2181esac
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002184if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002185 $as_echo_n "(cached) " >&6
2186else
2187 eval "$3=\$ac_header_compiler"
2188fi
2189eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191$as_echo "$ac_res" >&6; }
2192fi
cristyda16f162011-02-19 23:52:17 +00002193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002194
2195} # ac_fn_c_check_header_mongrel
2196
2197# ac_fn_c_try_run LINENO
2198# ----------------------
2199# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2200# that executables *can* be run.
2201ac_fn_c_try_run ()
2202{
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 if { { ac_try="$ac_link"
2205case "(($ac_try" in
2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207 *) ac_try_echo=$ac_try;;
2208esac
2209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2210$as_echo "$ac_try_echo"; } >&5
2211 (eval "$ac_link") 2>&5
2212 ac_status=$?
2213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2214 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2215 { { case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218esac
2219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220$as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_try") 2>&5
2222 ac_status=$?
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; }; }; then :
2225 ac_retval=0
2226else
2227 $as_echo "$as_me: program exited with status $ac_status" >&5
2228 $as_echo "$as_me: failed program was:" >&5
2229sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 ac_retval=$ac_status
2232fi
2233 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002235 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002236
2237} # ac_fn_c_try_run
2238
2239# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2240# -------------------------------------------------------
2241# Tests whether HEADER exists and can be compiled using the include files in
2242# INCLUDES, setting the cache variable VAR accordingly.
2243ac_fn_c_check_header_compile ()
2244{
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002248if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002249 $as_echo_n "(cached) " >&6
2250else
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h. */
2253$4
2254#include <$2>
2255_ACEOF
2256if ac_fn_c_try_compile "$LINENO"; then :
2257 eval "$3=yes"
2258else
2259 eval "$3=no"
2260fi
2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262fi
2263eval ac_res=\$$3
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002267
2268} # ac_fn_c_check_header_compile
2269
cristya0b81c32010-01-22 02:54:33 +00002270# ac_fn_cxx_try_compile LINENO
2271# ----------------------------
2272# Try to compile conftest.$ac_ext, and return whether this succeeded.
2273ac_fn_cxx_try_compile ()
2274{
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 rm -f conftest.$ac_objext
2277 if { { ac_try="$ac_compile"
2278case "(($ac_try" in
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2281esac
2282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2283$as_echo "$ac_try_echo"; } >&5
2284 (eval "$ac_compile") 2>conftest.err
2285 ac_status=$?
2286 if test -s conftest.err; then
2287 grep -v '^ *+' conftest.err >conftest.er1
2288 cat conftest.er1 >&5
2289 mv -f conftest.er1 conftest.err
2290 fi
2291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2292 test $ac_status = 0; } && {
2293 test -z "$ac_cxx_werror_flag" ||
2294 test ! -s conftest.err
2295 } && test -s conftest.$ac_objext; then :
2296 ac_retval=0
2297else
2298 $as_echo "$as_me: failed program was:" >&5
2299sed 's/^/| /' conftest.$ac_ext >&5
2300
2301 ac_retval=1
2302fi
cristyda16f162011-02-19 23:52:17 +00002303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002304 as_fn_set_status $ac_retval
2305
2306} # ac_fn_cxx_try_compile
2307
cristy8b350f62009-11-15 23:12:43 +00002308# ac_fn_c_try_link LINENO
2309# -----------------------
2310# Try to link conftest.$ac_ext, and return whether this succeeded.
2311ac_fn_c_try_link ()
2312{
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 rm -f conftest.$ac_objext conftest$ac_exeext
2315 if { { ac_try="$ac_link"
2316case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319esac
2320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321$as_echo "$ac_try_echo"; } >&5
2322 (eval "$ac_link") 2>conftest.err
2323 ac_status=$?
2324 if test -s conftest.err; then
2325 grep -v '^ *+' conftest.err >conftest.er1
2326 cat conftest.er1 >&5
2327 mv -f conftest.er1 conftest.err
2328 fi
2329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2330 test $ac_status = 0; } && {
2331 test -z "$ac_c_werror_flag" ||
2332 test ! -s conftest.err
2333 } && test -s conftest$ac_exeext && {
2334 test "$cross_compiling" = yes ||
2335 $as_test_x conftest$ac_exeext
2336 }; then :
2337 ac_retval=0
2338else
2339 $as_echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 ac_retval=1
2343fi
2344 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2345 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2346 # interfere with the next link command; also delete a directory that is
2347 # left behind by Apple's compiler. We do this before executing the actions.
2348 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002350 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002351
2352} # ac_fn_c_try_link
2353
cristy73bd4a52010-10-05 11:24:23 +00002354# ac_fn_c_check_func LINENO FUNC VAR
2355# ----------------------------------
2356# Tests whether FUNC exists, setting the cache variable VAR accordingly
2357ac_fn_c_check_func ()
2358{
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2361$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002362if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002363 $as_echo_n "(cached) " >&6
2364else
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366/* end confdefs.h. */
2367/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2369#define $2 innocuous_$2
2370
2371/* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char $2 (); below.
2373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2374 <limits.h> exists even on freestanding compilers. */
2375
2376#ifdef __STDC__
2377# include <limits.h>
2378#else
2379# include <assert.h>
2380#endif
2381
2382#undef $2
2383
2384/* Override any GCC internal prototype to avoid an error.
2385 Use char because int might match the return type of a GCC
2386 builtin and then its argument prototype would still apply. */
2387#ifdef __cplusplus
2388extern "C"
2389#endif
2390char $2 ();
2391/* The GNU C library defines this for functions which it implements
2392 to always fail with ENOSYS. Some functions are actually named
2393 something starting with __ and the normal name is an alias. */
2394#if defined __stub_$2 || defined __stub___$2
2395choke me
2396#endif
2397
2398int
2399main ()
2400{
2401return $2 ();
2402 ;
2403 return 0;
2404}
2405_ACEOF
2406if ac_fn_c_try_link "$LINENO"; then :
2407 eval "$3=yes"
2408else
2409 eval "$3=no"
2410fi
2411rm -f core conftest.err conftest.$ac_objext \
2412 conftest$ac_exeext conftest.$ac_ext
2413fi
2414eval ac_res=\$$3
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002417 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002418
2419} # ac_fn_c_check_func
2420
2421# ac_fn_cxx_try_cpp LINENO
2422# ------------------------
2423# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2424ac_fn_cxx_try_cpp ()
2425{
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 if { { ac_try="$ac_cpp conftest.$ac_ext"
2428case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431esac
2432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2433$as_echo "$ac_try_echo"; } >&5
2434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2435 ac_status=$?
2436 if test -s conftest.err; then
2437 grep -v '^ *+' conftest.err >conftest.er1
2438 cat conftest.er1 >&5
2439 mv -f conftest.er1 conftest.err
2440 fi
2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002442 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002443 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2444 test ! -s conftest.err
2445 }; then :
2446 ac_retval=0
2447else
2448 $as_echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 ac_retval=1
2452fi
cristyda16f162011-02-19 23:52:17 +00002453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002454 as_fn_set_status $ac_retval
2455
2456} # ac_fn_cxx_try_cpp
2457
2458# ac_fn_cxx_try_link LINENO
2459# -------------------------
2460# Try to link conftest.$ac_ext, and return whether this succeeded.
2461ac_fn_cxx_try_link ()
2462{
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 rm -f conftest.$ac_objext conftest$ac_exeext
2465 if { { ac_try="$ac_link"
2466case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471$as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_link") 2>conftest.err
2473 ac_status=$?
2474 if test -s conftest.err; then
2475 grep -v '^ *+' conftest.err >conftest.er1
2476 cat conftest.er1 >&5
2477 mv -f conftest.er1 conftest.err
2478 fi
2479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480 test $ac_status = 0; } && {
2481 test -z "$ac_cxx_werror_flag" ||
2482 test ! -s conftest.err
2483 } && test -s conftest$ac_exeext && {
2484 test "$cross_compiling" = yes ||
2485 $as_test_x conftest$ac_exeext
2486 }; then :
2487 ac_retval=0
2488else
2489 $as_echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 ac_retval=1
2493fi
2494 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2495 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2496 # interfere with the next link command; also delete a directory that is
2497 # left behind by Apple's compiler. We do this before executing the actions.
2498 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002500 as_fn_set_status $ac_retval
2501
2502} # ac_fn_cxx_try_link
2503
cristy98dddb52010-11-04 00:30:15 +00002504# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2505# ---------------------------------------------
2506# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2507# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002508ac_fn_c_check_decl ()
2509{
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002511 as_decl_name=`echo $2|sed 's/ *(.*//'`
2512 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2514$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002515if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002516 $as_echo_n "(cached) " >&6
2517else
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519/* end confdefs.h. */
2520$4
2521int
2522main ()
2523{
cristy98dddb52010-11-04 00:30:15 +00002524#ifndef $as_decl_name
2525#ifdef __cplusplus
2526 (void) $as_decl_use;
2527#else
2528 (void) $as_decl_name;
2529#endif
cristy73bd4a52010-10-05 11:24:23 +00002530#endif
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_compile "$LINENO"; then :
2537 eval "$3=yes"
2538else
2539 eval "$3=no"
2540fi
2541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542fi
2543eval ac_res=\$$3
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002547
2548} # ac_fn_c_check_decl
2549
cristy8b350f62009-11-15 23:12:43 +00002550# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2551# -------------------------------------------
2552# Tests whether TYPE exists after having included INCLUDES, setting cache
2553# variable VAR accordingly.
2554ac_fn_c_check_type ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002559if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002560 $as_echo_n "(cached) " >&6
2561else
2562 eval "$3=no"
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564/* end confdefs.h. */
2565$4
2566int
2567main ()
2568{
2569if (sizeof ($2))
2570 return 0;
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"; then :
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577/* end confdefs.h. */
2578$4
2579int
2580main ()
2581{
2582if (sizeof (($2)))
2583 return 0;
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589
2590else
2591 eval "$3=yes"
2592fi
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596fi
2597eval ac_res=\$$3
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002601
2602} # ac_fn_c_check_type
2603
cristy92703d82010-04-26 00:18:18 +00002604# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2605# ----------------------------------------------------
2606# Tries to find if the field MEMBER exists in type AGGR, after including
2607# INCLUDES, setting cache variable VAR accordingly.
2608ac_fn_c_check_member ()
2609{
2610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2612$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002613if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002614 $as_echo_n "(cached) " >&6
2615else
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617/* end confdefs.h. */
2618$5
2619int
2620main ()
2621{
2622static $2 ac_aggr;
2623if (ac_aggr.$3)
2624return 0;
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629if ac_fn_c_try_compile "$LINENO"; then :
2630 eval "$4=yes"
2631else
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633/* end confdefs.h. */
2634$5
2635int
2636main ()
2637{
2638static $2 ac_aggr;
2639if (sizeof ac_aggr.$3)
2640return 0;
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645if ac_fn_c_try_compile "$LINENO"; then :
2646 eval "$4=yes"
2647else
2648 eval "$4=no"
2649fi
2650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651fi
2652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653fi
2654eval ac_res=\$$4
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002658
2659} # ac_fn_c_check_member
2660
cristy501c8042011-05-26 17:46:28 +00002661# ac_fn_c_find_intX_t LINENO BITS VAR
2662# -----------------------------------
2663# Finds a signed integer type with width BITS, setting cache variable VAR
2664# accordingly.
2665ac_fn_c_find_intX_t ()
2666{
2667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2669$as_echo_n "checking for int$2_t... " >&6; }
2670if eval \${$3+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672else
2673 eval "$3=no"
2674 # Order is important - never check a type that is potentially smaller
2675 # than half of the expected target width.
2676 for ac_type in int$2_t 'int' 'long int' \
2677 'long long int' 'short int' 'signed char'; do
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h. */
2680$ac_includes_default
2681 enum { N = $2 / 2 - 1 };
2682int
2683main ()
2684{
2685static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2686test_array [0] = 0
2687
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692if ac_fn_c_try_compile "$LINENO"; then :
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694/* end confdefs.h. */
2695$ac_includes_default
2696 enum { N = $2 / 2 - 1 };
2697int
2698main ()
2699{
2700static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2701 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2702test_array [0] = 0
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708if ac_fn_c_try_compile "$LINENO"; then :
2709
2710else
2711 case $ac_type in #(
2712 int$2_t) :
2713 eval "$3=yes" ;; #(
2714 *) :
2715 eval "$3=\$ac_type" ;;
2716esac
2717fi
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi
2720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 if eval test \"x\$"$3"\" = x"no"; then :
2722
2723else
2724 break
2725fi
2726 done
2727fi
2728eval ac_res=\$$3
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730$as_echo "$ac_res" >&6; }
2731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2732
2733} # ac_fn_c_find_intX_t
2734
2735# ac_fn_c_find_uintX_t LINENO BITS VAR
2736# ------------------------------------
2737# Finds an unsigned integer type with width BITS, setting cache variable VAR
2738# accordingly.
2739ac_fn_c_find_uintX_t ()
2740{
2741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2743$as_echo_n "checking for uint$2_t... " >&6; }
2744if eval \${$3+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746else
2747 eval "$3=no"
2748 # Order is important - never check a type that is potentially smaller
2749 # than half of the expected target width.
2750 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2751 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753/* end confdefs.h. */
2754$ac_includes_default
2755int
2756main ()
2757{
2758static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2759test_array [0] = 0
2760
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765if ac_fn_c_try_compile "$LINENO"; then :
2766 case $ac_type in #(
2767 uint$2_t) :
2768 eval "$3=yes" ;; #(
2769 *) :
2770 eval "$3=\$ac_type" ;;
2771esac
2772fi
2773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 if eval test \"x\$"$3"\" = x"no"; then :
2775
2776else
2777 break
2778fi
2779 done
2780fi
2781eval ac_res=\$$3
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783$as_echo "$ac_res" >&6; }
2784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785
2786} # ac_fn_c_find_uintX_t
2787
cristy8b350f62009-11-15 23:12:43 +00002788# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2789# --------------------------------------------
2790# Tries to find the compile-time value of EXPR in a program that includes
2791# INCLUDES, setting VAR accordingly. Returns whether the value could be
2792# computed
2793ac_fn_c_compute_int ()
2794{
2795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2796 if test "$cross_compiling" = yes; then
2797 # Depending upon the size, compute the lo and hi bounds.
2798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799/* end confdefs.h. */
2800$4
2801int
2802main ()
2803{
2804static int test_array [1 - 2 * !(($2) >= 0)];
2805test_array [0] = 0
2806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811if ac_fn_c_try_compile "$LINENO"; then :
2812 ac_lo=0 ac_mid=0
2813 while :; do
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h. */
2816$4
2817int
2818main ()
2819{
2820static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2821test_array [0] = 0
2822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827if ac_fn_c_try_compile "$LINENO"; then :
2828 ac_hi=$ac_mid; break
2829else
2830 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2831 if test $ac_lo -le $ac_mid; then
2832 ac_lo= ac_hi=
2833 break
2834 fi
2835 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2836fi
2837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 done
2839else
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h. */
2842$4
2843int
2844main ()
2845{
2846static int test_array [1 - 2 * !(($2) < 0)];
2847test_array [0] = 0
2848
2849 ;
2850 return 0;
2851}
2852_ACEOF
2853if ac_fn_c_try_compile "$LINENO"; then :
2854 ac_hi=-1 ac_mid=-1
2855 while :; do
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857/* end confdefs.h. */
2858$4
2859int
2860main ()
2861{
2862static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2863test_array [0] = 0
2864
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869if ac_fn_c_try_compile "$LINENO"; then :
2870 ac_lo=$ac_mid; break
2871else
2872 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2873 if test $ac_mid -le $ac_hi; then
2874 ac_lo= ac_hi=
2875 break
2876 fi
2877 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2878fi
2879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 done
2881else
2882 ac_lo= ac_hi=
2883fi
2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885fi
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887# Binary search between lo and hi bounds.
2888while test "x$ac_lo" != "x$ac_hi"; do
2889 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891/* end confdefs.h. */
2892$4
2893int
2894main ()
2895{
2896static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2897test_array [0] = 0
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903if ac_fn_c_try_compile "$LINENO"; then :
2904 ac_hi=$ac_mid
2905else
2906 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2907fi
2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909done
2910case $ac_lo in #((
2911?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2912'') ac_retval=1 ;;
2913esac
2914 else
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916/* end confdefs.h. */
2917$4
2918static long int longval () { return $2; }
2919static unsigned long int ulongval () { return $2; }
2920#include <stdio.h>
2921#include <stdlib.h>
2922int
2923main ()
2924{
2925
2926 FILE *f = fopen ("conftest.val", "w");
2927 if (! f)
2928 return 1;
2929 if (($2) < 0)
2930 {
2931 long int i = longval ();
2932 if (i != ($2))
2933 return 1;
2934 fprintf (f, "%ld", i);
2935 }
2936 else
2937 {
2938 unsigned long int i = ulongval ();
2939 if (i != ($2))
2940 return 1;
2941 fprintf (f, "%lu", i);
2942 }
2943 /* Do not output a trailing newline, as this causes \r\n confusion
2944 on some platforms. */
2945 return ferror (f) || fclose (f) != 0;
2946
2947 ;
2948 return 0;
2949}
2950_ACEOF
2951if ac_fn_c_try_run "$LINENO"; then :
2952 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2953else
2954 ac_retval=1
2955fi
2956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2957 conftest.$ac_objext conftest.beam conftest.$ac_ext
2958rm -f conftest.val
2959
2960 fi
cristyda16f162011-02-19 23:52:17 +00002961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002962 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002963
2964} # ac_fn_c_compute_int
2965
2966# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2967# ---------------------------------------------------------
2968# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2969# the include files in INCLUDES and setting the cache variable VAR
2970# accordingly.
2971ac_fn_cxx_check_header_mongrel ()
2972{
2973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002974 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2976$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002977if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002978 $as_echo_n "(cached) " >&6
2979fi
2980eval ac_res=\$$3
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2982$as_echo "$ac_res" >&6; }
2983else
2984 # Is the header compilable?
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2986$as_echo_n "checking $2 usability... " >&6; }
2987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h. */
2989$4
2990#include <$2>
2991_ACEOF
2992if ac_fn_cxx_try_compile "$LINENO"; then :
2993 ac_header_compiler=yes
2994else
2995 ac_header_compiler=no
2996fi
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2999$as_echo "$ac_header_compiler" >&6; }
3000
3001# Is the header present?
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3003$as_echo_n "checking $2 presence... " >&6; }
3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h. */
3006#include <$2>
3007_ACEOF
3008if ac_fn_cxx_try_cpp "$LINENO"; then :
3009 ac_header_preproc=yes
3010else
3011 ac_header_preproc=no
3012fi
cristyda16f162011-02-19 23:52:17 +00003013rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3015$as_echo "$ac_header_preproc" >&6; }
3016
3017# So? What about this header?
3018case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3019 yes:no: )
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3021$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3024 ;;
3025 no:yes:* )
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3027$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3029$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3031$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3033$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003036( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003037## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003038## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003039 ) | sed "s/^/$as_me: WARNING: /" >&2
3040 ;;
3041esac
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3043$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003044if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003045 $as_echo_n "(cached) " >&6
3046else
3047 eval "$3=\$ac_header_compiler"
3048fi
3049eval ac_res=\$$3
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3051$as_echo "$ac_res" >&6; }
3052fi
cristyda16f162011-02-19 23:52:17 +00003053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003054
3055} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003056cat >config.log <<_ACEOF
3057This file contains any messages produced by compilers while
3058running configure, to aid debugging if configure makes a mistake.
3059
cristy29eb34e2011-10-16 00:46:08 +00003060It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003061generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003062
3063 $ $0 $@
3064
3065_ACEOF
3066exec 5>>config.log
3067{
3068cat <<_ASUNAME
3069## --------- ##
3070## Platform. ##
3071## --------- ##
3072
3073hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3074uname -m = `(uname -m) 2>/dev/null || echo unknown`
3075uname -r = `(uname -r) 2>/dev/null || echo unknown`
3076uname -s = `(uname -s) 2>/dev/null || echo unknown`
3077uname -v = `(uname -v) 2>/dev/null || echo unknown`
3078
3079/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3080/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3081
3082/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3083/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3085/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3086/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3087/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3088/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3089
3090_ASUNAME
3091
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003097 $as_echo "PATH: $as_dir"
3098 done
cristy3ed852e2009-09-05 21:47:34 +00003099IFS=$as_save_IFS
3100
3101} >&5
3102
3103cat >&5 <<_ACEOF
3104
3105
3106## ----------- ##
3107## Core tests. ##
3108## ----------- ##
3109
3110_ACEOF
3111
3112
3113# Keep a trace of the command line.
3114# Strip out --no-create and --no-recursion so they do not pile up.
3115# Strip out --silent because we don't want to record it for future runs.
3116# Also quote any args containing shell meta-characters.
3117# Make two passes to allow for proper duplicate-argument suppression.
3118ac_configure_args=
3119ac_configure_args0=
3120ac_configure_args1=
3121ac_must_keep_next=false
3122for ac_pass in 1 2
3123do
3124 for ac_arg
3125 do
3126 case $ac_arg in
3127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3129 | -silent | --silent | --silen | --sile | --sil)
3130 continue ;;
3131 *\'*)
3132 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3133 esac
3134 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003135 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003136 2)
cristy8b350f62009-11-15 23:12:43 +00003137 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003138 if test $ac_must_keep_next = true; then
3139 ac_must_keep_next=false # Got value, back to normal.
3140 else
3141 case $ac_arg in
3142 *=* | --config-cache | -C | -disable-* | --disable-* \
3143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3145 | -with-* | --with-* | -without-* | --without-* | --x)
3146 case "$ac_configure_args0 " in
3147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3148 esac
3149 ;;
3150 -* ) ac_must_keep_next=true ;;
3151 esac
3152 fi
cristy8b350f62009-11-15 23:12:43 +00003153 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003154 ;;
3155 esac
3156 done
3157done
cristy8b350f62009-11-15 23:12:43 +00003158{ ac_configure_args0=; unset ac_configure_args0;}
3159{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003160
3161# When interrupted or exit'd, cleanup temporary files, and complete
3162# config.log. We remove comments because anyway the quotes in there
3163# would cause problems or look ugly.
3164# WARNING: Use '\'' to represent an apostrophe within the trap.
3165# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3166trap 'exit_status=$?
3167 # Save into config.log some information that might help in debugging.
3168 {
3169 echo
3170
cristy98dddb52010-11-04 00:30:15 +00003171 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003172## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003173## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003174 echo
3175 # The following way of writing the cache mishandles newlines in values,
3176(
3177 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3178 eval ac_val=\$$ac_var
3179 case $ac_val in #(
3180 *${as_nl}*)
3181 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003183$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3184 esac
3185 case $ac_var in #(
3186 _ | IFS | as_nl) ;; #(
3187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003188 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003189 esac ;;
3190 esac
3191 done
3192 (set) 2>&1 |
3193 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3194 *${as_nl}ac_space=\ *)
3195 sed -n \
3196 "s/'\''/'\''\\\\'\'''\''/g;
3197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3198 ;; #(
3199 *)
3200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3201 ;;
3202 esac |
3203 sort
3204)
3205 echo
3206
cristy98dddb52010-11-04 00:30:15 +00003207 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003208## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003209## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003210 echo
3211 for ac_var in $ac_subst_vars
3212 do
3213 eval ac_val=\$$ac_var
3214 case $ac_val in
3215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3216 esac
3217 $as_echo "$ac_var='\''$ac_val'\''"
3218 done | sort
3219 echo
3220
3221 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003222 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003223## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003224## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003225 echo
3226 for ac_var in $ac_subst_files
3227 do
3228 eval ac_val=\$$ac_var
3229 case $ac_val in
3230 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3231 esac
3232 $as_echo "$ac_var='\''$ac_val'\''"
3233 done | sort
3234 echo
3235 fi
3236
3237 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003238 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003239## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003240## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003241 echo
3242 cat confdefs.h
3243 echo
3244 fi
3245 test "$ac_signal" != 0 &&
3246 $as_echo "$as_me: caught signal $ac_signal"
3247 $as_echo "$as_me: exit $exit_status"
3248 } >&5
3249 rm -f core *.core core.conftest.* &&
3250 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3251 exit $exit_status
3252' 0
3253for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003254 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003255done
3256ac_signal=0
3257
3258# confdefs.h avoids OS command line length limits that DEFS can exceed.
3259rm -f -r conftest* confdefs.h
3260
cristy8b350f62009-11-15 23:12:43 +00003261$as_echo "/* confdefs.h */" > confdefs.h
3262
cristy3ed852e2009-09-05 21:47:34 +00003263# Predefined preprocessor variables.
3264
3265cat >>confdefs.h <<_ACEOF
3266#define PACKAGE_NAME "$PACKAGE_NAME"
3267_ACEOF
3268
cristy3ed852e2009-09-05 21:47:34 +00003269cat >>confdefs.h <<_ACEOF
3270#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3271_ACEOF
3272
cristy3ed852e2009-09-05 21:47:34 +00003273cat >>confdefs.h <<_ACEOF
3274#define PACKAGE_VERSION "$PACKAGE_VERSION"
3275_ACEOF
3276
cristy3ed852e2009-09-05 21:47:34 +00003277cat >>confdefs.h <<_ACEOF
3278#define PACKAGE_STRING "$PACKAGE_STRING"
3279_ACEOF
3280
cristy3ed852e2009-09-05 21:47:34 +00003281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3283_ACEOF
3284
cristy8b350f62009-11-15 23:12:43 +00003285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_URL "$PACKAGE_URL"
3287_ACEOF
3288
cristy3ed852e2009-09-05 21:47:34 +00003289
3290# Let the site file select an alternate cache file if it wants to.
3291# Prefer an explicitly selected file to automatically selected ones.
3292ac_site_file1=NONE
3293ac_site_file2=NONE
3294if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003295 # We do not want a PATH search for config.site.
3296 case $CONFIG_SITE in #((
3297 -*) ac_site_file1=./$CONFIG_SITE;;
3298 */*) ac_site_file1=$CONFIG_SITE;;
3299 *) ac_site_file1=./$CONFIG_SITE;;
3300 esac
cristy3ed852e2009-09-05 21:47:34 +00003301elif test "x$prefix" != xNONE; then
3302 ac_site_file1=$prefix/share/config.site
3303 ac_site_file2=$prefix/etc/config.site
3304else
3305 ac_site_file1=$ac_default_prefix/share/config.site
3306 ac_site_file2=$ac_default_prefix/etc/config.site
3307fi
3308for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3309do
3310 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003311 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003313$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3314 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003315 . "$ac_site_file" \
3316 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318as_fn_error $? "failed to load site script $ac_site_file
3319See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003320 fi
3321done
3322
3323if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003324 # Some versions of bash will fail to source /dev/null (special files
3325 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3326 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003328$as_echo "$as_me: loading cache $cache_file" >&6;}
3329 case $cache_file in
3330 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3331 *) . "./$cache_file";;
3332 esac
3333 fi
3334else
cristy8b350f62009-11-15 23:12:43 +00003335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003336$as_echo "$as_me: creating cache $cache_file" >&6;}
3337 >$cache_file
3338fi
3339
cristycd4c5312009-11-22 01:19:08 +00003340as_fn_append ac_header_list " stdlib.h"
3341as_fn_append ac_header_list " unistd.h"
3342as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003343# Check that the precious variables saved in the cache have kept the same
3344# value.
3345ac_cache_corrupted=false
3346for ac_var in $ac_precious_vars; do
3347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3348 eval ac_new_set=\$ac_env_${ac_var}_set
3349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3350 eval ac_new_val=\$ac_env_${ac_var}_value
3351 case $ac_old_set,$ac_new_set in
3352 set,)
cristy8b350f62009-11-15 23:12:43 +00003353 { $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 +00003354$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3355 ac_cache_corrupted=: ;;
3356 ,set)
cristy8b350f62009-11-15 23:12:43 +00003357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003358$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3359 ac_cache_corrupted=: ;;
3360 ,);;
3361 *)
3362 if test "x$ac_old_val" != "x$ac_new_val"; then
3363 # differences in whitespace do not lead to failure.
3364 ac_old_val_w=`echo x $ac_old_val`
3365 ac_new_val_w=`echo x $ac_new_val`
3366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003368$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3369 ac_cache_corrupted=:
3370 else
cristy8b350f62009-11-15 23:12:43 +00003371 { $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 +00003372$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3373 eval $ac_var=\$ac_old_val
3374 fi
cristy8b350f62009-11-15 23:12:43 +00003375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003376$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003378$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3379 fi;;
3380 esac
3381 # Pass precious variables to config.status.
3382 if test "$ac_new_set" = set; then
3383 case $ac_new_val in
3384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3385 *) ac_arg=$ac_var=$ac_new_val ;;
3386 esac
3387 case " $ac_configure_args " in
3388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003390 esac
3391 fi
3392done
3393if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003397$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003398 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003399fi
cristy8b350f62009-11-15 23:12:43 +00003400## -------------------- ##
3401## Main body of script. ##
3402## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003403
3404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410
3411
3412ac_aux_dir=
3413for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003414 if test -f "$ac_dir/install-sh"; then
3415 ac_aux_dir=$ac_dir
3416 ac_install_sh="$ac_aux_dir/install-sh -c"
3417 break
3418 elif test -f "$ac_dir/install.sh"; then
3419 ac_aux_dir=$ac_dir
3420 ac_install_sh="$ac_aux_dir/install.sh -c"
3421 break
3422 elif test -f "$ac_dir/shtool"; then
3423 ac_aux_dir=$ac_dir
3424 ac_install_sh="$ac_aux_dir/shtool install -c"
3425 break
3426 fi
cristy3ed852e2009-09-05 21:47:34 +00003427done
3428if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003430fi
3431
3432# These three variables are undocumented and unsupported,
3433# and are intended to be withdrawn in a future Autoconf release.
3434# They can cause serious problems if a builder's source tree is in a directory
3435# whose full name contains unusual characters.
3436ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3437ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3438ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3439
3440
3441
3442
3443ac_config_headers="$ac_config_headers config/config.h"
3444
cristy24fc1fe2010-10-23 21:13:01 +00003445
cristy4c08aed2011-07-01 19:47:50 +00003446ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003447
cristy4c08aed2011-07-01 19:47:50 +00003448ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003449
3450
3451#
3452# Save initial user-tunable values
3453#
3454USER_LIBS=$LIBS
3455for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3456 eval isset=\${$var+set}
3457 if test "$isset" = 'set'; then
3458 eval val=$`echo $var`
3459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3460 fi
3461done
3462
3463
3464CONFIGURE_ARGS="$0 ${ac_configure_args}"
3465
3466
3467# Source file containing package/library versioning information.
3468. ${srcdir}/version.sh
3469
cristy15a88782010-01-31 23:24:49 +00003470echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003471# Make sure we can run config.sub.
3472$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003473 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003474
cristy8b350f62009-11-15 23:12:43 +00003475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003476$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003477if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003478 $as_echo_n "(cached) " >&6
3479else
3480 ac_build_alias=$build_alias
3481test "x$ac_build_alias" = x &&
3482 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3483test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003484 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003485ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003486 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003487
3488fi
cristy8b350f62009-11-15 23:12:43 +00003489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo "$ac_cv_build" >&6; }
3491case $ac_cv_build in
3492*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003493*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003494esac
3495build=$ac_cv_build
3496ac_save_IFS=$IFS; IFS='-'
3497set x $ac_cv_build
3498shift
3499build_cpu=$1
3500build_vendor=$2
3501shift; shift
3502# Remember, the first character of IFS is used to create $*,
3503# except with old shells:
3504build_os=$*
3505IFS=$ac_save_IFS
3506case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3507
3508
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003511if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003512 $as_echo_n "(cached) " >&6
3513else
3514 if test "x$host_alias" = x; then
3515 ac_cv_host=$ac_cv_build
3516else
3517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003519fi
3520
3521fi
cristy8b350f62009-11-15 23:12:43 +00003522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003523$as_echo "$ac_cv_host" >&6; }
3524case $ac_cv_host in
3525*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003526*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003527esac
3528host=$ac_cv_host
3529ac_save_IFS=$IFS; IFS='-'
3530set x $ac_cv_host
3531shift
3532host_cpu=$1
3533host_vendor=$2
3534shift; shift
3535# Remember, the first character of IFS is used to create $*,
3536# except with old shells:
3537host_os=$*
3538IFS=$ac_save_IFS
3539case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3540
3541
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003544if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003545 $as_echo_n "(cached) " >&6
3546else
3547 if test "x$target_alias" = x; then
3548 ac_cv_target=$ac_cv_host
3549else
3550 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552fi
3553
3554fi
cristy8b350f62009-11-15 23:12:43 +00003555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003556$as_echo "$ac_cv_target" >&6; }
3557case $ac_cv_target in
3558*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003559*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003560esac
3561target=$ac_cv_target
3562ac_save_IFS=$IFS; IFS='-'
3563set x $ac_cv_target
3564shift
3565target_cpu=$1
3566target_vendor=$2
3567shift; shift
3568# Remember, the first character of IFS is used to create $*,
3569# except with old shells:
3570target_os=$*
3571IFS=$ac_save_IFS
3572case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3573
3574
3575# The aliases save the names the user supplied, while $host etc.
3576# will get canonicalized.
3577test -n "$target_alias" &&
3578 test "$program_prefix$program_suffix$program_transform_name" = \
3579 NONENONEs,x,x, &&
3580 program_prefix=${target_alias}-
3581
cristy837d6dc2010-02-27 01:16:57 +00003582
3583
3584
cristy19615b82011-04-13 20:02:01 +00003585MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003586
3587
cristy19615b82011-04-13 20:02:01 +00003588MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003589
3590
cristy19615b82011-04-13 20:02:01 +00003591MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003592
3593
cristy3ed852e2009-09-05 21:47:34 +00003594# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003595MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3596
3597MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3598
cristybd4fb6e2011-10-26 13:10:01 +00003599MAGICK_SVN_REVISION=5750
cristyd694ca32011-03-27 21:42:54 +00003600
3601
cristy3ed852e2009-09-05 21:47:34 +00003602
3603
3604# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3606$as_echo_n "checking whether build environment is sane... " >&6; }
3607# Just in case
3608sleep 1
3609echo timestamp > conftest.file
3610# Reject unsafe characters in $srcdir or the absolute working directory
3611# name. Accept space and tab only in the latter.
3612am_lf='
3613'
3614case `pwd` in
3615 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003616 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003617esac
3618case $srcdir in
3619 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003620 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003621esac
cristy3ed852e2009-09-05 21:47:34 +00003622
cristy73bd4a52010-10-05 11:24:23 +00003623# Do `set' in a subshell so we don't clobber the current shell's
3624# arguments. Must try -L first in case configure is actually a
3625# symlink; some systems play weird games with the mod time of symlinks
3626# (eg FreeBSD returns the mod time of the symlink's containing
3627# directory).
3628if (
3629 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3630 if test "$*" = "X"; then
3631 # -L didn't work.
3632 set X `ls -t "$srcdir/configure" conftest.file`
3633 fi
3634 rm -f conftest.file
3635 if test "$*" != "X $srcdir/configure conftest.file" \
3636 && test "$*" != "X conftest.file $srcdir/configure"; then
3637
3638 # If neither matched, then we have a broken ls. This can happen
3639 # if, for instance, CONFIG_SHELL is bash and it inherits a
3640 # broken ls alias from the environment. This has actually
3641 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003642 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003643alias in your environment" "$LINENO" 5
3644 fi
3645
3646 test "$2" = conftest.file
3647 )
3648then
3649 # Ok.
3650 :
3651else
cristy98dddb52010-11-04 00:30:15 +00003652 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003653Check your system clock" "$LINENO" 5
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3656$as_echo "yes" >&6; }
3657
3658am__api_version='1.11'
3659
3660# Find a good install program. We prefer a C program (faster),
3661# so one script is as good as another. But avoid the broken or
3662# incompatible versions:
3663# SysV /etc/install, /usr/sbin/install
3664# SunOS /usr/etc/install
3665# IRIX /sbin/install
3666# AIX /bin/install
3667# AmigaOS /C/install, which installs bootblocks on floppy discs
3668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3669# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3671# OS/2's system install, which has a completely different semantic
3672# ./install, which can be erroneously created by make from ./install.sh.
3673# Reject install programs that cannot install multiple files.
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3675$as_echo_n "checking for a BSD-compatible install... " >&6; }
3676if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003677if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003678 $as_echo_n "(cached) " >&6
3679else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 # Account for people who put trailing slashes in PATH elements.
3686case $as_dir/ in #((
3687 ./ | .// | /[cC]/* | \
3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3690 /usr/ucb/* ) ;;
3691 *)
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3694 # by default.
3695 for ac_prog in ginstall scoinst install; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3698 if test $ac_prog = install &&
3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3701 :
3702 elif test $ac_prog = install &&
3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3705 :
3706 else
3707 rm -rf conftest.one conftest.two conftest.dir
3708 echo one > conftest.one
3709 echo two > conftest.two
3710 mkdir conftest.dir
3711 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3712 test -s conftest.one && test -s conftest.two &&
3713 test -s conftest.dir/conftest.one &&
3714 test -s conftest.dir/conftest.two
3715 then
3716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3717 break 3
3718 fi
3719 fi
3720 fi
3721 done
3722 done
3723 ;;
3724esac
3725
3726 done
3727IFS=$as_save_IFS
3728
3729rm -rf conftest.one conftest.two conftest.dir
3730
3731fi
3732 if test "${ac_cv_path_install+set}" = set; then
3733 INSTALL=$ac_cv_path_install
3734 else
3735 # As a last resort, use the slow shell script. Don't cache a
3736 # value for INSTALL within a source directory, because that will
3737 # break other packages using the cache if that directory is
3738 # removed, or if the value is a relative name.
3739 INSTALL=$ac_install_sh
3740 fi
3741fi
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3743$as_echo "$INSTALL" >&6; }
3744
3745# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3746# It thinks the first close brace ends the variable substitution.
3747test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3748
3749test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3750
3751test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3752
3753test "$program_prefix" != NONE &&
3754 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3755# Use a double $ so make ignores it.
3756test "$program_suffix" != NONE &&
3757 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3758# Double any \ or $.
3759# By default was `s,x,x', remove it if useless.
3760ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3761program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3762
3763# expand $ac_aux_dir to an absolute path
3764am_aux_dir=`cd $ac_aux_dir && pwd`
3765
3766if test x"${MISSING+set}" != xset; then
3767 case $am_aux_dir in
3768 *\ * | *\ *)
3769 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3770 *)
3771 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3772 esac
3773fi
3774# Use eval to expand $SHELL
3775if eval "$MISSING --run true"; then
3776 am_missing_run="$MISSING --run "
3777else
3778 am_missing_run=
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3780$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3781fi
3782
3783if test x"${install_sh}" != xset; then
3784 case $am_aux_dir in
3785 *\ * | *\ *)
3786 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3787 *)
3788 install_sh="\${SHELL} $am_aux_dir/install-sh"
3789 esac
3790fi
3791
3792# Installed binaries are usually stripped using `strip' when the user
3793# run `make install-strip'. However `strip' might not be the right
3794# tool to use in cross-compilation environments, therefore Automake
3795# will honor the `STRIP' environment variable to overrule this program.
3796if test "$cross_compiling" != no; then
3797 if test -n "$ac_tool_prefix"; then
3798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3799set dummy ${ac_tool_prefix}strip; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003802if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003803 $as_echo_n "(cached) " >&6
3804else
3805 if test -n "$STRIP"; then
3806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819done
3820 done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825STRIP=$ac_cv_prog_STRIP
3826if test -n "$STRIP"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3828$as_echo "$STRIP" >&6; }
3829else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834
3835fi
3836if test -z "$ac_cv_prog_STRIP"; then
3837 ac_ct_STRIP=$STRIP
3838 # Extract the first word of "strip", so it can be a program name with args.
3839set dummy strip; ac_word=$2
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003842if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003843 $as_echo_n "(cached) " >&6
3844else
3845 if test -n "$ac_ct_STRIP"; then
3846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3855 ac_cv_prog_ac_ct_STRIP="strip"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
3860 done
3861IFS=$as_save_IFS
3862
3863fi
3864fi
3865ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3866if test -n "$ac_ct_STRIP"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3868$as_echo "$ac_ct_STRIP" >&6; }
3869else
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871$as_echo "no" >&6; }
3872fi
3873
3874 if test "x$ac_ct_STRIP" = x; then
3875 STRIP=":"
3876 else
3877 case $cross_compiling:$ac_tool_warned in
3878yes:)
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881ac_tool_warned=yes ;;
3882esac
3883 STRIP=$ac_ct_STRIP
3884 fi
3885else
3886 STRIP="$ac_cv_prog_STRIP"
3887fi
3888
3889fi
3890INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3891
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3893$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3894if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003895 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003896 $as_echo_n "(cached) " >&6
3897else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_prog in mkdir gmkdir; do
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3907 'mkdir (GNU coreutils) '* | \
3908 'mkdir (coreutils) '* | \
3909 'mkdir (fileutils) '4.1*)
3910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3911 break 3;;
3912 esac
3913 done
3914 done
3915 done
3916IFS=$as_save_IFS
3917
3918fi
3919
3920 test -d ./--version && rmdir ./--version
3921 if test "${ac_cv_path_mkdir+set}" = set; then
3922 MKDIR_P="$ac_cv_path_mkdir -p"
3923 else
3924 # As a last resort, use the slow shell script. Don't cache a
3925 # value for MKDIR_P within a source directory, because that will
3926 # break other packages using the cache if that directory is
3927 # removed, or if the value is a relative name.
3928 MKDIR_P="$ac_install_sh -d"
3929 fi
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3932$as_echo "$MKDIR_P" >&6; }
3933
3934mkdir_p="$MKDIR_P"
3935case $mkdir_p in
3936 [\\/$]* | ?:[\\/]*) ;;
3937 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3938esac
3939
3940for ac_prog in gawk mawk nawk awk
3941do
3942 # Extract the first word of "$ac_prog", so it can be a program name with args.
3943set dummy $ac_prog; ac_word=$2
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003946if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003947 $as_echo_n "(cached) " >&6
3948else
3949 if test -n "$AWK"; then
3950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_AWK="$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963done
3964 done
3965IFS=$as_save_IFS
3966
3967fi
3968fi
3969AWK=$ac_cv_prog_AWK
3970if test -n "$AWK"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3972$as_echo "$AWK" >&6; }
3973else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
3976fi
3977
3978
3979 test -n "$AWK" && break
3980done
3981
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3983$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3984set x ${MAKE-make}
3985ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003986if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003987 $as_echo_n "(cached) " >&6
3988else
3989 cat >conftest.make <<\_ACEOF
3990SHELL = /bin/sh
3991all:
3992 @echo '@@@%%%=$(MAKE)=@@@%%%'
3993_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003994# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003995case `${MAKE-make} -f conftest.make 2>/dev/null` in
3996 *@@@%%%=?*=@@@%%%*)
3997 eval ac_cv_prog_make_${ac_make}_set=yes;;
3998 *)
3999 eval ac_cv_prog_make_${ac_make}_set=no;;
4000esac
4001rm -f conftest.make
4002fi
4003if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005$as_echo "yes" >&6; }
4006 SET_MAKE=
4007else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
4010 SET_MAKE="MAKE=${MAKE-make}"
4011fi
4012
4013rm -rf .tst 2>/dev/null
4014mkdir .tst 2>/dev/null
4015if test -d .tst; then
4016 am__leading_dot=.
4017else
4018 am__leading_dot=_
4019fi
4020rmdir .tst 2>/dev/null
4021
cristya448bd22011-10-14 12:38:13 +00004022# Check whether --enable-silent-rules was given.
4023if test "${enable_silent_rules+set}" = set; then :
4024 enableval=$enable_silent_rules;
4025fi
4026
4027case $enable_silent_rules in
4028yes) AM_DEFAULT_VERBOSITY=0;;
4029no) AM_DEFAULT_VERBOSITY=1;;
4030*) AM_DEFAULT_VERBOSITY=1;;
4031esac
4032AM_BACKSLASH='\'
4033
cristy73bd4a52010-10-05 11:24:23 +00004034if test "`cd $srcdir && pwd`" != "`pwd`"; then
4035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4036 # is not polluted with repeated "-I."
4037 am__isrc=' -I$(srcdir)'
4038 # test to see if srcdir already configured
4039 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004040 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004041 fi
4042fi
4043
4044# test whether we have cygpath
4045if test -z "$CYGPATH_W"; then
4046 if (cygpath --version) >/dev/null 2>/dev/null; then
4047 CYGPATH_W='cygpath -w'
4048 else
4049 CYGPATH_W=echo
4050 fi
4051fi
4052
4053
4054# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004055 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004056 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004057
4058
cristya448bd22011-10-14 12:38:13 +00004059cat >>confdefs.h <<_ACEOF
4060#define PACKAGE "$PACKAGE"
4061_ACEOF
4062
4063
4064cat >>confdefs.h <<_ACEOF
4065#define VERSION "$VERSION"
4066_ACEOF
4067
cristy73bd4a52010-10-05 11:24:23 +00004068# Some tools Automake needs.
4069
4070ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4071
4072
4073AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4074
4075
4076AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4077
4078
4079AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4080
4081
4082MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4083
4084# We need awk for the "check" target. The system "awk" is bad on
4085# some platforms.
4086# Always define AMTAR for backward compatibility.
4087
4088AMTAR=${AMTAR-"${am_missing_run}tar"}
4089
4090am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4091
4092
4093
4094
4095
cristy3ed852e2009-09-05 21:47:34 +00004096
4097# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004098# Check whether --enable-silent-rules was given.
4099if test "${enable_silent_rules+set}" = set; then :
4100 enableval=$enable_silent_rules;
4101fi
4102
4103case $enable_silent_rules in
4104yes) AM_DEFAULT_VERBOSITY=0;;
4105no) AM_DEFAULT_VERBOSITY=1;;
4106*) AM_DEFAULT_VERBOSITY=0;;
4107esac
4108AM_BACKSLASH='\'
4109
cristy3ed852e2009-09-05 21:47:34 +00004110
4111MAGICK_LIB_VERSION="0x"
4112if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4113 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4114fi
4115MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4116if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4117 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4118fi
4119MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4120if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4121 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4122fi
4123MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4124
4125
4126# Definition used to define MagickLibVersionText in version.h
4127MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4128
4129
4130# Definition used to define MagickLibVersionNumber in version.h
4131MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4132
4133
4134# Regenerate config.status if ChangeLog or version.sh is updated.
4135CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4136
4137
4138PERLMAINCC=$CC
4139
4140MAGICK_CFLAGS=''
4141MAGICK_CPPFLAGS=$CPPFLAGS_USER
4142MAGICK_PCFLAGS=$CPPFLAGS_USER
4143MAGICK_LDFLAGS=''
4144MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004145MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004146
4147#
4148# Evaluate shell variable equivalents to Makefile directory variables
4149#
4150if test "x$prefix" = xNONE; then
4151 prefix=$ac_default_prefix
4152fi
4153# Let make expand exec_prefix.
4154if test "x$exec_prefix" = xNONE; then
4155 exec_prefix='${prefix}'
4156fi
4157
4158#
4159eval "eval PREFIX_DIR=${prefix}"
4160
4161eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4162
4163eval "eval BIN_DIR=$bindir"
4164
4165eval "eval SBIN_DIR=$sbindir"
4166
4167eval "eval LIBEXEC_DIR=$libexecdir"
4168
4169eval "eval DATA_DIR=$datadir"
4170
cristyd55889c2011-03-27 00:50:24 +00004171eval "eval DOC_DIR=$docdir"
4172
cristy3ed852e2009-09-05 21:47:34 +00004173eval "eval SYSCONF_DIR=$sysconfdir"
4174
4175eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4176
4177eval "eval LOCALSTATE_DIR=$localstatedir"
4178
4179eval "eval LIB_DIR=$libdir"
4180
4181eval "eval INCLUDE_DIR=$includedir"
4182
4183eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4184
4185eval "eval INFO_DIR=$infodir"
4186
4187eval "eval MAN_DIR=$mandir"
4188
4189
4190# Get full paths to source and build directories
4191srcdirfull="`cd $srcdir && pwd`"
4192builddir="`pwd`"
4193
4194#
4195# Compute variables useful for running uninstalled software.
4196#
4197MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4198MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4199MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4200MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4201DIRSEP=':'
4202case "${build_os}" in
4203 mingw* )
4204 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4205 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4206 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4207 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4208 DIRSEP=';'
4209 ;;
4210esac
4211case "${host_os}" in
4212 mingw* )
4213 DIRSEP=';'
4214 ;;
4215esac
4216
4217
4218
4219
4220
4221
cristya0b81c32010-01-22 02:54:33 +00004222
4223#
4224# Enable OS features.
4225#
cristy73bd4a52010-10-05 11:24:23 +00004226DEPDIR="${am__leading_dot}deps"
4227
4228ac_config_commands="$ac_config_commands depfiles"
4229
4230
4231am_make=${MAKE-make}
4232cat > confinc << 'END'
4233am__doit:
4234 @echo this is the am__doit target
4235.PHONY: am__doit
4236END
4237# If we don't find an include directive, just comment out the code.
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4239$as_echo_n "checking for style of include used by $am_make... " >&6; }
4240am__include="#"
4241am__quote=
4242_am_result=none
4243# First try GNU make style include.
4244echo "include confinc" > confmf
4245# Ignore all kinds of additional output from `make'.
4246case `$am_make -s -f confmf 2> /dev/null` in #(
4247*the\ am__doit\ target*)
4248 am__include=include
4249 am__quote=
4250 _am_result=GNU
4251 ;;
4252esac
4253# Now try BSD make style include.
4254if test "$am__include" = "#"; then
4255 echo '.include "confinc"' > confmf
4256 case `$am_make -s -f confmf 2> /dev/null` in #(
4257 *the\ am__doit\ target*)
4258 am__include=.include
4259 am__quote="\""
4260 _am_result=BSD
4261 ;;
4262 esac
4263fi
4264
4265
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4267$as_echo "$_am_result" >&6; }
4268rm -f confinc confmf
4269
4270# Check whether --enable-dependency-tracking was given.
4271if test "${enable_dependency_tracking+set}" = set; then :
4272 enableval=$enable_dependency_tracking;
4273fi
4274
4275if test "x$enable_dependency_tracking" != xno; then
4276 am_depcomp="$ac_aux_dir/depcomp"
4277 AMDEPBACKSLASH='\'
4278fi
4279 if test "x$enable_dependency_tracking" != xno; then
4280 AMDEP_TRUE=
4281 AMDEP_FALSE='#'
4282else
4283 AMDEP_TRUE='#'
4284 AMDEP_FALSE=
4285fi
4286
4287
cristy3ed852e2009-09-05 21:47:34 +00004288ac_ext=c
4289ac_cpp='$CPP $CPPFLAGS'
4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4295set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004298if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004299 $as_echo_n "(cached) " >&6
4300else
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC="$CC" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004313 break 2
4314 fi
4315done
cristy8b350f62009-11-15 23:12:43 +00004316 done
cristy3ed852e2009-09-05 21:47:34 +00004317IFS=$as_save_IFS
4318
4319fi
4320fi
4321CC=$ac_cv_prog_CC
4322if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324$as_echo "$CC" >&6; }
4325else
cristy8b350f62009-11-15 23:12:43 +00004326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004327$as_echo "no" >&6; }
4328fi
4329
4330
4331fi
4332if test -z "$ac_cv_prog_CC"; then
4333 ac_ct_CC=$CC
4334 # Extract the first word of "gcc", so it can be a program name with args.
4335set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004338if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004339 $as_echo_n "(cached) " >&6
4340else
4341 if test -n "$ac_ct_CC"; then
4342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4343else
4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353 break 2
4354 fi
4355done
cristy8b350f62009-11-15 23:12:43 +00004356 done
cristy3ed852e2009-09-05 21:47:34 +00004357IFS=$as_save_IFS
4358
4359fi
4360fi
4361ac_ct_CC=$ac_cv_prog_ac_ct_CC
4362if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "$ac_ct_CC" >&6; }
4365else
cristy8b350f62009-11-15 23:12:43 +00004366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004367$as_echo "no" >&6; }
4368fi
4369
4370 if test "x$ac_ct_CC" = x; then
4371 CC=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374yes:)
cristy8b350f62009-11-15 23:12:43 +00004375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377ac_tool_warned=yes ;;
4378esac
4379 CC=$ac_ct_CC
4380 fi
4381else
4382 CC="$ac_cv_prog_CC"
4383fi
4384
4385if test -z "$CC"; then
4386 if test -n "$ac_tool_prefix"; then
4387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4388set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004391if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004392 $as_echo_n "(cached) " >&6
4393else
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC="$CC" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004406 break 2
4407 fi
4408done
cristy8b350f62009-11-15 23:12:43 +00004409 done
cristy3ed852e2009-09-05 21:47:34 +00004410IFS=$as_save_IFS
4411
4412fi
4413fi
4414CC=$ac_cv_prog_CC
4415if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo "$CC" >&6; }
4418else
cristy8b350f62009-11-15 23:12:43 +00004419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420$as_echo "no" >&6; }
4421fi
4422
4423
4424 fi
4425fi
4426if test -z "$CC"; then
4427 # Extract the first word of "cc", so it can be a program name with args.
4428set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004431if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004432 $as_echo_n "(cached) " >&6
4433else
4434 if test -n "$CC"; then
4435 ac_cv_prog_CC="$CC" # Let the user override the test.
4436else
4437 ac_prog_rejected=no
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4446 ac_prog_rejected=yes
4447 continue
4448 fi
4449 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004451 break 2
4452 fi
4453done
cristy8b350f62009-11-15 23:12:43 +00004454 done
cristy3ed852e2009-09-05 21:47:34 +00004455IFS=$as_save_IFS
4456
4457if test $ac_prog_rejected = yes; then
4458 # We found a bogon in the path, so make sure we never use it.
4459 set dummy $ac_cv_prog_CC
4460 shift
4461 if test $# != 0; then
4462 # We chose a different compiler from the bogus one.
4463 # However, it has the same basename, so the bogon will be chosen
4464 # first if we set CC to just the basename; use the full file name.
4465 shift
4466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4467 fi
4468fi
4469fi
4470fi
4471CC=$ac_cv_prog_CC
4472if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004474$as_echo "$CC" >&6; }
4475else
cristy8b350f62009-11-15 23:12:43 +00004476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477$as_echo "no" >&6; }
4478fi
4479
4480
4481fi
4482if test -z "$CC"; then
4483 if test -n "$ac_tool_prefix"; then
4484 for ac_prog in cl.exe
4485 do
4486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004490if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004491 $as_echo_n "(cached) " >&6
4492else
4493 if test -n "$CC"; then
4494 ac_cv_prog_CC="$CC" # Let the user override the test.
4495else
4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505 break 2
4506 fi
4507done
cristy8b350f62009-11-15 23:12:43 +00004508 done
cristy3ed852e2009-09-05 21:47:34 +00004509IFS=$as_save_IFS
4510
4511fi
4512fi
4513CC=$ac_cv_prog_CC
4514if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516$as_echo "$CC" >&6; }
4517else
cristy8b350f62009-11-15 23:12:43 +00004518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519$as_echo "no" >&6; }
4520fi
4521
4522
4523 test -n "$CC" && break
4524 done
4525fi
4526if test -z "$CC"; then
4527 ac_ct_CC=$CC
4528 for ac_prog in cl.exe
4529do
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004534if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004535 $as_echo_n "(cached) " >&6
4536else
4537 if test -n "$ac_ct_CC"; then
4538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549 break 2
4550 fi
4551done
cristy8b350f62009-11-15 23:12:43 +00004552 done
cristy3ed852e2009-09-05 21:47:34 +00004553IFS=$as_save_IFS
4554
4555fi
4556fi
4557ac_ct_CC=$ac_cv_prog_ac_ct_CC
4558if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo "$ac_ct_CC" >&6; }
4561else
cristy8b350f62009-11-15 23:12:43 +00004562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563$as_echo "no" >&6; }
4564fi
4565
4566
4567 test -n "$ac_ct_CC" && break
4568done
4569
4570 if test "x$ac_ct_CC" = x; then
4571 CC=""
4572 else
4573 case $cross_compiling:$ac_tool_warned in
4574yes:)
cristy8b350f62009-11-15 23:12:43 +00004575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577ac_tool_warned=yes ;;
4578esac
4579 CC=$ac_ct_CC
4580 fi
4581fi
4582
4583fi
4584
4585
cristy8b350f62009-11-15 23:12:43 +00004586test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004588as_fn_error $? "no acceptable C compiler found in \$PATH
4589See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004590
4591# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004592$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004593set X $ac_compile
4594ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004595for ac_option in --version -v -V -qversion; do
4596 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004597case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
cristy8b350f62009-11-15 23:12:43 +00004601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4602$as_echo "$ac_try_echo"; } >&5
4603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004604 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004605 if test -s conftest.err; then
4606 sed '10a\
4607... rest of stderr output deleted ...
4608 10q' conftest.err >conftest.er1
4609 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004610 fi
cristycd4c5312009-11-22 01:19:08 +00004611 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4613 test $ac_status = 0; }
4614done
cristy3ed852e2009-09-05 21:47:34 +00004615
cristy8b350f62009-11-15 23:12:43 +00004616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004617/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004618
cristy3ed852e2009-09-05 21:47:34 +00004619int
4620main ()
4621{
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004628ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004629# Try to create an executable without -o first, disregard a.out.
4630# It will help us diagnose broken compilers, and finding out an intuition
4631# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4633$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004634ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4635
4636# The possible output files:
4637ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4638
4639ac_rmfiles=
4640for ac_file in $ac_files
4641do
4642 case $ac_file in
4643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4644 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4645 esac
4646done
4647rm -f $ac_rmfiles
4648
cristy8b350f62009-11-15 23:12:43 +00004649if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004650case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653esac
cristy8b350f62009-11-15 23:12:43 +00004654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004656 (eval "$ac_link_default") 2>&5
4657 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004660 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4661# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4662# in a Makefile. We should not override ac_cv_exeext if it was cached,
4663# so that the user can short-circuit this test for compilers unknown to
4664# Autoconf.
4665for ac_file in $ac_files ''
4666do
4667 test -f "$ac_file" || continue
4668 case $ac_file in
4669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4670 ;;
4671 [ab].out )
4672 # We found the default executable, but exeext='' is most
4673 # certainly right.
4674 break;;
4675 *.* )
cristy8b350f62009-11-15 23:12:43 +00004676 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004677 then :; else
4678 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4679 fi
4680 # We set ac_cv_exeext here because the later test for it is not
4681 # safe: cross compilers may not add the suffix if given an `-o'
4682 # argument, so we may need to know it at that point already.
4683 # Even if this section looks crufty: it has the advantage of
4684 # actually working.
4685 break;;
4686 * )
4687 break;;
4688 esac
4689done
4690test "$ac_cv_exeext" = no && ac_cv_exeext=
4691
4692else
4693 ac_file=''
4694fi
cristy8b350f62009-11-15 23:12:43 +00004695if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697$as_echo "no" >&6; }
4698$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699sed 's/^/| /' conftest.$ac_ext >&5
4700
cristy8b350f62009-11-15 23:12:43 +00004701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004703as_fn_error 77 "C compiler cannot create executables
4704See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004705else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004708fi
cristycd4c5312009-11-22 01:19:08 +00004709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4710$as_echo_n "checking for C compiler default output file name... " >&6; }
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4712$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004713ac_exeext=$ac_cv_exeext
4714
cristycd4c5312009-11-22 01:19:08 +00004715rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004716ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004719if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004720case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723esac
cristy8b350f62009-11-15 23:12:43 +00004724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4725$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004726 (eval "$ac_link") 2>&5
4727 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4729 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004730 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4731# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4732# work properly (i.e., refer to `conftest.exe'), while it won't with
4733# `rm'.
4734for ac_file in conftest.exe conftest conftest.*; do
4735 test -f "$ac_file" || continue
4736 case $ac_file in
4737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4739 break;;
4740 * ) break;;
4741 esac
4742done
4743else
cristy8b350f62009-11-15 23:12:43 +00004744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004746as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4747See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004748fi
cristycd4c5312009-11-22 01:19:08 +00004749rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004751$as_echo "$ac_cv_exeext" >&6; }
4752
4753rm -f conftest.$ac_ext
4754EXEEXT=$ac_cv_exeext
4755ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h. */
4758#include <stdio.h>
4759int
4760main ()
4761{
4762FILE *f = fopen ("conftest.out", "w");
4763 return ferror (f) || fclose (f) != 0;
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769ac_clean_files="$ac_clean_files conftest.out"
4770# Check that the compiler produces executables we can run. If not, either
4771# the compiler is broken, or we cross compile.
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4773$as_echo_n "checking whether we are cross compiling... " >&6; }
4774if test "$cross_compiling" != yes; then
4775 { { ac_try="$ac_link"
4776case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779esac
4780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4781$as_echo "$ac_try_echo"; } >&5
4782 (eval "$ac_link") 2>&5
4783 ac_status=$?
4784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4785 test $ac_status = 0; }
4786 if { ac_try='./conftest$ac_cv_exeext'
4787 { { case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790esac
4791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4792$as_echo "$ac_try_echo"; } >&5
4793 (eval "$ac_try") 2>&5
4794 ac_status=$?
4795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4796 test $ac_status = 0; }; }; then
4797 cross_compiling=no
4798 else
4799 if test "$cross_compiling" = maybe; then
4800 cross_compiling=yes
4801 else
4802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004804as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004805If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004806See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004807 fi
4808 fi
4809fi
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4811$as_echo "$cross_compiling" >&6; }
4812
4813rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4814ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004817if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004818 $as_echo_n "(cached) " >&6
4819else
cristy8b350f62009-11-15 23:12:43 +00004820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004821/* end confdefs.h. */
4822
4823int
4824main ()
4825{
4826
4827 ;
4828 return 0;
4829}
4830_ACEOF
4831rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004832if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004833case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836esac
cristy8b350f62009-11-15 23:12:43 +00004837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4838$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004839 (eval "$ac_compile") 2>&5
4840 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4842 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004843 for ac_file in conftest.o conftest.obj conftest.*; do
4844 test -f "$ac_file" || continue;
4845 case $ac_file in
4846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4847 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4848 break;;
4849 esac
4850done
4851else
4852 $as_echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
cristy8b350f62009-11-15 23:12:43 +00004855{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004857as_fn_error $? "cannot compute suffix of object files: cannot compile
4858See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004859fi
cristy3ed852e2009-09-05 21:47:34 +00004860rm -f conftest.$ac_cv_objext conftest.$ac_ext
4861fi
cristy8b350f62009-11-15 23:12:43 +00004862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004863$as_echo "$ac_cv_objext" >&6; }
4864OBJEXT=$ac_cv_objext
4865ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004868if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004869 $as_echo_n "(cached) " >&6
4870else
cristy8b350f62009-11-15 23:12:43 +00004871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004872/* end confdefs.h. */
4873
4874int
4875main ()
4876{
4877#ifndef __GNUC__
4878 choke me
4879#endif
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004885if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004886 ac_compiler_gnu=yes
4887else
cristy8b350f62009-11-15 23:12:43 +00004888 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004889fi
cristy3ed852e2009-09-05 21:47:34 +00004890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891ac_cv_c_compiler_gnu=$ac_compiler_gnu
4892
4893fi
cristy8b350f62009-11-15 23:12:43 +00004894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004895$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4896if test $ac_compiler_gnu = yes; then
4897 GCC=yes
4898else
4899 GCC=
4900fi
4901ac_test_CFLAGS=${CFLAGS+set}
4902ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004904$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004905if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004906 $as_echo_n "(cached) " >&6
4907else
4908 ac_save_c_werror_flag=$ac_c_werror_flag
4909 ac_c_werror_flag=yes
4910 ac_cv_prog_cc_g=no
4911 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004913/* end confdefs.h. */
4914
4915int
4916main ()
4917{
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004923if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004924 ac_cv_prog_cc_g=yes
4925else
cristy8b350f62009-11-15 23:12:43 +00004926 CFLAGS=""
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
4933
4934 ;
4935 return 0;
4936}
4937_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004938if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004939
cristy8b350f62009-11-15 23:12:43 +00004940else
4941 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004942 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004944/* end confdefs.h. */
4945
4946int
4947main ()
4948{
4949
4950 ;
4951 return 0;
4952}
4953_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004954if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004955 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004956fi
cristy3ed852e2009-09-05 21:47:34 +00004957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958fi
cristy3ed852e2009-09-05 21:47:34 +00004959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960fi
cristy3ed852e2009-09-05 21:47:34 +00004961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4963fi
cristy8b350f62009-11-15 23:12:43 +00004964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004965$as_echo "$ac_cv_prog_cc_g" >&6; }
4966if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4970 CFLAGS="-g -O2"
4971 else
4972 CFLAGS="-g"
4973 fi
4974else
4975 if test "$GCC" = yes; then
4976 CFLAGS="-O2"
4977 else
4978 CFLAGS=
4979 fi
4980fi
cristy8b350f62009-11-15 23:12:43 +00004981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004982$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004983if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004984 $as_echo_n "(cached) " >&6
4985else
4986 ac_cv_prog_cc_c89=no
4987ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004989/* end confdefs.h. */
4990#include <stdarg.h>
4991#include <stdio.h>
4992#include <sys/types.h>
4993#include <sys/stat.h>
4994/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4995struct buf { int x; };
4996FILE * (*rcsopen) (struct buf *, struct stat *, int);
4997static char *e (p, i)
4998 char **p;
4999 int i;
5000{
5001 return p[i];
5002}
5003static char *f (char * (*g) (char **, int), char **p, ...)
5004{
5005 char *s;
5006 va_list v;
5007 va_start (v,p);
5008 s = g (p, va_arg (v,int));
5009 va_end (v);
5010 return s;
5011}
5012
5013/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5014 function prototypes and stuff, but not '\xHH' hex character constants.
5015 These don't provoke an error unfortunately, instead are silently treated
5016 as 'x'. The following induces an error, until -std is added to get
5017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5018 array size at least. It's necessary to write '\x00'==0 to get something
5019 that's true only with -std. */
5020int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5021
5022/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5023 inside strings and character constants. */
5024#define FOO(x) 'x'
5025int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5026
5027int test (int i, double x);
5028struct s1 {int (*f) (int a);};
5029struct s2 {int (*f) (double a);};
5030int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5031int argc;
5032char **argv;
5033int
5034main ()
5035{
5036return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5037 ;
5038 return 0;
5039}
5040_ACEOF
5041for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5043do
5044 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005045 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005046 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005047fi
cristy3ed852e2009-09-05 21:47:34 +00005048rm -f core conftest.err conftest.$ac_objext
5049 test "x$ac_cv_prog_cc_c89" != "xno" && break
5050done
5051rm -f conftest.$ac_ext
5052CC=$ac_save_CC
5053
5054fi
5055# AC_CACHE_VAL
5056case "x$ac_cv_prog_cc_c89" in
5057 x)
cristy8b350f62009-11-15 23:12:43 +00005058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005059$as_echo "none needed" >&6; } ;;
5060 xno)
cristy8b350f62009-11-15 23:12:43 +00005061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005062$as_echo "unsupported" >&6; } ;;
5063 *)
5064 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005066$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5067esac
cristy8b350f62009-11-15 23:12:43 +00005068if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005069
cristy8b350f62009-11-15 23:12:43 +00005070fi
cristy3ed852e2009-09-05 21:47:34 +00005071
5072ac_ext=c
5073ac_cpp='$CPP $CPPFLAGS'
5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005077
cristy73bd4a52010-10-05 11:24:23 +00005078depcc="$CC" am_compiler_list=
5079
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5081$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005082if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005083 $as_echo_n "(cached) " >&6
5084else
5085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5086 # We make a subdir and do the tests there. Otherwise we can end up
5087 # making bogus files that we don't know about and never remove. For
5088 # instance it was reported that on HP-UX the gcc test will end up
5089 # making a dummy file named `D' -- because `-MD' means `put the output
5090 # in D'.
5091 mkdir conftest.dir
5092 # Copy depcomp to subdir because otherwise we won't find it if we're
5093 # using a relative directory.
5094 cp "$am_depcomp" conftest.dir
5095 cd conftest.dir
5096 # We will build objects and dependencies in a subdirectory because
5097 # it helps to detect inapplicable dependency modes. For instance
5098 # both Tru64's cc and ICC support -MD to output dependencies as a
5099 # side effect of compilation, but ICC will put the dependencies in
5100 # the current directory while Tru64 will put them in the object
5101 # directory.
5102 mkdir sub
5103
5104 am_cv_CC_dependencies_compiler_type=none
5105 if test "$am_compiler_list" = ""; then
5106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5107 fi
5108 am__universal=false
5109 case " $depcc " in #(
5110 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5111 esac
5112
5113 for depmode in $am_compiler_list; do
5114 # Setup a source with many dependencies, because some compilers
5115 # like to wrap large dependency lists on column 80 (with \), and
5116 # we should not choose a depcomp mode which is confused by this.
5117 #
5118 # We need to recreate these files for each test, as the compiler may
5119 # overwrite some of them when testing with obscure command lines.
5120 # This happens at least with the AIX C compiler.
5121 : > sub/conftest.c
5122 for i in 1 2 3 4 5 6; do
5123 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5124 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5125 # Solaris 8's {/usr,}/bin/sh.
5126 touch sub/conftst$i.h
5127 done
5128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5129
5130 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5131 # mode. It turns out that the SunPro C++ compiler does not properly
5132 # handle `-M -o', and we need to detect this. Also, some Intel
5133 # versions had trouble with output in subdirs
5134 am__obj=sub/conftest.${OBJEXT-o}
5135 am__minus_obj="-o $am__obj"
5136 case $depmode in
5137 gcc)
5138 # This depmode causes a compiler race in universal mode.
5139 test "$am__universal" = false || continue
5140 ;;
5141 nosideeffect)
5142 # after this tag, mechanisms are not by side-effect, so they'll
5143 # only be used when explicitly requested
5144 if test "x$enable_dependency_tracking" = xyes; then
5145 continue
5146 else
5147 break
5148 fi
5149 ;;
5150 msvisualcpp | msvcmsys)
5151 # This compiler won't grok `-c -o', but also, the minuso test has
5152 # not run yet. These depmodes are late enough in the game, and
5153 # so weak that their functioning should not be impacted.
5154 am__obj=conftest.${OBJEXT-o}
5155 am__minus_obj=
5156 ;;
5157 none) break ;;
5158 esac
5159 if depmode=$depmode \
5160 source=sub/conftest.c object=$am__obj \
5161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5163 >/dev/null 2>conftest.err &&
5164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5168 # icc doesn't choke on unknown options, it will just issue warnings
5169 # or remarks (even with -Werror). So we grep stderr for any message
5170 # that says an option was ignored or not supported.
5171 # When given -MP, icc 7.0 and 7.1 complain thusly:
5172 # icc: Command line warning: ignoring option '-M'; no argument required
5173 # The diagnosis changed in icc 8.0:
5174 # icc: Command line remark: option '-MP' not supported
5175 if (grep 'ignoring option' conftest.err ||
5176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5177 am_cv_CC_dependencies_compiler_type=$depmode
5178 break
5179 fi
5180 fi
5181 done
5182
5183 cd ..
5184 rm -rf conftest.dir
5185else
5186 am_cv_CC_dependencies_compiler_type=none
5187fi
5188
5189fi
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5191$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5192CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5193
5194 if
5195 test "x$enable_dependency_tracking" != xno \
5196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5197 am__fastdepCC_TRUE=
5198 am__fastdepCC_FALSE='#'
5199else
5200 am__fastdepCC_TRUE='#'
5201 am__fastdepCC_FALSE=
5202fi
5203
5204
cristy3ed852e2009-09-05 21:47:34 +00005205
cristya0b81c32010-01-22 02:54:33 +00005206ac_ext=c
5207ac_cpp='$CPP $CPPFLAGS'
5208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5212$as_echo_n "checking how to run the C preprocessor... " >&6; }
5213# On Suns, sometimes $CPP names a directory.
5214if test -n "$CPP" && test -d "$CPP"; then
5215 CPP=
5216fi
5217if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005218 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005219 $as_echo_n "(cached) " >&6
5220else
5221 # Double quotes because CPP needs to be expanded
5222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5223 do
5224 ac_preproc_ok=false
5225for ac_c_preproc_warn_flag in '' yes
5226do
5227 # Use a header file that comes with gcc, so configuring glibc
5228 # with a fresh cross-compiler works.
5229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230 # <limits.h> exists even on freestanding compilers.
5231 # On the NeXT, cc -E runs the code through the compiler's parser,
5232 # not just through cpp. "Syntax error" is here to catch this case.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h. */
5235#ifdef __STDC__
5236# include <limits.h>
5237#else
5238# include <assert.h>
5239#endif
5240 Syntax error
5241_ACEOF
5242if ac_fn_c_try_cpp "$LINENO"; then :
5243
5244else
5245 # Broken: fails on valid input.
5246continue
5247fi
cristyda16f162011-02-19 23:52:17 +00005248rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005249
5250 # OK, works on sane cases. Now check whether nonexistent headers
5251 # can be detected and how.
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h. */
5254#include <ac_nonexistent.h>
5255_ACEOF
5256if ac_fn_c_try_cpp "$LINENO"; then :
5257 # Broken: success on invalid input.
5258continue
5259else
5260 # Passes both tests.
5261ac_preproc_ok=:
5262break
5263fi
cristyda16f162011-02-19 23:52:17 +00005264rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005265
5266done
5267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005268rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005269if $ac_preproc_ok; then :
5270 break
5271fi
5272
5273 done
5274 ac_cv_prog_CPP=$CPP
5275
5276fi
5277 CPP=$ac_cv_prog_CPP
5278else
5279 ac_cv_prog_CPP=$CPP
5280fi
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5282$as_echo "$CPP" >&6; }
5283ac_preproc_ok=false
5284for ac_c_preproc_warn_flag in '' yes
5285do
5286 # Use a header file that comes with gcc, so configuring glibc
5287 # with a fresh cross-compiler works.
5288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5289 # <limits.h> exists even on freestanding compilers.
5290 # On the NeXT, cc -E runs the code through the compiler's parser,
5291 # not just through cpp. "Syntax error" is here to catch this case.
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h. */
5294#ifdef __STDC__
5295# include <limits.h>
5296#else
5297# include <assert.h>
5298#endif
5299 Syntax error
5300_ACEOF
5301if ac_fn_c_try_cpp "$LINENO"; then :
5302
5303else
5304 # Broken: fails on valid input.
5305continue
5306fi
cristyda16f162011-02-19 23:52:17 +00005307rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005308
5309 # OK, works on sane cases. Now check whether nonexistent headers
5310 # can be detected and how.
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h. */
5313#include <ac_nonexistent.h>
5314_ACEOF
5315if ac_fn_c_try_cpp "$LINENO"; then :
5316 # Broken: success on invalid input.
5317continue
5318else
5319 # Passes both tests.
5320ac_preproc_ok=:
5321break
5322fi
cristyda16f162011-02-19 23:52:17 +00005323rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005324
5325done
5326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005327rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005328if $ac_preproc_ok; then :
5329
5330else
5331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005333as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5334See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005335fi
5336
5337ac_ext=c
5338ac_cpp='$CPP $CPPFLAGS'
5339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342
5343
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5345$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005346if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005347 $as_echo_n "(cached) " >&6
5348else
5349 if test -z "$GREP"; then
5350 ac_path_GREP_found=false
5351 # Loop through the user's path and test for each of PROGNAME-LIST
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_prog in grep ggrep; do
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5360 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5361# Check for GNU ac_path_GREP and select it if it is found.
5362 # Check for GNU $ac_path_GREP
5363case `"$ac_path_GREP" --version 2>&1` in
5364*GNU*)
5365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5366*)
5367 ac_count=0
5368 $as_echo_n 0123456789 >"conftest.in"
5369 while :
5370 do
5371 cat "conftest.in" "conftest.in" >"conftest.tmp"
5372 mv "conftest.tmp" "conftest.in"
5373 cp "conftest.in" "conftest.nl"
5374 $as_echo 'GREP' >> "conftest.nl"
5375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5377 as_fn_arith $ac_count + 1 && ac_count=$as_val
5378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5379 # Best one so far, save it but keep looking for a better one
5380 ac_cv_path_GREP="$ac_path_GREP"
5381 ac_path_GREP_max=$ac_count
5382 fi
5383 # 10*(2^10) chars as input seems more than enough
5384 test $ac_count -gt 10 && break
5385 done
5386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5387esac
5388
5389 $ac_path_GREP_found && break 3
5390 done
5391 done
5392 done
5393IFS=$as_save_IFS
5394 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005395 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005396 fi
5397else
5398 ac_cv_path_GREP=$GREP
5399fi
5400
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5403$as_echo "$ac_cv_path_GREP" >&6; }
5404 GREP="$ac_cv_path_GREP"
5405
5406
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5408$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005409if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005410 $as_echo_n "(cached) " >&6
5411else
5412 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5413 then ac_cv_path_EGREP="$GREP -E"
5414 else
5415 if test -z "$EGREP"; then
5416 ac_path_EGREP_found=false
5417 # Loop through the user's path and test for each of PROGNAME-LIST
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5420do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_prog in egrep; do
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5426 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5427# Check for GNU ac_path_EGREP and select it if it is found.
5428 # Check for GNU $ac_path_EGREP
5429case `"$ac_path_EGREP" --version 2>&1` in
5430*GNU*)
5431 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5432*)
5433 ac_count=0
5434 $as_echo_n 0123456789 >"conftest.in"
5435 while :
5436 do
5437 cat "conftest.in" "conftest.in" >"conftest.tmp"
5438 mv "conftest.tmp" "conftest.in"
5439 cp "conftest.in" "conftest.nl"
5440 $as_echo 'EGREP' >> "conftest.nl"
5441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5443 as_fn_arith $ac_count + 1 && ac_count=$as_val
5444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5445 # Best one so far, save it but keep looking for a better one
5446 ac_cv_path_EGREP="$ac_path_EGREP"
5447 ac_path_EGREP_max=$ac_count
5448 fi
5449 # 10*(2^10) chars as input seems more than enough
5450 test $ac_count -gt 10 && break
5451 done
5452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5453esac
5454
5455 $ac_path_EGREP_found && break 3
5456 done
5457 done
5458 done
5459IFS=$as_save_IFS
5460 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005461 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005462 fi
5463else
5464 ac_cv_path_EGREP=$EGREP
5465fi
5466
5467 fi
5468fi
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5470$as_echo "$ac_cv_path_EGREP" >&6; }
5471 EGREP="$ac_cv_path_EGREP"
5472
5473
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5475$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005476if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005477 $as_echo_n "(cached) " >&6
5478else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481#include <stdlib.h>
5482#include <stdarg.h>
5483#include <string.h>
5484#include <float.h>
5485
5486int
5487main ()
5488{
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_cv_header_stdc=yes
5496else
5497 ac_cv_header_stdc=no
5498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500
5501if test $ac_cv_header_stdc = yes; then
5502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504/* end confdefs.h. */
5505#include <string.h>
5506
5507_ACEOF
5508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509 $EGREP "memchr" >/dev/null 2>&1; then :
5510
5511else
5512 ac_cv_header_stdc=no
5513fi
5514rm -f conftest*
5515
5516fi
5517
5518if test $ac_cv_header_stdc = yes; then
5519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h. */
5522#include <stdlib.h>
5523
5524_ACEOF
5525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "free" >/dev/null 2>&1; then :
5527
5528else
5529 ac_cv_header_stdc=no
5530fi
5531rm -f conftest*
5532
5533fi
5534
5535if test $ac_cv_header_stdc = yes; then
5536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5537 if test "$cross_compiling" = yes; then :
5538 :
5539else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h. */
5542#include <ctype.h>
5543#include <stdlib.h>
5544#if ((' ' & 0x0FF) == 0x020)
5545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5547#else
5548# define ISLOWER(c) \
5549 (('a' <= (c) && (c) <= 'i') \
5550 || ('j' <= (c) && (c) <= 'r') \
5551 || ('s' <= (c) && (c) <= 'z'))
5552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5553#endif
5554
5555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5556int
5557main ()
5558{
5559 int i;
5560 for (i = 0; i < 256; i++)
5561 if (XOR (islower (i), ISLOWER (i))
5562 || toupper (i) != TOUPPER (i))
5563 return 2;
5564 return 0;
5565}
5566_ACEOF
5567if ac_fn_c_try_run "$LINENO"; then :
5568
5569else
5570 ac_cv_header_stdc=no
5571fi
5572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5573 conftest.$ac_objext conftest.beam conftest.$ac_ext
5574fi
5575
5576fi
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5579$as_echo "$ac_cv_header_stdc" >&6; }
5580if test $ac_cv_header_stdc = yes; then
5581
5582$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5583
5584fi
5585
5586# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5588 inttypes.h stdint.h unistd.h
5589do :
5590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5591ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5592"
cristy98dddb52010-11-04 00:30:15 +00005593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005594 cat >>confdefs.h <<_ACEOF
5595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5596_ACEOF
5597
5598fi
5599
5600done
5601
5602
5603
5604 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 +00005605if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005606 MINIX=yes
5607else
5608 MINIX=
5609fi
5610
5611
5612 if test "$MINIX" = yes; then
5613
5614$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5615
5616
5617$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5618
5619
5620$as_echo "#define _MINIX 1" >>confdefs.h
5621
5622 fi
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5626$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005627if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005628 $as_echo_n "(cached) " >&6
5629else
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h. */
5632
5633# define __EXTENSIONS__ 1
5634 $ac_includes_default
5635int
5636main ()
5637{
5638
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_safe_to_define___extensions__=yes
5645else
5646 ac_cv_safe_to_define___extensions__=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5651$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5652 test $ac_cv_safe_to_define___extensions__ = yes &&
5653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5654
5655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5656
5657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5658
5659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5660
5661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5662
5663
5664
5665# Check for programs
5666ac_ext=c
5667ac_cpp='$CPP $CPPFLAGS'
5668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670ac_compiler_gnu=$ac_cv_c_compiler_gnu
5671if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5673set dummy ${ac_tool_prefix}gcc; ac_word=$2
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005676if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005677 $as_echo_n "(cached) " >&6
5678else
5679 if test -n "$CC"; then
5680 ac_cv_prog_CC="$CC" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694 done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699CC=$ac_cv_prog_CC
5700if test -n "$CC"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5702$as_echo "$CC" >&6; }
5703else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
5706fi
5707
5708
5709fi
5710if test -z "$ac_cv_prog_CC"; then
5711 ac_ct_CC=$CC
5712 # Extract the first word of "gcc", so it can be a program name with args.
5713set dummy gcc; ac_word=$2
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005716if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005717 $as_echo_n "(cached) " >&6
5718else
5719 if test -n "$ac_ct_CC"; then
5720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_ac_ct_CC="gcc"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734 done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739ac_ct_CC=$ac_cv_prog_ac_ct_CC
5740if test -n "$ac_ct_CC"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5742$as_echo "$ac_ct_CC" >&6; }
5743else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748 if test "x$ac_ct_CC" = x; then
5749 CC=""
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752yes:)
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755ac_tool_warned=yes ;;
5756esac
5757 CC=$ac_ct_CC
5758 fi
5759else
5760 CC="$ac_cv_prog_CC"
5761fi
5762
5763if test -z "$CC"; then
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5766set dummy ${ac_tool_prefix}cc; ac_word=$2
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005769if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005770 $as_echo_n "(cached) " >&6
5771else
5772 if test -n "$CC"; then
5773 ac_cv_prog_CC="$CC" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_prog_CC="${ac_tool_prefix}cc"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786done
5787 done
5788IFS=$as_save_IFS
5789
5790fi
5791fi
5792CC=$ac_cv_prog_CC
5793if test -n "$CC"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5795$as_echo "$CC" >&6; }
5796else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798$as_echo "no" >&6; }
5799fi
5800
5801
5802 fi
5803fi
5804if test -z "$CC"; then
5805 # Extract the first word of "cc", so it can be a program name with args.
5806set dummy cc; ac_word=$2
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005809if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005810 $as_echo_n "(cached) " >&6
5811else
5812 if test -n "$CC"; then
5813 ac_cv_prog_CC="$CC" # Let the user override the test.
5814else
5815 ac_prog_rejected=no
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5824 ac_prog_rejected=yes
5825 continue
5826 fi
5827 ac_cv_prog_CC="cc"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831done
5832 done
5833IFS=$as_save_IFS
5834
5835if test $ac_prog_rejected = yes; then
5836 # We found a bogon in the path, so make sure we never use it.
5837 set dummy $ac_cv_prog_CC
5838 shift
5839 if test $# != 0; then
5840 # We chose a different compiler from the bogus one.
5841 # However, it has the same basename, so the bogon will be chosen
5842 # first if we set CC to just the basename; use the full file name.
5843 shift
5844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5845 fi
5846fi
5847fi
5848fi
5849CC=$ac_cv_prog_CC
5850if test -n "$CC"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5852$as_echo "$CC" >&6; }
5853else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858
5859fi
5860if test -z "$CC"; then
5861 if test -n "$ac_tool_prefix"; then
5862 for ac_prog in cl.exe
5863 do
5864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005868if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005869 $as_echo_n "(cached) " >&6
5870else
5871 if test -n "$CC"; then
5872 ac_cv_prog_CC="$CC" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886 done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891CC=$ac_cv_prog_CC
5892if test -n "$CC"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5894$as_echo "$CC" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900
5901 test -n "$CC" && break
5902 done
5903fi
5904if test -z "$CC"; then
5905 ac_ct_CC=$CC
5906 for ac_prog in cl.exe
5907do
5908 # Extract the first word of "$ac_prog", so it can be a program name with args.
5909set dummy $ac_prog; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005912if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$ac_ct_CC"; then
5916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_ac_ct_CC="$ac_prog"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930 done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935ac_ct_CC=$ac_cv_prog_ac_ct_CC
5936if test -n "$ac_ct_CC"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5938$as_echo "$ac_ct_CC" >&6; }
5939else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945 test -n "$ac_ct_CC" && break
5946done
5947
5948 if test "x$ac_ct_CC" = x; then
5949 CC=""
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952yes:)
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955ac_tool_warned=yes ;;
5956esac
5957 CC=$ac_ct_CC
5958 fi
5959fi
5960
5961fi
5962
5963
5964test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005966as_fn_error $? "no acceptable C compiler found in \$PATH
5967See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005968
5969# Provide some information about the compiler.
5970$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5971set X $ac_compile
5972ac_compiler=$2
5973for ac_option in --version -v -V -qversion; do
5974 { { ac_try="$ac_compiler $ac_option >&5"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5980$as_echo "$ac_try_echo"; } >&5
5981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5982 ac_status=$?
5983 if test -s conftest.err; then
5984 sed '10a\
5985... rest of stderr output deleted ...
5986 10q' conftest.err >conftest.er1
5987 cat conftest.er1 >&5
5988 fi
5989 rm -f conftest.er1 conftest.err
5990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }
5992done
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5995$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005996if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005997 $as_echo_n "(cached) " >&6
5998else
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000/* end confdefs.h. */
6001
6002int
6003main ()
6004{
6005#ifndef __GNUC__
6006 choke me
6007#endif
6008
6009 ;
6010 return 0;
6011}
6012_ACEOF
6013if ac_fn_c_try_compile "$LINENO"; then :
6014 ac_compiler_gnu=yes
6015else
6016 ac_compiler_gnu=no
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019ac_cv_c_compiler_gnu=$ac_compiler_gnu
6020
6021fi
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6023$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6024if test $ac_compiler_gnu = yes; then
6025 GCC=yes
6026else
6027 GCC=
6028fi
6029ac_test_CFLAGS=${CFLAGS+set}
6030ac_save_CFLAGS=$CFLAGS
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6032$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006033if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006034 $as_echo_n "(cached) " >&6
6035else
6036 ac_save_c_werror_flag=$ac_c_werror_flag
6037 ac_c_werror_flag=yes
6038 ac_cv_prog_cc_g=no
6039 CFLAGS="-g"
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h. */
6042
6043int
6044main ()
6045{
6046
6047 ;
6048 return 0;
6049}
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then :
6052 ac_cv_prog_cc_g=yes
6053else
6054 CFLAGS=""
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h. */
6057
6058int
6059main ()
6060{
6061
6062 ;
6063 return 0;
6064}
6065_ACEOF
6066if ac_fn_c_try_compile "$LINENO"; then :
6067
6068else
6069 ac_c_werror_flag=$ac_save_c_werror_flag
6070 CFLAGS="-g"
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073
6074int
6075main ()
6076{
6077
6078 ;
6079 return 0;
6080}
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"; then :
6083 ac_cv_prog_cc_g=yes
6084fi
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086fi
6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 ac_c_werror_flag=$ac_save_c_werror_flag
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6093$as_echo "$ac_cv_prog_cc_g" >&6; }
6094if test "$ac_test_CFLAGS" = set; then
6095 CFLAGS=$ac_save_CFLAGS
6096elif test $ac_cv_prog_cc_g = yes; then
6097 if test "$GCC" = yes; then
6098 CFLAGS="-g -O2"
6099 else
6100 CFLAGS="-g"
6101 fi
6102else
6103 if test "$GCC" = yes; then
6104 CFLAGS="-O2"
6105 else
6106 CFLAGS=
6107 fi
6108fi
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6110$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006111if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006112 $as_echo_n "(cached) " >&6
6113else
6114 ac_cv_prog_cc_c89=no
6115ac_save_CC=$CC
6116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h. */
6118#include <stdarg.h>
6119#include <stdio.h>
6120#include <sys/types.h>
6121#include <sys/stat.h>
6122/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6123struct buf { int x; };
6124FILE * (*rcsopen) (struct buf *, struct stat *, int);
6125static char *e (p, i)
6126 char **p;
6127 int i;
6128{
6129 return p[i];
6130}
6131static char *f (char * (*g) (char **, int), char **p, ...)
6132{
6133 char *s;
6134 va_list v;
6135 va_start (v,p);
6136 s = g (p, va_arg (v,int));
6137 va_end (v);
6138 return s;
6139}
6140
6141/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6142 function prototypes and stuff, but not '\xHH' hex character constants.
6143 These don't provoke an error unfortunately, instead are silently treated
6144 as 'x'. The following induces an error, until -std is added to get
6145 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6146 array size at least. It's necessary to write '\x00'==0 to get something
6147 that's true only with -std. */
6148int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6149
6150/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6151 inside strings and character constants. */
6152#define FOO(x) 'x'
6153int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6154
6155int test (int i, double x);
6156struct s1 {int (*f) (int a);};
6157struct s2 {int (*f) (double a);};
6158int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6159int argc;
6160char **argv;
6161int
6162main ()
6163{
6164return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6165 ;
6166 return 0;
6167}
6168_ACEOF
6169for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6170 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6171do
6172 CC="$ac_save_CC $ac_arg"
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174 ac_cv_prog_cc_c89=$ac_arg
6175fi
6176rm -f core conftest.err conftest.$ac_objext
6177 test "x$ac_cv_prog_cc_c89" != "xno" && break
6178done
6179rm -f conftest.$ac_ext
6180CC=$ac_save_CC
6181
6182fi
6183# AC_CACHE_VAL
6184case "x$ac_cv_prog_cc_c89" in
6185 x)
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6187$as_echo "none needed" >&6; } ;;
6188 xno)
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6190$as_echo "unsupported" >&6; } ;;
6191 *)
6192 CC="$CC $ac_cv_prog_cc_c89"
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6194$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6195esac
6196if test "x$ac_cv_prog_cc_c89" != xno; then :
6197
6198fi
6199
6200ac_ext=c
6201ac_cpp='$CPP $CPPFLAGS'
6202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205
cristy73bd4a52010-10-05 11:24:23 +00006206depcc="$CC" am_compiler_list=
6207
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6209$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006210if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006211 $as_echo_n "(cached) " >&6
6212else
6213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6214 # We make a subdir and do the tests there. Otherwise we can end up
6215 # making bogus files that we don't know about and never remove. For
6216 # instance it was reported that on HP-UX the gcc test will end up
6217 # making a dummy file named `D' -- because `-MD' means `put the output
6218 # in D'.
6219 mkdir conftest.dir
6220 # Copy depcomp to subdir because otherwise we won't find it if we're
6221 # using a relative directory.
6222 cp "$am_depcomp" conftest.dir
6223 cd conftest.dir
6224 # We will build objects and dependencies in a subdirectory because
6225 # it helps to detect inapplicable dependency modes. For instance
6226 # both Tru64's cc and ICC support -MD to output dependencies as a
6227 # side effect of compilation, but ICC will put the dependencies in
6228 # the current directory while Tru64 will put them in the object
6229 # directory.
6230 mkdir sub
6231
6232 am_cv_CC_dependencies_compiler_type=none
6233 if test "$am_compiler_list" = ""; then
6234 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6235 fi
6236 am__universal=false
6237 case " $depcc " in #(
6238 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6239 esac
6240
6241 for depmode in $am_compiler_list; do
6242 # Setup a source with many dependencies, because some compilers
6243 # like to wrap large dependency lists on column 80 (with \), and
6244 # we should not choose a depcomp mode which is confused by this.
6245 #
6246 # We need to recreate these files for each test, as the compiler may
6247 # overwrite some of them when testing with obscure command lines.
6248 # This happens at least with the AIX C compiler.
6249 : > sub/conftest.c
6250 for i in 1 2 3 4 5 6; do
6251 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6252 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6253 # Solaris 8's {/usr,}/bin/sh.
6254 touch sub/conftst$i.h
6255 done
6256 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6257
6258 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6259 # mode. It turns out that the SunPro C++ compiler does not properly
6260 # handle `-M -o', and we need to detect this. Also, some Intel
6261 # versions had trouble with output in subdirs
6262 am__obj=sub/conftest.${OBJEXT-o}
6263 am__minus_obj="-o $am__obj"
6264 case $depmode in
6265 gcc)
6266 # This depmode causes a compiler race in universal mode.
6267 test "$am__universal" = false || continue
6268 ;;
6269 nosideeffect)
6270 # after this tag, mechanisms are not by side-effect, so they'll
6271 # only be used when explicitly requested
6272 if test "x$enable_dependency_tracking" = xyes; then
6273 continue
6274 else
6275 break
6276 fi
6277 ;;
6278 msvisualcpp | msvcmsys)
6279 # This compiler won't grok `-c -o', but also, the minuso test has
6280 # not run yet. These depmodes are late enough in the game, and
6281 # so weak that their functioning should not be impacted.
6282 am__obj=conftest.${OBJEXT-o}
6283 am__minus_obj=
6284 ;;
6285 none) break ;;
6286 esac
6287 if depmode=$depmode \
6288 source=sub/conftest.c object=$am__obj \
6289 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6290 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6291 >/dev/null 2>conftest.err &&
6292 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6293 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6294 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6295 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6296 # icc doesn't choke on unknown options, it will just issue warnings
6297 # or remarks (even with -Werror). So we grep stderr for any message
6298 # that says an option was ignored or not supported.
6299 # When given -MP, icc 7.0 and 7.1 complain thusly:
6300 # icc: Command line warning: ignoring option '-M'; no argument required
6301 # The diagnosis changed in icc 8.0:
6302 # icc: Command line remark: option '-MP' not supported
6303 if (grep 'ignoring option' conftest.err ||
6304 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6305 am_cv_CC_dependencies_compiler_type=$depmode
6306 break
6307 fi
6308 fi
6309 done
6310
6311 cd ..
6312 rm -rf conftest.dir
6313else
6314 am_cv_CC_dependencies_compiler_type=none
6315fi
6316
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6319$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6320CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6321
6322 if
6323 test "x$enable_dependency_tracking" != xno \
6324 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6325 am__fastdepCC_TRUE=
6326 am__fastdepCC_FALSE='#'
6327else
6328 am__fastdepCC_TRUE='#'
6329 am__fastdepCC_FALSE=
6330fi
6331
6332
cristy95646052009-11-28 23:05:30 +00006333ac_ext=cpp
6334ac_cpp='$CXXCPP $CPPFLAGS'
6335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6338if test -z "$CXX"; then
6339 if test -n "$CCC"; then
6340 CXX=$CCC
6341 else
6342 if test -n "$ac_tool_prefix"; then
6343 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6344 do
6345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006349if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006350 $as_echo_n "(cached) " >&6
6351else
6352 if test -n "$CXX"; then
6353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367 done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372CXX=$ac_cv_prog_CXX
6373if test -n "$CXX"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6375$as_echo "$CXX" >&6; }
6376else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382 test -n "$CXX" && break
6383 done
6384fi
6385if test -z "$CXX"; then
6386 ac_ct_CXX=$CXX
6387 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6388do
6389 # Extract the first word of "$ac_prog", so it can be a program name with args.
6390set dummy $ac_prog; ac_word=$2
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006393if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006394 $as_echo_n "(cached) " >&6
6395else
6396 if test -n "$ac_ct_CXX"; then
6397 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_ac_ct_CXX="$ac_prog"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411 done
6412IFS=$as_save_IFS
6413
6414fi
6415fi
6416ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6417if test -n "$ac_ct_CXX"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6419$as_echo "$ac_ct_CXX" >&6; }
6420else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426 test -n "$ac_ct_CXX" && break
6427done
6428
6429 if test "x$ac_ct_CXX" = x; then
6430 CXX="g++"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433yes:)
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436ac_tool_warned=yes ;;
6437esac
6438 CXX=$ac_ct_CXX
6439 fi
6440fi
6441
6442 fi
6443fi
6444# Provide some information about the compiler.
6445$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6446set X $ac_compile
6447ac_compiler=$2
6448for ac_option in --version -v -V -qversion; do
6449 { { ac_try="$ac_compiler $ac_option >&5"
6450case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6455$as_echo "$ac_try_echo"; } >&5
6456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6457 ac_status=$?
6458 if test -s conftest.err; then
6459 sed '10a\
6460... rest of stderr output deleted ...
6461 10q' conftest.err >conftest.er1
6462 cat conftest.er1 >&5
6463 fi
6464 rm -f conftest.er1 conftest.err
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }
6467done
6468
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6470$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006471if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006472 $as_echo_n "(cached) " >&6
6473else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h. */
6476
6477int
6478main ()
6479{
6480#ifndef __GNUC__
6481 choke me
6482#endif
6483
6484 ;
6485 return 0;
6486}
6487_ACEOF
6488if ac_fn_cxx_try_compile "$LINENO"; then :
6489 ac_compiler_gnu=yes
6490else
6491 ac_compiler_gnu=no
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6495
6496fi
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6498$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6499if test $ac_compiler_gnu = yes; then
6500 GXX=yes
6501else
6502 GXX=
6503fi
6504ac_test_CXXFLAGS=${CXXFLAGS+set}
6505ac_save_CXXFLAGS=$CXXFLAGS
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6507$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006508if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006509 $as_echo_n "(cached) " >&6
6510else
6511 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6512 ac_cxx_werror_flag=yes
6513 ac_cv_prog_cxx_g=no
6514 CXXFLAGS="-g"
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h. */
6517
6518int
6519main ()
6520{
6521
6522 ;
6523 return 0;
6524}
6525_ACEOF
6526if ac_fn_cxx_try_compile "$LINENO"; then :
6527 ac_cv_prog_cxx_g=yes
6528else
6529 CXXFLAGS=""
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h. */
6532
6533int
6534main ()
6535{
6536
6537 ;
6538 return 0;
6539}
6540_ACEOF
6541if ac_fn_cxx_try_compile "$LINENO"; then :
6542
6543else
6544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6545 CXXFLAGS="-g"
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h. */
6548
6549int
6550main ()
6551{
6552
6553 ;
6554 return 0;
6555}
6556_ACEOF
6557if ac_fn_cxx_try_compile "$LINENO"; then :
6558 ac_cv_prog_cxx_g=yes
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561fi
6562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563fi
6564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6566fi
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6568$as_echo "$ac_cv_prog_cxx_g" >&6; }
6569if test "$ac_test_CXXFLAGS" = set; then
6570 CXXFLAGS=$ac_save_CXXFLAGS
6571elif test $ac_cv_prog_cxx_g = yes; then
6572 if test "$GXX" = yes; then
6573 CXXFLAGS="-g -O2"
6574 else
6575 CXXFLAGS="-g"
6576 fi
6577else
6578 if test "$GXX" = yes; then
6579 CXXFLAGS="-O2"
6580 else
6581 CXXFLAGS=
6582 fi
6583fi
6584ac_ext=c
6585ac_cpp='$CPP $CPPFLAGS'
6586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589
cristy73bd4a52010-10-05 11:24:23 +00006590depcc="$CXX" am_compiler_list=
6591
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6593$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006594if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006595 $as_echo_n "(cached) " >&6
6596else
6597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6598 # We make a subdir and do the tests there. Otherwise we can end up
6599 # making bogus files that we don't know about and never remove. For
6600 # instance it was reported that on HP-UX the gcc test will end up
6601 # making a dummy file named `D' -- because `-MD' means `put the output
6602 # in D'.
6603 mkdir conftest.dir
6604 # Copy depcomp to subdir because otherwise we won't find it if we're
6605 # using a relative directory.
6606 cp "$am_depcomp" conftest.dir
6607 cd conftest.dir
6608 # We will build objects and dependencies in a subdirectory because
6609 # it helps to detect inapplicable dependency modes. For instance
6610 # both Tru64's cc and ICC support -MD to output dependencies as a
6611 # side effect of compilation, but ICC will put the dependencies in
6612 # the current directory while Tru64 will put them in the object
6613 # directory.
6614 mkdir sub
6615
6616 am_cv_CXX_dependencies_compiler_type=none
6617 if test "$am_compiler_list" = ""; then
6618 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6619 fi
6620 am__universal=false
6621 case " $depcc " in #(
6622 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6623 esac
6624
6625 for depmode in $am_compiler_list; do
6626 # Setup a source with many dependencies, because some compilers
6627 # like to wrap large dependency lists on column 80 (with \), and
6628 # we should not choose a depcomp mode which is confused by this.
6629 #
6630 # We need to recreate these files for each test, as the compiler may
6631 # overwrite some of them when testing with obscure command lines.
6632 # This happens at least with the AIX C compiler.
6633 : > sub/conftest.c
6634 for i in 1 2 3 4 5 6; do
6635 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6636 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6637 # Solaris 8's {/usr,}/bin/sh.
6638 touch sub/conftst$i.h
6639 done
6640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6641
6642 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6643 # mode. It turns out that the SunPro C++ compiler does not properly
6644 # handle `-M -o', and we need to detect this. Also, some Intel
6645 # versions had trouble with output in subdirs
6646 am__obj=sub/conftest.${OBJEXT-o}
6647 am__minus_obj="-o $am__obj"
6648 case $depmode in
6649 gcc)
6650 # This depmode causes a compiler race in universal mode.
6651 test "$am__universal" = false || continue
6652 ;;
6653 nosideeffect)
6654 # after this tag, mechanisms are not by side-effect, so they'll
6655 # only be used when explicitly requested
6656 if test "x$enable_dependency_tracking" = xyes; then
6657 continue
6658 else
6659 break
6660 fi
6661 ;;
6662 msvisualcpp | msvcmsys)
6663 # This compiler won't grok `-c -o', but also, the minuso test has
6664 # not run yet. These depmodes are late enough in the game, and
6665 # so weak that their functioning should not be impacted.
6666 am__obj=conftest.${OBJEXT-o}
6667 am__minus_obj=
6668 ;;
6669 none) break ;;
6670 esac
6671 if depmode=$depmode \
6672 source=sub/conftest.c object=$am__obj \
6673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6674 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6675 >/dev/null 2>conftest.err &&
6676 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6678 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6680 # icc doesn't choke on unknown options, it will just issue warnings
6681 # or remarks (even with -Werror). So we grep stderr for any message
6682 # that says an option was ignored or not supported.
6683 # When given -MP, icc 7.0 and 7.1 complain thusly:
6684 # icc: Command line warning: ignoring option '-M'; no argument required
6685 # The diagnosis changed in icc 8.0:
6686 # icc: Command line remark: option '-MP' not supported
6687 if (grep 'ignoring option' conftest.err ||
6688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6689 am_cv_CXX_dependencies_compiler_type=$depmode
6690 break
6691 fi
6692 fi
6693 done
6694
6695 cd ..
6696 rm -rf conftest.dir
6697else
6698 am_cv_CXX_dependencies_compiler_type=none
6699fi
6700
6701fi
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6703$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6704CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6705
6706 if
6707 test "x$enable_dependency_tracking" != xno \
6708 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6709 am__fastdepCXX_TRUE=
6710 am__fastdepCXX_FALSE='#'
6711else
6712 am__fastdepCXX_TRUE='#'
6713 am__fastdepCXX_FALSE=
6714fi
6715
6716
cristy8b350f62009-11-15 23:12:43 +00006717 case $ac_cv_prog_cc_stdc in #(
6718 no) :
6719 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6720 *) :
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006722$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006723if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006724 $as_echo_n "(cached) " >&6
6725else
6726 ac_cv_prog_cc_c99=no
6727ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006729/* end confdefs.h. */
6730#include <stdarg.h>
6731#include <stdbool.h>
6732#include <stdlib.h>
6733#include <wchar.h>
6734#include <stdio.h>
6735
6736// Check varargs macros. These examples are taken from C99 6.10.3.5.
6737#define debug(...) fprintf (stderr, __VA_ARGS__)
6738#define showlist(...) puts (#__VA_ARGS__)
6739#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6740static void
6741test_varargs_macros (void)
6742{
6743 int x = 1234;
6744 int y = 5678;
6745 debug ("Flag");
6746 debug ("X = %d\n", x);
6747 showlist (The first, second, and third items.);
6748 report (x>y, "x is %d but y is %d", x, y);
6749}
6750
6751// Check long long types.
6752#define BIG64 18446744073709551615ull
6753#define BIG32 4294967295ul
6754#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6755#if !BIG_OK
6756 your preprocessor is broken;
6757#endif
6758#if BIG_OK
6759#else
6760 your preprocessor is broken;
6761#endif
6762static long long int bignum = -9223372036854775807LL;
6763static unsigned long long int ubignum = BIG64;
6764
6765struct incomplete_array
6766{
6767 int datasize;
6768 double data[];
6769};
6770
6771struct named_init {
6772 int number;
6773 const wchar_t *name;
6774 double average;
6775};
6776
6777typedef const char *ccp;
6778
6779static inline int
6780test_restrict (ccp restrict text)
6781{
6782 // See if C++-style comments work.
6783 // Iterate through items via the restricted pointer.
6784 // Also check for declarations in for loops.
6785 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6786 continue;
6787 return 0;
6788}
6789
6790// Check varargs and va_copy.
6791static void
6792test_varargs (const char *format, ...)
6793{
6794 va_list args;
6795 va_start (args, format);
6796 va_list args_copy;
6797 va_copy (args_copy, args);
6798
6799 const char *str;
6800 int number;
6801 float fnumber;
6802
6803 while (*format)
6804 {
6805 switch (*format++)
6806 {
6807 case 's': // string
6808 str = va_arg (args_copy, const char *);
6809 break;
6810 case 'd': // int
6811 number = va_arg (args_copy, int);
6812 break;
6813 case 'f': // float
6814 fnumber = va_arg (args_copy, double);
6815 break;
6816 default:
6817 break;
6818 }
6819 }
6820 va_end (args_copy);
6821 va_end (args);
6822}
6823
6824int
6825main ()
6826{
6827
6828 // Check bool.
6829 _Bool success = false;
6830
6831 // Check restrict.
6832 if (test_restrict ("String literal") == 0)
6833 success = true;
6834 char *restrict newvar = "Another string";
6835
6836 // Check varargs.
6837 test_varargs ("s, d' f .", "string", 65, 34.234);
6838 test_varargs_macros ();
6839
6840 // Check flexible array members.
6841 struct incomplete_array *ia =
6842 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6843 ia->datasize = 10;
6844 for (int i = 0; i < ia->datasize; ++i)
6845 ia->data[i] = i * 1.234;
6846
6847 // Check named initializers.
6848 struct named_init ni = {
6849 .number = 34,
6850 .name = L"Test wide string",
6851 .average = 543.34343,
6852 };
6853
6854 ni.number = 58;
6855
6856 int dynamic_array[ni.number];
6857 dynamic_array[ni.number - 1] = 543;
6858
6859 // work around unused variable warnings
6860 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6861 || dynamic_array[ni.number - 1] != 543);
6862
6863 ;
6864 return 0;
6865}
6866_ACEOF
6867for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6868do
6869 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006870 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006871 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006872fi
cristy3ed852e2009-09-05 21:47:34 +00006873rm -f core conftest.err conftest.$ac_objext
6874 test "x$ac_cv_prog_cc_c99" != "xno" && break
6875done
6876rm -f conftest.$ac_ext
6877CC=$ac_save_CC
6878
6879fi
6880# AC_CACHE_VAL
6881case "x$ac_cv_prog_cc_c99" in
6882 x)
cristy8b350f62009-11-15 23:12:43 +00006883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006884$as_echo "none needed" >&6; } ;;
6885 xno)
cristy8b350f62009-11-15 23:12:43 +00006886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006887$as_echo "unsupported" >&6; } ;;
6888 *)
6889 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006891$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6892esac
cristy8b350f62009-11-15 23:12:43 +00006893if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006894 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6895else
cristy8b350f62009-11-15 23:12:43 +00006896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006897$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006898if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006899 $as_echo_n "(cached) " >&6
6900else
6901 ac_cv_prog_cc_c89=no
6902ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006904/* end confdefs.h. */
6905#include <stdarg.h>
6906#include <stdio.h>
6907#include <sys/types.h>
6908#include <sys/stat.h>
6909/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6910struct buf { int x; };
6911FILE * (*rcsopen) (struct buf *, struct stat *, int);
6912static char *e (p, i)
6913 char **p;
6914 int i;
6915{
6916 return p[i];
6917}
6918static char *f (char * (*g) (char **, int), char **p, ...)
6919{
6920 char *s;
6921 va_list v;
6922 va_start (v,p);
6923 s = g (p, va_arg (v,int));
6924 va_end (v);
6925 return s;
6926}
6927
6928/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6929 function prototypes and stuff, but not '\xHH' hex character constants.
6930 These don't provoke an error unfortunately, instead are silently treated
6931 as 'x'. The following induces an error, until -std is added to get
6932 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6933 array size at least. It's necessary to write '\x00'==0 to get something
6934 that's true only with -std. */
6935int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6936
6937/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6938 inside strings and character constants. */
6939#define FOO(x) 'x'
6940int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6941
6942int test (int i, double x);
6943struct s1 {int (*f) (int a);};
6944struct s2 {int (*f) (double a);};
6945int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6946int argc;
6947char **argv;
6948int
6949main ()
6950{
6951return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6952 ;
6953 return 0;
6954}
6955_ACEOF
6956for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6957 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6958do
6959 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006960 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006961 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006962fi
cristy3ed852e2009-09-05 21:47:34 +00006963rm -f core conftest.err conftest.$ac_objext
6964 test "x$ac_cv_prog_cc_c89" != "xno" && break
6965done
6966rm -f conftest.$ac_ext
6967CC=$ac_save_CC
6968
6969fi
6970# AC_CACHE_VAL
6971case "x$ac_cv_prog_cc_c89" in
6972 x)
cristy8b350f62009-11-15 23:12:43 +00006973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006974$as_echo "none needed" >&6; } ;;
6975 xno)
cristy8b350f62009-11-15 23:12:43 +00006976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006977$as_echo "unsupported" >&6; } ;;
6978 *)
6979 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006981$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6982esac
cristy8b350f62009-11-15 23:12:43 +00006983if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006984 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6985else
6986 ac_cv_prog_cc_stdc=no
6987fi
6988
cristy3ed852e2009-09-05 21:47:34 +00006989fi
cristy3ed852e2009-09-05 21:47:34 +00006990 ;;
6991esac
cristy8b350f62009-11-15 23:12:43 +00006992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006993$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006994 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006995 $as_echo_n "(cached) " >&6
6996fi
6997
cristy8b350f62009-11-15 23:12:43 +00006998 case $ac_cv_prog_cc_stdc in #(
6999 no) :
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7001$as_echo "unsupported" >&6; } ;; #(
7002 '') :
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7004$as_echo "none needed" >&6; } ;; #(
7005 *) :
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7008esac
7009
cristy3ed852e2009-09-05 21:47:34 +00007010ac_ext=c
7011ac_cpp='$CPP $CPPFLAGS'
7012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007016$as_echo_n "checking how to run the C preprocessor... " >&6; }
7017# On Suns, sometimes $CPP names a directory.
7018if test -n "$CPP" && test -d "$CPP"; then
7019 CPP=
7020fi
7021if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007022 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007023 $as_echo_n "(cached) " >&6
7024else
7025 # Double quotes because CPP needs to be expanded
7026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7027 do
7028 ac_preproc_ok=false
7029for ac_c_preproc_warn_flag in '' yes
7030do
7031 # Use a header file that comes with gcc, so configuring glibc
7032 # with a fresh cross-compiler works.
7033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7034 # <limits.h> exists even on freestanding compilers.
7035 # On the NeXT, cc -E runs the code through the compiler's parser,
7036 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007038/* end confdefs.h. */
7039#ifdef __STDC__
7040# include <limits.h>
7041#else
7042# include <assert.h>
7043#endif
7044 Syntax error
7045_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007046if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007047
cristy8b350f62009-11-15 23:12:43 +00007048else
cristy3ed852e2009-09-05 21:47:34 +00007049 # Broken: fails on valid input.
7050continue
7051fi
cristyda16f162011-02-19 23:52:17 +00007052rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007053
7054 # OK, works on sane cases. Now check whether nonexistent headers
7055 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007057/* end confdefs.h. */
7058#include <ac_nonexistent.h>
7059_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007060if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007061 # Broken: success on invalid input.
7062continue
7063else
cristy3ed852e2009-09-05 21:47:34 +00007064 # Passes both tests.
7065ac_preproc_ok=:
7066break
7067fi
cristyda16f162011-02-19 23:52:17 +00007068rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007069
7070done
7071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007072rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007073if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007074 break
7075fi
7076
7077 done
7078 ac_cv_prog_CPP=$CPP
7079
7080fi
7081 CPP=$ac_cv_prog_CPP
7082else
7083 ac_cv_prog_CPP=$CPP
7084fi
cristy8b350f62009-11-15 23:12:43 +00007085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007086$as_echo "$CPP" >&6; }
7087ac_preproc_ok=false
7088for ac_c_preproc_warn_flag in '' yes
7089do
7090 # Use a header file that comes with gcc, so configuring glibc
7091 # with a fresh cross-compiler works.
7092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7093 # <limits.h> exists even on freestanding compilers.
7094 # On the NeXT, cc -E runs the code through the compiler's parser,
7095 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007097/* end confdefs.h. */
7098#ifdef __STDC__
7099# include <limits.h>
7100#else
7101# include <assert.h>
7102#endif
7103 Syntax error
7104_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007105if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007106
cristy8b350f62009-11-15 23:12:43 +00007107else
cristy3ed852e2009-09-05 21:47:34 +00007108 # Broken: fails on valid input.
7109continue
7110fi
cristyda16f162011-02-19 23:52:17 +00007111rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007112
7113 # OK, works on sane cases. Now check whether nonexistent headers
7114 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007116/* end confdefs.h. */
7117#include <ac_nonexistent.h>
7118_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007119if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007120 # Broken: success on invalid input.
7121continue
7122else
cristy3ed852e2009-09-05 21:47:34 +00007123 # Passes both tests.
7124ac_preproc_ok=:
7125break
7126fi
cristyda16f162011-02-19 23:52:17 +00007127rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007128
7129done
7130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007131rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007132if $ac_preproc_ok; then :
7133
cristy3ed852e2009-09-05 21:47:34 +00007134else
cristy8b350f62009-11-15 23:12:43 +00007135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007137as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7138See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007139fi
7140
7141ac_ext=c
7142ac_cpp='$CPP $CPPFLAGS'
7143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146
cristy73bd4a52010-10-05 11:24:23 +00007147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7148$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007149if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007150 $as_echo_n "(cached) " >&6
7151else
7152 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7153 for ac_i in 1 2 3 4 5 6 7; do
7154 ac_script="$ac_script$as_nl$ac_script"
7155 done
7156 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7157 { ac_script=; unset ac_script;}
7158 if test -z "$SED"; then
7159 ac_path_SED_found=false
7160 # Loop through the user's path and test for each of PROGNAME-LIST
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_prog in sed gsed; do
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7169 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7170# Check for GNU ac_path_SED and select it if it is found.
7171 # Check for GNU $ac_path_SED
7172case `"$ac_path_SED" --version 2>&1` in
7173*GNU*)
7174 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7175*)
7176 ac_count=0
7177 $as_echo_n 0123456789 >"conftest.in"
7178 while :
7179 do
7180 cat "conftest.in" "conftest.in" >"conftest.tmp"
7181 mv "conftest.tmp" "conftest.in"
7182 cp "conftest.in" "conftest.nl"
7183 $as_echo '' >> "conftest.nl"
7184 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7186 as_fn_arith $ac_count + 1 && ac_count=$as_val
7187 if test $ac_count -gt ${ac_path_SED_max-0}; then
7188 # Best one so far, save it but keep looking for a better one
7189 ac_cv_path_SED="$ac_path_SED"
7190 ac_path_SED_max=$ac_count
7191 fi
7192 # 10*(2^10) chars as input seems more than enough
7193 test $ac_count -gt 10 && break
7194 done
7195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7196esac
7197
7198 $ac_path_SED_found && break 3
7199 done
7200 done
7201 done
7202IFS=$as_save_IFS
7203 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007204 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007205 fi
7206else
7207 ac_cv_path_SED=$SED
7208fi
7209
7210fi
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7212$as_echo "$ac_cv_path_SED" >&6; }
7213 SED="$ac_cv_path_SED"
7214 rm -f conftest.sed
7215
7216test -z "$SED" && SED=sed
7217Xsed="$SED -e 1s/^X//"
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7230$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007231if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007232 $as_echo_n "(cached) " >&6
7233else
7234 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7235 then ac_cv_path_FGREP="$GREP -F"
7236 else
7237 if test -z "$FGREP"; then
7238 ac_path_FGREP_found=false
7239 # Loop through the user's path and test for each of PROGNAME-LIST
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_prog in fgrep; do
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7248 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7249# Check for GNU ac_path_FGREP and select it if it is found.
7250 # Check for GNU $ac_path_FGREP
7251case `"$ac_path_FGREP" --version 2>&1` in
7252*GNU*)
7253 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7254*)
7255 ac_count=0
7256 $as_echo_n 0123456789 >"conftest.in"
7257 while :
7258 do
7259 cat "conftest.in" "conftest.in" >"conftest.tmp"
7260 mv "conftest.tmp" "conftest.in"
7261 cp "conftest.in" "conftest.nl"
7262 $as_echo 'FGREP' >> "conftest.nl"
7263 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7265 as_fn_arith $ac_count + 1 && ac_count=$as_val
7266 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7267 # Best one so far, save it but keep looking for a better one
7268 ac_cv_path_FGREP="$ac_path_FGREP"
7269 ac_path_FGREP_max=$ac_count
7270 fi
7271 # 10*(2^10) chars as input seems more than enough
7272 test $ac_count -gt 10 && break
7273 done
7274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7275esac
7276
7277 $ac_path_FGREP_found && break 3
7278 done
7279 done
7280 done
7281IFS=$as_save_IFS
7282 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007283 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007284 fi
7285else
7286 ac_cv_path_FGREP=$FGREP
7287fi
7288
7289 fi
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7292$as_echo "$ac_cv_path_FGREP" >&6; }
7293 FGREP="$ac_cv_path_FGREP"
7294
7295
7296test -z "$GREP" && GREP=grep
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
cristy0c60a692010-11-04 01:09:47 +00007314ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7315ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7316ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7317
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7319$as_echo_n "checking how to print strings... " >&6; }
7320# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007321if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007322 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7323 ECHO='print -r --'
7324elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7325 ECHO='printf %s\n'
7326else
7327 # Use this function as a fallback that always works.
7328 func_fallback_echo ()
7329 {
7330 eval 'cat <<_LTECHO_EOF
7331$1
7332_LTECHO_EOF'
7333 }
7334 ECHO='func_fallback_echo'
7335fi
7336
7337# func_echo_all arg...
7338# Invoke $ECHO with all args, space-separated.
7339func_echo_all ()
7340{
7341 $ECHO ""
7342}
7343
7344case "$ECHO" in
7345 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7346$as_echo "printf" >&6; } ;;
7347 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7348$as_echo "print -r" >&6; } ;;
7349 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7350$as_echo "cat" >&6; } ;;
7351esac
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
cristy73bd4a52010-10-05 11:24:23 +00007366
7367
7368# Check whether --with-gnu-ld was given.
7369if test "${with_gnu_ld+set}" = set; then :
7370 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7371else
7372 with_gnu_ld=no
7373fi
7374
7375ac_prog=ld
7376if test "$GCC" = yes; then
7377 # Check if gcc -print-prog-name=ld gives a path.
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7379$as_echo_n "checking for ld used by $CC... " >&6; }
7380 case $host in
7381 *-*-mingw*)
7382 # gcc leaves a trailing carriage return which upsets mingw
7383 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7384 *)
7385 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7386 esac
7387 case $ac_prog in
7388 # Accept absolute paths.
7389 [\\/]* | ?:[\\/]*)
7390 re_direlt='/[^/][^/]*/\.\./'
7391 # Canonicalize the pathname of ld
7392 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7393 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7394 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7395 done
7396 test -z "$LD" && LD="$ac_prog"
7397 ;;
7398 "")
7399 # If it fails, then pretend we aren't using GCC.
7400 ac_prog=ld
7401 ;;
7402 *)
7403 # If it is relative, then search for the first ld in PATH.
7404 with_gnu_ld=unknown
7405 ;;
7406 esac
7407elif test "$with_gnu_ld" = yes; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7409$as_echo_n "checking for GNU ld... " >&6; }
7410else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7412$as_echo_n "checking for non-GNU ld... " >&6; }
7413fi
cristyda16f162011-02-19 23:52:17 +00007414if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007415 $as_echo_n "(cached) " >&6
7416else
7417 if test -z "$LD"; then
7418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7419 for ac_dir in $PATH; do
7420 IFS="$lt_save_ifs"
7421 test -z "$ac_dir" && ac_dir=.
7422 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7423 lt_cv_path_LD="$ac_dir/$ac_prog"
7424 # Check to see if the program is GNU ld. I'd rather use --version,
7425 # but apparently some variants of GNU ld only accept -v.
7426 # Break only if it was the GNU/non-GNU ld that we prefer.
7427 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7428 *GNU* | *'with BFD'*)
7429 test "$with_gnu_ld" != no && break
7430 ;;
7431 *)
7432 test "$with_gnu_ld" != yes && break
7433 ;;
7434 esac
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438else
7439 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7440fi
7441fi
7442
7443LD="$lt_cv_path_LD"
7444if test -n "$LD"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7446$as_echo "$LD" >&6; }
7447else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449$as_echo "no" >&6; }
7450fi
cristy98dddb52010-11-04 00:30:15 +00007451test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7453$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007454if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007455 $as_echo_n "(cached) " >&6
7456else
7457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7458case `$LD -v 2>&1 </dev/null` in
7459*GNU* | *'with BFD'*)
7460 lt_cv_prog_gnu_ld=yes
7461 ;;
7462*)
7463 lt_cv_prog_gnu_ld=no
7464 ;;
7465esac
7466fi
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7468$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7469with_gnu_ld=$lt_cv_prog_gnu_ld
7470
7471
7472
7473
7474
7475
7476
7477
7478
cristy3ed852e2009-09-05 21:47:34 +00007479
cristy837d6dc2010-02-27 01:16:57 +00007480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7481$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007482if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007483 $as_echo_n "(cached) " >&6
7484else
7485 ac_cv_prog_cc_c99=no
7486ac_save_CC=$CC
7487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h. */
7489#include <stdarg.h>
7490#include <stdbool.h>
7491#include <stdlib.h>
7492#include <wchar.h>
7493#include <stdio.h>
7494
7495// Check varargs macros. These examples are taken from C99 6.10.3.5.
7496#define debug(...) fprintf (stderr, __VA_ARGS__)
7497#define showlist(...) puts (#__VA_ARGS__)
7498#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7499static void
7500test_varargs_macros (void)
7501{
7502 int x = 1234;
7503 int y = 5678;
7504 debug ("Flag");
7505 debug ("X = %d\n", x);
7506 showlist (The first, second, and third items.);
7507 report (x>y, "x is %d but y is %d", x, y);
7508}
7509
7510// Check long long types.
7511#define BIG64 18446744073709551615ull
7512#define BIG32 4294967295ul
7513#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7514#if !BIG_OK
7515 your preprocessor is broken;
7516#endif
7517#if BIG_OK
7518#else
7519 your preprocessor is broken;
7520#endif
7521static long long int bignum = -9223372036854775807LL;
7522static unsigned long long int ubignum = BIG64;
7523
7524struct incomplete_array
7525{
7526 int datasize;
7527 double data[];
7528};
7529
7530struct named_init {
7531 int number;
7532 const wchar_t *name;
7533 double average;
7534};
7535
7536typedef const char *ccp;
7537
7538static inline int
7539test_restrict (ccp restrict text)
7540{
7541 // See if C++-style comments work.
7542 // Iterate through items via the restricted pointer.
7543 // Also check for declarations in for loops.
7544 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7545 continue;
7546 return 0;
7547}
7548
7549// Check varargs and va_copy.
7550static void
7551test_varargs (const char *format, ...)
7552{
7553 va_list args;
7554 va_start (args, format);
7555 va_list args_copy;
7556 va_copy (args_copy, args);
7557
7558 const char *str;
7559 int number;
7560 float fnumber;
7561
7562 while (*format)
7563 {
7564 switch (*format++)
7565 {
7566 case 's': // string
7567 str = va_arg (args_copy, const char *);
7568 break;
7569 case 'd': // int
7570 number = va_arg (args_copy, int);
7571 break;
7572 case 'f': // float
7573 fnumber = va_arg (args_copy, double);
7574 break;
7575 default:
7576 break;
7577 }
7578 }
7579 va_end (args_copy);
7580 va_end (args);
7581}
7582
7583int
7584main ()
7585{
7586
7587 // Check bool.
7588 _Bool success = false;
7589
7590 // Check restrict.
7591 if (test_restrict ("String literal") == 0)
7592 success = true;
7593 char *restrict newvar = "Another string";
7594
7595 // Check varargs.
7596 test_varargs ("s, d' f .", "string", 65, 34.234);
7597 test_varargs_macros ();
7598
7599 // Check flexible array members.
7600 struct incomplete_array *ia =
7601 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7602 ia->datasize = 10;
7603 for (int i = 0; i < ia->datasize; ++i)
7604 ia->data[i] = i * 1.234;
7605
7606 // Check named initializers.
7607 struct named_init ni = {
7608 .number = 34,
7609 .name = L"Test wide string",
7610 .average = 543.34343,
7611 };
7612
7613 ni.number = 58;
7614
7615 int dynamic_array[ni.number];
7616 dynamic_array[ni.number - 1] = 543;
7617
7618 // work around unused variable warnings
7619 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7620 || dynamic_array[ni.number - 1] != 543);
7621
7622 ;
7623 return 0;
7624}
7625_ACEOF
7626for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7627do
7628 CC="$ac_save_CC $ac_arg"
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 ac_cv_prog_cc_c99=$ac_arg
7631fi
7632rm -f core conftest.err conftest.$ac_objext
7633 test "x$ac_cv_prog_cc_c99" != "xno" && break
7634done
7635rm -f conftest.$ac_ext
7636CC=$ac_save_CC
7637
7638fi
7639# AC_CACHE_VAL
7640case "x$ac_cv_prog_cc_c99" in
7641 x)
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7643$as_echo "none needed" >&6; } ;;
7644 xno)
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7646$as_echo "unsupported" >&6; } ;;
7647 *)
7648 CC="$CC $ac_cv_prog_cc_c99"
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7650$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7651esac
7652if test "x$ac_cv_prog_cc_c99" != xno; then :
7653
7654fi
7655
7656
cristy73bd4a52010-10-05 11:24:23 +00007657if test "x$CC" != xcc; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7659$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7660else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7662$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7663fi
7664set dummy $CC; ac_cc=`$as_echo "$2" |
7665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007666if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007667 $as_echo_n "(cached) " >&6
7668else
cristy73bd4a52010-10-05 11:24:23 +00007669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h. */
7671
7672int
7673main ()
7674{
7675
7676 ;
7677 return 0;
7678}
7679_ACEOF
7680# Make sure it works both with $CC and with simple cc.
7681# We do the test twice because some compilers refuse to overwrite an
7682# existing .o file with -o, though they will create one.
7683ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7684rm -f conftest2.*
7685if { { case "(($ac_try" in
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7688esac
7689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7690$as_echo "$ac_try_echo"; } >&5
7691 (eval "$ac_try") 2>&5
7692 ac_status=$?
7693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7694 test $ac_status = 0; } &&
7695 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698esac
7699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7700$as_echo "$ac_try_echo"; } >&5
7701 (eval "$ac_try") 2>&5
7702 ac_status=$?
7703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7704 test $ac_status = 0; };
7705then
7706 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7707 if test "x$CC" != xcc; then
7708 # Test first that cc exists at all.
7709 if { ac_try='cc -c conftest.$ac_ext >&5'
7710 { { case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713esac
7714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7715$as_echo "$ac_try_echo"; } >&5
7716 (eval "$ac_try") 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }; }; then
7720 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7721 rm -f conftest2.*
7722 if { { case "(($ac_try" in
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7725esac
7726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7727$as_echo "$ac_try_echo"; } >&5
7728 (eval "$ac_try") 2>&5
7729 ac_status=$?
7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731 test $ac_status = 0; } &&
7732 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735esac
7736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7737$as_echo "$ac_try_echo"; } >&5
7738 (eval "$ac_try") 2>&5
7739 ac_status=$?
7740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; };
7742 then
7743 # cc works too.
7744 :
7745 else
7746 # cc exists but doesn't like -o.
7747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7748 fi
7749 fi
7750 fi
7751else
7752 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7753fi
7754rm -f core conftest*
7755
7756fi
7757if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7759$as_echo "yes" >&6; }
7760else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763
7764$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7765
7766fi
7767
7768# FIXME: we rely on the cache variable name because
7769# there is no other way.
7770set dummy $CC
7771am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7772eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7773if test "$am_t" != yes; then
7774 # Losing compiler, so override with the script.
7775 # FIXME: It is wrong to rewrite CC.
7776 # But if we don't then we get into trouble of one sort or another.
7777 # A longer-term fix would be to have automake use am__CC in this case,
7778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7779 CC="$am_aux_dir/compile $CC"
7780fi
7781
7782
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7784$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007785if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007786 $as_echo_n "(cached) " >&6
7787else
7788 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007789 ac_ext=c
7790ac_cpp='$CPP $CPPFLAGS'
7791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794
7795 ac_save_CFLAGS="$CFLAGS"
7796for 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" #
7797do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h. */
7800
7801int
7802main ()
7803{
cristy24fc1fe2010-10-23 21:13:01 +00007804
cristy73bd4a52010-10-05 11:24:23 +00007805 ;
7806 return 0;
7807}
7808_ACEOF
7809if ac_fn_c_try_compile "$LINENO"; then :
7810 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7811fi
7812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813done
7814 CFLAGS="$ac_save_CFLAGS"
7815 ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7824$as_echo "$ac_cv_cflags_warn_all" >&6; }
7825case ".$ac_cv_cflags_warn_all" in
7826 .ok|.ok,*) ;;
7827 .|.no|.no,*)
7828 ;;
7829 *)
7830 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7831 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7832 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7833 ac_status=$?
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }
7836 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7837 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7838 ac_status=$?
7839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7840 test $ac_status = 0; }
7841 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7842 fi
7843 ;;
nicolas6237c462010-10-05 06:11:49 +00007844esac
cristy3ed852e2009-09-05 21:47:34 +00007845
cristya0b81c32010-01-22 02:54:33 +00007846
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7848$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7849set x ${MAKE-make}
7850ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007851if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007852 $as_echo_n "(cached) " >&6
7853else
7854 cat >conftest.make <<\_ACEOF
7855SHELL = /bin/sh
7856all:
7857 @echo '@@@%%%=$(MAKE)=@@@%%%'
7858_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007859# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007860case `${MAKE-make} -f conftest.make 2>/dev/null` in
7861 *@@@%%%=?*=@@@%%%*)
7862 eval ac_cv_prog_make_${ac_make}_set=yes;;
7863 *)
7864 eval ac_cv_prog_make_${ac_make}_set=no;;
7865esac
7866rm -f conftest.make
7867fi
7868if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870$as_echo "yes" >&6; }
7871 SET_MAKE=
7872else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875 SET_MAKE="MAKE=${MAKE-make}"
7876fi
7877
cristy8b350f62009-11-15 23:12:43 +00007878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007879$as_echo_n "checking whether ln -s works... " >&6; }
7880LN_S=$as_ln_s
7881if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007883$as_echo "yes" >&6; }
7884else
cristy8b350f62009-11-15 23:12:43 +00007885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007886$as_echo "no, using $LN_S" >&6; }
7887fi
7888
cristy73bd4a52010-10-05 11:24:23 +00007889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7890$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7891
7892# Check whether --with-dmalloc was given.
7893if test "${with_dmalloc+set}" = set; then :
7894 withval=$with_dmalloc; if test "$withval" = yes; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7896$as_echo "yes" >&6; }
7897
7898$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7899
7900 LIBS="$LIBS -ldmalloc"
7901 LDFLAGS="$LDFLAGS -g"
7902else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
7905fi
7906else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7914$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007915if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007916 $as_echo_n "(cached) " >&6
7917else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h. */
7920#include <stdlib.h>
7921 static void foo(void) __attribute__ ((unused));
7922 static void
7923 foo(void) {
7924 exit(1);
7925 }
7926
7927int
7928main ()
7929{
7930
7931 ;
7932 return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_compile "$LINENO"; then :
7936 ax_cv___attribute__=yes
7937else
7938 ax_cv___attribute__=no
7939
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942
7943fi
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7945$as_echo "$ax_cv___attribute__" >&6; }
7946 if test "$ax_cv___attribute__" = "yes"; then
7947
7948$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7949
7950 fi
7951
7952
7953
7954if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7955 if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7957set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007960if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007961 $as_echo_n "(cached) " >&6
7962else
7963 case $PKG_CONFIG in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7966 ;;
7967 *)
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979done
7980 done
7981IFS=$as_save_IFS
7982
7983 ;;
7984esac
7985fi
7986PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7987if test -n "$PKG_CONFIG"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7989$as_echo "$PKG_CONFIG" >&6; }
7990else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992$as_echo "no" >&6; }
7993fi
7994
7995
7996fi
7997if test -z "$ac_cv_path_PKG_CONFIG"; then
7998 ac_pt_PKG_CONFIG=$PKG_CONFIG
7999 # Extract the first word of "pkg-config", so it can be a program name with args.
8000set dummy pkg-config; ac_word=$2
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008003if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008004 $as_echo_n "(cached) " >&6
8005else
8006 case $ac_pt_PKG_CONFIG in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022done
8023 done
8024IFS=$as_save_IFS
8025
8026 ;;
8027esac
8028fi
8029ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8030if test -n "$ac_pt_PKG_CONFIG"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8032$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8033else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035$as_echo "no" >&6; }
8036fi
8037
8038 if test "x$ac_pt_PKG_CONFIG" = x; then
8039 PKG_CONFIG=""
8040 else
8041 case $cross_compiling:$ac_tool_warned in
8042yes:)
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8045ac_tool_warned=yes ;;
8046esac
8047 PKG_CONFIG=$ac_pt_PKG_CONFIG
8048 fi
8049else
8050 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8051fi
8052
8053fi
8054if test -n "$PKG_CONFIG"; then
8055 _pkg_min_version=0.9.0
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8057$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8058 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8060$as_echo "yes" >&6; }
8061 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
8064 PKG_CONFIG=""
8065 fi
8066
8067fi
cristy3ed852e2009-09-05 21:47:34 +00008068
8069#
cristy3ed852e2009-09-05 21:47:34 +00008070# Enable run-time checking.
8071#
8072# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008073if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008074 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8075else
8076 enable_bounds_checking='no'
8077fi
8078
8079
8080if test "$enable_bounds_checking" = yes; then
8081
cristy8b350f62009-11-15 23:12:43 +00008082$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008083
8084fi
8085
8086#
8087# Tests for Windows
8088#
8089
8090
cristy73bd4a52010-10-05 11:24:23 +00008091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8092$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008093if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008094 $as_echo_n "(cached) " >&6
8095else
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h. */
8098
8099int
8100main ()
8101{
8102#ifndef _MSC_VER
8103 choke me
8104#endif
8105
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110if ac_fn_c_try_compile "$LINENO"; then :
8111 ax_compiler_ms=yes
8112else
8113 ax_compiler_ms=no
8114fi
8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116ax_cv_c_compiler_ms=$ax_compiler_ms
8117
8118fi
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8120$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008121
8122GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008123native_win32_build='no'
8124cygwin_build='no'
8125case "${host_os}" in
8126 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008127 cygwin_build='yes'
8128 GDI32_LIBS='-lgdi32'
8129 ;;
8130 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008131 native_win32_build='yes'
8132 GDI32_LIBS='-lgdi32'
8133 ;;
8134esac
8135if test "${GDI32_LIBS}x" != 'x'; then
8136
cristy8b350f62009-11-15 23:12:43 +00008137$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008138
8139fi
8140
cristy73bd4a52010-10-05 11:24:23 +00008141 if test "${GDI32_LIBS}x" != 'x' ; then
8142 WINGDI32_DELEGATE_TRUE=
8143 WINGDI32_DELEGATE_FALSE='#'
8144else
8145 WINGDI32_DELEGATE_TRUE='#'
8146 WINGDI32_DELEGATE_FALSE=
8147fi
8148
8149 if test "${native_win32_build}" = 'yes' ; then
8150 WIN32_NATIVE_BUILD_TRUE=
8151 WIN32_NATIVE_BUILD_FALSE='#'
8152else
8153 WIN32_NATIVE_BUILD_TRUE='#'
8154 WIN32_NATIVE_BUILD_FALSE=
8155fi
8156
8157 if test "${cygwin_build}" = 'yes' ; then
8158 CYGWIN_BUILD_TRUE=
8159 CYGWIN_BUILD_FALSE='#'
8160else
8161 CYGWIN_BUILD_TRUE='#'
8162 CYGWIN_BUILD_FALSE=
8163fi
8164
8165 if test "x${CC}" = 'xcl.exe' ; then
8166 USING_CL_TRUE=
8167 USING_CL_FALSE='#'
8168else
8169 USING_CL_TRUE='#'
8170 USING_CL_FALSE=
8171fi
8172
cristy3ed852e2009-09-05 21:47:34 +00008173
8174WinPathScript="${srcdirfull}/winpath.sh"
8175
8176
8177#
8178# Compiler flags tweaks
8179#
8180if test "${GCC}" != "yes"; then
8181 case "${host}" in
8182 *-*-hpux* )
8183 # aCC: HP ANSI C++ B3910B A.03.34
8184 CFLAGS="${CFLAGS} -Wp,-H30000"
8185 if test -n "${CXXFLAGS}"; then
8186 CXXFLAGS='-AA'
8187 else
8188 CXXFLAGS="${CXXFLAGS} -AA"
8189 fi
8190 ;;
8191 *-dec-osf5.* )
8192 # Compaq alphaev68-dec-osf5.1 compiler
8193 if test -n "${CXXFLAGS}"; then
8194 CXXFLAGS='-std strict_ansi -noimplicit_include'
8195 else
8196 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8197 fi
8198 esac
8199fi
8200
8201# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008203$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008204if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008205 $as_echo_n "(cached) " >&6
8206else
8207
8208im_cv_ld_lazyload='none'
8209case "${host}" in
8210 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8211 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8212 im_cv_ld_lazyload='-Wl,-zlazyload'
8213 fi
8214 ;;
8215esac
8216
8217fi
cristy8b350f62009-11-15 23:12:43 +00008218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008219$as_echo "$im_cv_ld_lazyload" >&6; }
8220if test "${im_cv_ld_lazyload}" != 'none' ; then
8221 if test -z "${LDFLAGS}" ; then
8222 LDFLAGS="${im_cv_ld_lazyload}"
8223 else
8224 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8225 fi
8226fi
8227
8228case "$host" in
8229*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008230 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008231if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008232 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8233else
8234 build_osxuniversal=no
8235fi
8236
8237
8238 if test "${build_osxuniversal}" != no ; then
8239 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008240 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008241Please re-run configure with these options:
8242 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008243 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008244 fi
8245 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8246 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8247 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8248 fi
8249 ;;
8250esac
8251
8252# Enable support for threads
8253
8254# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008255if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008256 withval=$with_threads; with_threads=$withval
8257else
8258 with_threads='yes'
8259fi
8260
8261
8262have_threads=no
8263if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008264
8265
cristy73bd4a52010-10-05 11:24:23 +00008266ac_ext=c
8267ac_cpp='$CPP $CPPFLAGS'
8268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271
8272ax_pthread_ok=no
8273
8274# We used to check for pthread.h first, but this fails if pthread.h
8275# requires special compiler flags (e.g. on True64 or Sequent).
8276# It gets checked for in the link test anyway.
8277
8278# First of all, check if the user has set any of the PTHREAD_LIBS,
8279# etcetera environment variables, and if threads linking works using
8280# them:
8281if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8282 save_CFLAGS="$CFLAGS"
8283 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8284 save_LIBS="$LIBS"
8285 LIBS="$PTHREAD_LIBS $LIBS"
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8287$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h. */
8290
8291/* Override any GCC internal prototype to avoid an error.
8292 Use char because int might match the return type of a GCC
8293 builtin and then its argument prototype would still apply. */
8294#ifdef __cplusplus
8295extern "C"
8296#endif
8297char pthread_join ();
8298int
8299main ()
8300{
8301return pthread_join ();
8302 ;
8303 return 0;
8304}
8305_ACEOF
8306if ac_fn_c_try_link "$LINENO"; then :
8307 ax_pthread_ok=yes
8308fi
8309rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8312$as_echo "$ax_pthread_ok" >&6; }
8313 if test x"$ax_pthread_ok" = xno; then
8314 PTHREAD_LIBS=""
8315 PTHREAD_CFLAGS=""
8316 fi
8317 LIBS="$save_LIBS"
8318 CFLAGS="$save_CFLAGS"
8319fi
8320
8321# We must check for the threads library under a number of different
8322# names; the ordering is very important because some systems
8323# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8324# libraries is broken (non-POSIX).
8325
8326# Create a list of thread flags to try. Items starting with a "-" are
8327# C compiler flags, and other items are library names, except for "none"
8328# which indicates that we try without any flags at all, and "pthread-config"
8329# which is a program returning the flags for the Pth emulation library.
8330
8331ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8332
8333# The ordering *is* (sometimes) important. Some notes on the
8334# individual items follow:
8335
8336# pthreads: AIX (must check this before -lpthread)
8337# none: in case threads are in libc; should be tried before -Kthread and
8338# other compiler flags to prevent continual compiler warnings
8339# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8340# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8341# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8342# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8343# -pthreads: Solaris/gcc
8344# -mthreads: Mingw32/gcc, Lynx/gcc
8345# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8346# doesn't hurt to check since this sometimes defines pthreads too;
8347# also defines -D_REENTRANT)
8348# ... -mt is also the pthreads flag for HP/aCC
8349# pthread: Linux, etcetera
8350# --thread-safe: KAI C++
8351# pthread-config: use pthread-config program (for GNU Pth library)
8352
8353case "${host_cpu}-${host_os}" in
8354 *solaris*)
8355
8356 # On Solaris (at least, for some versions), libc contains stubbed
8357 # (non-functional) versions of the pthreads routines, so link-based
8358 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8359 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8360 # a function called by this macro, so we could check for that, but
8361 # who knows whether they'll stub that too in a future libc.) So,
8362 # we'll just look for -pthreads and -lpthread first:
8363
8364 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8365 ;;
8366
cristya316db12011-10-24 00:49:45 +00008367 *-darwin*)
8368 ax_pthread_flags="-pthread $ax_pthread_flags"
8369 ;;
cristy73bd4a52010-10-05 11:24:23 +00008370esac
8371
8372if test x"$ax_pthread_ok" = xno; then
8373for flag in $ax_pthread_flags; do
8374
8375 case $flag in
8376 none)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8378$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8379 ;;
8380
8381 -*)
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8383$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8384 PTHREAD_CFLAGS="$flag"
8385 ;;
8386
cristya316db12011-10-24 00:49:45 +00008387 pthread-config)
8388 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008389set dummy pthread-config; ac_word=$2
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008392if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008393 $as_echo_n "(cached) " >&6
8394else
8395 if test -n "$ax_pthread_config"; then
8396 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8397else
8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399for as_dir in $PATH
8400do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_ax_pthread_config="yes"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8408 fi
8409done
8410 done
8411IFS=$as_save_IFS
8412
8413 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8414fi
8415fi
8416ax_pthread_config=$ac_cv_prog_ax_pthread_config
8417if test -n "$ax_pthread_config"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8419$as_echo "$ax_pthread_config" >&6; }
8420else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422$as_echo "no" >&6; }
8423fi
8424
8425
cristya316db12011-10-24 00:49:45 +00008426 if test x"$ax_pthread_config" = xno; then continue; fi
8427 PTHREAD_CFLAGS="`pthread-config --cflags`"
8428 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8429 ;;
cristy73bd4a52010-10-05 11:24:23 +00008430
8431 *)
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8433$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8434 PTHREAD_LIBS="-l$flag"
8435 ;;
8436 esac
8437
8438 save_LIBS="$LIBS"
8439 save_CFLAGS="$CFLAGS"
8440 LIBS="$PTHREAD_LIBS $LIBS"
8441 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8442
8443 # Check for various functions. We must include pthread.h,
8444 # since some functions may be macros. (On the Sequent, we
8445 # need a special flag -Kthread to make this header compile.)
8446 # We check for pthread_join because it is in -lpthread on IRIX
8447 # while pthread_create is in libc. We check for pthread_attr_init
8448 # due to DEC craziness with -lpthreads. We check for
8449 # pthread_cleanup_push because it is one of the few pthread
8450 # functions on Solaris that doesn't have a non-functional libc stub.
8451 # We try pthread_create on general principles.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
8454#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008455 static void routine(void *a) { a = 0; }
8456 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008457int
8458main ()
8459{
8460pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008461 pthread_create(&th, 0, start_routine, 0);
8462 pthread_join(th, 0);
8463 pthread_attr_init(&attr);
8464 pthread_cleanup_push(routine, 0);
8465 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008466 ;
8467 return 0;
8468}
8469_ACEOF
8470if ac_fn_c_try_link "$LINENO"; then :
8471 ax_pthread_ok=yes
8472fi
8473rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475
8476 LIBS="$save_LIBS"
8477 CFLAGS="$save_CFLAGS"
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8480$as_echo "$ax_pthread_ok" >&6; }
8481 if test "x$ax_pthread_ok" = xyes; then
8482 break;
8483 fi
8484
8485 PTHREAD_LIBS=""
8486 PTHREAD_CFLAGS=""
8487done
8488fi
8489
8490# Various other checks:
8491if test "x$ax_pthread_ok" = xyes; then
8492 save_LIBS="$LIBS"
8493 LIBS="$PTHREAD_LIBS $LIBS"
8494 save_CFLAGS="$CFLAGS"
8495 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8496
8497 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008499$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008500 attr_name=unknown
8501 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008503/* end confdefs.h. */
8504#include <pthread.h>
8505int
8506main ()
8507{
cristya316db12011-10-24 00:49:45 +00008508int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008509 ;
8510 return 0;
8511}
8512_ACEOF
8513if ac_fn_c_try_link "$LINENO"; then :
8514 attr_name=$attr; break
8515fi
8516rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008518 done
cristy73bd4a52010-10-05 11:24:23 +00008519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8520$as_echo "$attr_name" >&6; }
8521 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8522
8523cat >>confdefs.h <<_ACEOF
8524#define PTHREAD_CREATE_JOINABLE $attr_name
8525_ACEOF
8526
8527 fi
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8530$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8531 flag=no
8532 case "${host_cpu}-${host_os}" in
8533 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8534 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8535 esac
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8537$as_echo "${flag}" >&6; }
8538 if test "x$flag" != xno; then
8539 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8540 fi
8541
cristya316db12011-10-24 00:49:45 +00008542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8543$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8544if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546else
8547
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h. */
8550
8551 #include <pthread.h>
8552int
8553main ()
8554{
8555int i = PTHREAD_PRIO_INHERIT;
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560if ac_fn_c_try_link "$LINENO"; then :
8561 ax_cv_PTHREAD_PRIO_INHERIT=yes
8562else
8563 ax_cv_PTHREAD_PRIO_INHERIT=no
8564fi
8565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8570$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8571 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8572
8573$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8574
8575fi
8576
cristy73bd4a52010-10-05 11:24:23 +00008577 LIBS="$save_LIBS"
8578 CFLAGS="$save_CFLAGS"
8579
8580 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008581 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008582 for ac_prog in xlc_r cc_r
8583do
8584 # Extract the first word of "$ac_prog", so it can be a program name with args.
8585set dummy $ac_prog; ac_word=$2
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008588if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008589 $as_echo_n "(cached) " >&6
8590else
8591 if test -n "$PTHREAD_CC"; then
8592 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8593else
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_PTHREAD_CC="$ac_prog"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606 done
8607IFS=$as_save_IFS
8608
8609fi
8610fi
8611PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8612if test -n "$PTHREAD_CC"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8614$as_echo "$PTHREAD_CC" >&6; }
8615else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617$as_echo "no" >&6; }
8618fi
8619
8620
8621 test -n "$PTHREAD_CC" && break
8622done
8623test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8624
8625 else
8626 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008627 fi
cristy73bd4a52010-10-05 11:24:23 +00008628else
8629 PTHREAD_CC="$CC"
8630fi
8631
8632
8633
8634
8635
8636# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8637if test x"$ax_pthread_ok" = xyes; then
8638
8639$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8640
8641 :
8642else
8643 ax_pthread_ok=no
8644
8645fi
8646ac_ext=c
8647ac_cpp='$CPP $CPPFLAGS'
8648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8650ac_compiler_gnu=$ac_cv_c_compiler_gnu
8651
8652
cristy7acf8fb2010-09-23 19:58:53 +00008653 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008654 have_threads=yes
8655 DEF_THREAD="$PTHREAD_CFLAGS"
8656 CFLAGS="$CFLAGS $DEF_THREAD"
8657 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8658 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008659 { $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 +00008660$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8661 CC="$PTHREAD_CC"
8662 fi
cristy55bf91c2010-09-24 00:29:41 +00008663
8664$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8665
cristy3ed852e2009-09-05 21:47:34 +00008666 fi
8667fi
8668
8669# Enable support for OpenMP
8670if test "$have_threads" != 'yes'; then
8671 ac_cv_prog_c_openmp=unsupported
8672fi
8673
8674 OPENMP_CFLAGS=
8675 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008676if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008677 enableval=$enable_openmp;
8678fi
8679
8680 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008682$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008683if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008684 $as_echo_n "(cached) " >&6
8685else
cristy8b350f62009-11-15 23:12:43 +00008686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008688
8689#ifndef _OPENMP
8690 choke me
8691#endif
8692#include <omp.h>
8693int main () { return omp_get_num_threads (); }
8694
8695_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008696if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008697 ac_cv_prog_c_openmp='none needed'
8698else
cristy8b350f62009-11-15 23:12:43 +00008699 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008700 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8701 ac_save_CFLAGS=$CFLAGS
8702 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008705
8706#ifndef _OPENMP
8707 choke me
8708#endif
8709#include <omp.h>
8710int main () { return omp_get_num_threads (); }
8711
8712_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008713if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008714 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008715fi
cristy8b350f62009-11-15 23:12:43 +00008716rm -f core conftest.err conftest.$ac_objext \
8717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008718 CFLAGS=$ac_save_CFLAGS
8719 if test "$ac_cv_prog_c_openmp" != unsupported; then
8720 break
8721 fi
8722 done
8723fi
cristy8b350f62009-11-15 23:12:43 +00008724rm -f core conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008726fi
cristy8b350f62009-11-15 23:12:43 +00008727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008728$as_echo "$ac_cv_prog_c_openmp" >&6; }
8729 case $ac_cv_prog_c_openmp in #(
8730 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008731 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008732 *)
cristy8b350f62009-11-15 23:12:43 +00008733 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008734 esac
8735 fi
8736
8737
8738CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8739MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8740
cristy391f1ce2010-09-09 17:23:28 +00008741if test "$enable_openmp" != no; then
8742 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8743 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8744 fi
8745fi
cristy3ed852e2009-09-05 21:47:34 +00008746
cristy736173a2009-09-20 21:18:22 +00008747# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008748
8749
cristy73bd4a52010-10-05 11:24:23 +00008750ac_ext=c
8751ac_cpp='$CPP $CPPFLAGS'
8752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8754ac_compiler_gnu=$ac_cv_c_compiler_gnu
8755
8756ax_pthread_ok=no
8757
8758# We used to check for pthread.h first, but this fails if pthread.h
8759# requires special compiler flags (e.g. on True64 or Sequent).
8760# It gets checked for in the link test anyway.
8761
8762# First of all, check if the user has set any of the PTHREAD_LIBS,
8763# etcetera environment variables, and if threads linking works using
8764# them:
8765if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8766 save_CFLAGS="$CFLAGS"
8767 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8768 save_LIBS="$LIBS"
8769 LIBS="$PTHREAD_LIBS $LIBS"
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8771$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773/* end confdefs.h. */
8774
8775/* Override any GCC internal prototype to avoid an error.
8776 Use char because int might match the return type of a GCC
8777 builtin and then its argument prototype would still apply. */
8778#ifdef __cplusplus
8779extern "C"
8780#endif
8781char pthread_join ();
8782int
8783main ()
8784{
8785return pthread_join ();
8786 ;
8787 return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_link "$LINENO"; then :
8791 ax_pthread_ok=yes
8792fi
8793rm -f core conftest.err conftest.$ac_objext \
8794 conftest$ac_exeext conftest.$ac_ext
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8796$as_echo "$ax_pthread_ok" >&6; }
8797 if test x"$ax_pthread_ok" = xno; then
8798 PTHREAD_LIBS=""
8799 PTHREAD_CFLAGS=""
8800 fi
8801 LIBS="$save_LIBS"
8802 CFLAGS="$save_CFLAGS"
8803fi
8804
8805# We must check for the threads library under a number of different
8806# names; the ordering is very important because some systems
8807# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8808# libraries is broken (non-POSIX).
8809
8810# Create a list of thread flags to try. Items starting with a "-" are
8811# C compiler flags, and other items are library names, except for "none"
8812# which indicates that we try without any flags at all, and "pthread-config"
8813# which is a program returning the flags for the Pth emulation library.
8814
8815ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8816
8817# The ordering *is* (sometimes) important. Some notes on the
8818# individual items follow:
8819
8820# pthreads: AIX (must check this before -lpthread)
8821# none: in case threads are in libc; should be tried before -Kthread and
8822# other compiler flags to prevent continual compiler warnings
8823# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8824# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8825# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8826# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8827# -pthreads: Solaris/gcc
8828# -mthreads: Mingw32/gcc, Lynx/gcc
8829# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8830# doesn't hurt to check since this sometimes defines pthreads too;
8831# also defines -D_REENTRANT)
8832# ... -mt is also the pthreads flag for HP/aCC
8833# pthread: Linux, etcetera
8834# --thread-safe: KAI C++
8835# pthread-config: use pthread-config program (for GNU Pth library)
8836
8837case "${host_cpu}-${host_os}" in
8838 *solaris*)
8839
8840 # On Solaris (at least, for some versions), libc contains stubbed
8841 # (non-functional) versions of the pthreads routines, so link-based
8842 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8843 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8844 # a function called by this macro, so we could check for that, but
8845 # who knows whether they'll stub that too in a future libc.) So,
8846 # we'll just look for -pthreads and -lpthread first:
8847
8848 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8849 ;;
8850
cristya316db12011-10-24 00:49:45 +00008851 *-darwin*)
8852 ax_pthread_flags="-pthread $ax_pthread_flags"
8853 ;;
cristy73bd4a52010-10-05 11:24:23 +00008854esac
8855
8856if test x"$ax_pthread_ok" = xno; then
8857for flag in $ax_pthread_flags; do
8858
8859 case $flag in
8860 none)
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8862$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8863 ;;
8864
8865 -*)
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8867$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8868 PTHREAD_CFLAGS="$flag"
8869 ;;
8870
cristya316db12011-10-24 00:49:45 +00008871 pthread-config)
8872 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008873set dummy pthread-config; ac_word=$2
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008876if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008877 $as_echo_n "(cached) " >&6
8878else
8879 if test -n "$ax_pthread_config"; then
8880 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_ax_pthread_config="yes"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893done
8894 done
8895IFS=$as_save_IFS
8896
8897 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8898fi
8899fi
8900ax_pthread_config=$ac_cv_prog_ax_pthread_config
8901if test -n "$ax_pthread_config"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8903$as_echo "$ax_pthread_config" >&6; }
8904else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
8907fi
8908
8909
cristya316db12011-10-24 00:49:45 +00008910 if test x"$ax_pthread_config" = xno; then continue; fi
8911 PTHREAD_CFLAGS="`pthread-config --cflags`"
8912 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8913 ;;
cristy73bd4a52010-10-05 11:24:23 +00008914
8915 *)
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8917$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8918 PTHREAD_LIBS="-l$flag"
8919 ;;
8920 esac
8921
8922 save_LIBS="$LIBS"
8923 save_CFLAGS="$CFLAGS"
8924 LIBS="$PTHREAD_LIBS $LIBS"
8925 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8926
8927 # Check for various functions. We must include pthread.h,
8928 # since some functions may be macros. (On the Sequent, we
8929 # need a special flag -Kthread to make this header compile.)
8930 # We check for pthread_join because it is in -lpthread on IRIX
8931 # while pthread_create is in libc. We check for pthread_attr_init
8932 # due to DEC craziness with -lpthreads. We check for
8933 # pthread_cleanup_push because it is one of the few pthread
8934 # functions on Solaris that doesn't have a non-functional libc stub.
8935 # We try pthread_create on general principles.
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h. */
8938#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008939 static void routine(void *a) { a = 0; }
8940 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008941int
8942main ()
8943{
8944pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008945 pthread_create(&th, 0, start_routine, 0);
8946 pthread_join(th, 0);
8947 pthread_attr_init(&attr);
8948 pthread_cleanup_push(routine, 0);
8949 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008950 ;
8951 return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_link "$LINENO"; then :
8955 ax_pthread_ok=yes
8956fi
8957rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959
8960 LIBS="$save_LIBS"
8961 CFLAGS="$save_CFLAGS"
8962
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8964$as_echo "$ax_pthread_ok" >&6; }
8965 if test "x$ax_pthread_ok" = xyes; then
8966 break;
8967 fi
8968
8969 PTHREAD_LIBS=""
8970 PTHREAD_CFLAGS=""
8971done
8972fi
8973
8974# Various other checks:
8975if test "x$ax_pthread_ok" = xyes; then
8976 save_LIBS="$LIBS"
8977 LIBS="$PTHREAD_LIBS $LIBS"
8978 save_CFLAGS="$CFLAGS"
8979 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8980
8981 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008983$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008984 attr_name=unknown
8985 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008987/* end confdefs.h. */
8988#include <pthread.h>
8989int
8990main ()
8991{
cristya316db12011-10-24 00:49:45 +00008992int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008993 ;
8994 return 0;
8995}
8996_ACEOF
8997if ac_fn_c_try_link "$LINENO"; then :
8998 attr_name=$attr; break
8999fi
9000rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009002 done
cristy73bd4a52010-10-05 11:24:23 +00009003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9004$as_echo "$attr_name" >&6; }
9005 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9006
9007cat >>confdefs.h <<_ACEOF
9008#define PTHREAD_CREATE_JOINABLE $attr_name
9009_ACEOF
9010
9011 fi
9012
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9014$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9015 flag=no
9016 case "${host_cpu}-${host_os}" in
9017 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9018 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9019 esac
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9021$as_echo "${flag}" >&6; }
9022 if test "x$flag" != xno; then
9023 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9024 fi
9025
cristya316db12011-10-24 00:49:45 +00009026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9027$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9028if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030else
9031
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h. */
9034
9035 #include <pthread.h>
9036int
9037main ()
9038{
9039int i = PTHREAD_PRIO_INHERIT;
9040 ;
9041 return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_link "$LINENO"; then :
9045 ax_cv_PTHREAD_PRIO_INHERIT=yes
9046else
9047 ax_cv_PTHREAD_PRIO_INHERIT=no
9048fi
9049rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9054$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9055 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9056
9057$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9058
9059fi
9060
cristy73bd4a52010-10-05 11:24:23 +00009061 LIBS="$save_LIBS"
9062 CFLAGS="$save_CFLAGS"
9063
9064 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009065 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009066 for ac_prog in xlc_r cc_r
9067do
9068 # Extract the first word of "$ac_prog", so it can be a program name with args.
9069set dummy $ac_prog; ac_word=$2
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009072if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009073 $as_echo_n "(cached) " >&6
9074else
9075 if test -n "$PTHREAD_CC"; then
9076 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9077else
9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_PTHREAD_CC="$ac_prog"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9088 fi
9089done
9090 done
9091IFS=$as_save_IFS
9092
9093fi
9094fi
9095PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9096if test -n "$PTHREAD_CC"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9098$as_echo "$PTHREAD_CC" >&6; }
9099else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
9102fi
9103
9104
9105 test -n "$PTHREAD_CC" && break
9106done
9107test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9108
9109 else
9110 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009111 fi
cristy73bd4a52010-10-05 11:24:23 +00009112else
9113 PTHREAD_CC="$CC"
9114fi
9115
9116
9117
9118
9119
9120# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9121if test x"$ax_pthread_ok" = xyes; then
9122
9123$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9124
9125 :
9126else
9127 ax_pthread_ok=no
9128
9129fi
9130ac_ext=c
9131ac_cpp='$CPP $CPPFLAGS'
9132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134ac_compiler_gnu=$ac_cv_c_compiler_gnu
9135
9136
9137
9138# Check whether --enable-opencl was given.
9139if test "${enable_opencl+set}" = set; then :
9140 enableval=$enable_opencl; disable_opencl=$enableval
9141else
9142 disable_opencl='yes'
9143fi
9144
9145
9146if test "$disable_opencl" = 'yes'; then
9147 ac_ext=c
9148ac_cpp='$CPP $CPPFLAGS'
9149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9151ac_compiler_gnu=$ac_cv_c_compiler_gnu
9152
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9154$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009155if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009156 $as_echo_n "(cached) " >&6
9157else
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159/* end confdefs.h. */
9160
9161int
9162main ()
9163{
9164#ifndef _MSC_VER
9165 choke me
9166#endif
9167
9168 ;
9169 return 0;
9170}
9171_ACEOF
9172if ac_fn_c_try_compile "$LINENO"; then :
9173 ax_compiler_ms=yes
9174else
9175 ax_compiler_ms=no
9176fi
9177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9178ax_cv_c_compiler_ms=$ax_compiler_ms
9179
9180fi
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9182$as_echo "$ax_cv_c_compiler_ms" >&6; }
9183 if test X$ax_compiler_ms = Xno; then :
9184 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9185fi
9186
9187 ax_save_CPPFLAGS=$CPPFLAGS
9188 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9189 for ac_header in CL/cl.h OpenCL/cl.h
9190do :
9191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9192ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009193if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009194 cat >>confdefs.h <<_ACEOF
9195#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9196_ACEOF
9197
9198fi
9199
9200done
9201
9202 CPPFLAGS=$ax_save_CPPFLAGS
9203
9204 for ac_header in windows.h
9205do :
9206 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009207if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009208 cat >>confdefs.h <<_ACEOF
9209#define HAVE_WINDOWS_H 1
9210_ACEOF
9211
9212fi
9213
9214done
9215
9216
9217
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9220$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009221if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009222 $as_echo_n "(cached) " >&6
9223else
9224 ax_cv_check_cl_libcl=no
9225 case $host_cpu in
9226 x86_64) ax_check_cl_libdir=lib64 ;;
9227 *) ax_check_cl_libdir=lib ;;
9228 esac
9229 ax_save_CPPFLAGS=$CPPFLAGS
9230 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9231 ax_save_LIBS=$LIBS
9232 LIBS=""
9233 ax_check_libs="-lOpenCL -lCL -lclparser"
9234 for ax_lib in $ax_check_libs; do
9235 if test X$ax_compiler_ms = Xyes; then :
9236 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9237else
9238 ax_try_lib=$ax_lib
9239fi
9240 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h. */
9243
9244 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9245 # include <windows.h>
9246 # endif
9247 # ifdef HAVE_CL_CL_H
9248 # include <CL/cl.h>
9249 # elif defined(HAVE_OPENCL_CL_H)
9250 # include <OpenCL/cl.h>
9251 # else
9252 # error no CL.h
9253 # endif
9254int
9255main ()
9256{
9257clCreateContextFromType(0,0,0,0,0)
9258 ;
9259 return 0;
9260}
9261_ACEOF
9262if ac_fn_c_try_link "$LINENO"; then :
9263 ax_cv_check_cl_libcl=$ax_try_lib; break
9264else
9265 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"
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h. */
9268
9269 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9270 # include <windows.h>
9271 # endif
9272 # ifdef HAVE_CL_CL_H
9273 # include <CL/cl.h>
9274 # elif defined(HAVE_OPENCL_CL_H)
9275 # include <OpenCL/cl.h>
9276 # else
9277 # error no CL.h
9278 # endif
9279int
9280main ()
9281{
9282clCreateContextFromType(0,0,0,0,0)
9283 ;
9284 return 0;
9285}
9286_ACEOF
9287if ac_fn_c_try_link "$LINENO"; then :
9288 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9289else
cristy78c5a0c2010-12-04 20:00:59 +00009290 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 +00009291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h. */
9293
9294 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9295 # include <windows.h>
9296 # endif
9297 # ifdef HAVE_CL_CL_H
9298 # include <CL/cl.h>
9299 # elif defined(HAVE_OPENCL_CL_H)
9300 # include <OpenCL/cl.h>
9301 # else
9302 # error no CL.h
9303 # endif
9304int
9305main ()
9306{
9307clCreateContextFromType(0,0,0,0,0)
9308 ;
9309 return 0;
9310}
9311_ACEOF
9312if ac_fn_c_try_link "$LINENO"; then :
9313 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9314fi
9315rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9317fi
9318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320fi
9321rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 done
9324
9325 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009326 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328/* end confdefs.h. */
9329
9330 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9331 # include <windows.h>
9332 # endif
9333 # ifdef HAVE_CL_CL_H
9334 # include <CL/cl.h>
9335 # elif defined(HAVE_OPENCL_CL_H)
9336 # include <OpenCL/cl.h>
9337 # else
9338 # error no CL.h
9339 # endif
9340int
9341main ()
9342{
9343clCreateContextFromType(0,0,0,0,0)
9344 ;
9345 return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_link "$LINENO"; then :
9349 ax_cv_check_cl_libcl=$LIBS
9350fi
9351rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353fi
9354
9355 LIBS=$ax_save_LIBS
9356 CPPFLAGS=$ax_save_CPPFLAGS
9357fi
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9359$as_echo "$ax_cv_check_cl_libcl" >&6; }
9360
9361 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9362 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9363else
9364 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9365$as_echo "#define _OPENCL 1" >>confdefs.h
9366
9367fi
9368 ac_ext=c
9369ac_cpp='$CPP $CPPFLAGS'
9370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9372ac_compiler_gnu=$ac_cv_c_compiler_gnu
9373
9374fi
9375
9376
9377
9378
cristyc7083c12009-10-14 03:16:55 +00009379CFLAGS="$CL_CFLAGS $CFLAGS"
9380LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009381
cristy391f1ce2010-09-09 17:23:28 +00009382if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009383 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009384 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9385 fi
cristyfd9dcd42010-08-08 18:07:02 +00009386fi
cristy2e8b51d2009-10-17 18:26:15 +00009387
cristy3ed852e2009-09-05 21:47:34 +00009388########
9389#
9390# Check for large file support
9391#
9392########
9393# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009394if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009395 enableval=$enable_largefile;
9396fi
9397
9398if test "$enable_largefile" != no; then
9399
cristy8b350f62009-11-15 23:12:43 +00009400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009401$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009402if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009403 $as_echo_n "(cached) " >&6
9404else
9405 ac_cv_sys_largefile_CC=no
9406 if test "$GCC" != yes; then
9407 ac_save_CC=$CC
9408 while :; do
9409 # IRIX 6.2 and later do not support large files by default,
9410 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009412/* end confdefs.h. */
9413#include <sys/types.h>
9414 /* Check that off_t can represent 2**63 - 1 correctly.
9415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9416 since some C++ compilers masquerading as C compilers
9417 incorrectly reject 9223372036854775807. */
9418#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9420 && LARGE_OFF_T % 2147483647 == 1)
9421 ? 1 : -1];
9422int
9423main ()
9424{
9425
9426 ;
9427 return 0;
9428}
9429_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009430 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009431 break
cristy3ed852e2009-09-05 21:47:34 +00009432fi
cristy3ed852e2009-09-05 21:47:34 +00009433rm -f core conftest.err conftest.$ac_objext
9434 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009435 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009436 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009437fi
cristy3ed852e2009-09-05 21:47:34 +00009438rm -f core conftest.err conftest.$ac_objext
9439 break
9440 done
9441 CC=$ac_save_CC
9442 rm -f conftest.$ac_ext
9443 fi
9444fi
cristy8b350f62009-11-15 23:12:43 +00009445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009446$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9447 if test "$ac_cv_sys_largefile_CC" != no; then
9448 CC=$CC$ac_cv_sys_largefile_CC
9449 fi
9450
cristy8b350f62009-11-15 23:12:43 +00009451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009452$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009453if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009454 $as_echo_n "(cached) " >&6
9455else
9456 while :; do
cristy8b350f62009-11-15 23:12:43 +00009457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009458/* end confdefs.h. */
9459#include <sys/types.h>
9460 /* Check that off_t can represent 2**63 - 1 correctly.
9461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9462 since some C++ compilers masquerading as C compilers
9463 incorrectly reject 9223372036854775807. */
9464#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9466 && LARGE_OFF_T % 2147483647 == 1)
9467 ? 1 : -1];
9468int
9469main ()
9470{
9471
9472 ;
9473 return 0;
9474}
9475_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009476if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009477 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009478fi
cristy3ed852e2009-09-05 21:47:34 +00009479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009481/* end confdefs.h. */
9482#define _FILE_OFFSET_BITS 64
9483#include <sys/types.h>
9484 /* Check that off_t can represent 2**63 - 1 correctly.
9485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9486 since some C++ compilers masquerading as C compilers
9487 incorrectly reject 9223372036854775807. */
9488#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9490 && LARGE_OFF_T % 2147483647 == 1)
9491 ? 1 : -1];
9492int
9493main ()
9494{
9495
9496 ;
9497 return 0;
9498}
9499_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009500if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009501 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009502fi
cristy3ed852e2009-09-05 21:47:34 +00009503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 ac_cv_sys_file_offset_bits=unknown
9505 break
9506done
9507fi
cristy8b350f62009-11-15 23:12:43 +00009508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009509$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9510case $ac_cv_sys_file_offset_bits in #(
9511 no | unknown) ;;
9512 *)
9513cat >>confdefs.h <<_ACEOF
9514#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9515_ACEOF
9516;;
9517esac
9518rm -rf conftest*
9519 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009521$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009522if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009523 $as_echo_n "(cached) " >&6
9524else
9525 while :; do
cristy8b350f62009-11-15 23:12:43 +00009526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009527/* end confdefs.h. */
9528#include <sys/types.h>
9529 /* Check that off_t can represent 2**63 - 1 correctly.
9530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9531 since some C++ compilers masquerading as C compilers
9532 incorrectly reject 9223372036854775807. */
9533#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9535 && LARGE_OFF_T % 2147483647 == 1)
9536 ? 1 : -1];
9537int
9538main ()
9539{
9540
9541 ;
9542 return 0;
9543}
9544_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009545if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009546 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009547fi
cristy3ed852e2009-09-05 21:47:34 +00009548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009550/* end confdefs.h. */
9551#define _LARGE_FILES 1
9552#include <sys/types.h>
9553 /* Check that off_t can represent 2**63 - 1 correctly.
9554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9555 since some C++ compilers masquerading as C compilers
9556 incorrectly reject 9223372036854775807. */
9557#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9559 && LARGE_OFF_T % 2147483647 == 1)
9560 ? 1 : -1];
9561int
9562main ()
9563{
9564
9565 ;
9566 return 0;
9567}
9568_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009569if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009570 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009571fi
cristy3ed852e2009-09-05 21:47:34 +00009572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 ac_cv_sys_large_files=unknown
9574 break
9575done
9576fi
cristy8b350f62009-11-15 23:12:43 +00009577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009578$as_echo "$ac_cv_sys_large_files" >&6; }
9579case $ac_cv_sys_large_files in #(
9580 no | unknown) ;;
9581 *)
9582cat >>confdefs.h <<_ACEOF
9583#define _LARGE_FILES $ac_cv_sys_large_files
9584_ACEOF
9585;;
9586esac
9587rm -rf conftest*
9588 fi
9589fi
9590
cristy8b350f62009-11-15 23:12:43 +00009591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009592$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009593if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009594 $as_echo_n "(cached) " >&6
9595else
9596 while :; do
cristy8b350f62009-11-15 23:12:43 +00009597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009598/* end confdefs.h. */
9599#include <sys/types.h> /* for off_t */
9600 #include <stdio.h>
9601int
9602main ()
9603{
9604int (*fp) (FILE *, off_t, int) = fseeko;
9605 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9606 ;
9607 return 0;
9608}
9609_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009611 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009612fi
cristy8b350f62009-11-15 23:12:43 +00009613rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009616/* end confdefs.h. */
9617#define _LARGEFILE_SOURCE 1
9618#include <sys/types.h> /* for off_t */
9619 #include <stdio.h>
9620int
9621main ()
9622{
9623int (*fp) (FILE *, off_t, int) = fseeko;
9624 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9625 ;
9626 return 0;
9627}
9628_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009630 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009631fi
cristy8b350f62009-11-15 23:12:43 +00009632rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009634 ac_cv_sys_largefile_source=unknown
9635 break
9636done
9637fi
cristy8b350f62009-11-15 23:12:43 +00009638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009639$as_echo "$ac_cv_sys_largefile_source" >&6; }
9640case $ac_cv_sys_largefile_source in #(
9641 no | unknown) ;;
9642 *)
9643cat >>confdefs.h <<_ACEOF
9644#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9645_ACEOF
9646;;
9647esac
9648rm -rf conftest*
9649
9650# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9651# in glibc 2.1.3, but that breaks too many other things.
9652# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9653if test $ac_cv_sys_largefile_source != unknown; then
9654
cristy8b350f62009-11-15 23:12:43 +00009655$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009656
9657fi
9658
9659LFS_CPPFLAGS=''
9660if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009661 case $ac_cv_sys_file_offset_bits in
9662 no)
9663 # nothing to do here as the host supports LFS fine
9664 ;;
9665 unknown)
cristy8b350f62009-11-15 23:12:43 +00009666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009667$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009668 if test "$cross_compiling" = yes; then :
9669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009671as_fn_error $? "cannot run test program while cross compiling
9672See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009673else
cristy8b350f62009-11-15 23:12:43 +00009674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009676#include <unistd.h>
9677 main () {
9678 exit(!(sizeof(off_t) == 8));
9679 }
cristyda16f162011-02-19 23:52:17 +00009680int
9681main ()
9682{
9683
9684 ;
9685 return 0;
9686}
cristy3ed852e2009-09-05 21:47:34 +00009687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009688if ac_fn_c_try_run "$LINENO"; then :
9689 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009690
cristy09b53e12011-10-14 12:47:22 +00009691 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9692$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009693else
cristy09b53e12011-10-14 12:47:22 +00009694 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9695$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009696fi
cristy8b350f62009-11-15 23:12:43 +00009697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9698 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009699fi
9700
cristyc1e0cc12011-09-21 16:41:16 +00009701 ;;
9702 *)
9703 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9704 ;;
9705 esac
cristy3ed852e2009-09-05 21:47:34 +00009706 if test "$ac_cv_sys_large_files" != 'no'; then
9707 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9708 fi
9709 if test "$ac_cv_sys_largefile_source" != 'no'; then
9710 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9711 fi
9712fi
9713
9714
9715#
cristy3ed852e2009-09-05 21:47:34 +00009716# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009717enable_dlopen=yes
9718
9719
9720
9721case `pwd` in
9722 *\ * | *\ *)
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9724$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9725esac
9726
9727
9728
cristyda16f162011-02-19 23:52:17 +00009729macro_version='2.4'
9730macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744ltmain="$ac_aux_dir/ltmain.sh"
9745
cristy0c60a692010-11-04 01:09:47 +00009746# Backslashify metacharacters that are still active within
9747# double-quoted strings.
9748sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9749
9750# Same as above, but do not quote variable references.
9751double_quote_subst='s/\(["`\\]\)/\\\1/g'
9752
9753# Sed substitution to delay expansion of an escaped shell variable in a
9754# double_quote_subst'ed string.
9755delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9756
9757# Sed substitution to delay expansion of an escaped single quote.
9758delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9759
9760# Sed substitution to avoid accidental globbing in evaled expressions
9761no_glob_subst='s/\*/\\\*/g'
9762
cristy73bd4a52010-10-05 11:24:23 +00009763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9764$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009765if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009766 $as_echo_n "(cached) " >&6
9767else
9768 if test -n "$NM"; then
9769 # Let the user override the test.
9770 lt_cv_path_NM="$NM"
9771else
9772 lt_nm_to_check="${ac_tool_prefix}nm"
9773 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9774 lt_nm_to_check="$lt_nm_to_check nm"
9775 fi
9776 for lt_tmp_nm in $lt_nm_to_check; do
9777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9778 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9779 IFS="$lt_save_ifs"
9780 test -z "$ac_dir" && ac_dir=.
9781 tmp_nm="$ac_dir/$lt_tmp_nm"
9782 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9783 # Check to see if the nm accepts a BSD-compat flag.
9784 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9785 # nm: unknown option "B" ignored
9786 # Tru64's nm complains that /dev/null is an invalid object file
9787 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9788 */dev/null* | *'Invalid file or object type'*)
9789 lt_cv_path_NM="$tmp_nm -B"
9790 break
9791 ;;
9792 *)
9793 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9794 */dev/null*)
9795 lt_cv_path_NM="$tmp_nm -p"
9796 break
9797 ;;
9798 *)
9799 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9800 continue # so that we can try to find one that supports BSD flags
9801 ;;
9802 esac
9803 ;;
9804 esac
9805 fi
9806 done
9807 IFS="$lt_save_ifs"
9808 done
9809 : ${lt_cv_path_NM=no}
9810fi
9811fi
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9813$as_echo "$lt_cv_path_NM" >&6; }
9814if test "$lt_cv_path_NM" != "no"; then
9815 NM="$lt_cv_path_NM"
9816else
9817 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009818 if test -n "$DUMPBIN"; then :
9819 # Let the user override the test.
9820 else
9821 if test -n "$ac_tool_prefix"; then
9822 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009823 do
9824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009828if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009829 $as_echo_n "(cached) " >&6
9830else
9831 if test -n "$DUMPBIN"; then
9832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9833else
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9844 fi
9845done
9846 done
9847IFS=$as_save_IFS
9848
9849fi
9850fi
9851DUMPBIN=$ac_cv_prog_DUMPBIN
9852if test -n "$DUMPBIN"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9854$as_echo "$DUMPBIN" >&6; }
9855else
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857$as_echo "no" >&6; }
9858fi
9859
9860
9861 test -n "$DUMPBIN" && break
9862 done
9863fi
9864if test -z "$DUMPBIN"; then
9865 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009866 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009867do
9868 # Extract the first word of "$ac_prog", so it can be a program name with args.
9869set dummy $ac_prog; ac_word=$2
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009872if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009873 $as_echo_n "(cached) " >&6
9874else
9875 if test -n "$ac_ct_DUMPBIN"; then
9876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9877else
9878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879for as_dir in $PATH
9880do
9881 IFS=$as_save_IFS
9882 test -z "$as_dir" && as_dir=.
9883 for ac_exec_ext in '' $ac_executable_extensions; do
9884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 break 2
9888 fi
9889done
9890 done
9891IFS=$as_save_IFS
9892
9893fi
9894fi
9895ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9896if test -n "$ac_ct_DUMPBIN"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9898$as_echo "$ac_ct_DUMPBIN" >&6; }
9899else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901$as_echo "no" >&6; }
9902fi
9903
9904
9905 test -n "$ac_ct_DUMPBIN" && break
9906done
9907
9908 if test "x$ac_ct_DUMPBIN" = x; then
9909 DUMPBIN=":"
9910 else
9911 case $cross_compiling:$ac_tool_warned in
9912yes:)
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9915ac_tool_warned=yes ;;
9916esac
9917 DUMPBIN=$ac_ct_DUMPBIN
9918 fi
9919fi
9920
cristy0c60a692010-11-04 01:09:47 +00009921 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9922 *COFF*)
9923 DUMPBIN="$DUMPBIN -symbols"
9924 ;;
9925 *)
9926 DUMPBIN=:
9927 ;;
9928 esac
9929 fi
cristy73bd4a52010-10-05 11:24:23 +00009930
9931 if test "$DUMPBIN" != ":"; then
9932 NM="$DUMPBIN"
9933 fi
9934fi
9935test -z "$NM" && NM=nm
9936
9937
9938
9939
9940
9941
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9943$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009944if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009945 $as_echo_n "(cached) " >&6
9946else
9947 lt_cv_nm_interface="BSD nm"
9948 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009949 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009950 (eval "$ac_compile" 2>conftest.err)
9951 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009952 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009953 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9954 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009955 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009956 cat conftest.out >&5
9957 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9958 lt_cv_nm_interface="MS dumpbin"
9959 fi
9960 rm -f conftest*
9961fi
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9963$as_echo "$lt_cv_nm_interface" >&6; }
9964
9965# find the maximum length of command line arguments
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9967$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009968if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009969 $as_echo_n "(cached) " >&6
9970else
9971 i=0
9972 teststring="ABCD"
9973
9974 case $build_os in
9975 msdosdjgpp*)
9976 # On DJGPP, this test can blow up pretty badly due to problems in libc
9977 # (any single argument exceeding 2000 bytes causes a buffer overrun
9978 # during glob expansion). Even if it were fixed, the result of this
9979 # check would be larger than it should be.
9980 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9981 ;;
9982
9983 gnu*)
9984 # Under GNU Hurd, this test is not required because there is
9985 # no limit to the length of command line arguments.
9986 # Libtool will interpret -1 as no limit whatsoever
9987 lt_cv_sys_max_cmd_len=-1;
9988 ;;
9989
9990 cygwin* | mingw* | cegcc*)
9991 # On Win9x/ME, this test blows up -- it succeeds, but takes
9992 # about 5 minutes as the teststring grows exponentially.
9993 # Worse, since 9x/ME are not pre-emptively multitasking,
9994 # you end up with a "frozen" computer, even though with patience
9995 # the test eventually succeeds (with a max line length of 256k).
9996 # Instead, let's just punt: use the minimum linelength reported by
9997 # all of the supported platforms: 8192 (on NT/2K/XP).
9998 lt_cv_sys_max_cmd_len=8192;
9999 ;;
10000
cristy0c60a692010-11-04 01:09:47 +000010001 mint*)
10002 # On MiNT this can take a long time and run out of memory.
10003 lt_cv_sys_max_cmd_len=8192;
10004 ;;
10005
cristy73bd4a52010-10-05 11:24:23 +000010006 amigaos*)
10007 # On AmigaOS with pdksh, this test takes hours, literally.
10008 # So we just punt and use a minimum line length of 8192.
10009 lt_cv_sys_max_cmd_len=8192;
10010 ;;
10011
10012 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10013 # This has been around since 386BSD, at least. Likely further.
10014 if test -x /sbin/sysctl; then
10015 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10016 elif test -x /usr/sbin/sysctl; then
10017 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10018 else
10019 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10020 fi
10021 # And add a safety zone
10022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10024 ;;
10025
10026 interix*)
10027 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10028 lt_cv_sys_max_cmd_len=196608
10029 ;;
10030
10031 osf*)
10032 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10033 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10034 # nice to cause kernel panics so lets avoid the loop below.
10035 # First set a reasonable default.
10036 lt_cv_sys_max_cmd_len=16384
10037 #
10038 if test -x /sbin/sysconfig; then
10039 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10040 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10041 esac
10042 fi
10043 ;;
10044 sco3.2v5*)
10045 lt_cv_sys_max_cmd_len=102400
10046 ;;
10047 sysv5* | sco5v6* | sysv4.2uw2*)
10048 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10049 if test -n "$kargmax"; then
10050 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10051 else
10052 lt_cv_sys_max_cmd_len=32768
10053 fi
10054 ;;
10055 *)
10056 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10057 if test -n "$lt_cv_sys_max_cmd_len"; then
10058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10060 else
10061 # Make teststring a little bigger before we do anything with it.
10062 # a 1K string should be a reasonable start.
10063 for i in 1 2 3 4 5 6 7 8 ; do
10064 teststring=$teststring$teststring
10065 done
10066 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10067 # If test is not a shell built-in, we'll probably end up computing a
10068 # maximum length that is only half of the actual maximum length, but
10069 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010070 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10071 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010072 test $i != 17 # 1/2 MB should be enough
10073 do
10074 i=`expr $i + 1`
10075 teststring=$teststring$teststring
10076 done
10077 # Only check the string length outside the loop.
10078 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10079 teststring=
10080 # Add a significant safety factor because C++ compilers can tack on
10081 # massive amounts of additional arguments before passing them to the
10082 # linker. It appears as though 1/2 is a usable value.
10083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10084 fi
10085 ;;
10086 esac
10087
10088fi
10089
10090if test -n $lt_cv_sys_max_cmd_len ; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10092$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10093else
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10095$as_echo "none" >&6; }
10096fi
10097max_cmd_len=$lt_cv_sys_max_cmd_len
10098
10099
10100
10101
10102
10103
10104: ${CP="cp -f"}
10105: ${MV="mv -f"}
10106: ${RM="rm -f"}
10107
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10109$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10110# Try some XSI features
10111xsi_shell=no
10112( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010113 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10114 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010115 && eval 'test $(( 1 + 1 )) -eq 2 \
10116 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10117 && xsi_shell=yes
10118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10119$as_echo "$xsi_shell" >&6; }
10120
10121
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10123$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10124lt_shell_append=no
10125( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10126 >/dev/null 2>&1 \
10127 && lt_shell_append=yes
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10129$as_echo "$lt_shell_append" >&6; }
10130
10131
10132if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10133 lt_unset=unset
10134else
10135 lt_unset=false
10136fi
10137
10138
10139
10140
10141
10142# test EBCDIC or ASCII
10143case `echo X|tr X '\101'` in
10144 A) # ASCII based system
10145 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10146 lt_SP2NL='tr \040 \012'
10147 lt_NL2SP='tr \015\012 \040\040'
10148 ;;
10149 *) # EBCDIC based system
10150 lt_SP2NL='tr \100 \n'
10151 lt_NL2SP='tr \r\n \100\100'
10152 ;;
10153esac
10154
10155
10156
10157
10158
10159
10160
10161
10162
cristyda16f162011-02-19 23:52:17 +000010163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10164$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10165if ${lt_cv_to_host_file_cmd+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167else
10168 case $host in
10169 *-*-mingw* )
10170 case $build in
10171 *-*-mingw* ) # actually msys
10172 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10173 ;;
10174 *-*-cygwin* )
10175 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10176 ;;
10177 * ) # otherwise, assume *nix
10178 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10179 ;;
10180 esac
10181 ;;
10182 *-*-cygwin* )
10183 case $build in
10184 *-*-mingw* ) # actually msys
10185 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10186 ;;
10187 *-*-cygwin* )
10188 lt_cv_to_host_file_cmd=func_convert_file_noop
10189 ;;
10190 * ) # otherwise, assume *nix
10191 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10192 ;;
10193 esac
10194 ;;
10195 * ) # unhandled hosts (and "normal" native builds)
10196 lt_cv_to_host_file_cmd=func_convert_file_noop
10197 ;;
10198esac
10199
10200fi
10201
10202to_host_file_cmd=$lt_cv_to_host_file_cmd
10203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10204$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10205
10206
10207
10208
10209
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10211$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10212if ${lt_cv_to_tool_file_cmd+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214else
10215 #assume ordinary cross tools, or native build.
10216lt_cv_to_tool_file_cmd=func_convert_file_noop
10217case $host in
10218 *-*-mingw* )
10219 case $build in
10220 *-*-mingw* ) # actually msys
10221 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10222 ;;
10223 esac
10224 ;;
10225esac
10226
10227fi
10228
10229to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10231$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10232
10233
10234
10235
10236
cristy73bd4a52010-10-05 11:24:23 +000010237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10238$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010239if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010240 $as_echo_n "(cached) " >&6
10241else
10242 lt_cv_ld_reload_flag='-r'
10243fi
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10245$as_echo "$lt_cv_ld_reload_flag" >&6; }
10246reload_flag=$lt_cv_ld_reload_flag
10247case $reload_flag in
10248"" | " "*) ;;
10249*) reload_flag=" $reload_flag" ;;
10250esac
10251reload_cmds='$LD$reload_flag -o $output$reload_objs'
10252case $host_os in
cristyda16f162011-02-19 23:52:17 +000010253 cygwin* | mingw* | pw32* | cegcc*)
10254 if test "$GCC" != yes; then
10255 reload_cmds=false
10256 fi
10257 ;;
cristy73bd4a52010-10-05 11:24:23 +000010258 darwin*)
10259 if test "$GCC" = yes; then
10260 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10261 else
10262 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10263 fi
10264 ;;
10265esac
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275if test -n "$ac_tool_prefix"; then
10276 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10277set dummy ${ac_tool_prefix}objdump; ac_word=$2
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010280if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010281 $as_echo_n "(cached) " >&6
10282else
10283 if test -n "$OBJDUMP"; then
10284 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10285else
10286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287for as_dir in $PATH
10288do
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10296 fi
10297done
10298 done
10299IFS=$as_save_IFS
10300
10301fi
10302fi
10303OBJDUMP=$ac_cv_prog_OBJDUMP
10304if test -n "$OBJDUMP"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10306$as_echo "$OBJDUMP" >&6; }
10307else
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309$as_echo "no" >&6; }
10310fi
10311
10312
10313fi
10314if test -z "$ac_cv_prog_OBJDUMP"; then
10315 ac_ct_OBJDUMP=$OBJDUMP
10316 # Extract the first word of "objdump", so it can be a program name with args.
10317set dummy objdump; ac_word=$2
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010320if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010321 $as_echo_n "(cached) " >&6
10322else
10323 if test -n "$ac_ct_OBJDUMP"; then
10324 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10325else
10326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10336 fi
10337done
10338 done
10339IFS=$as_save_IFS
10340
10341fi
10342fi
10343ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10344if test -n "$ac_ct_OBJDUMP"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10346$as_echo "$ac_ct_OBJDUMP" >&6; }
10347else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }
10350fi
10351
10352 if test "x$ac_ct_OBJDUMP" = x; then
10353 OBJDUMP="false"
10354 else
10355 case $cross_compiling:$ac_tool_warned in
10356yes:)
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10359ac_tool_warned=yes ;;
10360esac
10361 OBJDUMP=$ac_ct_OBJDUMP
10362 fi
10363else
10364 OBJDUMP="$ac_cv_prog_OBJDUMP"
10365fi
10366
10367test -z "$OBJDUMP" && OBJDUMP=objdump
10368
10369
10370
10371
10372
10373
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10375$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010376if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010377 $as_echo_n "(cached) " >&6
10378else
10379 lt_cv_file_magic_cmd='$MAGIC_CMD'
10380lt_cv_file_magic_test_file=
10381lt_cv_deplibs_check_method='unknown'
10382# Need to set the preceding variable on all platforms that support
10383# interlibrary dependencies.
10384# 'none' -- dependencies not supported.
10385# `unknown' -- same as none, but documents that we really don't know.
10386# 'pass_all' -- all dependencies passed with no checks.
10387# 'test_compile' -- check by making test program.
10388# 'file_magic [[regex]]' -- check by looking for files in library path
10389# which responds to the $file_magic_cmd with a given extended regex.
10390# If you have `file' or equivalent on your system and you're not sure
10391# whether `pass_all' will *always* work, you probably want this one.
10392
10393case $host_os in
10394aix[4-9]*)
10395 lt_cv_deplibs_check_method=pass_all
10396 ;;
10397
10398beos*)
10399 lt_cv_deplibs_check_method=pass_all
10400 ;;
10401
10402bsdi[45]*)
10403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10404 lt_cv_file_magic_cmd='/usr/bin/file -L'
10405 lt_cv_file_magic_test_file=/shlib/libc.so
10406 ;;
10407
10408cygwin*)
10409 # func_win32_libid is a shell function defined in ltmain.sh
10410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10411 lt_cv_file_magic_cmd='func_win32_libid'
10412 ;;
10413
10414mingw* | pw32*)
10415 # Base MSYS/MinGW do not provide the 'file' command needed by
10416 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10417 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010418 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10419 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10421 lt_cv_file_magic_cmd='func_win32_libid'
10422 else
cristy0c60a692010-11-04 01:09:47 +000010423 # Keep this pattern in sync with the one in func_win32_libid.
10424 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 +000010425 lt_cv_file_magic_cmd='$OBJDUMP -f'
10426 fi
10427 ;;
10428
cristy0c60a692010-11-04 01:09:47 +000010429cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010430 # use the weaker test based on 'objdump'. See mingw*.
10431 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10432 lt_cv_file_magic_cmd='$OBJDUMP -f'
10433 ;;
10434
10435darwin* | rhapsody*)
10436 lt_cv_deplibs_check_method=pass_all
10437 ;;
10438
10439freebsd* | dragonfly*)
10440 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10441 case $host_cpu in
10442 i*86 )
10443 # Not sure whether the presence of OpenBSD here was a mistake.
10444 # Let's accept both of them until this is cleared up.
10445 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10446 lt_cv_file_magic_cmd=/usr/bin/file
10447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10448 ;;
10449 esac
10450 else
10451 lt_cv_deplibs_check_method=pass_all
10452 fi
10453 ;;
10454
10455gnu*)
10456 lt_cv_deplibs_check_method=pass_all
10457 ;;
10458
cristy0c60a692010-11-04 01:09:47 +000010459haiku*)
10460 lt_cv_deplibs_check_method=pass_all
10461 ;;
10462
cristy73bd4a52010-10-05 11:24:23 +000010463hpux10.20* | hpux11*)
10464 lt_cv_file_magic_cmd=/usr/bin/file
10465 case $host_cpu in
10466 ia64*)
10467 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10468 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10469 ;;
10470 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010471 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 +000010472 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10473 ;;
10474 *)
cristy0c60a692010-11-04 01:09:47 +000010475 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 +000010476 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10477 ;;
10478 esac
10479 ;;
10480
10481interix[3-9]*)
10482 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10484 ;;
10485
10486irix5* | irix6* | nonstopux*)
10487 case $LD in
10488 *-32|*"-32 ") libmagic=32-bit;;
10489 *-n32|*"-n32 ") libmagic=N32;;
10490 *-64|*"-64 ") libmagic=64-bit;;
10491 *) libmagic=never-match;;
10492 esac
10493 lt_cv_deplibs_check_method=pass_all
10494 ;;
10495
10496# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010497linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010498 lt_cv_deplibs_check_method=pass_all
10499 ;;
10500
10501netbsd*)
10502 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10504 else
10505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10506 fi
10507 ;;
10508
10509newos6*)
10510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10511 lt_cv_file_magic_cmd=/usr/bin/file
10512 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10513 ;;
10514
10515*nto* | *qnx*)
10516 lt_cv_deplibs_check_method=pass_all
10517 ;;
10518
10519openbsd*)
10520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10522 else
10523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10524 fi
10525 ;;
10526
10527osf3* | osf4* | osf5*)
10528 lt_cv_deplibs_check_method=pass_all
10529 ;;
10530
10531rdos*)
10532 lt_cv_deplibs_check_method=pass_all
10533 ;;
10534
10535solaris*)
10536 lt_cv_deplibs_check_method=pass_all
10537 ;;
10538
10539sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10540 lt_cv_deplibs_check_method=pass_all
10541 ;;
10542
10543sysv4 | sysv4.3*)
10544 case $host_vendor in
10545 motorola)
10546 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]'
10547 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10548 ;;
10549 ncr)
10550 lt_cv_deplibs_check_method=pass_all
10551 ;;
10552 sequent)
10553 lt_cv_file_magic_cmd='/bin/file'
10554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10555 ;;
10556 sni)
10557 lt_cv_file_magic_cmd='/bin/file'
10558 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10559 lt_cv_file_magic_test_file=/lib/libc.so
10560 ;;
10561 siemens)
10562 lt_cv_deplibs_check_method=pass_all
10563 ;;
10564 pc)
10565 lt_cv_deplibs_check_method=pass_all
10566 ;;
10567 esac
10568 ;;
10569
10570tpf*)
10571 lt_cv_deplibs_check_method=pass_all
10572 ;;
10573esac
10574
10575fi
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10577$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010578
10579file_magic_glob=
10580want_nocaseglob=no
10581if test "$build" = "$host"; then
10582 case $host_os in
10583 mingw* | pw32*)
10584 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10585 want_nocaseglob=yes
10586 else
10587 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10588 fi
10589 ;;
10590 esac
10591fi
10592
cristy73bd4a52010-10-05 11:24:23 +000010593file_magic_cmd=$lt_cv_file_magic_cmd
10594deplibs_check_method=$lt_cv_deplibs_check_method
10595test -z "$deplibs_check_method" && deplibs_check_method=unknown
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
cristyda16f162011-02-19 23:52:17 +000010608
10609
10610
10611
10612
10613
10614
10615
10616
10617
cristy73bd4a52010-10-05 11:24:23 +000010618if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010619 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10620set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010623if ${ac_cv_prog_DLLTOOL+:} false; then :
10624 $as_echo_n "(cached) " >&6
10625else
10626 if test -n "$DLLTOOL"; then
10627 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641 done
10642IFS=$as_save_IFS
10643
10644fi
10645fi
10646DLLTOOL=$ac_cv_prog_DLLTOOL
10647if test -n "$DLLTOOL"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10649$as_echo "$DLLTOOL" >&6; }
10650else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652$as_echo "no" >&6; }
10653fi
10654
10655
10656fi
10657if test -z "$ac_cv_prog_DLLTOOL"; then
10658 ac_ct_DLLTOOL=$DLLTOOL
10659 # Extract the first word of "dlltool", so it can be a program name with args.
10660set dummy dlltool; ac_word=$2
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662$as_echo_n "checking for $ac_word... " >&6; }
10663if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665else
10666 if test -n "$ac_ct_DLLTOOL"; then
10667 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10668else
10669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670for as_dir in $PATH
10671do
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10679 fi
10680done
10681 done
10682IFS=$as_save_IFS
10683
10684fi
10685fi
10686ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10687if test -n "$ac_ct_DLLTOOL"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10689$as_echo "$ac_ct_DLLTOOL" >&6; }
10690else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692$as_echo "no" >&6; }
10693fi
10694
10695 if test "x$ac_ct_DLLTOOL" = x; then
10696 DLLTOOL="false"
10697 else
10698 case $cross_compiling:$ac_tool_warned in
10699yes:)
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10702ac_tool_warned=yes ;;
10703esac
10704 DLLTOOL=$ac_ct_DLLTOOL
10705 fi
10706else
10707 DLLTOOL="$ac_cv_prog_DLLTOOL"
10708fi
10709
10710test -z "$DLLTOOL" && DLLTOOL=dlltool
10711
10712
10713
10714
10715
10716
10717
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10719$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10720if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722else
10723 lt_cv_sharedlib_from_linklib_cmd='unknown'
10724
10725case $host_os in
10726cygwin* | mingw* | pw32* | cegcc*)
10727 # two different shell functions defined in ltmain.sh
10728 # decide which to use based on capabilities of $DLLTOOL
10729 case `$DLLTOOL --help 2>&1` in
10730 *--identify-strict*)
10731 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10732 ;;
10733 *)
10734 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10735 ;;
10736 esac
10737 ;;
10738*)
10739 # fallback: assume linklib IS sharedlib
10740 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10741 ;;
10742esac
10743
10744fi
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10746$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10747sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10748test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10749
10750
10751
10752
10753
10754
10755
10756if test -n "$ac_tool_prefix"; then
10757 for ac_prog in ar
10758 do
10759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10760set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762$as_echo_n "checking for $ac_word... " >&6; }
10763if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010764 $as_echo_n "(cached) " >&6
10765else
10766 if test -n "$AR"; then
10767 ac_cv_prog_AR="$AR" # Let the user override the test.
10768else
10769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770for as_dir in $PATH
10771do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 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 +000010776 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10779 fi
10780done
10781 done
10782IFS=$as_save_IFS
10783
10784fi
10785fi
10786AR=$ac_cv_prog_AR
10787if test -n "$AR"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10789$as_echo "$AR" >&6; }
10790else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792$as_echo "no" >&6; }
10793fi
10794
10795
cristyda16f162011-02-19 23:52:17 +000010796 test -n "$AR" && break
10797 done
cristy73bd4a52010-10-05 11:24:23 +000010798fi
cristyda16f162011-02-19 23:52:17 +000010799if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010800 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010801 for ac_prog in ar
10802do
10803 # Extract the first word of "$ac_prog", so it can be a program name with args.
10804set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010807if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010808 $as_echo_n "(cached) " >&6
10809else
10810 if test -n "$ac_ct_AR"; then
10811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10812else
10813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814for as_dir in $PATH
10815do
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 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 +000010820 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10823 fi
10824done
10825 done
10826IFS=$as_save_IFS
10827
10828fi
10829fi
10830ac_ct_AR=$ac_cv_prog_ac_ct_AR
10831if test -n "$ac_ct_AR"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10833$as_echo "$ac_ct_AR" >&6; }
10834else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836$as_echo "no" >&6; }
10837fi
10838
cristyda16f162011-02-19 23:52:17 +000010839
10840 test -n "$ac_ct_AR" && break
10841done
10842
cristy73bd4a52010-10-05 11:24:23 +000010843 if test "x$ac_ct_AR" = x; then
10844 AR="false"
10845 else
10846 case $cross_compiling:$ac_tool_warned in
10847yes:)
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10850ac_tool_warned=yes ;;
10851esac
10852 AR=$ac_ct_AR
10853 fi
cristy73bd4a52010-10-05 11:24:23 +000010854fi
10855
cristyda16f162011-02-19 23:52:17 +000010856: ${AR=ar}
10857: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
cristyda16f162011-02-19 23:52:17 +000010869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10870$as_echo_n "checking for archiver @FILE support... " >&6; }
10871if ${lt_cv_ar_at_file+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873else
10874 lt_cv_ar_at_file=no
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876/* end confdefs.h. */
10877
10878int
10879main ()
10880{
10881
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886if ac_fn_c_try_compile "$LINENO"; then :
10887 echo conftest.$ac_objext > conftest.lst
10888 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10890 (eval $lt_ar_try) 2>&5
10891 ac_status=$?
10892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10893 test $ac_status = 0; }
10894 if test "$ac_status" -eq 0; then
10895 # Ensure the archiver fails upon bogus file names.
10896 rm -f conftest.$ac_objext libconftest.a
10897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10898 (eval $lt_ar_try) 2>&5
10899 ac_status=$?
10900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10901 test $ac_status = 0; }
10902 if test "$ac_status" -ne 0; then
10903 lt_cv_ar_at_file=@
10904 fi
10905 fi
10906 rm -f conftest.* libconftest.a
10907
10908fi
10909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910
10911fi
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10913$as_echo "$lt_cv_ar_at_file" >&6; }
10914
10915if test "x$lt_cv_ar_at_file" = xno; then
10916 archiver_list_spec=
10917else
10918 archiver_list_spec=$lt_cv_ar_at_file
10919fi
10920
10921
10922
10923
10924
10925
10926
cristy73bd4a52010-10-05 11:24:23 +000010927if test -n "$ac_tool_prefix"; then
10928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10929set dummy ${ac_tool_prefix}strip; ac_word=$2
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010932if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010933 $as_echo_n "(cached) " >&6
10934else
10935 if test -n "$STRIP"; then
10936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10937else
10938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939for as_dir in $PATH
10940do
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 break 2
10948 fi
10949done
10950 done
10951IFS=$as_save_IFS
10952
10953fi
10954fi
10955STRIP=$ac_cv_prog_STRIP
10956if test -n "$STRIP"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10958$as_echo "$STRIP" >&6; }
10959else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961$as_echo "no" >&6; }
10962fi
10963
10964
10965fi
10966if test -z "$ac_cv_prog_STRIP"; then
10967 ac_ct_STRIP=$STRIP
10968 # Extract the first word of "strip", so it can be a program name with args.
10969set dummy strip; ac_word=$2
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010972if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010973 $as_echo_n "(cached) " >&6
10974else
10975 if test -n "$ac_ct_STRIP"; then
10976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10977else
10978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979for as_dir in $PATH
10980do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_prog_ac_ct_STRIP="strip"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10988 fi
10989done
10990 done
10991IFS=$as_save_IFS
10992
10993fi
10994fi
10995ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10996if test -n "$ac_ct_STRIP"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10998$as_echo "$ac_ct_STRIP" >&6; }
10999else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002fi
11003
11004 if test "x$ac_ct_STRIP" = x; then
11005 STRIP=":"
11006 else
11007 case $cross_compiling:$ac_tool_warned in
11008yes:)
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11011ac_tool_warned=yes ;;
11012esac
11013 STRIP=$ac_ct_STRIP
11014 fi
11015else
11016 STRIP="$ac_cv_prog_STRIP"
11017fi
11018
11019test -z "$STRIP" && STRIP=:
11020
11021
11022
11023
11024
11025
11026if test -n "$ac_tool_prefix"; then
11027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11028set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011031if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011032 $as_echo_n "(cached) " >&6
11033else
11034 if test -n "$RANLIB"; then
11035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11036else
11037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038for as_dir in $PATH
11039do
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11047 fi
11048done
11049 done
11050IFS=$as_save_IFS
11051
11052fi
11053fi
11054RANLIB=$ac_cv_prog_RANLIB
11055if test -n "$RANLIB"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11057$as_echo "$RANLIB" >&6; }
11058else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060$as_echo "no" >&6; }
11061fi
11062
11063
11064fi
11065if test -z "$ac_cv_prog_RANLIB"; then
11066 ac_ct_RANLIB=$RANLIB
11067 # Extract the first word of "ranlib", so it can be a program name with args.
11068set dummy ranlib; ac_word=$2
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011071if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011072 $as_echo_n "(cached) " >&6
11073else
11074 if test -n "$ac_ct_RANLIB"; then
11075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11076else
11077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078for as_dir in $PATH
11079do
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
11083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11084 ac_cv_prog_ac_ct_RANLIB="ranlib"
11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 break 2
11087 fi
11088done
11089 done
11090IFS=$as_save_IFS
11091
11092fi
11093fi
11094ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11095if test -n "$ac_ct_RANLIB"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11097$as_echo "$ac_ct_RANLIB" >&6; }
11098else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
11101fi
11102
11103 if test "x$ac_ct_RANLIB" = x; then
11104 RANLIB=":"
11105 else
11106 case $cross_compiling:$ac_tool_warned in
11107yes:)
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11110ac_tool_warned=yes ;;
11111esac
11112 RANLIB=$ac_ct_RANLIB
11113 fi
11114else
11115 RANLIB="$ac_cv_prog_RANLIB"
11116fi
11117
11118test -z "$RANLIB" && RANLIB=:
11119
11120
11121
11122
11123
11124
11125# Determine commands to create old-style static archives.
11126old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11127old_postinstall_cmds='chmod 644 $oldlib'
11128old_postuninstall_cmds=
11129
11130if test -n "$RANLIB"; then
11131 case $host_os in
11132 openbsd*)
11133 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11134 ;;
11135 *)
11136 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11137 ;;
11138 esac
11139 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11140fi
11141
cristy0c60a692010-11-04 01:09:47 +000011142case $host_os in
11143 darwin*)
11144 lock_old_archive_extraction=yes ;;
11145 *)
11146 lock_old_archive_extraction=no ;;
11147esac
11148
11149
11150
11151
11152
11153
cristy73bd4a52010-10-05 11:24:23 +000011154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187# If no C compiler was specified, use CC.
11188LTCC=${LTCC-"$CC"}
11189
11190# If no C compiler flags were specified, use CFLAGS.
11191LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11192
11193# Allow CC to be a program name with arguments.
11194compiler=$CC
11195
11196
11197# Check for command to grab the raw symbol name followed by C symbol from nm.
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11199$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011200if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011201 $as_echo_n "(cached) " >&6
11202else
11203
11204# These are sane defaults that work on at least a few old systems.
11205# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11206
11207# Character class describing NM global symbol codes.
11208symcode='[BCDEGRST]'
11209
11210# Regexp to match symbols that can be accessed directly from C.
11211sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11212
11213# Define system-specific variables.
11214case $host_os in
11215aix*)
11216 symcode='[BCDT]'
11217 ;;
11218cygwin* | mingw* | pw32* | cegcc*)
11219 symcode='[ABCDGISTW]'
11220 ;;
11221hpux*)
11222 if test "$host_cpu" = ia64; then
11223 symcode='[ABCDEGRST]'
11224 fi
11225 ;;
11226irix* | nonstopux*)
11227 symcode='[BCDEGRST]'
11228 ;;
11229osf*)
11230 symcode='[BCDEGQRST]'
11231 ;;
11232solaris*)
11233 symcode='[BDRT]'
11234 ;;
11235sco3.2v5*)
11236 symcode='[DT]'
11237 ;;
11238sysv4.2uw2*)
11239 symcode='[DT]'
11240 ;;
11241sysv5* | sco5v6* | unixware* | OpenUNIX*)
11242 symcode='[ABDT]'
11243 ;;
11244sysv4)
11245 symcode='[DFNSTU]'
11246 ;;
11247esac
11248
11249# If we're using GNU nm, then use its standard symbol codes.
11250case `$NM -V 2>&1` in
11251*GNU* | *'with BFD'*)
11252 symcode='[ABCDGIRSTW]' ;;
11253esac
11254
11255# Transform an extracted symbol line into a proper C declaration.
11256# Some systems (esp. on ia64) link data and code symbols differently,
11257# so use this general approach.
11258lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11259
11260# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011261lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11262lt_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 +000011263
11264# Handle CRLF in mingw tool chain
11265opt_cr=
11266case $build_os in
11267mingw*)
11268 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11269 ;;
11270esac
11271
11272# Try without a prefix underscore, then with it.
11273for ac_symprfx in "" "_"; do
11274
11275 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11276 symxfrm="\\1 $ac_symprfx\\2 \\2"
11277
11278 # Write the raw and C identifiers.
11279 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11280 # Fake it for dumpbin and say T for any non-static function
11281 # and D for any global variable.
11282 # Also find C++ and __fastcall symbols from MSVC++,
11283 # which start with @ or ?.
11284 lt_cv_sys_global_symbol_pipe="$AWK '"\
11285" {last_section=section; section=\$ 3};"\
11286" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11287" \$ 0!~/External *\|/{next};"\
11288" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11289" {if(hide[section]) next};"\
11290" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11291" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11292" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11293" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11294" ' prfx=^$ac_symprfx"
11295 else
11296 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11297 fi
cristyda16f162011-02-19 23:52:17 +000011298 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011299
11300 # Check to see that the pipe works correctly.
11301 pipe_works=no
11302
11303 rm -f conftest*
11304 cat > conftest.$ac_ext <<_LT_EOF
11305#ifdef __cplusplus
11306extern "C" {
11307#endif
11308char nm_test_var;
11309void nm_test_func(void);
11310void nm_test_func(void){}
11311#ifdef __cplusplus
11312}
11313#endif
11314int main(){nm_test_var='a';nm_test_func();return(0);}
11315_LT_EOF
11316
11317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11318 (eval $ac_compile) 2>&5
11319 ac_status=$?
11320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11321 test $ac_status = 0; }; then
11322 # Now try to grab the symbols.
11323 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11325 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011326 ac_status=$?
11327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11328 test $ac_status = 0; } && test -s "$nlist"; then
11329 # Try sorting and uniquifying the output.
11330 if sort "$nlist" | uniq > "$nlist"T; then
11331 mv -f "$nlist"T "$nlist"
11332 else
11333 rm -f "$nlist"T
11334 fi
11335
11336 # Make sure that we snagged all the symbols we need.
11337 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11338 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11339 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011340/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11341#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11342/* DATA imports from DLLs on WIN32 con't be const, because runtime
11343 relocations are performed -- see ld's documentation on pseudo-relocs. */
11344# define LT_DLSYM_CONST
11345#elif defined(__osf__)
11346/* This system does not cope well with relocations in const data. */
11347# define LT_DLSYM_CONST
11348#else
11349# define LT_DLSYM_CONST const
11350#endif
11351
cristy73bd4a52010-10-05 11:24:23 +000011352#ifdef __cplusplus
11353extern "C" {
11354#endif
11355
11356_LT_EOF
11357 # Now generate the symbol file.
11358 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11359
11360 cat <<_LT_EOF >> conftest.$ac_ext
11361
11362/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011363LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011364 const char *name;
11365 void *address;
11366}
11367lt__PROGRAM__LTX_preloaded_symbols[] =
11368{
11369 { "@PROGRAM@", (void *) 0 },
11370_LT_EOF
11371 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11372 cat <<\_LT_EOF >> conftest.$ac_ext
11373 {0, (void *) 0}
11374};
11375
11376/* This works around a problem in FreeBSD linker */
11377#ifdef FREEBSD_WORKAROUND
11378static const void *lt_preloaded_setup() {
11379 return lt__PROGRAM__LTX_preloaded_symbols;
11380}
11381#endif
11382
11383#ifdef __cplusplus
11384}
11385#endif
11386_LT_EOF
11387 # Now try linking the two files.
11388 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011389 lt_globsym_save_LIBS=$LIBS
11390 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011391 LIBS="conftstm.$ac_objext"
11392 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11394 (eval $ac_link) 2>&5
11395 ac_status=$?
11396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11398 pipe_works=yes
11399 fi
cristyda16f162011-02-19 23:52:17 +000011400 LIBS=$lt_globsym_save_LIBS
11401 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011402 else
11403 echo "cannot find nm_test_func in $nlist" >&5
11404 fi
11405 else
11406 echo "cannot find nm_test_var in $nlist" >&5
11407 fi
11408 else
11409 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11410 fi
11411 else
11412 echo "$progname: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 fi
11415 rm -rf conftest* conftst*
11416
11417 # Do not use the global_symbol_pipe unless it works.
11418 if test "$pipe_works" = yes; then
11419 break
11420 else
11421 lt_cv_sys_global_symbol_pipe=
11422 fi
11423done
11424
11425fi
11426
11427if test -z "$lt_cv_sys_global_symbol_pipe"; then
11428 lt_cv_sys_global_symbol_to_cdecl=
11429fi
11430if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11432$as_echo "failed" >&6; }
11433else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11435$as_echo "ok" >&6; }
11436fi
11437
cristyda16f162011-02-19 23:52:17 +000011438# Response file support.
11439if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11440 nm_file_list_spec='@'
11441elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11442 nm_file_list_spec='@'
11443fi
cristy73bd4a52010-10-05 11:24:23 +000011444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
cristyda16f162011-02-19 23:52:17 +000011465
11466
11467
11468
11469
11470
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11472$as_echo_n "checking for sysroot... " >&6; }
11473
11474# Check whether --with-sysroot was given.
11475if test "${with_sysroot+set}" = set; then :
11476 withval=$with_sysroot;
11477else
11478 with_sysroot=no
11479fi
11480
11481
11482lt_sysroot=
11483case ${with_sysroot} in #(
11484 yes)
11485 if test "$GCC" = yes; then
11486 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11487 fi
11488 ;; #(
11489 /*)
11490 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11491 ;; #(
11492 no|'')
11493 ;; #(
11494 *)
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11496$as_echo "${with_sysroot}" >&6; }
11497 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11498 ;;
11499esac
11500
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11502$as_echo "${lt_sysroot:-no}" >&6; }
11503
11504
11505
11506
11507
cristy73bd4a52010-10-05 11:24:23 +000011508# Check whether --enable-libtool-lock was given.
11509if test "${enable_libtool_lock+set}" = set; then :
11510 enableval=$enable_libtool_lock;
11511fi
11512
11513test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11514
11515# Some flags need to be propagated to the compiler or linker for good
11516# libtool support.
11517case $host in
11518ia64-*-hpux*)
11519 # Find out which ABI we are using.
11520 echo 'int i;' > conftest.$ac_ext
11521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11522 (eval $ac_compile) 2>&5
11523 ac_status=$?
11524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11525 test $ac_status = 0; }; then
11526 case `/usr/bin/file conftest.$ac_objext` in
11527 *ELF-32*)
11528 HPUX_IA64_MODE="32"
11529 ;;
11530 *ELF-64*)
11531 HPUX_IA64_MODE="64"
11532 ;;
11533 esac
11534 fi
11535 rm -rf conftest*
11536 ;;
11537*-*-irix6*)
11538 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011539 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11541 (eval $ac_compile) 2>&5
11542 ac_status=$?
11543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11544 test $ac_status = 0; }; then
11545 if test "$lt_cv_prog_gnu_ld" = yes; then
11546 case `/usr/bin/file conftest.$ac_objext` in
11547 *32-bit*)
11548 LD="${LD-ld} -melf32bsmip"
11549 ;;
11550 *N32*)
11551 LD="${LD-ld} -melf32bmipn32"
11552 ;;
11553 *64-bit*)
11554 LD="${LD-ld} -melf64bmip"
11555 ;;
11556 esac
11557 else
11558 case `/usr/bin/file conftest.$ac_objext` in
11559 *32-bit*)
11560 LD="${LD-ld} -32"
11561 ;;
11562 *N32*)
11563 LD="${LD-ld} -n32"
11564 ;;
11565 *64-bit*)
11566 LD="${LD-ld} -64"
11567 ;;
11568 esac
11569 fi
11570 fi
11571 rm -rf conftest*
11572 ;;
11573
11574x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11575s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11576 # Find out which ABI we are using.
11577 echo 'int i;' > conftest.$ac_ext
11578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11579 (eval $ac_compile) 2>&5
11580 ac_status=$?
11581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11582 test $ac_status = 0; }; then
11583 case `/usr/bin/file conftest.o` in
11584 *32-bit*)
11585 case $host in
11586 x86_64-*kfreebsd*-gnu)
11587 LD="${LD-ld} -m elf_i386_fbsd"
11588 ;;
11589 x86_64-*linux*)
11590 LD="${LD-ld} -m elf_i386"
11591 ;;
11592 ppc64-*linux*|powerpc64-*linux*)
11593 LD="${LD-ld} -m elf32ppclinux"
11594 ;;
11595 s390x-*linux*)
11596 LD="${LD-ld} -m elf_s390"
11597 ;;
11598 sparc64-*linux*)
11599 LD="${LD-ld} -m elf32_sparc"
11600 ;;
11601 esac
11602 ;;
11603 *64-bit*)
11604 case $host in
11605 x86_64-*kfreebsd*-gnu)
11606 LD="${LD-ld} -m elf_x86_64_fbsd"
11607 ;;
11608 x86_64-*linux*)
11609 LD="${LD-ld} -m elf_x86_64"
11610 ;;
11611 ppc*-*linux*|powerpc*-*linux*)
11612 LD="${LD-ld} -m elf64ppc"
11613 ;;
11614 s390*-*linux*|s390*-*tpf*)
11615 LD="${LD-ld} -m elf64_s390"
11616 ;;
11617 sparc*-*linux*)
11618 LD="${LD-ld} -m elf64_sparc"
11619 ;;
11620 esac
11621 ;;
11622 esac
11623 fi
11624 rm -rf conftest*
11625 ;;
11626
11627*-*-sco3.2v5*)
11628 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11629 SAVE_CFLAGS="$CFLAGS"
11630 CFLAGS="$CFLAGS -belf"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11632$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011633if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011634 $as_echo_n "(cached) " >&6
11635else
11636 ac_ext=c
11637ac_cpp='$CPP $CPPFLAGS'
11638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11640ac_compiler_gnu=$ac_cv_c_compiler_gnu
11641
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643/* end confdefs.h. */
11644
11645int
11646main ()
11647{
11648
11649 ;
11650 return 0;
11651}
11652_ACEOF
11653if ac_fn_c_try_link "$LINENO"; then :
11654 lt_cv_cc_needs_belf=yes
11655else
11656 lt_cv_cc_needs_belf=no
11657fi
11658rm -f core conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11660 ac_ext=c
11661ac_cpp='$CPP $CPPFLAGS'
11662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664ac_compiler_gnu=$ac_cv_c_compiler_gnu
11665
11666fi
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11668$as_echo "$lt_cv_cc_needs_belf" >&6; }
11669 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11670 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11671 CFLAGS="$SAVE_CFLAGS"
11672 fi
11673 ;;
11674sparc*-*solaris*)
11675 # Find out which ABI we are using.
11676 echo 'int i;' > conftest.$ac_ext
11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11678 (eval $ac_compile) 2>&5
11679 ac_status=$?
11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; }; then
11682 case `/usr/bin/file conftest.o` in
11683 *64-bit*)
11684 case $lt_cv_prog_gnu_ld in
11685 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11686 *)
11687 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11688 LD="${LD-ld} -64"
11689 fi
11690 ;;
11691 esac
11692 ;;
11693 esac
11694 fi
11695 rm -rf conftest*
11696 ;;
11697esac
11698
11699need_locks="$enable_libtool_lock"
11700
cristyda16f162011-02-19 23:52:17 +000011701if test -n "$ac_tool_prefix"; then
11702 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11703set dummy ${ac_tool_prefix}mt; ac_word=$2
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705$as_echo_n "checking for $ac_word... " >&6; }
11706if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708else
11709 if test -n "$MANIFEST_TOOL"; then
11710 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11711else
11712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 break 2
11722 fi
11723done
11724 done
11725IFS=$as_save_IFS
11726
11727fi
11728fi
11729MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11730if test -n "$MANIFEST_TOOL"; then
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11732$as_echo "$MANIFEST_TOOL" >&6; }
11733else
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735$as_echo "no" >&6; }
11736fi
11737
11738
11739fi
11740if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11741 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11742 # Extract the first word of "mt", so it can be a program name with args.
11743set dummy mt; ac_word=$2
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745$as_echo_n "checking for $ac_word... " >&6; }
11746if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748else
11749 if test -n "$ac_ct_MANIFEST_TOOL"; then
11750 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11751else
11752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $PATH
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11762 fi
11763done
11764 done
11765IFS=$as_save_IFS
11766
11767fi
11768fi
11769ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11770if test -n "$ac_ct_MANIFEST_TOOL"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11772$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11773else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775$as_echo "no" >&6; }
11776fi
11777
11778 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11779 MANIFEST_TOOL=":"
11780 else
11781 case $cross_compiling:$ac_tool_warned in
11782yes:)
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11785ac_tool_warned=yes ;;
11786esac
11787 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11788 fi
11789else
11790 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11791fi
11792
11793test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11795$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11796if ${lt_cv_path_mainfest_tool+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798else
11799 lt_cv_path_mainfest_tool=no
11800 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11801 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11802 cat conftest.err >&5
11803 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11804 lt_cv_path_mainfest_tool=yes
11805 fi
11806 rm -f conftest*
11807fi
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11809$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11810if test "x$lt_cv_path_mainfest_tool" != xyes; then
11811 MANIFEST_TOOL=:
11812fi
11813
11814
11815
11816
11817
cristy73bd4a52010-10-05 11:24:23 +000011818
11819 case $host_os in
11820 rhapsody* | darwin*)
11821 if test -n "$ac_tool_prefix"; then
11822 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11823set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011826if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011827 $as_echo_n "(cached) " >&6
11828else
11829 if test -n "$DSYMUTIL"; then
11830 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11831else
11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11839 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843done
11844 done
11845IFS=$as_save_IFS
11846
11847fi
11848fi
11849DSYMUTIL=$ac_cv_prog_DSYMUTIL
11850if test -n "$DSYMUTIL"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11852$as_echo "$DSYMUTIL" >&6; }
11853else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
11856fi
11857
11858
11859fi
11860if test -z "$ac_cv_prog_DSYMUTIL"; then
11861 ac_ct_DSYMUTIL=$DSYMUTIL
11862 # Extract the first word of "dsymutil", so it can be a program name with args.
11863set dummy dsymutil; ac_word=$2
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011866if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011867 $as_echo_n "(cached) " >&6
11868else
11869 if test -n "$ac_ct_DSYMUTIL"; then
11870 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11871else
11872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $PATH
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883done
11884 done
11885IFS=$as_save_IFS
11886
11887fi
11888fi
11889ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11890if test -n "$ac_ct_DSYMUTIL"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11892$as_echo "$ac_ct_DSYMUTIL" >&6; }
11893else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
11896fi
11897
11898 if test "x$ac_ct_DSYMUTIL" = x; then
11899 DSYMUTIL=":"
11900 else
11901 case $cross_compiling:$ac_tool_warned in
11902yes:)
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11905ac_tool_warned=yes ;;
11906esac
11907 DSYMUTIL=$ac_ct_DSYMUTIL
11908 fi
11909else
11910 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11911fi
11912
11913 if test -n "$ac_tool_prefix"; then
11914 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11915set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011918if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011919 $as_echo_n "(cached) " >&6
11920else
11921 if test -n "$NMEDIT"; then
11922 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11923else
11924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11931 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 break 2
11934 fi
11935done
11936 done
11937IFS=$as_save_IFS
11938
11939fi
11940fi
11941NMEDIT=$ac_cv_prog_NMEDIT
11942if test -n "$NMEDIT"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11944$as_echo "$NMEDIT" >&6; }
11945else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947$as_echo "no" >&6; }
11948fi
11949
11950
11951fi
11952if test -z "$ac_cv_prog_NMEDIT"; then
11953 ac_ct_NMEDIT=$NMEDIT
11954 # Extract the first word of "nmedit", so it can be a program name with args.
11955set dummy nmedit; ac_word=$2
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011958if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011959 $as_echo_n "(cached) " >&6
11960else
11961 if test -n "$ac_ct_NMEDIT"; then
11962 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11963else
11964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965for as_dir in $PATH
11966do
11967 IFS=$as_save_IFS
11968 test -z "$as_dir" && as_dir=.
11969 for ac_exec_ext in '' $ac_executable_extensions; do
11970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11971 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 break 2
11974 fi
11975done
11976 done
11977IFS=$as_save_IFS
11978
11979fi
11980fi
11981ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11982if test -n "$ac_ct_NMEDIT"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11984$as_echo "$ac_ct_NMEDIT" >&6; }
11985else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
11988fi
11989
11990 if test "x$ac_ct_NMEDIT" = x; then
11991 NMEDIT=":"
11992 else
11993 case $cross_compiling:$ac_tool_warned in
11994yes:)
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11997ac_tool_warned=yes ;;
11998esac
11999 NMEDIT=$ac_ct_NMEDIT
12000 fi
12001else
12002 NMEDIT="$ac_cv_prog_NMEDIT"
12003fi
12004
12005 if test -n "$ac_tool_prefix"; then
12006 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12007set dummy ${ac_tool_prefix}lipo; ac_word=$2
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012010if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012011 $as_echo_n "(cached) " >&6
12012else
12013 if test -n "$LIPO"; then
12014 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12015else
12016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017for as_dir in $PATH
12018do
12019 IFS=$as_save_IFS
12020 test -z "$as_dir" && as_dir=.
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12023 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025 break 2
12026 fi
12027done
12028 done
12029IFS=$as_save_IFS
12030
12031fi
12032fi
12033LIPO=$ac_cv_prog_LIPO
12034if test -n "$LIPO"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12036$as_echo "$LIPO" >&6; }
12037else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039$as_echo "no" >&6; }
12040fi
12041
12042
12043fi
12044if test -z "$ac_cv_prog_LIPO"; then
12045 ac_ct_LIPO=$LIPO
12046 # Extract the first word of "lipo", so it can be a program name with args.
12047set dummy lipo; ac_word=$2
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012050if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012051 $as_echo_n "(cached) " >&6
12052else
12053 if test -n "$ac_ct_LIPO"; then
12054 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12055else
12056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057for as_dir in $PATH
12058do
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12063 ac_cv_prog_ac_ct_LIPO="lipo"
12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 break 2
12066 fi
12067done
12068 done
12069IFS=$as_save_IFS
12070
12071fi
12072fi
12073ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12074if test -n "$ac_ct_LIPO"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12076$as_echo "$ac_ct_LIPO" >&6; }
12077else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
12080fi
12081
12082 if test "x$ac_ct_LIPO" = x; then
12083 LIPO=":"
12084 else
12085 case $cross_compiling:$ac_tool_warned in
12086yes:)
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12089ac_tool_warned=yes ;;
12090esac
12091 LIPO=$ac_ct_LIPO
12092 fi
12093else
12094 LIPO="$ac_cv_prog_LIPO"
12095fi
12096
12097 if test -n "$ac_tool_prefix"; then
12098 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12099set dummy ${ac_tool_prefix}otool; ac_word=$2
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012102if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012103 $as_echo_n "(cached) " >&6
12104else
12105 if test -n "$OTOOL"; then
12106 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12107else
12108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109for as_dir in $PATH
12110do
12111 IFS=$as_save_IFS
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117 break 2
12118 fi
12119done
12120 done
12121IFS=$as_save_IFS
12122
12123fi
12124fi
12125OTOOL=$ac_cv_prog_OTOOL
12126if test -n "$OTOOL"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12128$as_echo "$OTOOL" >&6; }
12129else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131$as_echo "no" >&6; }
12132fi
12133
12134
12135fi
12136if test -z "$ac_cv_prog_OTOOL"; then
12137 ac_ct_OTOOL=$OTOOL
12138 # Extract the first word of "otool", so it can be a program name with args.
12139set dummy otool; ac_word=$2
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012142if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012143 $as_echo_n "(cached) " >&6
12144else
12145 if test -n "$ac_ct_OTOOL"; then
12146 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12147else
12148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149for as_dir in $PATH
12150do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12155 ac_cv_prog_ac_ct_OTOOL="otool"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12158 fi
12159done
12160 done
12161IFS=$as_save_IFS
12162
12163fi
12164fi
12165ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12166if test -n "$ac_ct_OTOOL"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12168$as_echo "$ac_ct_OTOOL" >&6; }
12169else
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171$as_echo "no" >&6; }
12172fi
12173
12174 if test "x$ac_ct_OTOOL" = x; then
12175 OTOOL=":"
12176 else
12177 case $cross_compiling:$ac_tool_warned in
12178yes:)
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12181ac_tool_warned=yes ;;
12182esac
12183 OTOOL=$ac_ct_OTOOL
12184 fi
12185else
12186 OTOOL="$ac_cv_prog_OTOOL"
12187fi
12188
12189 if test -n "$ac_tool_prefix"; then
12190 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12191set dummy ${ac_tool_prefix}otool64; ac_word=$2
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012194if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012195 $as_echo_n "(cached) " >&6
12196else
12197 if test -n "$OTOOL64"; then
12198 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12199else
12200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201for as_dir in $PATH
12202do
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12207 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12210 fi
12211done
12212 done
12213IFS=$as_save_IFS
12214
12215fi
12216fi
12217OTOOL64=$ac_cv_prog_OTOOL64
12218if test -n "$OTOOL64"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12220$as_echo "$OTOOL64" >&6; }
12221else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223$as_echo "no" >&6; }
12224fi
12225
12226
12227fi
12228if test -z "$ac_cv_prog_OTOOL64"; then
12229 ac_ct_OTOOL64=$OTOOL64
12230 # Extract the first word of "otool64", so it can be a program name with args.
12231set dummy otool64; ac_word=$2
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012234if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012235 $as_echo_n "(cached) " >&6
12236else
12237 if test -n "$ac_ct_OTOOL64"; then
12238 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12239else
12240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241for as_dir in $PATH
12242do
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247 ac_cv_prog_ac_ct_OTOOL64="otool64"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12250 fi
12251done
12252 done
12253IFS=$as_save_IFS
12254
12255fi
12256fi
12257ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12258if test -n "$ac_ct_OTOOL64"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12260$as_echo "$ac_ct_OTOOL64" >&6; }
12261else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263$as_echo "no" >&6; }
12264fi
12265
12266 if test "x$ac_ct_OTOOL64" = x; then
12267 OTOOL64=":"
12268 else
12269 case $cross_compiling:$ac_tool_warned in
12270yes:)
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12273ac_tool_warned=yes ;;
12274esac
12275 OTOOL64=$ac_ct_OTOOL64
12276 fi
12277else
12278 OTOOL64="$ac_cv_prog_OTOOL64"
12279fi
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12308$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012309if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012310 $as_echo_n "(cached) " >&6
12311else
12312 lt_cv_apple_cc_single_mod=no
12313 if test -z "${LT_MULTI_MODULE}"; then
12314 # By default we will add the -single_module flag. You can override
12315 # by either setting the environment variable LT_MULTI_MODULE
12316 # non-empty at configure time, or by adding -multi_module to the
12317 # link flags.
12318 rm -rf libconftest.dylib*
12319 echo "int foo(void){return 1;}" > conftest.c
12320 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12321-dynamiclib -Wl,-single_module conftest.c" >&5
12322 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12323 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12324 _lt_result=$?
12325 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12326 lt_cv_apple_cc_single_mod=yes
12327 else
12328 cat conftest.err >&5
12329 fi
12330 rm -rf libconftest.dylib*
12331 rm -f conftest.*
12332 fi
12333fi
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12335$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12337$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012338if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012339 $as_echo_n "(cached) " >&6
12340else
12341 lt_cv_ld_exported_symbols_list=no
12342 save_LDFLAGS=$LDFLAGS
12343 echo "_main" > conftest.sym
12344 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346/* end confdefs.h. */
12347
12348int
12349main ()
12350{
12351
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356if ac_fn_c_try_link "$LINENO"; then :
12357 lt_cv_ld_exported_symbols_list=yes
12358else
12359 lt_cv_ld_exported_symbols_list=no
12360fi
12361rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LDFLAGS="$save_LDFLAGS"
12364
12365fi
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12367$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12369$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012370if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012371 $as_echo_n "(cached) " >&6
12372else
12373 lt_cv_ld_force_load=no
12374 cat > conftest.c << _LT_EOF
12375int forced_loaded() { return 2;}
12376_LT_EOF
12377 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12378 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12379 echo "$AR cru libconftest.a conftest.o" >&5
12380 $AR cru libconftest.a conftest.o 2>&5
12381 echo "$RANLIB libconftest.a" >&5
12382 $RANLIB libconftest.a 2>&5
12383 cat > conftest.c << _LT_EOF
12384int main() { return 0;}
12385_LT_EOF
12386 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12387 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12388 _lt_result=$?
12389 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12390 lt_cv_ld_force_load=yes
12391 else
12392 cat conftest.err >&5
12393 fi
12394 rm -f conftest.err libconftest.a conftest conftest.c
12395 rm -rf conftest.dSYM
12396
12397fi
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12399$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012400 case $host_os in
12401 rhapsody* | darwin1.[012])
12402 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12403 darwin1.*)
12404 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12405 darwin*) # darwin 5.x on
12406 # if running on 10.5 or later, the deployment target defaults
12407 # to the OS version, if on x86, and 10.4, the deployment
12408 # target defaults to 10.4. Don't you love it?
12409 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12410 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12411 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12412 10.[012]*)
12413 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12414 10.*)
12415 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12416 esac
12417 ;;
12418 esac
12419 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12420 _lt_dar_single_mod='$single_module'
12421 fi
12422 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12423 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12424 else
12425 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12426 fi
cristy0c60a692010-11-04 01:09:47 +000012427 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012428 _lt_dsymutil='~$DSYMUTIL $lib || :'
12429 else
12430 _lt_dsymutil=
12431 fi
12432 ;;
12433 esac
12434
12435for ac_header in dlfcn.h
12436do :
12437 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12438"
cristyda16f162011-02-19 23:52:17 +000012439if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012440 cat >>confdefs.h <<_ACEOF
12441#define HAVE_DLFCN_H 1
12442_ACEOF
12443
12444fi
12445
12446done
12447
12448
12449
cristy73bd4a52010-10-05 11:24:23 +000012450
cristyda16f162011-02-19 23:52:17 +000012451func_stripname_cnf ()
12452{
12453 case ${2} in
12454 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12455 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12456 esac
12457} # func_stripname_cnf
12458
12459
12460
cristy73bd4a52010-10-05 11:24:23 +000012461
12462
12463# Set options
12464enable_win32_dll=yes
12465
12466case $host in
cristy0c60a692010-11-04 01:09:47 +000012467*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012468 if test -n "$ac_tool_prefix"; then
12469 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12470set dummy ${ac_tool_prefix}as; ac_word=$2
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012473if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012474 $as_echo_n "(cached) " >&6
12475else
12476 if test -n "$AS"; then
12477 ac_cv_prog_AS="$AS" # Let the user override the test.
12478else
12479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480for as_dir in $PATH
12481do
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12486 ac_cv_prog_AS="${ac_tool_prefix}as"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12489 fi
12490done
12491 done
12492IFS=$as_save_IFS
12493
12494fi
12495fi
12496AS=$ac_cv_prog_AS
12497if test -n "$AS"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12499$as_echo "$AS" >&6; }
12500else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502$as_echo "no" >&6; }
12503fi
12504
12505
12506fi
12507if test -z "$ac_cv_prog_AS"; then
12508 ac_ct_AS=$AS
12509 # Extract the first word of "as", so it can be a program name with args.
12510set dummy as; ac_word=$2
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012513if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012514 $as_echo_n "(cached) " >&6
12515else
12516 if test -n "$ac_ct_AS"; then
12517 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12518else
12519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $PATH
12521do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_prog_ac_ct_AS="as"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12529 fi
12530done
12531 done
12532IFS=$as_save_IFS
12533
12534fi
12535fi
12536ac_ct_AS=$ac_cv_prog_ac_ct_AS
12537if test -n "$ac_ct_AS"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12539$as_echo "$ac_ct_AS" >&6; }
12540else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542$as_echo "no" >&6; }
12543fi
12544
12545 if test "x$ac_ct_AS" = x; then
12546 AS="false"
12547 else
12548 case $cross_compiling:$ac_tool_warned in
12549yes:)
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12552ac_tool_warned=yes ;;
12553esac
12554 AS=$ac_ct_AS
12555 fi
12556else
12557 AS="$ac_cv_prog_AS"
12558fi
12559
12560 if test -n "$ac_tool_prefix"; then
12561 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12562set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012565if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012566 $as_echo_n "(cached) " >&6
12567else
12568 if test -n "$DLLTOOL"; then
12569 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12570else
12571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572for as_dir in $PATH
12573do
12574 IFS=$as_save_IFS
12575 test -z "$as_dir" && as_dir=.
12576 for ac_exec_ext in '' $ac_executable_extensions; do
12577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12578 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 break 2
12581 fi
12582done
12583 done
12584IFS=$as_save_IFS
12585
12586fi
12587fi
12588DLLTOOL=$ac_cv_prog_DLLTOOL
12589if test -n "$DLLTOOL"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12591$as_echo "$DLLTOOL" >&6; }
12592else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594$as_echo "no" >&6; }
12595fi
12596
12597
12598fi
12599if test -z "$ac_cv_prog_DLLTOOL"; then
12600 ac_ct_DLLTOOL=$DLLTOOL
12601 # Extract the first word of "dlltool", so it can be a program name with args.
12602set dummy dlltool; ac_word=$2
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012605if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012606 $as_echo_n "(cached) " >&6
12607else
12608 if test -n "$ac_ct_DLLTOOL"; then
12609 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12610else
12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612for as_dir in $PATH
12613do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 break 2
12621 fi
12622done
12623 done
12624IFS=$as_save_IFS
12625
12626fi
12627fi
12628ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12629if test -n "$ac_ct_DLLTOOL"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12631$as_echo "$ac_ct_DLLTOOL" >&6; }
12632else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
12635fi
12636
12637 if test "x$ac_ct_DLLTOOL" = x; then
12638 DLLTOOL="false"
12639 else
12640 case $cross_compiling:$ac_tool_warned in
12641yes:)
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12644ac_tool_warned=yes ;;
12645esac
12646 DLLTOOL=$ac_ct_DLLTOOL
12647 fi
12648else
12649 DLLTOOL="$ac_cv_prog_DLLTOOL"
12650fi
12651
12652 if test -n "$ac_tool_prefix"; then
12653 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12654set dummy ${ac_tool_prefix}objdump; ac_word=$2
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012657if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012658 $as_echo_n "(cached) " >&6
12659else
12660 if test -n "$OBJDUMP"; then
12661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12662else
12663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664for as_dir in $PATH
12665do
12666 IFS=$as_save_IFS
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12670 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 break 2
12673 fi
12674done
12675 done
12676IFS=$as_save_IFS
12677
12678fi
12679fi
12680OBJDUMP=$ac_cv_prog_OBJDUMP
12681if test -n "$OBJDUMP"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12683$as_echo "$OBJDUMP" >&6; }
12684else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686$as_echo "no" >&6; }
12687fi
12688
12689
12690fi
12691if test -z "$ac_cv_prog_OBJDUMP"; then
12692 ac_ct_OBJDUMP=$OBJDUMP
12693 # Extract the first word of "objdump", so it can be a program name with args.
12694set dummy objdump; ac_word=$2
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012697if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012698 $as_echo_n "(cached) " >&6
12699else
12700 if test -n "$ac_ct_OBJDUMP"; then
12701 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12702else
12703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704for as_dir in $PATH
12705do
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12710 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12713 fi
12714done
12715 done
12716IFS=$as_save_IFS
12717
12718fi
12719fi
12720ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12721if test -n "$ac_ct_OBJDUMP"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12723$as_echo "$ac_ct_OBJDUMP" >&6; }
12724else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726$as_echo "no" >&6; }
12727fi
12728
12729 if test "x$ac_ct_OBJDUMP" = x; then
12730 OBJDUMP="false"
12731 else
12732 case $cross_compiling:$ac_tool_warned in
12733yes:)
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12736ac_tool_warned=yes ;;
12737esac
12738 OBJDUMP=$ac_ct_OBJDUMP
12739 fi
12740else
12741 OBJDUMP="$ac_cv_prog_OBJDUMP"
12742fi
12743
12744 ;;
12745esac
12746
12747test -z "$AS" && AS=as
12748
12749
12750
12751
12752
12753test -z "$DLLTOOL" && DLLTOOL=dlltool
12754
12755
12756
12757
12758
12759test -z "$OBJDUMP" && OBJDUMP=objdump
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769 # Check whether --enable-shared was given.
12770if test "${enable_shared+set}" = set; then :
12771 enableval=$enable_shared; p=${PACKAGE-default}
12772 case $enableval in
12773 yes) enable_shared=yes ;;
12774 no) enable_shared=no ;;
12775 *)
12776 enable_shared=no
12777 # Look at the argument we got. We use all the common list separators.
12778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12779 for pkg in $enableval; do
12780 IFS="$lt_save_ifs"
12781 if test "X$pkg" = "X$p"; then
12782 enable_shared=yes
12783 fi
12784 done
12785 IFS="$lt_save_ifs"
12786 ;;
12787 esac
12788else
12789 enable_shared=yes
12790fi
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800 # Check whether --enable-static was given.
12801if test "${enable_static+set}" = set; then :
12802 enableval=$enable_static; p=${PACKAGE-default}
12803 case $enableval in
12804 yes) enable_static=yes ;;
12805 no) enable_static=no ;;
12806 *)
12807 enable_static=no
12808 # Look at the argument we got. We use all the common list separators.
12809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12810 for pkg in $enableval; do
12811 IFS="$lt_save_ifs"
12812 if test "X$pkg" = "X$p"; then
12813 enable_static=yes
12814 fi
12815 done
12816 IFS="$lt_save_ifs"
12817 ;;
12818 esac
12819else
12820 enable_static=yes
12821fi
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832# Check whether --with-pic was given.
12833if test "${with_pic+set}" = set; then :
12834 withval=$with_pic; pic_mode="$withval"
12835else
12836 pic_mode=default
12837fi
12838
12839
12840test -z "$pic_mode" && pic_mode=default
12841
12842
12843
12844
12845
12846
12847
12848 # Check whether --enable-fast-install was given.
12849if test "${enable_fast_install+set}" = set; then :
12850 enableval=$enable_fast_install; p=${PACKAGE-default}
12851 case $enableval in
12852 yes) enable_fast_install=yes ;;
12853 no) enable_fast_install=no ;;
12854 *)
12855 enable_fast_install=no
12856 # Look at the argument we got. We use all the common list separators.
12857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12858 for pkg in $enableval; do
12859 IFS="$lt_save_ifs"
12860 if test "X$pkg" = "X$p"; then
12861 enable_fast_install=yes
12862 fi
12863 done
12864 IFS="$lt_save_ifs"
12865 ;;
12866 esac
12867else
12868 enable_fast_install=yes
12869fi
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881# This can be used to rebuild libtool when needed
12882LIBTOOL_DEPS="$ltmain"
12883
12884# Always use our own libtool.
12885LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
cristy0c60a692010-11-04 01:09:47 +000012911
cristy73bd4a52010-10-05 11:24:23 +000012912test -z "$LN_S" && LN_S="ln -s"
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927if test -n "${ZSH_VERSION+set}" ; then
12928 setopt NO_GLOB_SUBST
12929fi
12930
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12932$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012933if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012934 $as_echo_n "(cached) " >&6
12935else
12936 rm -f .libs 2>/dev/null
12937mkdir .libs 2>/dev/null
12938if test -d .libs; then
12939 lt_cv_objdir=.libs
12940else
12941 # MS-DOS does not allow filenames that begin with a dot.
12942 lt_cv_objdir=_libs
12943fi
12944rmdir .libs 2>/dev/null
12945fi
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12947$as_echo "$lt_cv_objdir" >&6; }
12948objdir=$lt_cv_objdir
12949
12950
12951
12952
12953
12954cat >>confdefs.h <<_ACEOF
12955#define LT_OBJDIR "$lt_cv_objdir/"
12956_ACEOF
12957
12958
12959
12960
cristy73bd4a52010-10-05 11:24:23 +000012961case $host_os in
12962aix3*)
12963 # AIX sometimes has problems with the GCC collect2 program. For some
12964 # reason, if we set the COLLECT_NAMES environment variable, the problems
12965 # vanish in a puff of smoke.
12966 if test "X${COLLECT_NAMES+set}" != Xset; then
12967 COLLECT_NAMES=
12968 export COLLECT_NAMES
12969 fi
12970 ;;
12971esac
12972
cristy73bd4a52010-10-05 11:24:23 +000012973# Global variables:
12974ofile=libtool
12975can_build_shared=yes
12976
12977# All known linkers require a `.a' archive for static linking (except MSVC,
12978# which needs '.lib').
12979libext=a
12980
12981with_gnu_ld="$lt_cv_prog_gnu_ld"
12982
12983old_CC="$CC"
12984old_CFLAGS="$CFLAGS"
12985
12986# Set sane defaults for various variables
12987test -z "$CC" && CC=cc
12988test -z "$LTCC" && LTCC=$CC
12989test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12990test -z "$LD" && LD=ld
12991test -z "$ac_objext" && ac_objext=o
12992
12993for cc_temp in $compiler""; do
12994 case $cc_temp in
12995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12997 \-*) ;;
12998 *) break;;
12999 esac
13000done
cristy0c60a692010-11-04 01:09:47 +000013001cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013002
13003
13004# Only perform the check for file, if the check method requires it
13005test -z "$MAGIC_CMD" && MAGIC_CMD=file
13006case $deplibs_check_method in
13007file_magic*)
13008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13010$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013011if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013012 $as_echo_n "(cached) " >&6
13013else
13014 case $MAGIC_CMD in
13015[\\/*] | ?:[\\/]*)
13016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13017 ;;
13018*)
13019 lt_save_MAGIC_CMD="$MAGIC_CMD"
13020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13022 for ac_dir in $ac_dummy; do
13023 IFS="$lt_save_ifs"
13024 test -z "$ac_dir" && ac_dir=.
13025 if test -f $ac_dir/${ac_tool_prefix}file; then
13026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13027 if test -n "$file_magic_test_file"; then
13028 case $deplibs_check_method in
13029 "file_magic "*)
13030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13033 $EGREP "$file_magic_regex" > /dev/null; then
13034 :
13035 else
13036 cat <<_LT_EOF 1>&2
13037
13038*** Warning: the command libtool uses to detect shared libraries,
13039*** $file_magic_cmd, produces output that libtool cannot recognize.
13040*** The result is that libtool may fail to recognize shared libraries
13041*** as such. This will affect the creation of libtool libraries that
13042*** depend on shared libraries, but programs linked with such libtool
13043*** libraries will work regardless of this problem. Nevertheless, you
13044*** may want to report the problem to your system manager and/or to
13045*** bug-libtool@gnu.org
13046
13047_LT_EOF
13048 fi ;;
13049 esac
13050 fi
13051 break
13052 fi
13053 done
13054 IFS="$lt_save_ifs"
13055 MAGIC_CMD="$lt_save_MAGIC_CMD"
13056 ;;
13057esac
13058fi
13059
13060MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13061if test -n "$MAGIC_CMD"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13063$as_echo "$MAGIC_CMD" >&6; }
13064else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066$as_echo "no" >&6; }
13067fi
13068
13069
13070
13071
13072
13073if test -z "$lt_cv_path_MAGIC_CMD"; then
13074 if test -n "$ac_tool_prefix"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13076$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013077if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013078 $as_echo_n "(cached) " >&6
13079else
13080 case $MAGIC_CMD in
13081[\\/*] | ?:[\\/]*)
13082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13083 ;;
13084*)
13085 lt_save_MAGIC_CMD="$MAGIC_CMD"
13086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13088 for ac_dir in $ac_dummy; do
13089 IFS="$lt_save_ifs"
13090 test -z "$ac_dir" && ac_dir=.
13091 if test -f $ac_dir/file; then
13092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13093 if test -n "$file_magic_test_file"; then
13094 case $deplibs_check_method in
13095 "file_magic "*)
13096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13099 $EGREP "$file_magic_regex" > /dev/null; then
13100 :
13101 else
13102 cat <<_LT_EOF 1>&2
13103
13104*** Warning: the command libtool uses to detect shared libraries,
13105*** $file_magic_cmd, produces output that libtool cannot recognize.
13106*** The result is that libtool may fail to recognize shared libraries
13107*** as such. This will affect the creation of libtool libraries that
13108*** depend on shared libraries, but programs linked with such libtool
13109*** libraries will work regardless of this problem. Nevertheless, you
13110*** may want to report the problem to your system manager and/or to
13111*** bug-libtool@gnu.org
13112
13113_LT_EOF
13114 fi ;;
13115 esac
13116 fi
13117 break
13118 fi
13119 done
13120 IFS="$lt_save_ifs"
13121 MAGIC_CMD="$lt_save_MAGIC_CMD"
13122 ;;
13123esac
13124fi
13125
13126MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13127if test -n "$MAGIC_CMD"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13129$as_echo "$MAGIC_CMD" >&6; }
13130else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
13133fi
13134
13135
13136 else
13137 MAGIC_CMD=:
13138 fi
13139fi
13140
13141 fi
13142 ;;
13143esac
13144
13145# Use C for the default configuration in the libtool script
13146
13147lt_save_CC="$CC"
13148ac_ext=c
13149ac_cpp='$CPP $CPPFLAGS'
13150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152ac_compiler_gnu=$ac_cv_c_compiler_gnu
13153
13154
13155# Source file extension for C test sources.
13156ac_ext=c
13157
13158# Object file extension for compiled C test sources.
13159objext=o
13160objext=$objext
13161
13162# Code to be used in simple compile tests
13163lt_simple_compile_test_code="int some_variable = 0;"
13164
13165# Code to be used in simple link tests
13166lt_simple_link_test_code='int main(){return(0);}'
13167
13168
13169
13170
13171
13172
13173
13174# If no C compiler was specified, use CC.
13175LTCC=${LTCC-"$CC"}
13176
13177# If no C compiler flags were specified, use CFLAGS.
13178LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13179
13180# Allow CC to be a program name with arguments.
13181compiler=$CC
13182
13183# Save the default compiler, since it gets overwritten when the other
13184# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13185compiler_DEFAULT=$CC
13186
13187# save warnings/boilerplate of simple test code
13188ac_outfile=conftest.$ac_objext
13189echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13190eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13191_lt_compiler_boilerplate=`cat conftest.err`
13192$RM conftest*
13193
13194ac_outfile=conftest.$ac_objext
13195echo "$lt_simple_link_test_code" >conftest.$ac_ext
13196eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13197_lt_linker_boilerplate=`cat conftest.err`
13198$RM -r conftest*
13199
13200
13201## CAVEAT EMPTOR:
13202## There is no encapsulation within the following macros, do not change
13203## the running order or otherwise move them around unless you know exactly
13204## what you are doing...
13205if test -n "$compiler"; then
13206
13207lt_prog_compiler_no_builtin_flag=
13208
13209if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013210 case $cc_basename in
13211 nvcc*)
13212 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13213 *)
13214 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13215 esac
cristy73bd4a52010-10-05 11:24:23 +000013216
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13218$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013219if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013220 $as_echo_n "(cached) " >&6
13221else
13222 lt_cv_prog_compiler_rtti_exceptions=no
13223 ac_outfile=conftest.$ac_objext
13224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13225 lt_compiler_flag="-fno-rtti -fno-exceptions"
13226 # Insert the option either (1) after the last *FLAGS variable, or
13227 # (2) before a word containing "conftest.", or (3) at the end.
13228 # Note that $ac_compile itself does not contain backslashes and begins
13229 # with a dollar sign (not a hyphen), so the echo should work correctly.
13230 # The option is referenced via a variable to avoid confusing sed.
13231 lt_compile=`echo "$ac_compile" | $SED \
13232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13234 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013236 (eval "$lt_compile" 2>conftest.err)
13237 ac_status=$?
13238 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013240 if (exit $ac_status) && test -s "$ac_outfile"; then
13241 # The compiler can only warn and ignore the option if not recognized
13242 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13246 lt_cv_prog_compiler_rtti_exceptions=yes
13247 fi
13248 fi
13249 $RM conftest*
13250
13251fi
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13253$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13254
13255if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13256 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13257else
13258 :
13259fi
13260
13261fi
13262
13263
13264
13265
13266
13267
13268 lt_prog_compiler_wl=
13269lt_prog_compiler_pic=
13270lt_prog_compiler_static=
13271
cristy73bd4a52010-10-05 11:24:23 +000013272
13273 if test "$GCC" = yes; then
13274 lt_prog_compiler_wl='-Wl,'
13275 lt_prog_compiler_static='-static'
13276
13277 case $host_os in
13278 aix*)
13279 # All AIX code is PIC.
13280 if test "$host_cpu" = ia64; then
13281 # AIX 5 now supports IA64 processor
13282 lt_prog_compiler_static='-Bstatic'
13283 fi
13284 ;;
13285
13286 amigaos*)
13287 case $host_cpu in
13288 powerpc)
13289 # see comment about AmigaOS4 .so support
13290 lt_prog_compiler_pic='-fPIC'
13291 ;;
13292 m68k)
13293 # FIXME: we need at least 68020 code to build shared libraries, but
13294 # adding the `-m68020' flag to GCC prevents building anything better,
13295 # like `-m68040'.
13296 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13297 ;;
13298 esac
13299 ;;
13300
13301 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13302 # PIC is the default for these OSes.
13303 ;;
13304
13305 mingw* | cygwin* | pw32* | os2* | cegcc*)
13306 # This hack is so that the source file can tell whether it is being
13307 # built for inclusion in a dll (and should export symbols for example).
13308 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13309 # (--disable-auto-import) libraries
13310 lt_prog_compiler_pic='-DDLL_EXPORT'
13311 ;;
13312
13313 darwin* | rhapsody*)
13314 # PIC is the default on this platform
13315 # Common symbols not allowed in MH_DYLIB files
13316 lt_prog_compiler_pic='-fno-common'
13317 ;;
13318
cristy0c60a692010-11-04 01:09:47 +000013319 haiku*)
13320 # PIC is the default for Haiku.
13321 # The "-static" flag exists, but is broken.
13322 lt_prog_compiler_static=
13323 ;;
13324
cristy73bd4a52010-10-05 11:24:23 +000013325 hpux*)
13326 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13327 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13328 # sets the default TLS model and affects inlining.
13329 case $host_cpu in
13330 hppa*64*)
13331 # +Z the default
13332 ;;
13333 *)
13334 lt_prog_compiler_pic='-fPIC'
13335 ;;
13336 esac
13337 ;;
13338
13339 interix[3-9]*)
13340 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13341 # Instead, we relocate shared libraries at runtime.
13342 ;;
13343
13344 msdosdjgpp*)
13345 # Just because we use GCC doesn't mean we suddenly get shared libraries
13346 # on systems that don't support them.
13347 lt_prog_compiler_can_build_shared=no
13348 enable_shared=no
13349 ;;
13350
13351 *nto* | *qnx*)
13352 # QNX uses GNU C++, but need to define -shared option too, otherwise
13353 # it will coredump.
13354 lt_prog_compiler_pic='-fPIC -shared'
13355 ;;
13356
13357 sysv4*MP*)
13358 if test -d /usr/nec; then
13359 lt_prog_compiler_pic=-Kconform_pic
13360 fi
13361 ;;
13362
13363 *)
13364 lt_prog_compiler_pic='-fPIC'
13365 ;;
13366 esac
cristy0c60a692010-11-04 01:09:47 +000013367
13368 case $cc_basename in
13369 nvcc*) # Cuda Compiler Driver 2.2
13370 lt_prog_compiler_wl='-Xlinker '
13371 lt_prog_compiler_pic='-Xcompiler -fPIC'
13372 ;;
13373 esac
cristy73bd4a52010-10-05 11:24:23 +000013374 else
13375 # PORTME Check for flag to pass linker flags through the system compiler.
13376 case $host_os in
13377 aix*)
13378 lt_prog_compiler_wl='-Wl,'
13379 if test "$host_cpu" = ia64; then
13380 # AIX 5 now supports IA64 processor
13381 lt_prog_compiler_static='-Bstatic'
13382 else
13383 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13384 fi
13385 ;;
13386
13387 mingw* | cygwin* | pw32* | os2* | cegcc*)
13388 # This hack is so that the source file can tell whether it is being
13389 # built for inclusion in a dll (and should export symbols for example).
13390 lt_prog_compiler_pic='-DDLL_EXPORT'
13391 ;;
13392
13393 hpux9* | hpux10* | hpux11*)
13394 lt_prog_compiler_wl='-Wl,'
13395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13396 # not for PA HP-UX.
13397 case $host_cpu in
13398 hppa*64*|ia64*)
13399 # +Z the default
13400 ;;
13401 *)
13402 lt_prog_compiler_pic='+Z'
13403 ;;
13404 esac
13405 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13406 lt_prog_compiler_static='${wl}-a ${wl}archive'
13407 ;;
13408
13409 irix5* | irix6* | nonstopux*)
13410 lt_prog_compiler_wl='-Wl,'
13411 # PIC (with -KPIC) is the default.
13412 lt_prog_compiler_static='-non_shared'
13413 ;;
13414
cristy0c60a692010-11-04 01:09:47 +000013415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013416 case $cc_basename in
13417 # old Intel for x86_64 which still supported -KPIC.
13418 ecc*)
13419 lt_prog_compiler_wl='-Wl,'
13420 lt_prog_compiler_pic='-KPIC'
13421 lt_prog_compiler_static='-static'
13422 ;;
13423 # icc used to be incompatible with GCC.
13424 # ICC 10 doesn't accept -KPIC any more.
13425 icc* | ifort*)
13426 lt_prog_compiler_wl='-Wl,'
13427 lt_prog_compiler_pic='-fPIC'
13428 lt_prog_compiler_static='-static'
13429 ;;
13430 # Lahey Fortran 8.1.
13431 lf95*)
13432 lt_prog_compiler_wl='-Wl,'
13433 lt_prog_compiler_pic='--shared'
13434 lt_prog_compiler_static='--static'
13435 ;;
cristyda16f162011-02-19 23:52:17 +000013436 nagfor*)
13437 # NAG Fortran compiler
13438 lt_prog_compiler_wl='-Wl,-Wl,,'
13439 lt_prog_compiler_pic='-PIC'
13440 lt_prog_compiler_static='-Bstatic'
13441 ;;
cristy0c60a692010-11-04 01:09:47 +000013442 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013443 # Portland Group compilers (*not* the Pentium gcc compiler,
13444 # which looks to be a dead project)
13445 lt_prog_compiler_wl='-Wl,'
13446 lt_prog_compiler_pic='-fpic'
13447 lt_prog_compiler_static='-Bstatic'
13448 ;;
13449 ccc*)
13450 lt_prog_compiler_wl='-Wl,'
13451 # All Alpha code is PIC.
13452 lt_prog_compiler_static='-non_shared'
13453 ;;
cristy0c60a692010-11-04 01:09:47 +000013454 xl* | bgxl* | bgf* | mpixl*)
13455 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013456 lt_prog_compiler_wl='-Wl,'
13457 lt_prog_compiler_pic='-qpic'
13458 lt_prog_compiler_static='-qstaticlink'
13459 ;;
13460 *)
13461 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013462 *Sun\ F* | *Sun*Fortran*)
13463 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13464 lt_prog_compiler_pic='-KPIC'
13465 lt_prog_compiler_static='-Bstatic'
13466 lt_prog_compiler_wl=''
13467 ;;
cristy73bd4a52010-10-05 11:24:23 +000013468 *Sun\ C*)
13469 # Sun C 5.9
13470 lt_prog_compiler_pic='-KPIC'
13471 lt_prog_compiler_static='-Bstatic'
13472 lt_prog_compiler_wl='-Wl,'
13473 ;;
cristy73bd4a52010-10-05 11:24:23 +000013474 esac
13475 ;;
13476 esac
13477 ;;
13478
13479 newsos6)
13480 lt_prog_compiler_pic='-KPIC'
13481 lt_prog_compiler_static='-Bstatic'
13482 ;;
13483
13484 *nto* | *qnx*)
13485 # QNX uses GNU C++, but need to define -shared option too, otherwise
13486 # it will coredump.
13487 lt_prog_compiler_pic='-fPIC -shared'
13488 ;;
13489
13490 osf3* | osf4* | osf5*)
13491 lt_prog_compiler_wl='-Wl,'
13492 # All OSF/1 code is PIC.
13493 lt_prog_compiler_static='-non_shared'
13494 ;;
13495
13496 rdos*)
13497 lt_prog_compiler_static='-non_shared'
13498 ;;
13499
13500 solaris*)
13501 lt_prog_compiler_pic='-KPIC'
13502 lt_prog_compiler_static='-Bstatic'
13503 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013504 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013505 lt_prog_compiler_wl='-Qoption ld ';;
13506 *)
13507 lt_prog_compiler_wl='-Wl,';;
13508 esac
13509 ;;
13510
13511 sunos4*)
13512 lt_prog_compiler_wl='-Qoption ld '
13513 lt_prog_compiler_pic='-PIC'
13514 lt_prog_compiler_static='-Bstatic'
13515 ;;
13516
13517 sysv4 | sysv4.2uw2* | sysv4.3*)
13518 lt_prog_compiler_wl='-Wl,'
13519 lt_prog_compiler_pic='-KPIC'
13520 lt_prog_compiler_static='-Bstatic'
13521 ;;
13522
13523 sysv4*MP*)
13524 if test -d /usr/nec ;then
13525 lt_prog_compiler_pic='-Kconform_pic'
13526 lt_prog_compiler_static='-Bstatic'
13527 fi
13528 ;;
13529
13530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13531 lt_prog_compiler_wl='-Wl,'
13532 lt_prog_compiler_pic='-KPIC'
13533 lt_prog_compiler_static='-Bstatic'
13534 ;;
13535
13536 unicos*)
13537 lt_prog_compiler_wl='-Wl,'
13538 lt_prog_compiler_can_build_shared=no
13539 ;;
13540
13541 uts4*)
13542 lt_prog_compiler_pic='-pic'
13543 lt_prog_compiler_static='-Bstatic'
13544 ;;
13545
13546 *)
13547 lt_prog_compiler_can_build_shared=no
13548 ;;
13549 esac
13550 fi
13551
13552case $host_os in
13553 # For platforms which do not support PIC, -DPIC is meaningless:
13554 *djgpp*)
13555 lt_prog_compiler_pic=
13556 ;;
13557 *)
13558 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13559 ;;
13560esac
cristy73bd4a52010-10-05 11:24:23 +000013561
cristyda16f162011-02-19 23:52:17 +000013562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13563$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13564if ${lt_cv_prog_compiler_pic+:} false; then :
13565 $as_echo_n "(cached) " >&6
13566else
13567 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13568fi
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13570$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13571lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013572
13573#
13574# Check to make sure the PIC flag actually works.
13575#
13576if test -n "$lt_prog_compiler_pic"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13578$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013579if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013580 $as_echo_n "(cached) " >&6
13581else
13582 lt_cv_prog_compiler_pic_works=no
13583 ac_outfile=conftest.$ac_objext
13584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13585 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13586 # Insert the option either (1) after the last *FLAGS variable, or
13587 # (2) before a word containing "conftest.", or (3) at the end.
13588 # Note that $ac_compile itself does not contain backslashes and begins
13589 # with a dollar sign (not a hyphen), so the echo should work correctly.
13590 # The option is referenced via a variable to avoid confusing sed.
13591 lt_compile=`echo "$ac_compile" | $SED \
13592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13594 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013596 (eval "$lt_compile" 2>conftest.err)
13597 ac_status=$?
13598 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013600 if (exit $ac_status) && test -s "$ac_outfile"; then
13601 # The compiler can only warn and ignore the option if not recognized
13602 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13606 lt_cv_prog_compiler_pic_works=yes
13607 fi
13608 fi
13609 $RM conftest*
13610
13611fi
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13613$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13614
13615if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13616 case $lt_prog_compiler_pic in
13617 "" | " "*) ;;
13618 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13619 esac
13620else
13621 lt_prog_compiler_pic=
13622 lt_prog_compiler_can_build_shared=no
13623fi
13624
13625fi
13626
13627
13628
13629
13630
13631
cristyda16f162011-02-19 23:52:17 +000013632
13633
13634
13635
13636
cristy73bd4a52010-10-05 11:24:23 +000013637#
13638# Check to make sure the static flag actually works.
13639#
13640wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13642$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013643if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013644 $as_echo_n "(cached) " >&6
13645else
13646 lt_cv_prog_compiler_static_works=no
13647 save_LDFLAGS="$LDFLAGS"
13648 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13649 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13651 # The linker can only warn and ignore the option if not recognized
13652 # So say no if there are warnings
13653 if test -s conftest.err; then
13654 # Append any errors to the config.log.
13655 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013656 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13658 if diff conftest.exp conftest.er2 >/dev/null; then
13659 lt_cv_prog_compiler_static_works=yes
13660 fi
13661 else
13662 lt_cv_prog_compiler_static_works=yes
13663 fi
13664 fi
13665 $RM -r conftest*
13666 LDFLAGS="$save_LDFLAGS"
13667
13668fi
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13670$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13671
13672if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13673 :
13674else
13675 lt_prog_compiler_static=
13676fi
13677
13678
13679
13680
13681
13682
13683
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13685$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013686if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013687 $as_echo_n "(cached) " >&6
13688else
13689 lt_cv_prog_compiler_c_o=no
13690 $RM -r conftest 2>/dev/null
13691 mkdir conftest
13692 cd conftest
13693 mkdir out
13694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13695
13696 lt_compiler_flag="-o out/conftest2.$ac_objext"
13697 # Insert the option either (1) after the last *FLAGS variable, or
13698 # (2) before a word containing "conftest.", or (3) at the end.
13699 # Note that $ac_compile itself does not contain backslashes and begins
13700 # with a dollar sign (not a hyphen), so the echo should work correctly.
13701 lt_compile=`echo "$ac_compile" | $SED \
13702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13704 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013706 (eval "$lt_compile" 2>out/conftest.err)
13707 ac_status=$?
13708 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013710 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13711 then
13712 # The compiler can only warn and ignore the option if not recognized
13713 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013715 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13716 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13717 lt_cv_prog_compiler_c_o=yes
13718 fi
13719 fi
13720 chmod u+w . 2>&5
13721 $RM conftest*
13722 # SGI C++ compiler will create directory out/ii_files/ for
13723 # template instantiation
13724 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13725 $RM out/* && rmdir out
13726 cd ..
13727 $RM -r conftest
13728 $RM conftest*
13729
13730fi
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13732$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13733
13734
13735
13736
13737
13738
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13740$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013741if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013742 $as_echo_n "(cached) " >&6
13743else
13744 lt_cv_prog_compiler_c_o=no
13745 $RM -r conftest 2>/dev/null
13746 mkdir conftest
13747 cd conftest
13748 mkdir out
13749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13750
13751 lt_compiler_flag="-o out/conftest2.$ac_objext"
13752 # Insert the option either (1) after the last *FLAGS variable, or
13753 # (2) before a word containing "conftest.", or (3) at the end.
13754 # Note that $ac_compile itself does not contain backslashes and begins
13755 # with a dollar sign (not a hyphen), so the echo should work correctly.
13756 lt_compile=`echo "$ac_compile" | $SED \
13757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13759 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013761 (eval "$lt_compile" 2>out/conftest.err)
13762 ac_status=$?
13763 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13766 then
13767 # The compiler can only warn and ignore the option if not recognized
13768 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13772 lt_cv_prog_compiler_c_o=yes
13773 fi
13774 fi
13775 chmod u+w . 2>&5
13776 $RM conftest*
13777 # SGI C++ compiler will create directory out/ii_files/ for
13778 # template instantiation
13779 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13780 $RM out/* && rmdir out
13781 cd ..
13782 $RM -r conftest
13783 $RM conftest*
13784
13785fi
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13787$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13788
13789
13790
13791
13792hard_links="nottested"
13793if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13794 # do not overwrite the value of need_locks provided by the user
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13796$as_echo_n "checking if we can lock with hard links... " >&6; }
13797 hard_links=yes
13798 $RM conftest*
13799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13800 touch conftest.a
13801 ln conftest.a conftest.b 2>&5 || hard_links=no
13802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13804$as_echo "$hard_links" >&6; }
13805 if test "$hard_links" = no; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13807$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13808 need_locks=warn
13809 fi
13810else
13811 need_locks=no
13812fi
13813
13814
13815
13816
13817
13818
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13820$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13821
13822 runpath_var=
13823 allow_undefined_flag=
13824 always_export_symbols=no
13825 archive_cmds=
13826 archive_expsym_cmds=
13827 compiler_needs_object=no
13828 enable_shared_with_static_runtimes=no
13829 export_dynamic_flag_spec=
13830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13831 hardcode_automatic=no
13832 hardcode_direct=no
13833 hardcode_direct_absolute=no
13834 hardcode_libdir_flag_spec=
13835 hardcode_libdir_flag_spec_ld=
13836 hardcode_libdir_separator=
13837 hardcode_minus_L=no
13838 hardcode_shlibpath_var=unsupported
13839 inherit_rpath=no
13840 link_all_deplibs=unknown
13841 module_cmds=
13842 module_expsym_cmds=
13843 old_archive_from_new_cmds=
13844 old_archive_from_expsyms_cmds=
13845 thread_safe_flag_spec=
13846 whole_archive_flag_spec=
13847 # include_expsyms should be a list of space-separated symbols to be *always*
13848 # included in the symbol list
13849 include_expsyms=
13850 # exclude_expsyms can be an extended regexp of symbols to exclude
13851 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13852 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13853 # as well as any symbol that contains `d'.
13854 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13855 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13856 # platforms (ab)use it in PIC code, but their linkers get confused if
13857 # the symbol is explicitly referenced. Since portable code cannot
13858 # rely on this symbol name, it's probably fine to never include it in
13859 # preloaded symbol tables.
13860 # Exclude shared library initialization/finalization symbols.
13861 extract_expsyms_cmds=
13862
13863 case $host_os in
13864 cygwin* | mingw* | pw32* | cegcc*)
13865 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13866 # When not using gcc, we currently assume that we are using
13867 # Microsoft Visual C++.
13868 if test "$GCC" != yes; then
13869 with_gnu_ld=no
13870 fi
13871 ;;
13872 interix*)
13873 # we just hope/assume this is gcc and not c89 (= MSVC++)
13874 with_gnu_ld=yes
13875 ;;
13876 openbsd*)
13877 with_gnu_ld=no
13878 ;;
13879 esac
13880
13881 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013882
13883 # On some targets, GNU ld is compatible enough with the native linker
13884 # that we're better off using the native interface for both.
13885 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013886 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013887 case $host_os in
13888 aix*)
13889 # The AIX port of GNU ld has always aspired to compatibility
13890 # with the native linker. However, as the warning in the GNU ld
13891 # block says, versions before 2.19.5* couldn't really create working
13892 # shared libraries, regardless of the interface used.
13893 case `$LD -v 2>&1` in
13894 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13895 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13896 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13897 *)
13898 lt_use_gnu_ld_interface=yes
13899 ;;
13900 esac
13901 ;;
13902 *)
13903 lt_use_gnu_ld_interface=yes
13904 ;;
13905 esac
13906 fi
13907
13908 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013909 # If archive_cmds runs LD, not CC, wlarc should be empty
13910 wlarc='${wl}'
13911
13912 # Set some defaults for GNU ld with shared library support. These
13913 # are reset later if shared libraries are not supported. Putting them
13914 # here allows them to be overridden if necessary.
13915 runpath_var=LD_RUN_PATH
13916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13917 export_dynamic_flag_spec='${wl}--export-dynamic'
13918 # ancient GNU ld didn't support --whole-archive et. al.
13919 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13920 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13921 else
13922 whole_archive_flag_spec=
13923 fi
13924 supports_anon_versioning=no
13925 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013926 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013927 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13928 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13929 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13930 *\ 2.11.*) ;; # other 2.11 versions
13931 *) supports_anon_versioning=yes ;;
13932 esac
13933
13934 # See if GNU ld supports shared libraries.
13935 case $host_os in
13936 aix[3-9]*)
13937 # On AIX/PPC, the GNU linker is very broken
13938 if test "$host_cpu" != ia64; then
13939 ld_shlibs=no
13940 cat <<_LT_EOF 1>&2
13941
cristy0c60a692010-11-04 01:09:47 +000013942*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013943*** to be unable to reliably create shared libraries on AIX.
13944*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013945*** really care for shared libraries, you may want to install binutils
13946*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13947*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013948
13949_LT_EOF
13950 fi
13951 ;;
13952
13953 amigaos*)
13954 case $host_cpu in
13955 powerpc)
13956 # see comment about AmigaOS4 .so support
13957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13958 archive_expsym_cmds=''
13959 ;;
13960 m68k)
13961 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)'
13962 hardcode_libdir_flag_spec='-L$libdir'
13963 hardcode_minus_L=yes
13964 ;;
13965 esac
13966 ;;
13967
13968 beos*)
13969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13970 allow_undefined_flag=unsupported
13971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13972 # support --undefined. This deserves some investigation. FIXME
13973 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13974 else
13975 ld_shlibs=no
13976 fi
13977 ;;
13978
13979 cygwin* | mingw* | pw32* | cegcc*)
13980 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13981 # as there is no search path for DLLs.
13982 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013983 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013984 allow_undefined_flag=unsupported
13985 always_export_symbols=no
13986 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013987 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'
13988 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 +000013989
13990 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13992 # If the export-symbols file already is a .def file (1st line
13993 # is EXPORTS), use it as is; otherwise, prepend...
13994 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13995 cp $export_symbols $output_objdir/$soname.def;
13996 else
13997 echo EXPORTS > $output_objdir/$soname.def;
13998 cat $export_symbols >> $output_objdir/$soname.def;
13999 fi~
14000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14001 else
14002 ld_shlibs=no
14003 fi
14004 ;;
14005
cristy0c60a692010-11-04 01:09:47 +000014006 haiku*)
14007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14008 link_all_deplibs=yes
14009 ;;
14010
cristy73bd4a52010-10-05 11:24:23 +000014011 interix[3-9]*)
14012 hardcode_direct=no
14013 hardcode_shlibpath_var=no
14014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14015 export_dynamic_flag_spec='${wl}-E'
14016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14017 # Instead, shared libraries are loaded at an image base (0x10000000 by
14018 # default) and relocated if they conflict, which is a slow very memory
14019 # consuming and fragmenting process. To avoid this, we pick a random,
14020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14023 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'
14024 ;;
14025
cristy0c60a692010-11-04 01:09:47 +000014026 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014027 tmp_diet=no
14028 if test "$host_os" = linux-dietlibc; then
14029 case $cc_basename in
14030 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14031 esac
14032 fi
14033 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14034 && test "$tmp_diet" = no
14035 then
cristyda16f162011-02-19 23:52:17 +000014036 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014037 tmp_sharedflag='-shared'
14038 case $cc_basename,$host_cpu in
14039 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014040 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 +000014041 tmp_addflag=' $pic_flag'
14042 ;;
cristy0c60a692010-11-04 01:09:47 +000014043 pgf77* | pgf90* | pgf95* | pgfortran*)
14044 # Portland Group f77 and f90 compilers
14045 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 +000014046 tmp_addflag=' $pic_flag -Mnomain' ;;
14047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14048 tmp_addflag=' -i_dynamic' ;;
14049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14050 tmp_addflag=' -i_dynamic -nofor_main' ;;
14051 ifc* | ifort*) # Intel Fortran compiler
14052 tmp_addflag=' -nofor_main' ;;
14053 lf95*) # Lahey Fortran 8.1
14054 whole_archive_flag_spec=
14055 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014056 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014057 tmp_sharedflag='-qmkshrobj'
14058 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014059 nvcc*) # Cuda Compiler Driver 2.2
14060 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'
14061 compiler_needs_object=yes
14062 ;;
cristy73bd4a52010-10-05 11:24:23 +000014063 esac
14064 case `$CC -V 2>&1 | sed 5q` in
14065 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014066 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 +000014067 compiler_needs_object=yes
14068 tmp_sharedflag='-G' ;;
14069 *Sun\ F*) # Sun Fortran 8.3
14070 tmp_sharedflag='-G' ;;
14071 esac
14072 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14073
14074 if test "x$supports_anon_versioning" = xyes; then
14075 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14077 echo "local: *; };" >> $output_objdir/$libname.ver~
14078 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14079 fi
14080
14081 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014082 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014083 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14084 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14085 hardcode_libdir_flag_spec=
14086 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014087 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014088 if test "x$supports_anon_versioning" = xyes; then
14089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14091 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014092 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014093 fi
14094 ;;
14095 esac
14096 else
14097 ld_shlibs=no
14098 fi
14099 ;;
14100
14101 netbsd*)
14102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14103 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14104 wlarc=
14105 else
cristyda16f162011-02-19 23:52:17 +000014106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 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 +000014108 fi
14109 ;;
14110
14111 solaris*)
14112 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14113 ld_shlibs=no
14114 cat <<_LT_EOF 1>&2
14115
14116*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14117*** create shared libraries on Solaris systems. Therefore, libtool
14118*** is disabling shared libraries support. We urge you to upgrade GNU
14119*** binutils to release 2.9.1 or newer. Another option is to modify
14120*** your PATH or compiler configuration so that the native linker is
14121*** used, and then restart.
14122
14123_LT_EOF
14124 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014125 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14126 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 +000014127 else
14128 ld_shlibs=no
14129 fi
14130 ;;
14131
14132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14133 case `$LD -v 2>&1` in
14134 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14135 ld_shlibs=no
14136 cat <<_LT_EOF 1>&2
14137
14138*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14139*** reliably create shared libraries on SCO systems. Therefore, libtool
14140*** is disabling shared libraries support. We urge you to upgrade GNU
14141*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14142*** your PATH or compiler configuration so that the native linker is
14143*** used, and then restart.
14144
14145_LT_EOF
14146 ;;
14147 *)
14148 # For security reasons, it is highly recommended that you always
14149 # use absolute paths for naming shared libraries, and exclude the
14150 # DT_RUNPATH tag from executables and libraries. But doing so
14151 # requires that you compile everything twice, which is a pain.
14152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14156 else
14157 ld_shlibs=no
14158 fi
14159 ;;
14160 esac
14161 ;;
14162
14163 sunos4*)
14164 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14165 wlarc=
14166 hardcode_direct=yes
14167 hardcode_shlibpath_var=no
14168 ;;
14169
14170 *)
14171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14173 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 +000014174 else
14175 ld_shlibs=no
14176 fi
14177 ;;
14178 esac
14179
14180 if test "$ld_shlibs" = no; then
14181 runpath_var=
14182 hardcode_libdir_flag_spec=
14183 export_dynamic_flag_spec=
14184 whole_archive_flag_spec=
14185 fi
14186 else
14187 # PORTME fill in a description of your system's linker (not GNU ld)
14188 case $host_os in
14189 aix3*)
14190 allow_undefined_flag=unsupported
14191 always_export_symbols=yes
14192 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'
14193 # Note: this linker hardcodes the directories in LIBPATH if there
14194 # are no directories specified by -L.
14195 hardcode_minus_L=yes
14196 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14197 # Neither direct hardcoding nor static linking is supported with a
14198 # broken collect2.
14199 hardcode_direct=unsupported
14200 fi
14201 ;;
14202
14203 aix[4-9]*)
14204 if test "$host_cpu" = ia64; then
14205 # On IA64, the linker does run time linking by default, so we don't
14206 # have to do anything special.
14207 aix_use_runtimelinking=no
14208 exp_sym_flag='-Bexport'
14209 no_entry_flag=""
14210 else
14211 # If we're using GNU nm, then we don't want the "-C" option.
14212 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014213 # Also, AIX nm treats weak defined symbols like other global
14214 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014215 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014216 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 +000014217 else
14218 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'
14219 fi
14220 aix_use_runtimelinking=no
14221
14222 # Test if we are trying to use run time linking or normal
14223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14224 # need to do runtime linking.
14225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14226 for ld_flag in $LDFLAGS; do
14227 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14228 aix_use_runtimelinking=yes
14229 break
14230 fi
14231 done
14232 ;;
14233 esac
14234
14235 exp_sym_flag='-bexport'
14236 no_entry_flag='-bnoentry'
14237 fi
14238
14239 # When large executables or shared objects are built, AIX ld can
14240 # have problems creating the table of contents. If linking a library
14241 # or program results in "error TOC overflow" add -mminimal-toc to
14242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14244
14245 archive_cmds=''
14246 hardcode_direct=yes
14247 hardcode_direct_absolute=yes
14248 hardcode_libdir_separator=':'
14249 link_all_deplibs=yes
14250 file_list_spec='${wl}-f,'
14251
14252 if test "$GCC" = yes; then
14253 case $host_os in aix4.[012]|aix4.[012].*)
14254 # We only want to do this on AIX 4.2 and lower, the check
14255 # below for broken collect2 doesn't work under 4.3+
14256 collect2name=`${CC} -print-prog-name=collect2`
14257 if test -f "$collect2name" &&
14258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14259 then
14260 # We have reworked collect2
14261 :
14262 else
14263 # We have old collect2
14264 hardcode_direct=unsupported
14265 # It fails to find uninstalled libraries when the uninstalled
14266 # path is not listed in the libpath. Setting hardcode_minus_L
14267 # to unsupported forces relinking
14268 hardcode_minus_L=yes
14269 hardcode_libdir_flag_spec='-L$libdir'
14270 hardcode_libdir_separator=
14271 fi
14272 ;;
14273 esac
14274 shared_flag='-shared'
14275 if test "$aix_use_runtimelinking" = yes; then
14276 shared_flag="$shared_flag "'${wl}-G'
14277 fi
14278 else
14279 # not using gcc
14280 if test "$host_cpu" = ia64; then
14281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14282 # chokes on -Wl,-G. The following line is correct:
14283 shared_flag='-G'
14284 else
14285 if test "$aix_use_runtimelinking" = yes; then
14286 shared_flag='${wl}-G'
14287 else
14288 shared_flag='${wl}-bM:SRE'
14289 fi
14290 fi
14291 fi
14292
14293 export_dynamic_flag_spec='${wl}-bexpall'
14294 # It seems that -bexpall does not export symbols beginning with
14295 # underscore (_), so it is better to generate a list of symbols to export.
14296 always_export_symbols=yes
14297 if test "$aix_use_runtimelinking" = yes; then
14298 # Warning - without using the other runtime loading flags (-brtl),
14299 # -berok will link without error, but may produce a broken library.
14300 allow_undefined_flag='-berok'
14301 # Determine the default libpath from the value encoded in an
14302 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014303 if test "${lt_cv_aix_libpath+set}" = set; then
14304 aix_libpath=$lt_cv_aix_libpath
14305else
14306 if ${lt_cv_aix_libpath_+:} false; then :
14307 $as_echo_n "(cached) " >&6
14308else
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014310/* end confdefs.h. */
14311
14312int
14313main ()
14314{
14315
14316 ;
14317 return 0;
14318}
14319_ACEOF
14320if ac_fn_c_try_link "$LINENO"; then :
14321
cristyda16f162011-02-19 23:52:17 +000014322 lt_aix_libpath_sed='
14323 /Import File Strings/,/^$/ {
14324 /^0/ {
14325 s/^0 *\([^ ]*\) *$/\1/
14326 p
14327 }
14328 }'
14329 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14330 # Check for a 64-bit object if we didn't find anything.
14331 if test -z "$lt_cv_aix_libpath_"; then
14332 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14333 fi
cristy73bd4a52010-10-05 11:24:23 +000014334fi
14335rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014337 if test -z "$lt_cv_aix_libpath_"; then
14338 lt_cv_aix_libpath_="/usr/lib:/lib"
14339 fi
14340
14341fi
14342
14343 aix_libpath=$lt_cv_aix_libpath_
14344fi
cristy73bd4a52010-10-05 11:24:23 +000014345
14346 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014347 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 +000014348 else
14349 if test "$host_cpu" = ia64; then
14350 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14351 allow_undefined_flag="-z nodefs"
14352 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"
14353 else
14354 # Determine the default libpath from the value encoded in an
14355 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014356 if test "${lt_cv_aix_libpath+set}" = set; then
14357 aix_libpath=$lt_cv_aix_libpath
14358else
14359 if ${lt_cv_aix_libpath_+:} false; then :
14360 $as_echo_n "(cached) " >&6
14361else
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014363/* end confdefs.h. */
14364
14365int
14366main ()
14367{
14368
14369 ;
14370 return 0;
14371}
14372_ACEOF
14373if ac_fn_c_try_link "$LINENO"; then :
14374
cristyda16f162011-02-19 23:52:17 +000014375 lt_aix_libpath_sed='
14376 /Import File Strings/,/^$/ {
14377 /^0/ {
14378 s/^0 *\([^ ]*\) *$/\1/
14379 p
14380 }
14381 }'
14382 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14383 # Check for a 64-bit object if we didn't find anything.
14384 if test -z "$lt_cv_aix_libpath_"; then
14385 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14386 fi
cristy73bd4a52010-10-05 11:24:23 +000014387fi
14388rm -f core conftest.err conftest.$ac_objext \
14389 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014390 if test -z "$lt_cv_aix_libpath_"; then
14391 lt_cv_aix_libpath_="/usr/lib:/lib"
14392 fi
14393
14394fi
14395
14396 aix_libpath=$lt_cv_aix_libpath_
14397fi
cristy73bd4a52010-10-05 11:24:23 +000014398
14399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14400 # Warning - without using the other run time loading flags,
14401 # -berok will link without error, but may produce a broken library.
14402 no_undefined_flag=' ${wl}-bernotok'
14403 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014404 if test "$with_gnu_ld" = yes; then
14405 # We only use this code for GNU lds that support --whole-archive.
14406 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14407 else
14408 # Exported symbols can be pulled into shared objects from archives
14409 whole_archive_flag_spec='$convenience'
14410 fi
cristy73bd4a52010-10-05 11:24:23 +000014411 archive_cmds_need_lc=yes
14412 # This is similar to how AIX traditionally builds its shared libraries.
14413 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'
14414 fi
14415 fi
14416 ;;
14417
14418 amigaos*)
14419 case $host_cpu in
14420 powerpc)
14421 # see comment about AmigaOS4 .so support
14422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14423 archive_expsym_cmds=''
14424 ;;
14425 m68k)
14426 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)'
14427 hardcode_libdir_flag_spec='-L$libdir'
14428 hardcode_minus_L=yes
14429 ;;
14430 esac
14431 ;;
14432
14433 bsdi[45]*)
14434 export_dynamic_flag_spec=-rdynamic
14435 ;;
14436
14437 cygwin* | mingw* | pw32* | cegcc*)
14438 # When not using gcc, we currently assume that we are using
14439 # Microsoft Visual C++.
14440 # hardcode_libdir_flag_spec is actually meaningless, as there is
14441 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014442 case $cc_basename in
14443 cl*)
14444 # Native MSVC
14445 hardcode_libdir_flag_spec=' '
14446 allow_undefined_flag=unsupported
14447 always_export_symbols=yes
14448 file_list_spec='@'
14449 # Tell ltmain to make .lib files, not .a files.
14450 libext=lib
14451 # Tell ltmain to make .dll files, not .so files.
14452 shrext_cmds=".dll"
14453 # FIXME: Setting linknames here is a bad hack.
14454 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14455 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14456 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14457 else
14458 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14459 fi~
14460 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14461 linknames='
14462 # The linker will not automatically build a static lib if we build a DLL.
14463 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14464 enable_shared_with_static_runtimes=yes
14465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14466 # Don't use ranlib
14467 old_postinstall_cmds='chmod 644 $oldlib'
14468 postlink_cmds='lt_outputfile="@OUTPUT@"~
14469 lt_tool_outputfile="@TOOL_OUTPUT@"~
14470 case $lt_outputfile in
14471 *.exe|*.EXE) ;;
14472 *)
14473 lt_outputfile="$lt_outputfile.exe"
14474 lt_tool_outputfile="$lt_tool_outputfile.exe"
14475 ;;
14476 esac~
14477 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14478 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14479 $RM "$lt_outputfile.manifest";
14480 fi'
14481 ;;
14482 *)
14483 # Assume MSVC wrapper
14484 hardcode_libdir_flag_spec=' '
14485 allow_undefined_flag=unsupported
14486 # Tell ltmain to make .lib files, not .a files.
14487 libext=lib
14488 # Tell ltmain to make .dll files, not .so files.
14489 shrext_cmds=".dll"
14490 # FIXME: Setting linknames here is a bad hack.
14491 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14492 # The linker will automatically build a .lib file if we build a DLL.
14493 old_archive_from_new_cmds='true'
14494 # FIXME: Should let the user specify the lib program.
14495 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14496 enable_shared_with_static_runtimes=yes
14497 ;;
14498 esac
cristy73bd4a52010-10-05 11:24:23 +000014499 ;;
14500
14501 darwin* | rhapsody*)
14502
14503
14504 archive_cmds_need_lc=no
14505 hardcode_direct=no
14506 hardcode_automatic=yes
14507 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014508 if test "$lt_cv_ld_force_load" = "yes"; then
14509 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\"`'
14510 else
14511 whole_archive_flag_spec=''
14512 fi
cristy73bd4a52010-10-05 11:24:23 +000014513 link_all_deplibs=yes
14514 allow_undefined_flag="$_lt_dar_allow_undefined"
14515 case $cc_basename in
14516 ifort*) _lt_dar_can_shared=yes ;;
14517 *) _lt_dar_can_shared=$GCC ;;
14518 esac
14519 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014520 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014521 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14522 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14523 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}"
14524 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}"
14525
14526 else
14527 ld_shlibs=no
14528 fi
14529
14530 ;;
14531
14532 dgux*)
14533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14534 hardcode_libdir_flag_spec='-L$libdir'
14535 hardcode_shlibpath_var=no
14536 ;;
14537
14538 freebsd1*)
14539 ld_shlibs=no
14540 ;;
14541
14542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14543 # support. Future versions do this automatically, but an explicit c++rt0.o
14544 # does not break anything, and helps significantly (at the cost of a little
14545 # extra space).
14546 freebsd2.2*)
14547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14548 hardcode_libdir_flag_spec='-R$libdir'
14549 hardcode_direct=yes
14550 hardcode_shlibpath_var=no
14551 ;;
14552
14553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14554 freebsd2*)
14555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14556 hardcode_direct=yes
14557 hardcode_minus_L=yes
14558 hardcode_shlibpath_var=no
14559 ;;
14560
14561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14562 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014564 hardcode_libdir_flag_spec='-R$libdir'
14565 hardcode_direct=yes
14566 hardcode_shlibpath_var=no
14567 ;;
14568
14569 hpux9*)
14570 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014571 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 +000014572 else
14573 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'
14574 fi
14575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14576 hardcode_libdir_separator=:
14577 hardcode_direct=yes
14578
14579 # hardcode_minus_L: Not really in the search PATH,
14580 # but as the default location of the library.
14581 hardcode_minus_L=yes
14582 export_dynamic_flag_spec='${wl}-E'
14583 ;;
14584
14585 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014586 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014587 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 +000014588 else
14589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14590 fi
14591 if test "$with_gnu_ld" = no; then
14592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14593 hardcode_libdir_flag_spec_ld='+b $libdir'
14594 hardcode_libdir_separator=:
14595 hardcode_direct=yes
14596 hardcode_direct_absolute=yes
14597 export_dynamic_flag_spec='${wl}-E'
14598 # hardcode_minus_L: Not really in the search PATH,
14599 # but as the default location of the library.
14600 hardcode_minus_L=yes
14601 fi
14602 ;;
14603
14604 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014605 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014606 case $host_cpu in
14607 hppa*64*)
14608 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 ;;
14610 ia64*)
cristyda16f162011-02-19 23:52:17 +000014611 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014612 ;;
14613 *)
cristyda16f162011-02-19 23:52:17 +000014614 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 +000014615 ;;
14616 esac
14617 else
14618 case $host_cpu in
14619 hppa*64*)
14620 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14621 ;;
14622 ia64*)
14623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14624 ;;
14625 *)
cristy0c60a692010-11-04 01:09:47 +000014626
14627 # Older versions of the 11.00 compiler do not understand -b yet
14628 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14630$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014631if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014632 $as_echo_n "(cached) " >&6
14633else
14634 lt_cv_prog_compiler__b=no
14635 save_LDFLAGS="$LDFLAGS"
14636 LDFLAGS="$LDFLAGS -b"
14637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14639 # The linker can only warn and ignore the option if not recognized
14640 # So say no if there are warnings
14641 if test -s conftest.err; then
14642 # Append any errors to the config.log.
14643 cat conftest.err 1>&5
14644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646 if diff conftest.exp conftest.er2 >/dev/null; then
14647 lt_cv_prog_compiler__b=yes
14648 fi
14649 else
14650 lt_cv_prog_compiler__b=yes
14651 fi
14652 fi
14653 $RM -r conftest*
14654 LDFLAGS="$save_LDFLAGS"
14655
14656fi
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14658$as_echo "$lt_cv_prog_compiler__b" >&6; }
14659
14660if test x"$lt_cv_prog_compiler__b" = xyes; then
14661 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14662else
14663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14664fi
14665
cristy73bd4a52010-10-05 11:24:23 +000014666 ;;
14667 esac
14668 fi
14669 if test "$with_gnu_ld" = no; then
14670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14671 hardcode_libdir_separator=:
14672
14673 case $host_cpu in
14674 hppa*64*|ia64*)
14675 hardcode_direct=no
14676 hardcode_shlibpath_var=no
14677 ;;
14678 *)
14679 hardcode_direct=yes
14680 hardcode_direct_absolute=yes
14681 export_dynamic_flag_spec='${wl}-E'
14682
14683 # hardcode_minus_L: Not really in the search PATH,
14684 # but as the default location of the library.
14685 hardcode_minus_L=yes
14686 ;;
14687 esac
14688 fi
14689 ;;
14690
14691 irix5* | irix6* | nonstopux*)
14692 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014693 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 +000014694 # Try to use the -exported_symbol ld option, if it does not
14695 # work, assume that -exports_file does not work either and
14696 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014697 # This should be the same for all languages, so no per-tag cache variable.
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14699$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14700if ${lt_cv_irix_exported_symbol+:} false; then :
14701 $as_echo_n "(cached) " >&6
14702else
14703 save_LDFLAGS="$LDFLAGS"
14704 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014706/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014707int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014708_ACEOF
14709if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014710 lt_cv_irix_exported_symbol=yes
14711else
14712 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014713fi
14714rm -f core conftest.err conftest.$ac_objext \
14715 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014716 LDFLAGS="$save_LDFLAGS"
14717fi
14718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14719$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14720 if test "$lt_cv_irix_exported_symbol" = yes; then
14721 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'
14722 fi
cristy73bd4a52010-10-05 11:24:23 +000014723 else
cristy0c60a692010-11-04 01:09:47 +000014724 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'
14725 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 +000014726 fi
14727 archive_cmds_need_lc='no'
14728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14729 hardcode_libdir_separator=:
14730 inherit_rpath=yes
14731 link_all_deplibs=yes
14732 ;;
14733
14734 netbsd*)
14735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14737 else
14738 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14739 fi
14740 hardcode_libdir_flag_spec='-R$libdir'
14741 hardcode_direct=yes
14742 hardcode_shlibpath_var=no
14743 ;;
14744
14745 newsos6)
14746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14747 hardcode_direct=yes
14748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14749 hardcode_libdir_separator=:
14750 hardcode_shlibpath_var=no
14751 ;;
14752
14753 *nto* | *qnx*)
14754 ;;
14755
14756 openbsd*)
14757 if test -f /usr/libexec/ld.so; then
14758 hardcode_direct=yes
14759 hardcode_shlibpath_var=no
14760 hardcode_direct_absolute=yes
14761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14763 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14765 export_dynamic_flag_spec='${wl}-E'
14766 else
14767 case $host_os in
14768 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14770 hardcode_libdir_flag_spec='-R$libdir'
14771 ;;
14772 *)
14773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14774 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14775 ;;
14776 esac
14777 fi
14778 else
14779 ld_shlibs=no
14780 fi
14781 ;;
14782
14783 os2*)
14784 hardcode_libdir_flag_spec='-L$libdir'
14785 hardcode_minus_L=yes
14786 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014787 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 +000014788 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14789 ;;
14790
14791 osf3*)
14792 if test "$GCC" = yes; then
14793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014794 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 +000014795 else
14796 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014797 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 +000014798 fi
14799 archive_cmds_need_lc='no'
14800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14801 hardcode_libdir_separator=:
14802 ;;
14803
14804 osf4* | osf5*) # as osf3* with the addition of -msym flag
14805 if test "$GCC" = yes; then
14806 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014807 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 +000014808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14809 else
14810 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014811 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 +000014812 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 +000014813 $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 +000014814
14815 # Both c and cxx compiler support -rpath directly
14816 hardcode_libdir_flag_spec='-rpath $libdir'
14817 fi
14818 archive_cmds_need_lc='no'
14819 hardcode_libdir_separator=:
14820 ;;
14821
14822 solaris*)
14823 no_undefined_flag=' -z defs'
14824 if test "$GCC" = yes; then
14825 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014826 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 +000014827 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 +000014828 $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 +000014829 else
14830 case `$CC -V 2>&1` in
14831 *"Compilers 5.0"*)
14832 wlarc=''
14833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14836 ;;
14837 *)
14838 wlarc='${wl}'
14839 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14841 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14842 ;;
14843 esac
14844 fi
14845 hardcode_libdir_flag_spec='-R$libdir'
14846 hardcode_shlibpath_var=no
14847 case $host_os in
14848 solaris2.[0-5] | solaris2.[0-5].*) ;;
14849 *)
14850 # The compiler driver will combine and reorder linker options,
14851 # but understands `-z linker_flag'. GCC discards it without `$wl',
14852 # but is careful enough not to reorder.
14853 # Supported since Solaris 2.6 (maybe 2.5.1?)
14854 if test "$GCC" = yes; then
14855 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14856 else
14857 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14858 fi
14859 ;;
14860 esac
14861 link_all_deplibs=yes
14862 ;;
14863
14864 sunos4*)
14865 if test "x$host_vendor" = xsequent; then
14866 # Use $CC to link under sequent, because it throws in some extra .o
14867 # files that make .init and .fini sections work.
14868 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14869 else
14870 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14871 fi
14872 hardcode_libdir_flag_spec='-L$libdir'
14873 hardcode_direct=yes
14874 hardcode_minus_L=yes
14875 hardcode_shlibpath_var=no
14876 ;;
14877
14878 sysv4)
14879 case $host_vendor in
14880 sni)
14881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882 hardcode_direct=yes # is this really true???
14883 ;;
14884 siemens)
14885 ## LD is ld it makes a PLAMLIB
14886 ## CC just makes a GrossModule.
14887 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14888 reload_cmds='$CC -r -o $output$reload_objs'
14889 hardcode_direct=no
14890 ;;
14891 motorola)
14892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14893 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14894 ;;
14895 esac
14896 runpath_var='LD_RUN_PATH'
14897 hardcode_shlibpath_var=no
14898 ;;
14899
14900 sysv4.3*)
14901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14902 hardcode_shlibpath_var=no
14903 export_dynamic_flag_spec='-Bexport'
14904 ;;
14905
14906 sysv4*MP*)
14907 if test -d /usr/nec; then
14908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14909 hardcode_shlibpath_var=no
14910 runpath_var=LD_RUN_PATH
14911 hardcode_runpath_var=yes
14912 ld_shlibs=yes
14913 fi
14914 ;;
14915
14916 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14917 no_undefined_flag='${wl}-z,text'
14918 archive_cmds_need_lc=no
14919 hardcode_shlibpath_var=no
14920 runpath_var='LD_RUN_PATH'
14921
14922 if test "$GCC" = yes; then
14923 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14924 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925 else
14926 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14927 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928 fi
14929 ;;
14930
14931 sysv5* | sco3.2v5* | sco5v6*)
14932 # Note: We can NOT use -z defs as we might desire, because we do not
14933 # link with -lc, and that would cause any symbols used from libc to
14934 # always be unresolved, which means just about no library would
14935 # ever link correctly. If we're not using GNU ld we use -z text
14936 # though, which does catch some bad symbols but isn't as heavy-handed
14937 # as -z defs.
14938 no_undefined_flag='${wl}-z,text'
14939 allow_undefined_flag='${wl}-z,nodefs'
14940 archive_cmds_need_lc=no
14941 hardcode_shlibpath_var=no
14942 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14943 hardcode_libdir_separator=':'
14944 link_all_deplibs=yes
14945 export_dynamic_flag_spec='${wl}-Bexport'
14946 runpath_var='LD_RUN_PATH'
14947
14948 if test "$GCC" = yes; then
14949 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14950 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14951 else
14952 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14953 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14954 fi
14955 ;;
14956
14957 uts4*)
14958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14959 hardcode_libdir_flag_spec='-L$libdir'
14960 hardcode_shlibpath_var=no
14961 ;;
14962
14963 *)
14964 ld_shlibs=no
14965 ;;
14966 esac
14967
14968 if test x$host_vendor = xsni; then
14969 case $host in
14970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14971 export_dynamic_flag_spec='${wl}-Blargedynsym'
14972 ;;
14973 esac
14974 fi
14975 fi
14976
14977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14978$as_echo "$ld_shlibs" >&6; }
14979test "$ld_shlibs" = no && can_build_shared=no
14980
14981with_gnu_ld=$with_gnu_ld
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997#
14998# Do we need to explicitly link libc?
14999#
15000case "x$archive_cmds_need_lc" in
15001x|xyes)
15002 # Assume -lc should be added
15003 archive_cmds_need_lc=yes
15004
15005 if test "$enable_shared" = yes && test "$GCC" = yes; then
15006 case $archive_cmds in
15007 *'~'*)
15008 # FIXME: we may have to deal with multi-command sequences.
15009 ;;
15010 '$CC '*)
15011 # Test whether the compiler implicitly links with -lc since on some
15012 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15013 # to ld, don't add -lc before -lgcc.
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15015$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015016if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015017 $as_echo_n "(cached) " >&6
15018else
15019 $RM conftest*
15020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015021
cristy0c60a692010-11-04 01:09:47 +000015022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015023 (eval $ac_compile) 2>&5
15024 ac_status=$?
15025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15026 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015027 soname=conftest
15028 lib=conftest
15029 libobjs=conftest.$ac_objext
15030 deplibs=
15031 wl=$lt_prog_compiler_wl
15032 pic_flag=$lt_prog_compiler_pic
15033 compiler_flags=-v
15034 linker_flags=-v
15035 verstring=
15036 output_objdir=.
15037 libname=conftest
15038 lt_save_allow_undefined_flag=$allow_undefined_flag
15039 allow_undefined_flag=
15040 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 +000015041 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15042 ac_status=$?
15043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15044 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015045 then
15046 lt_cv_archive_cmds_need_lc=no
15047 else
15048 lt_cv_archive_cmds_need_lc=yes
15049 fi
15050 allow_undefined_flag=$lt_save_allow_undefined_flag
15051 else
15052 cat conftest.err 1>&5
15053 fi
15054 $RM conftest*
15055
15056fi
15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15058$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15059 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015060 ;;
15061 esac
15062 fi
15063 ;;
15064esac
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15223$as_echo_n "checking dynamic linker characteristics... " >&6; }
15224
15225if test "$GCC" = yes; then
15226 case $host_os in
15227 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15228 *) lt_awk_arg="/^libraries:/" ;;
15229 esac
cristy0c60a692010-11-04 01:09:47 +000015230 case $host_os in
15231 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15232 *) lt_sed_strip_eq="s,=/,/,g" ;;
15233 esac
15234 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15235 case $lt_search_path_spec in
15236 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015237 # if the path contains ";" then we assume it to be the separator
15238 # otherwise default to the standard path separator (i.e. ":") - it is
15239 # assumed that no part of a normal pathname contains ";" but that should
15240 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015241 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15242 ;;
15243 *)
15244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15245 ;;
15246 esac
cristy73bd4a52010-10-05 11:24:23 +000015247 # Ok, now we have the path, separated by spaces, we can step through it
15248 # and add multilib dir if necessary.
15249 lt_tmp_lt_search_path_spec=
15250 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15251 for lt_sys_path in $lt_search_path_spec; do
15252 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15254 else
15255 test -d "$lt_sys_path" && \
15256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15257 fi
15258 done
cristy0c60a692010-11-04 01:09:47 +000015259 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015260BEGIN {RS=" "; FS="/|\n";} {
15261 lt_foo="";
15262 lt_count=0;
15263 for (lt_i = NF; lt_i > 0; lt_i--) {
15264 if ($lt_i != "" && $lt_i != ".") {
15265 if ($lt_i == "..") {
15266 lt_count++;
15267 } else {
15268 if (lt_count == 0) {
15269 lt_foo="/" $lt_i lt_foo;
15270 } else {
15271 lt_count--;
15272 }
15273 }
15274 }
15275 }
15276 if (lt_foo != "") { lt_freq[lt_foo]++; }
15277 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15278}'`
cristy0c60a692010-11-04 01:09:47 +000015279 # AWK program above erroneously prepends '/' to C:/dos/paths
15280 # for these hosts.
15281 case $host_os in
15282 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15283 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15284 esac
15285 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015286else
15287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15288fi
15289library_names_spec=
15290libname_spec='lib$name'
15291soname_spec=
15292shrext_cmds=".so"
15293postinstall_cmds=
15294postuninstall_cmds=
15295finish_cmds=
15296finish_eval=
15297shlibpath_var=
15298shlibpath_overrides_runpath=unknown
15299version_type=none
15300dynamic_linker="$host_os ld.so"
15301sys_lib_dlsearch_path_spec="/lib /usr/lib"
15302need_lib_prefix=unknown
15303hardcode_into_libs=no
15304
15305# when you set need_version to no, make sure it does not cause -set_version
15306# flags to be left without arguments
15307need_version=unknown
15308
15309case $host_os in
15310aix3*)
15311 version_type=linux
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15313 shlibpath_var=LIBPATH
15314
15315 # AIX 3 has no versioning support, so we append a major version to the name.
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 ;;
15318
15319aix[4-9]*)
15320 version_type=linux
15321 need_lib_prefix=no
15322 need_version=no
15323 hardcode_into_libs=yes
15324 if test "$host_cpu" = ia64; then
15325 # AIX 5 supports IA64
15326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 else
15329 # With GCC up to 2.95.x, collect2 would create an import file
15330 # for dependence libraries. The import file would start with
15331 # the line `#! .'. This would cause the generated library to
15332 # depend on `.', always an invalid library. This was fixed in
15333 # development snapshots of GCC prior to 3.0.
15334 case $host_os in
15335 aix4 | aix4.[01] | aix4.[01].*)
15336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15337 echo ' yes '
15338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15339 :
15340 else
15341 can_build_shared=no
15342 fi
15343 ;;
15344 esac
15345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15346 # soname into executable. Probably we can add versioning support to
15347 # collect2, so additional links can be useful in future.
15348 if test "$aix_use_runtimelinking" = yes; then
15349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15350 # instead of lib<name>.a to let people know that these are not
15351 # typical AIX shared libraries.
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353 else
15354 # We preserve .a as extension for shared libraries through AIX4.2
15355 # and later when we are not doing run time linking.
15356 library_names_spec='${libname}${release}.a $libname.a'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 fi
15359 shlibpath_var=LIBPATH
15360 fi
15361 ;;
15362
15363amigaos*)
15364 case $host_cpu in
15365 powerpc)
15366 # Since July 2007 AmigaOS4 officially supports .so libraries.
15367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369 ;;
15370 m68k)
15371 library_names_spec='$libname.ixlibrary $libname.a'
15372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015373 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 +000015374 ;;
15375 esac
15376 ;;
15377
15378beos*)
15379 library_names_spec='${libname}${shared_ext}'
15380 dynamic_linker="$host_os ld.so"
15381 shlibpath_var=LIBRARY_PATH
15382 ;;
15383
15384bsdi[45]*)
15385 version_type=linux
15386 need_version=no
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 soname_spec='${libname}${release}${shared_ext}$major'
15389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15390 shlibpath_var=LD_LIBRARY_PATH
15391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15393 # the default ld.so.conf also contains /usr/contrib/lib and
15394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15395 # libtool to hard-code these into programs
15396 ;;
15397
15398cygwin* | mingw* | pw32* | cegcc*)
15399 version_type=windows
15400 shrext_cmds=".dll"
15401 need_version=no
15402 need_lib_prefix=no
15403
cristyda16f162011-02-19 23:52:17 +000015404 case $GCC,$cc_basename in
15405 yes,*)
15406 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015407 library_names_spec='$libname.dll.a'
15408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409 postinstall_cmds='base_file=`basename \${file}`~
15410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15411 dldir=$destdir/`dirname \$dlpath`~
15412 test -d \$dldir || mkdir -p \$dldir~
15413 $install_prog $dir/$dlname \$dldir/$dlname~
15414 chmod a+x \$dldir/$dlname~
15415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15417 fi'
15418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15419 dlpath=$dir/\$dldll~
15420 $RM \$dlpath'
15421 shlibpath_overrides_runpath=yes
15422
15423 case $host_os in
15424 cygwin*)
15425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015427
15428 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015429 ;;
15430 mingw* | cegcc*)
15431 # MinGW DLLs use traditional 'lib' prefix
15432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015433 ;;
15434 pw32*)
15435 # pw32 DLLs use 'pw' prefix rather than 'lib'
15436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15437 ;;
15438 esac
cristyda16f162011-02-19 23:52:17 +000015439 dynamic_linker='Win32 ld.exe'
15440 ;;
15441
15442 *,cl*)
15443 # Native MSVC
15444 libname_spec='$name'
15445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15446 library_names_spec='${libname}.dll.lib'
15447
15448 case $build_os in
15449 mingw*)
15450 sys_lib_search_path_spec=
15451 lt_save_ifs=$IFS
15452 IFS=';'
15453 for lt_path in $LIB
15454 do
15455 IFS=$lt_save_ifs
15456 # Let DOS variable expansion print the short 8.3 style file name.
15457 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15458 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15459 done
15460 IFS=$lt_save_ifs
15461 # Convert to MSYS style.
15462 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15463 ;;
15464 cygwin*)
15465 # Convert to unix form, then to dos form, then back to unix form
15466 # but this time dos style (no spaces!) so that the unix form looks
15467 # like /cygdrive/c/PROGRA~1:/cygdr...
15468 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15469 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15470 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15471 ;;
15472 *)
15473 sys_lib_search_path_spec="$LIB"
15474 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15475 # It is most probably a Windows format PATH.
15476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15477 else
15478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15479 fi
15480 # FIXME: find the short name or the path components, as spaces are
15481 # common. (e.g. "Program Files" -> "PROGRA~1")
15482 ;;
15483 esac
15484
15485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15486 postinstall_cmds='base_file=`basename \${file}`~
15487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15488 dldir=$destdir/`dirname \$dlpath`~
15489 test -d \$dldir || mkdir -p \$dldir~
15490 $install_prog $dir/$dlname \$dldir/$dlname'
15491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15492 dlpath=$dir/\$dldll~
15493 $RM \$dlpath'
15494 shlibpath_overrides_runpath=yes
15495 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015496 ;;
15497
15498 *)
cristyda16f162011-02-19 23:52:17 +000015499 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015501 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015502 ;;
15503 esac
cristy73bd4a52010-10-05 11:24:23 +000015504 # FIXME: first we should search . and the directory the executable is in
15505 shlibpath_var=PATH
15506 ;;
15507
15508darwin* | rhapsody*)
15509 dynamic_linker="$host_os dyld"
15510 version_type=darwin
15511 need_lib_prefix=no
15512 need_version=no
15513 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15514 soname_spec='${libname}${release}${major}$shared_ext'
15515 shlibpath_overrides_runpath=yes
15516 shlibpath_var=DYLD_LIBRARY_PATH
15517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15518
15519 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15521 ;;
15522
15523dgux*)
15524 version_type=linux
15525 need_lib_prefix=no
15526 need_version=no
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 ;;
15531
15532freebsd1*)
15533 dynamic_linker=no
15534 ;;
15535
15536freebsd* | dragonfly*)
15537 # DragonFly does not have aout. When/if they implement a new
15538 # versioning mechanism, adjust this.
15539 if test -x /usr/bin/objformat; then
15540 objformat=`/usr/bin/objformat`
15541 else
15542 case $host_os in
15543 freebsd[123]*) objformat=aout ;;
15544 *) objformat=elf ;;
15545 esac
15546 fi
15547 version_type=freebsd-$objformat
15548 case $version_type in
15549 freebsd-elf*)
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15551 need_version=no
15552 need_lib_prefix=no
15553 ;;
15554 freebsd-*)
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15556 need_version=yes
15557 ;;
15558 esac
15559 shlibpath_var=LD_LIBRARY_PATH
15560 case $host_os in
15561 freebsd2*)
15562 shlibpath_overrides_runpath=yes
15563 ;;
15564 freebsd3.[01]* | freebsdelf3.[01]*)
15565 shlibpath_overrides_runpath=yes
15566 hardcode_into_libs=yes
15567 ;;
15568 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15569 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15570 shlibpath_overrides_runpath=no
15571 hardcode_into_libs=yes
15572 ;;
15573 *) # from 4.6 on, and DragonFly
15574 shlibpath_overrides_runpath=yes
15575 hardcode_into_libs=yes
15576 ;;
15577 esac
15578 ;;
15579
15580gnu*)
15581 version_type=linux
15582 need_lib_prefix=no
15583 need_version=no
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 hardcode_into_libs=yes
15588 ;;
15589
cristy0c60a692010-11-04 01:09:47 +000015590haiku*)
15591 version_type=linux
15592 need_lib_prefix=no
15593 need_version=no
15594 dynamic_linker="$host_os runtime_loader"
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15596 soname_spec='${libname}${release}${shared_ext}$major'
15597 shlibpath_var=LIBRARY_PATH
15598 shlibpath_overrides_runpath=yes
15599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15600 hardcode_into_libs=yes
15601 ;;
15602
cristy73bd4a52010-10-05 11:24:23 +000015603hpux9* | hpux10* | hpux11*)
15604 # Give a soname corresponding to the major version so that dld.sl refuses to
15605 # link against other versions.
15606 version_type=sunos
15607 need_lib_prefix=no
15608 need_version=no
15609 case $host_cpu in
15610 ia64*)
15611 shrext_cmds='.so'
15612 hardcode_into_libs=yes
15613 dynamic_linker="$host_os dld.so"
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15620 else
15621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15622 fi
15623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15624 ;;
15625 hppa*64*)
15626 shrext_cmds='.sl'
15627 hardcode_into_libs=yes
15628 dynamic_linker="$host_os dld.sl"
15629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15635 ;;
15636 *)
15637 shrext_cmds='.sl'
15638 dynamic_linker="$host_os dld.sl"
15639 shlibpath_var=SHLIB_PATH
15640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 ;;
15644 esac
cristy0c60a692010-11-04 01:09:47 +000015645 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015646 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015647 # or fails outright, so override atomically:
15648 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015649 ;;
15650
15651interix[3-9]*)
15652 version_type=linux
15653 need_lib_prefix=no
15654 need_version=no
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=no
15660 hardcode_into_libs=yes
15661 ;;
15662
15663irix5* | irix6* | nonstopux*)
15664 case $host_os in
15665 nonstopux*) version_type=nonstopux ;;
15666 *)
15667 if test "$lt_cv_prog_gnu_ld" = yes; then
15668 version_type=linux
15669 else
15670 version_type=irix
15671 fi ;;
15672 esac
15673 need_lib_prefix=no
15674 need_version=no
15675 soname_spec='${libname}${release}${shared_ext}$major'
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15677 case $host_os in
15678 irix5* | nonstopux*)
15679 libsuff= shlibsuff=
15680 ;;
15681 *)
15682 case $LD in # libtool.m4 will add one of these switches to LD
15683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15684 libsuff= shlibsuff= libmagic=32-bit;;
15685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15686 libsuff=32 shlibsuff=N32 libmagic=N32;;
15687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15689 *) libsuff= shlibsuff= libmagic=never-match;;
15690 esac
15691 ;;
15692 esac
15693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15694 shlibpath_overrides_runpath=no
15695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15697 hardcode_into_libs=yes
15698 ;;
15699
15700# No shared lib support for Linux oldld, aout, or coff.
15701linux*oldld* | linux*aout* | linux*coff*)
15702 dynamic_linker=no
15703 ;;
15704
15705# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015706linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015707 version_type=linux
15708 need_lib_prefix=no
15709 need_version=no
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711 soname_spec='${libname}${release}${shared_ext}$major'
15712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015715
cristy73bd4a52010-10-05 11:24:23 +000015716 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015717 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015718 $as_echo_n "(cached) " >&6
15719else
15720 lt_cv_shlibpath_overrides_runpath=no
15721 save_LDFLAGS=$LDFLAGS
15722 save_libdir=$libdir
15723 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15724 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015726/* end confdefs.h. */
15727
15728int
15729main ()
15730{
15731
15732 ;
15733 return 0;
15734}
15735_ACEOF
15736if ac_fn_c_try_link "$LINENO"; then :
15737 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015738 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015739fi
15740fi
15741rm -f core conftest.err conftest.$ac_objext \
15742 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015743 LDFLAGS=$save_LDFLAGS
15744 libdir=$save_libdir
15745
15746fi
15747
15748 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015749
15750 # This implies no fast_install, which is unacceptable.
15751 # Some rework will be needed to allow for fast_install
15752 # before this can be enabled.
15753 hardcode_into_libs=yes
15754
15755 # Add ABI-specific directories to the system library path.
15756 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15757
15758 # Append ld.so.conf contents to the search path
15759 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015760 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 +000015761 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015762
cristy73bd4a52010-10-05 11:24:23 +000015763 fi
15764
15765 # We used to test for /lib/ld.so.1 and disable shared libraries on
15766 # powerpc, because MkLinux only supported shared libraries with the
15767 # GNU dynamic linker. Since this was broken with cross compilers,
15768 # most powerpc-linux boxes support dynamic linking these days and
15769 # people can always --disable-shared, the test was removed, and we
15770 # assume the GNU/Linux dynamic linker is in use.
15771 dynamic_linker='GNU/Linux ld.so'
15772 ;;
15773
15774netbsd*)
15775 version_type=sunos
15776 need_lib_prefix=no
15777 need_version=no
15778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15781 dynamic_linker='NetBSD (a.out) ld.so'
15782 else
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 dynamic_linker='NetBSD ld.elf_so'
15786 fi
15787 shlibpath_var=LD_LIBRARY_PATH
15788 shlibpath_overrides_runpath=yes
15789 hardcode_into_libs=yes
15790 ;;
15791
15792newsos6)
15793 version_type=linux
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 shlibpath_overrides_runpath=yes
15797 ;;
15798
15799*nto* | *qnx*)
15800 version_type=qnx
15801 need_lib_prefix=no
15802 need_version=no
15803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15804 soname_spec='${libname}${release}${shared_ext}$major'
15805 shlibpath_var=LD_LIBRARY_PATH
15806 shlibpath_overrides_runpath=no
15807 hardcode_into_libs=yes
15808 dynamic_linker='ldqnx.so'
15809 ;;
15810
15811openbsd*)
15812 version_type=sunos
15813 sys_lib_dlsearch_path_spec="/usr/lib"
15814 need_lib_prefix=no
15815 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15816 case $host_os in
15817 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15818 *) need_version=no ;;
15819 esac
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15822 shlibpath_var=LD_LIBRARY_PATH
15823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15824 case $host_os in
15825 openbsd2.[89] | openbsd2.[89].*)
15826 shlibpath_overrides_runpath=no
15827 ;;
15828 *)
15829 shlibpath_overrides_runpath=yes
15830 ;;
15831 esac
15832 else
15833 shlibpath_overrides_runpath=yes
15834 fi
15835 ;;
15836
15837os2*)
15838 libname_spec='$name'
15839 shrext_cmds=".dll"
15840 need_lib_prefix=no
15841 library_names_spec='$libname${shared_ext} $libname.a'
15842 dynamic_linker='OS/2 ld.exe'
15843 shlibpath_var=LIBPATH
15844 ;;
15845
15846osf3* | osf4* | osf5*)
15847 version_type=osf
15848 need_lib_prefix=no
15849 need_version=no
15850 soname_spec='${libname}${release}${shared_ext}$major'
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852 shlibpath_var=LD_LIBRARY_PATH
15853 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15854 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15855 ;;
15856
15857rdos*)
15858 dynamic_linker=no
15859 ;;
15860
15861solaris*)
15862 version_type=linux
15863 need_lib_prefix=no
15864 need_version=no
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15866 soname_spec='${libname}${release}${shared_ext}$major'
15867 shlibpath_var=LD_LIBRARY_PATH
15868 shlibpath_overrides_runpath=yes
15869 hardcode_into_libs=yes
15870 # ldd complains unless libraries are executable
15871 postinstall_cmds='chmod +x $lib'
15872 ;;
15873
15874sunos4*)
15875 version_type=sunos
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 shlibpath_overrides_runpath=yes
15880 if test "$with_gnu_ld" = yes; then
15881 need_lib_prefix=no
15882 fi
15883 need_version=yes
15884 ;;
15885
15886sysv4 | sysv4.3*)
15887 version_type=linux
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 shlibpath_var=LD_LIBRARY_PATH
15891 case $host_vendor in
15892 sni)
15893 shlibpath_overrides_runpath=no
15894 need_lib_prefix=no
15895 runpath_var=LD_RUN_PATH
15896 ;;
15897 siemens)
15898 need_lib_prefix=no
15899 ;;
15900 motorola)
15901 need_lib_prefix=no
15902 need_version=no
15903 shlibpath_overrides_runpath=no
15904 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15905 ;;
15906 esac
15907 ;;
15908
15909sysv4*MP*)
15910 if test -d /usr/nec ;then
15911 version_type=linux
15912 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15913 soname_spec='$libname${shared_ext}.$major'
15914 shlibpath_var=LD_LIBRARY_PATH
15915 fi
15916 ;;
15917
15918sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15919 version_type=freebsd-elf
15920 need_lib_prefix=no
15921 need_version=no
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 shlibpath_overrides_runpath=yes
15926 hardcode_into_libs=yes
15927 if test "$with_gnu_ld" = yes; then
15928 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15929 else
15930 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15931 case $host_os in
15932 sco3.2v5*)
15933 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15934 ;;
15935 esac
15936 fi
15937 sys_lib_dlsearch_path_spec='/usr/lib'
15938 ;;
15939
15940tpf*)
15941 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15942 version_type=linux
15943 need_lib_prefix=no
15944 need_version=no
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 shlibpath_overrides_runpath=no
15948 hardcode_into_libs=yes
15949 ;;
15950
15951uts4*)
15952 version_type=linux
15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15954 soname_spec='${libname}${release}${shared_ext}$major'
15955 shlibpath_var=LD_LIBRARY_PATH
15956 ;;
15957
15958*)
15959 dynamic_linker=no
15960 ;;
15961esac
15962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15963$as_echo "$dynamic_linker" >&6; }
15964test "$dynamic_linker" = no && can_build_shared=no
15965
15966variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15967if test "$GCC" = yes; then
15968 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15969fi
15970
15971if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15972 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15973fi
15974if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15975 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15976fi
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
cristy0c60a692010-11-04 01:09:47 +000016064
16065
16066
16067
16068
cristy73bd4a52010-10-05 11:24:23 +000016069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16070$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16071hardcode_action=
16072if test -n "$hardcode_libdir_flag_spec" ||
16073 test -n "$runpath_var" ||
16074 test "X$hardcode_automatic" = "Xyes" ; then
16075
16076 # We can hardcode non-existent directories.
16077 if test "$hardcode_direct" != no &&
16078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16079 # have to relink, otherwise we might link with an installed library
16080 # when we should be linking with a yet-to-be-installed one
16081 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16082 test "$hardcode_minus_L" != no; then
16083 # Linking always hardcodes the temporary library directory.
16084 hardcode_action=relink
16085 else
16086 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16087 hardcode_action=immediate
16088 fi
16089else
16090 # We cannot hardcode anything, or else we can only hardcode existing
16091 # directories.
16092 hardcode_action=unsupported
16093fi
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16095$as_echo "$hardcode_action" >&6; }
16096
16097if test "$hardcode_action" = relink ||
16098 test "$inherit_rpath" = yes; then
16099 # Fast installation is not supported
16100 enable_fast_install=no
16101elif test "$shlibpath_overrides_runpath" = yes ||
16102 test "$enable_shared" = no; then
16103 # Fast installation is not necessary
16104 enable_fast_install=needless
16105fi
16106
16107
16108
16109
16110
16111
16112 if test "x$enable_dlopen" != xyes; then
16113 enable_dlopen=unknown
16114 enable_dlopen_self=unknown
16115 enable_dlopen_self_static=unknown
16116else
16117 lt_cv_dlopen=no
16118 lt_cv_dlopen_libs=
16119
16120 case $host_os in
16121 beos*)
16122 lt_cv_dlopen="load_add_on"
16123 lt_cv_dlopen_libs=
16124 lt_cv_dlopen_self=yes
16125 ;;
16126
16127 mingw* | pw32* | cegcc*)
16128 lt_cv_dlopen="LoadLibrary"
16129 lt_cv_dlopen_libs=
16130 ;;
16131
16132 cygwin*)
16133 lt_cv_dlopen="dlopen"
16134 lt_cv_dlopen_libs=
16135 ;;
16136
16137 darwin*)
16138 # if libdl is installed we need to link against it
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16140$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016141if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016142 $as_echo_n "(cached) " >&6
16143else
16144 ac_check_lib_save_LIBS=$LIBS
16145LIBS="-ldl $LIBS"
16146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147/* end confdefs.h. */
16148
16149/* Override any GCC internal prototype to avoid an error.
16150 Use char because int might match the return type of a GCC
16151 builtin and then its argument prototype would still apply. */
16152#ifdef __cplusplus
16153extern "C"
16154#endif
16155char dlopen ();
16156int
16157main ()
16158{
16159return dlopen ();
16160 ;
16161 return 0;
16162}
16163_ACEOF
16164if ac_fn_c_try_link "$LINENO"; then :
16165 ac_cv_lib_dl_dlopen=yes
16166else
16167 ac_cv_lib_dl_dlopen=no
16168fi
16169rm -f core conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16171LIBS=$ac_check_lib_save_LIBS
16172fi
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16174$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016175if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16177else
16178
16179 lt_cv_dlopen="dyld"
16180 lt_cv_dlopen_libs=
16181 lt_cv_dlopen_self=yes
16182
16183fi
16184
16185 ;;
16186
16187 *)
16188 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016189if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016190 lt_cv_dlopen="shl_load"
16191else
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16193$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016194if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016195 $as_echo_n "(cached) " >&6
16196else
16197 ac_check_lib_save_LIBS=$LIBS
16198LIBS="-ldld $LIBS"
16199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h. */
16201
16202/* Override any GCC internal prototype to avoid an error.
16203 Use char because int might match the return type of a GCC
16204 builtin and then its argument prototype would still apply. */
16205#ifdef __cplusplus
16206extern "C"
16207#endif
16208char shl_load ();
16209int
16210main ()
16211{
16212return shl_load ();
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217if ac_fn_c_try_link "$LINENO"; then :
16218 ac_cv_lib_dld_shl_load=yes
16219else
16220 ac_cv_lib_dld_shl_load=no
16221fi
16222rm -f core conftest.err conftest.$ac_objext \
16223 conftest$ac_exeext conftest.$ac_ext
16224LIBS=$ac_check_lib_save_LIBS
16225fi
16226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16227$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016228if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016229 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16230else
16231 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016232if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016233 lt_cv_dlopen="dlopen"
16234else
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16236$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016237if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016238 $as_echo_n "(cached) " >&6
16239else
16240 ac_check_lib_save_LIBS=$LIBS
16241LIBS="-ldl $LIBS"
16242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243/* end confdefs.h. */
16244
16245/* Override any GCC internal prototype to avoid an error.
16246 Use char because int might match the return type of a GCC
16247 builtin and then its argument prototype would still apply. */
16248#ifdef __cplusplus
16249extern "C"
16250#endif
16251char dlopen ();
16252int
16253main ()
16254{
16255return dlopen ();
16256 ;
16257 return 0;
16258}
16259_ACEOF
16260if ac_fn_c_try_link "$LINENO"; then :
16261 ac_cv_lib_dl_dlopen=yes
16262else
16263 ac_cv_lib_dl_dlopen=no
16264fi
16265rm -f core conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16267LIBS=$ac_check_lib_save_LIBS
16268fi
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16270$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016271if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16273else
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16275$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016276if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016277 $as_echo_n "(cached) " >&6
16278else
16279 ac_check_lib_save_LIBS=$LIBS
16280LIBS="-lsvld $LIBS"
16281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282/* end confdefs.h. */
16283
16284/* Override any GCC internal prototype to avoid an error.
16285 Use char because int might match the return type of a GCC
16286 builtin and then its argument prototype would still apply. */
16287#ifdef __cplusplus
16288extern "C"
16289#endif
16290char dlopen ();
16291int
16292main ()
16293{
16294return dlopen ();
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299if ac_fn_c_try_link "$LINENO"; then :
16300 ac_cv_lib_svld_dlopen=yes
16301else
16302 ac_cv_lib_svld_dlopen=no
16303fi
16304rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16306LIBS=$ac_check_lib_save_LIBS
16307fi
16308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16309$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016310if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16312else
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16314$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016315if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016316 $as_echo_n "(cached) " >&6
16317else
16318 ac_check_lib_save_LIBS=$LIBS
16319LIBS="-ldld $LIBS"
16320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321/* end confdefs.h. */
16322
16323/* Override any GCC internal prototype to avoid an error.
16324 Use char because int might match the return type of a GCC
16325 builtin and then its argument prototype would still apply. */
16326#ifdef __cplusplus
16327extern "C"
16328#endif
16329char dld_link ();
16330int
16331main ()
16332{
16333return dld_link ();
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338if ac_fn_c_try_link "$LINENO"; then :
16339 ac_cv_lib_dld_dld_link=yes
16340else
16341 ac_cv_lib_dld_dld_link=no
16342fi
16343rm -f core conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
16345LIBS=$ac_check_lib_save_LIBS
16346fi
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16348$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016349if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016350 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16351fi
16352
16353
16354fi
16355
16356
16357fi
16358
16359
16360fi
16361
16362
16363fi
16364
16365
16366fi
16367
16368 ;;
16369 esac
16370
16371 if test "x$lt_cv_dlopen" != xno; then
16372 enable_dlopen=yes
16373 else
16374 enable_dlopen=no
16375 fi
16376
16377 case $lt_cv_dlopen in
16378 dlopen)
16379 save_CPPFLAGS="$CPPFLAGS"
16380 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16381
16382 save_LDFLAGS="$LDFLAGS"
16383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16384
16385 save_LIBS="$LIBS"
16386 LIBS="$lt_cv_dlopen_libs $LIBS"
16387
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16389$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016390if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016391 $as_echo_n "(cached) " >&6
16392else
16393 if test "$cross_compiling" = yes; then :
16394 lt_cv_dlopen_self=cross
16395else
16396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16397 lt_status=$lt_dlunknown
16398 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016399#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016400#include "confdefs.h"
16401
16402#if HAVE_DLFCN_H
16403#include <dlfcn.h>
16404#endif
16405
16406#include <stdio.h>
16407
16408#ifdef RTLD_GLOBAL
16409# define LT_DLGLOBAL RTLD_GLOBAL
16410#else
16411# ifdef DL_GLOBAL
16412# define LT_DLGLOBAL DL_GLOBAL
16413# else
16414# define LT_DLGLOBAL 0
16415# endif
16416#endif
16417
16418/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16419 find out it does not work in some platform. */
16420#ifndef LT_DLLAZY_OR_NOW
16421# ifdef RTLD_LAZY
16422# define LT_DLLAZY_OR_NOW RTLD_LAZY
16423# else
16424# ifdef DL_LAZY
16425# define LT_DLLAZY_OR_NOW DL_LAZY
16426# else
16427# ifdef RTLD_NOW
16428# define LT_DLLAZY_OR_NOW RTLD_NOW
16429# else
16430# ifdef DL_NOW
16431# define LT_DLLAZY_OR_NOW DL_NOW
16432# else
16433# define LT_DLLAZY_OR_NOW 0
16434# endif
16435# endif
16436# endif
16437# endif
16438#endif
16439
cristy0c60a692010-11-04 01:09:47 +000016440/* When -fvisbility=hidden is used, assume the code has been annotated
16441 correspondingly for the symbols needed. */
16442#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016443int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016444#endif
16445
cristyda16f162011-02-19 23:52:17 +000016446int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016447int main ()
16448{
16449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16450 int status = $lt_dlunknown;
16451
16452 if (self)
16453 {
16454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016455 else
16456 {
16457 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16458 else puts (dlerror ());
16459 }
cristy73bd4a52010-10-05 11:24:23 +000016460 /* dlclose (self); */
16461 }
16462 else
16463 puts (dlerror ());
16464
16465 return status;
16466}
16467_LT_EOF
16468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16469 (eval $ac_link) 2>&5
16470 ac_status=$?
16471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16473 (./conftest; exit; ) >&5 2>/dev/null
16474 lt_status=$?
16475 case x$lt_status in
16476 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16477 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16478 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16479 esac
16480 else :
16481 # compilation failed
16482 lt_cv_dlopen_self=no
16483 fi
16484fi
16485rm -fr conftest*
16486
16487
16488fi
16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16490$as_echo "$lt_cv_dlopen_self" >&6; }
16491
16492 if test "x$lt_cv_dlopen_self" = xyes; then
16493 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16495$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016496if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016497 $as_echo_n "(cached) " >&6
16498else
16499 if test "$cross_compiling" = yes; then :
16500 lt_cv_dlopen_self_static=cross
16501else
16502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16503 lt_status=$lt_dlunknown
16504 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016505#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016506#include "confdefs.h"
16507
16508#if HAVE_DLFCN_H
16509#include <dlfcn.h>
16510#endif
16511
16512#include <stdio.h>
16513
16514#ifdef RTLD_GLOBAL
16515# define LT_DLGLOBAL RTLD_GLOBAL
16516#else
16517# ifdef DL_GLOBAL
16518# define LT_DLGLOBAL DL_GLOBAL
16519# else
16520# define LT_DLGLOBAL 0
16521# endif
16522#endif
16523
16524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16525 find out it does not work in some platform. */
16526#ifndef LT_DLLAZY_OR_NOW
16527# ifdef RTLD_LAZY
16528# define LT_DLLAZY_OR_NOW RTLD_LAZY
16529# else
16530# ifdef DL_LAZY
16531# define LT_DLLAZY_OR_NOW DL_LAZY
16532# else
16533# ifdef RTLD_NOW
16534# define LT_DLLAZY_OR_NOW RTLD_NOW
16535# else
16536# ifdef DL_NOW
16537# define LT_DLLAZY_OR_NOW DL_NOW
16538# else
16539# define LT_DLLAZY_OR_NOW 0
16540# endif
16541# endif
16542# endif
16543# endif
16544#endif
16545
cristy0c60a692010-11-04 01:09:47 +000016546/* When -fvisbility=hidden is used, assume the code has been annotated
16547 correspondingly for the symbols needed. */
16548#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016549int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016550#endif
16551
cristyda16f162011-02-19 23:52:17 +000016552int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016553int main ()
16554{
16555 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16556 int status = $lt_dlunknown;
16557
16558 if (self)
16559 {
16560 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016561 else
16562 {
16563 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16564 else puts (dlerror ());
16565 }
cristy73bd4a52010-10-05 11:24:23 +000016566 /* dlclose (self); */
16567 }
16568 else
16569 puts (dlerror ());
16570
16571 return status;
16572}
16573_LT_EOF
16574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16575 (eval $ac_link) 2>&5
16576 ac_status=$?
16577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16578 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16579 (./conftest; exit; ) >&5 2>/dev/null
16580 lt_status=$?
16581 case x$lt_status in
16582 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16583 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16584 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16585 esac
16586 else :
16587 # compilation failed
16588 lt_cv_dlopen_self_static=no
16589 fi
16590fi
16591rm -fr conftest*
16592
16593
16594fi
16595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16596$as_echo "$lt_cv_dlopen_self_static" >&6; }
16597 fi
16598
16599 CPPFLAGS="$save_CPPFLAGS"
16600 LDFLAGS="$save_LDFLAGS"
16601 LIBS="$save_LIBS"
16602 ;;
16603 esac
16604
16605 case $lt_cv_dlopen_self in
16606 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16607 *) enable_dlopen_self=unknown ;;
16608 esac
16609
16610 case $lt_cv_dlopen_self_static in
16611 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16612 *) enable_dlopen_self_static=unknown ;;
16613 esac
16614fi
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632striplib=
16633old_striplib=
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16635$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16636if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16637 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16638 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16640$as_echo "yes" >&6; }
16641else
16642# FIXME - insert some real tests, host_os isn't really good enough
16643 case $host_os in
16644 darwin*)
16645 if test -n "$STRIP" ; then
16646 striplib="$STRIP -x"
16647 old_striplib="$STRIP -S"
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16649$as_echo "yes" >&6; }
16650 else
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16652$as_echo "no" >&6; }
16653 fi
16654 ;;
16655 *)
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657$as_echo "no" >&6; }
16658 ;;
16659 esac
16660fi
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673 # Report which library types will actually be built
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16675$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16677$as_echo "$can_build_shared" >&6; }
16678
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16680$as_echo_n "checking whether to build shared libraries... " >&6; }
16681 test "$can_build_shared" = "no" && enable_shared=no
16682
16683 # On AIX, shared libraries and static libraries use the same namespace, and
16684 # are all built from PIC.
16685 case $host_os in
16686 aix3*)
16687 test "$enable_shared" = yes && enable_static=no
16688 if test -n "$RANLIB"; then
16689 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16690 postinstall_cmds='$RANLIB $lib'
16691 fi
16692 ;;
16693
16694 aix[4-9]*)
16695 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16696 test "$enable_shared" = yes && enable_static=no
16697 fi
16698 ;;
16699 esac
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16701$as_echo "$enable_shared" >&6; }
16702
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16704$as_echo_n "checking whether to build static libraries... " >&6; }
16705 # Make sure either enable_shared or enable_static is yes.
16706 test "$enable_shared" = yes || enable_static=yes
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16708$as_echo "$enable_static" >&6; }
16709
16710
16711
16712
16713fi
16714ac_ext=c
16715ac_cpp='$CPP $CPPFLAGS'
16716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16718ac_compiler_gnu=$ac_cv_c_compiler_gnu
16719
16720CC="$lt_save_CC"
16721
cristy0c60a692010-11-04 01:09:47 +000016722 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16723 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16724 (test "X$CXX" != "Xg++"))) ; then
16725 ac_ext=cpp
16726ac_cpp='$CXXCPP $CPPFLAGS'
16727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16731$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16732if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016733 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016734 $as_echo_n "(cached) " >&6
16735else
16736 # Double quotes because CXXCPP needs to be expanded
16737 for CXXCPP in "$CXX -E" "/lib/cpp"
16738 do
16739 ac_preproc_ok=false
16740for ac_cxx_preproc_warn_flag in '' yes
16741do
16742 # Use a header file that comes with gcc, so configuring glibc
16743 # with a fresh cross-compiler works.
16744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745 # <limits.h> exists even on freestanding compilers.
16746 # On the NeXT, cc -E runs the code through the compiler's parser,
16747 # not just through cpp. "Syntax error" is here to catch this case.
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749/* end confdefs.h. */
16750#ifdef __STDC__
16751# include <limits.h>
16752#else
16753# include <assert.h>
16754#endif
16755 Syntax error
16756_ACEOF
16757if ac_fn_cxx_try_cpp "$LINENO"; then :
16758
16759else
16760 # Broken: fails on valid input.
16761continue
16762fi
cristyda16f162011-02-19 23:52:17 +000016763rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016764
16765 # OK, works on sane cases. Now check whether nonexistent headers
16766 # can be detected and how.
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768/* end confdefs.h. */
16769#include <ac_nonexistent.h>
16770_ACEOF
16771if ac_fn_cxx_try_cpp "$LINENO"; then :
16772 # Broken: success on invalid input.
16773continue
16774else
16775 # Passes both tests.
16776ac_preproc_ok=:
16777break
16778fi
cristyda16f162011-02-19 23:52:17 +000016779rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016780
16781done
16782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016783rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016784if $ac_preproc_ok; then :
16785 break
16786fi
16787
16788 done
16789 ac_cv_prog_CXXCPP=$CXXCPP
16790
16791fi
16792 CXXCPP=$ac_cv_prog_CXXCPP
16793else
16794 ac_cv_prog_CXXCPP=$CXXCPP
16795fi
16796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16797$as_echo "$CXXCPP" >&6; }
16798ac_preproc_ok=false
16799for ac_cxx_preproc_warn_flag in '' yes
16800do
16801 # Use a header file that comes with gcc, so configuring glibc
16802 # with a fresh cross-compiler works.
16803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16804 # <limits.h> exists even on freestanding compilers.
16805 # On the NeXT, cc -E runs the code through the compiler's parser,
16806 # not just through cpp. "Syntax error" is here to catch this case.
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808/* end confdefs.h. */
16809#ifdef __STDC__
16810# include <limits.h>
16811#else
16812# include <assert.h>
16813#endif
16814 Syntax error
16815_ACEOF
16816if ac_fn_cxx_try_cpp "$LINENO"; then :
16817
16818else
16819 # Broken: fails on valid input.
16820continue
16821fi
cristyda16f162011-02-19 23:52:17 +000016822rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016823
16824 # OK, works on sane cases. Now check whether nonexistent headers
16825 # can be detected and how.
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827/* end confdefs.h. */
16828#include <ac_nonexistent.h>
16829_ACEOF
16830if ac_fn_cxx_try_cpp "$LINENO"; then :
16831 # Broken: success on invalid input.
16832continue
16833else
16834 # Passes both tests.
16835ac_preproc_ok=:
16836break
16837fi
cristyda16f162011-02-19 23:52:17 +000016838rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016839
16840done
16841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016842rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016843if $ac_preproc_ok; then :
16844
16845else
16846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16848as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16849See \`config.log' for more details" "$LINENO" 5; }
16850fi
16851
16852ac_ext=c
16853ac_cpp='$CPP $CPPFLAGS'
16854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16856ac_compiler_gnu=$ac_cv_c_compiler_gnu
16857
16858else
16859 _lt_caught_CXX_error=yes
16860fi
cristy73bd4a52010-10-05 11:24:23 +000016861
16862ac_ext=cpp
16863ac_cpp='$CXXCPP $CPPFLAGS'
16864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16867
16868archive_cmds_need_lc_CXX=no
16869allow_undefined_flag_CXX=
16870always_export_symbols_CXX=no
16871archive_expsym_cmds_CXX=
16872compiler_needs_object_CXX=no
16873export_dynamic_flag_spec_CXX=
16874hardcode_direct_CXX=no
16875hardcode_direct_absolute_CXX=no
16876hardcode_libdir_flag_spec_CXX=
16877hardcode_libdir_flag_spec_ld_CXX=
16878hardcode_libdir_separator_CXX=
16879hardcode_minus_L_CXX=no
16880hardcode_shlibpath_var_CXX=unsupported
16881hardcode_automatic_CXX=no
16882inherit_rpath_CXX=no
16883module_cmds_CXX=
16884module_expsym_cmds_CXX=
16885link_all_deplibs_CXX=unknown
16886old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016887reload_flag_CXX=$reload_flag
16888reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016889no_undefined_flag_CXX=
16890whole_archive_flag_spec_CXX=
16891enable_shared_with_static_runtimes_CXX=no
16892
16893# Source file extension for C++ test sources.
16894ac_ext=cpp
16895
16896# Object file extension for compiled C++ test sources.
16897objext=o
16898objext_CXX=$objext
16899
16900# No sense in running all these tests if we already determined that
16901# the CXX compiler isn't working. Some variables (like enable_shared)
16902# are currently assumed to apply to all compilers on this platform,
16903# and will be corrupted by setting them based on a non-working compiler.
16904if test "$_lt_caught_CXX_error" != yes; then
16905 # Code to be used in simple compile tests
16906 lt_simple_compile_test_code="int some_variable = 0;"
16907
16908 # Code to be used in simple link tests
16909 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16910
16911 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16912
16913
16914
16915
16916
16917
16918# If no C compiler was specified, use CC.
16919LTCC=${LTCC-"$CC"}
16920
16921# If no C compiler flags were specified, use CFLAGS.
16922LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16923
16924# Allow CC to be a program name with arguments.
16925compiler=$CC
16926
16927
16928 # save warnings/boilerplate of simple test code
16929 ac_outfile=conftest.$ac_objext
16930echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16931eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16932_lt_compiler_boilerplate=`cat conftest.err`
16933$RM conftest*
16934
16935 ac_outfile=conftest.$ac_objext
16936echo "$lt_simple_link_test_code" >conftest.$ac_ext
16937eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16938_lt_linker_boilerplate=`cat conftest.err`
16939$RM -r conftest*
16940
16941
16942 # Allow CC to be a program name with arguments.
16943 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016944 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016945 lt_save_LD=$LD
16946 lt_save_GCC=$GCC
16947 GCC=$GXX
16948 lt_save_with_gnu_ld=$with_gnu_ld
16949 lt_save_path_LD=$lt_cv_path_LD
16950 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16951 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16952 else
16953 $as_unset lt_cv_prog_gnu_ld
16954 fi
16955 if test -n "${lt_cv_path_LDCXX+set}"; then
16956 lt_cv_path_LD=$lt_cv_path_LDCXX
16957 else
16958 $as_unset lt_cv_path_LD
16959 fi
16960 test -z "${LDCXX+set}" || LD=$LDCXX
16961 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016962 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016963 compiler=$CC
16964 compiler_CXX=$CC
16965 for cc_temp in $compiler""; do
16966 case $cc_temp in
16967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16969 \-*) ;;
16970 *) break;;
16971 esac
16972done
cristy0c60a692010-11-04 01:09:47 +000016973cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016974
16975
16976 if test -n "$compiler"; then
16977 # We don't want -fno-exception when compiling C++ code, so set the
16978 # no_builtin_flag separately
16979 if test "$GXX" = yes; then
16980 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16981 else
16982 lt_prog_compiler_no_builtin_flag_CXX=
16983 fi
16984
16985 if test "$GXX" = yes; then
16986 # Set up default GNU C++ configuration
16987
16988
16989
16990# Check whether --with-gnu-ld was given.
16991if test "${with_gnu_ld+set}" = set; then :
16992 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16993else
16994 with_gnu_ld=no
16995fi
16996
16997ac_prog=ld
16998if test "$GCC" = yes; then
16999 # Check if gcc -print-prog-name=ld gives a path.
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17001$as_echo_n "checking for ld used by $CC... " >&6; }
17002 case $host in
17003 *-*-mingw*)
17004 # gcc leaves a trailing carriage return which upsets mingw
17005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17006 *)
17007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17008 esac
17009 case $ac_prog in
17010 # Accept absolute paths.
17011 [\\/]* | ?:[\\/]*)
17012 re_direlt='/[^/][^/]*/\.\./'
17013 # Canonicalize the pathname of ld
17014 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17015 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17016 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17017 done
17018 test -z "$LD" && LD="$ac_prog"
17019 ;;
17020 "")
17021 # If it fails, then pretend we aren't using GCC.
17022 ac_prog=ld
17023 ;;
17024 *)
17025 # If it is relative, then search for the first ld in PATH.
17026 with_gnu_ld=unknown
17027 ;;
17028 esac
17029elif test "$with_gnu_ld" = yes; then
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17031$as_echo_n "checking for GNU ld... " >&6; }
17032else
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17034$as_echo_n "checking for non-GNU ld... " >&6; }
17035fi
cristyda16f162011-02-19 23:52:17 +000017036if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017037 $as_echo_n "(cached) " >&6
17038else
17039 if test -z "$LD"; then
17040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17041 for ac_dir in $PATH; do
17042 IFS="$lt_save_ifs"
17043 test -z "$ac_dir" && ac_dir=.
17044 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17045 lt_cv_path_LD="$ac_dir/$ac_prog"
17046 # Check to see if the program is GNU ld. I'd rather use --version,
17047 # but apparently some variants of GNU ld only accept -v.
17048 # Break only if it was the GNU/non-GNU ld that we prefer.
17049 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17050 *GNU* | *'with BFD'*)
17051 test "$with_gnu_ld" != no && break
17052 ;;
17053 *)
17054 test "$with_gnu_ld" != yes && break
17055 ;;
17056 esac
17057 fi
17058 done
17059 IFS="$lt_save_ifs"
17060else
17061 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17062fi
17063fi
17064
17065LD="$lt_cv_path_LD"
17066if test -n "$LD"; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17068$as_echo "$LD" >&6; }
17069else
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071$as_echo "no" >&6; }
17072fi
cristy98dddb52010-11-04 00:30:15 +000017073test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17075$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017076if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017077 $as_echo_n "(cached) " >&6
17078else
17079 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17080case `$LD -v 2>&1 </dev/null` in
17081*GNU* | *'with BFD'*)
17082 lt_cv_prog_gnu_ld=yes
17083 ;;
17084*)
17085 lt_cv_prog_gnu_ld=no
17086 ;;
17087esac
17088fi
17089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17090$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17091with_gnu_ld=$lt_cv_prog_gnu_ld
17092
17093
17094
17095
17096
17097
17098
17099 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17100 # archiving commands below assume that GNU ld is being used.
17101 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017102 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17103 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 +000017104
17105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17106 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17107
17108 # If archive_cmds runs LD, not CC, wlarc should be empty
17109 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17110 # investigate it a little bit more. (MM)
17111 wlarc='${wl}'
17112
17113 # ancient GNU ld didn't support --whole-archive et. al.
17114 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17115 $GREP 'no-whole-archive' > /dev/null; then
17116 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17117 else
17118 whole_archive_flag_spec_CXX=
17119 fi
17120 else
17121 with_gnu_ld=no
17122 wlarc=
17123
17124 # A generic and very simple default shared library creation
17125 # command for GNU C++ for the case where it uses the native
17126 # linker, instead of GNU ld. If possible, this setting should
17127 # overridden to take advantage of the native linker features on
17128 # the platform it is being used on.
17129 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17130 fi
17131
17132 # Commands to make compiler produce verbose output that lists
17133 # what "hidden" libraries, object files and flags are used when
17134 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017136
17137 else
17138 GXX=no
17139 with_gnu_ld=no
17140 wlarc=
17141 fi
17142
17143 # PORTME: fill in a description of your system's C++ link characteristics
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17145$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17146 ld_shlibs_CXX=yes
17147 case $host_os in
17148 aix3*)
17149 # FIXME: insert proper C++ library support
17150 ld_shlibs_CXX=no
17151 ;;
17152 aix[4-9]*)
17153 if test "$host_cpu" = ia64; then
17154 # On IA64, the linker does run time linking by default, so we don't
17155 # have to do anything special.
17156 aix_use_runtimelinking=no
17157 exp_sym_flag='-Bexport'
17158 no_entry_flag=""
17159 else
17160 aix_use_runtimelinking=no
17161
17162 # Test if we are trying to use run time linking or normal
17163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17164 # need to do runtime linking.
17165 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17166 for ld_flag in $LDFLAGS; do
17167 case $ld_flag in
17168 *-brtl*)
17169 aix_use_runtimelinking=yes
17170 break
17171 ;;
17172 esac
17173 done
17174 ;;
17175 esac
17176
17177 exp_sym_flag='-bexport'
17178 no_entry_flag='-bnoentry'
17179 fi
17180
17181 # When large executables or shared objects are built, AIX ld can
17182 # have problems creating the table of contents. If linking a library
17183 # or program results in "error TOC overflow" add -mminimal-toc to
17184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17186
17187 archive_cmds_CXX=''
17188 hardcode_direct_CXX=yes
17189 hardcode_direct_absolute_CXX=yes
17190 hardcode_libdir_separator_CXX=':'
17191 link_all_deplibs_CXX=yes
17192 file_list_spec_CXX='${wl}-f,'
17193
17194 if test "$GXX" = yes; then
17195 case $host_os in aix4.[012]|aix4.[012].*)
17196 # We only want to do this on AIX 4.2 and lower, the check
17197 # below for broken collect2 doesn't work under 4.3+
17198 collect2name=`${CC} -print-prog-name=collect2`
17199 if test -f "$collect2name" &&
17200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17201 then
17202 # We have reworked collect2
17203 :
17204 else
17205 # We have old collect2
17206 hardcode_direct_CXX=unsupported
17207 # It fails to find uninstalled libraries when the uninstalled
17208 # path is not listed in the libpath. Setting hardcode_minus_L
17209 # to unsupported forces relinking
17210 hardcode_minus_L_CXX=yes
17211 hardcode_libdir_flag_spec_CXX='-L$libdir'
17212 hardcode_libdir_separator_CXX=
17213 fi
17214 esac
17215 shared_flag='-shared'
17216 if test "$aix_use_runtimelinking" = yes; then
17217 shared_flag="$shared_flag "'${wl}-G'
17218 fi
17219 else
17220 # not using gcc
17221 if test "$host_cpu" = ia64; then
17222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17223 # chokes on -Wl,-G. The following line is correct:
17224 shared_flag='-G'
17225 else
17226 if test "$aix_use_runtimelinking" = yes; then
17227 shared_flag='${wl}-G'
17228 else
17229 shared_flag='${wl}-bM:SRE'
17230 fi
17231 fi
17232 fi
17233
17234 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17235 # It seems that -bexpall does not export symbols beginning with
17236 # underscore (_), so it is better to generate a list of symbols to
17237 # export.
17238 always_export_symbols_CXX=yes
17239 if test "$aix_use_runtimelinking" = yes; then
17240 # Warning - without using the other runtime loading flags (-brtl),
17241 # -berok will link without error, but may produce a broken library.
17242 allow_undefined_flag_CXX='-berok'
17243 # Determine the default libpath from the value encoded in an empty
17244 # executable.
cristyda16f162011-02-19 23:52:17 +000017245 if test "${lt_cv_aix_libpath+set}" = set; then
17246 aix_libpath=$lt_cv_aix_libpath
17247else
17248 if ${lt_cv_aix_libpath__CXX+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250else
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017252/* end confdefs.h. */
17253
17254int
17255main ()
17256{
17257
17258 ;
17259 return 0;
17260}
17261_ACEOF
17262if ac_fn_cxx_try_link "$LINENO"; then :
17263
cristyda16f162011-02-19 23:52:17 +000017264 lt_aix_libpath_sed='
17265 /Import File Strings/,/^$/ {
17266 /^0/ {
17267 s/^0 *\([^ ]*\) *$/\1/
17268 p
17269 }
17270 }'
17271 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17272 # Check for a 64-bit object if we didn't find anything.
17273 if test -z "$lt_cv_aix_libpath__CXX"; then
17274 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17275 fi
cristy73bd4a52010-10-05 11:24:23 +000017276fi
17277rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017279 if test -z "$lt_cv_aix_libpath__CXX"; then
17280 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17281 fi
17282
17283fi
17284
17285 aix_libpath=$lt_cv_aix_libpath__CXX
17286fi
cristy73bd4a52010-10-05 11:24:23 +000017287
17288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17289
cristy0c60a692010-11-04 01:09:47 +000017290 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 +000017291 else
17292 if test "$host_cpu" = ia64; then
17293 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17294 allow_undefined_flag_CXX="-z nodefs"
17295 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"
17296 else
17297 # Determine the default libpath from the value encoded in an
17298 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017299 if test "${lt_cv_aix_libpath+set}" = set; then
17300 aix_libpath=$lt_cv_aix_libpath
17301else
17302 if ${lt_cv_aix_libpath__CXX+:} false; then :
17303 $as_echo_n "(cached) " >&6
17304else
17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017306/* end confdefs.h. */
17307
17308int
17309main ()
17310{
17311
17312 ;
17313 return 0;
17314}
17315_ACEOF
17316if ac_fn_cxx_try_link "$LINENO"; then :
17317
cristyda16f162011-02-19 23:52:17 +000017318 lt_aix_libpath_sed='
17319 /Import File Strings/,/^$/ {
17320 /^0/ {
17321 s/^0 *\([^ ]*\) *$/\1/
17322 p
17323 }
17324 }'
17325 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17326 # Check for a 64-bit object if we didn't find anything.
17327 if test -z "$lt_cv_aix_libpath__CXX"; then
17328 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17329 fi
cristy73bd4a52010-10-05 11:24:23 +000017330fi
17331rm -f core conftest.err conftest.$ac_objext \
17332 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017333 if test -z "$lt_cv_aix_libpath__CXX"; then
17334 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17335 fi
17336
17337fi
17338
17339 aix_libpath=$lt_cv_aix_libpath__CXX
17340fi
cristy73bd4a52010-10-05 11:24:23 +000017341
17342 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17343 # Warning - without using the other run time loading flags,
17344 # -berok will link without error, but may produce a broken library.
17345 no_undefined_flag_CXX=' ${wl}-bernotok'
17346 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017347 if test "$with_gnu_ld" = yes; then
17348 # We only use this code for GNU lds that support --whole-archive.
17349 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17350 else
17351 # Exported symbols can be pulled into shared objects from archives
17352 whole_archive_flag_spec_CXX='$convenience'
17353 fi
cristy73bd4a52010-10-05 11:24:23 +000017354 archive_cmds_need_lc_CXX=yes
17355 # This is similar to how AIX traditionally builds its shared
17356 # libraries.
17357 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'
17358 fi
17359 fi
17360 ;;
17361
17362 beos*)
17363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17364 allow_undefined_flag_CXX=unsupported
17365 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17366 # support --undefined. This deserves some investigation. FIXME
17367 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17368 else
17369 ld_shlibs_CXX=no
17370 fi
17371 ;;
17372
17373 chorus*)
17374 case $cc_basename in
17375 *)
17376 # FIXME: insert proper C++ library support
17377 ld_shlibs_CXX=no
17378 ;;
17379 esac
17380 ;;
17381
17382 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017383 case $GXX,$cc_basename in
17384 ,cl* | no,cl*)
17385 # Native MSVC
17386 # hardcode_libdir_flag_spec is actually meaningless, as there is
17387 # no search path for DLLs.
17388 hardcode_libdir_flag_spec_CXX=' '
17389 allow_undefined_flag_CXX=unsupported
17390 always_export_symbols_CXX=yes
17391 file_list_spec_CXX='@'
17392 # Tell ltmain to make .lib files, not .a files.
17393 libext=lib
17394 # Tell ltmain to make .dll files, not .so files.
17395 shrext_cmds=".dll"
17396 # FIXME: Setting linknames here is a bad hack.
17397 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17398 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17399 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17400 else
17401 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17402 fi~
17403 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17404 linknames='
17405 # The linker will not automatically build a static lib if we build a DLL.
17406 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17407 enable_shared_with_static_runtimes_CXX=yes
17408 # Don't use ranlib
17409 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17410 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17411 lt_tool_outputfile="@TOOL_OUTPUT@"~
17412 case $lt_outputfile in
17413 *.exe|*.EXE) ;;
17414 *)
17415 lt_outputfile="$lt_outputfile.exe"
17416 lt_tool_outputfile="$lt_tool_outputfile.exe"
17417 ;;
17418 esac~
17419 func_to_tool_file "$lt_outputfile"~
17420 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17421 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17422 $RM "$lt_outputfile.manifest";
17423 fi'
17424 ;;
17425 *)
17426 # g++
17427 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17428 # as there is no search path for DLLs.
17429 hardcode_libdir_flag_spec_CXX='-L$libdir'
17430 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17431 allow_undefined_flag_CXX=unsupported
17432 always_export_symbols_CXX=no
17433 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017434
cristyda16f162011-02-19 23:52:17 +000017435 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17436 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'
17437 # If the export-symbols file already is a .def file (1st line
17438 # is EXPORTS), use it as is; otherwise, prepend...
17439 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17440 cp $export_symbols $output_objdir/$soname.def;
17441 else
17442 echo EXPORTS > $output_objdir/$soname.def;
17443 cat $export_symbols >> $output_objdir/$soname.def;
17444 fi~
17445 $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'
17446 else
17447 ld_shlibs_CXX=no
17448 fi
17449 ;;
17450 esac
17451 ;;
cristy73bd4a52010-10-05 11:24:23 +000017452 darwin* | rhapsody*)
17453
17454
17455 archive_cmds_need_lc_CXX=no
17456 hardcode_direct_CXX=no
17457 hardcode_automatic_CXX=yes
17458 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017459 if test "$lt_cv_ld_force_load" = "yes"; then
17460 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\"`'
17461 else
17462 whole_archive_flag_spec_CXX=''
17463 fi
cristy73bd4a52010-10-05 11:24:23 +000017464 link_all_deplibs_CXX=yes
17465 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17466 case $cc_basename in
17467 ifort*) _lt_dar_can_shared=yes ;;
17468 *) _lt_dar_can_shared=$GCC ;;
17469 esac
17470 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017471 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017472 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}"
17473 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17474 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}"
17475 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}"
17476 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17477 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}"
17478 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}"
17479 fi
17480
17481 else
17482 ld_shlibs_CXX=no
17483 fi
17484
17485 ;;
17486
17487 dgux*)
17488 case $cc_basename in
17489 ec++*)
17490 # FIXME: insert proper C++ library support
17491 ld_shlibs_CXX=no
17492 ;;
17493 ghcx*)
17494 # Green Hills C++ Compiler
17495 # FIXME: insert proper C++ library support
17496 ld_shlibs_CXX=no
17497 ;;
17498 *)
17499 # FIXME: insert proper C++ library support
17500 ld_shlibs_CXX=no
17501 ;;
17502 esac
17503 ;;
17504
17505 freebsd[12]*)
17506 # C++ shared libraries reported to be fairly broken before
17507 # switch to ELF
17508 ld_shlibs_CXX=no
17509 ;;
17510
17511 freebsd-elf*)
17512 archive_cmds_need_lc_CXX=no
17513 ;;
17514
17515 freebsd* | dragonfly*)
17516 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17517 # conventions
17518 ld_shlibs_CXX=yes
17519 ;;
17520
17521 gnu*)
17522 ;;
17523
cristy0c60a692010-11-04 01:09:47 +000017524 haiku*)
17525 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17526 link_all_deplibs_CXX=yes
17527 ;;
17528
cristy73bd4a52010-10-05 11:24:23 +000017529 hpux9*)
17530 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17531 hardcode_libdir_separator_CXX=:
17532 export_dynamic_flag_spec_CXX='${wl}-E'
17533 hardcode_direct_CXX=yes
17534 hardcode_minus_L_CXX=yes # Not in the search PATH,
17535 # but as the default
17536 # location of the library.
17537
17538 case $cc_basename in
17539 CC*)
17540 # FIXME: insert proper C++ library support
17541 ld_shlibs_CXX=no
17542 ;;
17543 aCC*)
17544 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'
17545 # Commands to make compiler produce verbose output that lists
17546 # what "hidden" libraries, object files and flags are used when
17547 # linking a shared library.
17548 #
17549 # There doesn't appear to be a way to prevent this compiler from
17550 # explicitly linking system object files so we need to strip them
17551 # from the output so that they don't get included in the library
17552 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017553 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 +000017554 ;;
17555 *)
17556 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017557 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 +000017558 else
17559 # FIXME: insert proper C++ library support
17560 ld_shlibs_CXX=no
17561 fi
17562 ;;
17563 esac
17564 ;;
17565
17566 hpux10*|hpux11*)
17567 if test $with_gnu_ld = no; then
17568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17569 hardcode_libdir_separator_CXX=:
17570
17571 case $host_cpu in
17572 hppa*64*|ia64*)
17573 ;;
17574 *)
17575 export_dynamic_flag_spec_CXX='${wl}-E'
17576 ;;
17577 esac
17578 fi
17579 case $host_cpu in
17580 hppa*64*|ia64*)
17581 hardcode_direct_CXX=no
17582 hardcode_shlibpath_var_CXX=no
17583 ;;
17584 *)
17585 hardcode_direct_CXX=yes
17586 hardcode_direct_absolute_CXX=yes
17587 hardcode_minus_L_CXX=yes # Not in the search PATH,
17588 # but as the default
17589 # location of the library.
17590 ;;
17591 esac
17592
17593 case $cc_basename in
17594 CC*)
17595 # FIXME: insert proper C++ library support
17596 ld_shlibs_CXX=no
17597 ;;
17598 aCC*)
17599 case $host_cpu in
17600 hppa*64*)
17601 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17602 ;;
17603 ia64*)
17604 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17605 ;;
17606 *)
17607 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17608 ;;
17609 esac
17610 # Commands to make compiler produce verbose output that lists
17611 # what "hidden" libraries, object files and flags are used when
17612 # linking a shared library.
17613 #
17614 # There doesn't appear to be a way to prevent this compiler from
17615 # explicitly linking system object files so we need to strip them
17616 # from the output so that they don't get included in the library
17617 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017618 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 +000017619 ;;
17620 *)
17621 if test "$GXX" = yes; then
17622 if test $with_gnu_ld = no; then
17623 case $host_cpu in
17624 hppa*64*)
17625 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17626 ;;
17627 ia64*)
cristyda16f162011-02-19 23:52:17 +000017628 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 +000017629 ;;
17630 *)
cristyda16f162011-02-19 23:52:17 +000017631 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 +000017632 ;;
17633 esac
17634 fi
17635 else
17636 # FIXME: insert proper C++ library support
17637 ld_shlibs_CXX=no
17638 fi
17639 ;;
17640 esac
17641 ;;
17642
17643 interix[3-9]*)
17644 hardcode_direct_CXX=no
17645 hardcode_shlibpath_var_CXX=no
17646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17647 export_dynamic_flag_spec_CXX='${wl}-E'
17648 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17649 # Instead, shared libraries are loaded at an image base (0x10000000 by
17650 # default) and relocated if they conflict, which is a slow very memory
17651 # consuming and fragmenting process. To avoid this, we pick a random,
17652 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17653 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17654 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'
17655 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'
17656 ;;
17657 irix5* | irix6*)
17658 case $cc_basename in
17659 CC*)
17660 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017661 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 +000017662
17663 # Archives containing C++ object files must be created using
17664 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17665 # necessary to make sure instantiated templates are included
17666 # in the archive.
17667 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17668 ;;
17669 *)
17670 if test "$GXX" = yes; then
17671 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017672 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 +000017673 else
cristyda16f162011-02-19 23:52:17 +000017674 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 +000017675 fi
17676 fi
17677 link_all_deplibs_CXX=yes
17678 ;;
17679 esac
17680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17681 hardcode_libdir_separator_CXX=:
17682 inherit_rpath_CXX=yes
17683 ;;
17684
cristy0c60a692010-11-04 01:09:47 +000017685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017686 case $cc_basename in
17687 KCC*)
17688 # Kuck and Associates, Inc. (KAI) C++ Compiler
17689
17690 # KCC will only create a shared library if the output file
17691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17692 # to its proper name (with version) after linking.
17693 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'
17694 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'
17695 # Commands to make compiler produce verbose output that lists
17696 # what "hidden" libraries, object files and flags are used when
17697 # linking a shared library.
17698 #
17699 # There doesn't appear to be a way to prevent this compiler from
17700 # explicitly linking system object files so we need to strip them
17701 # from the output so that they don't get included in the library
17702 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017703 output_verbose_link_cmd='templist=`$CC $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 +000017704
17705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17707
17708 # Archives containing C++ object files must be created using
17709 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17710 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17711 ;;
17712 icpc* | ecpc* )
17713 # Intel C++
17714 with_gnu_ld=yes
17715 # version 8.0 and above of icpc choke on multiply defined symbols
17716 # if we add $predep_objects and $postdep_objects, however 7.1 and
17717 # earlier do not add the objects themselves.
17718 case `$CC -V 2>&1` in
17719 *"Version 7."*)
17720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17721 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'
17722 ;;
17723 *) # Version 8.0 or newer
17724 tmp_idyn=
17725 case $host_cpu in
17726 ia64*) tmp_idyn=' -i_dynamic';;
17727 esac
17728 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17729 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'
17730 ;;
17731 esac
17732 archive_cmds_need_lc_CXX=no
17733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17735 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17736 ;;
17737 pgCC* | pgcpp*)
17738 # Portland Group C++ compiler
17739 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017740 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017741 prelink_cmds_CXX='tpldir=Template.dir~
17742 rm -rf $tpldir~
17743 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017744 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017745 old_archive_cmds_CXX='tpldir=Template.dir~
17746 rm -rf $tpldir~
17747 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017748 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017749 $RANLIB $oldlib'
17750 archive_cmds_CXX='tpldir=Template.dir~
17751 rm -rf $tpldir~
17752 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017753 $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 +000017754 archive_expsym_cmds_CXX='tpldir=Template.dir~
17755 rm -rf $tpldir~
17756 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017757 $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 +000017758 ;;
cristy0c60a692010-11-04 01:09:47 +000017759 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017760 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17761 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'
17762 ;;
17763 esac
17764
17765 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017767 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 +000017768 ;;
17769 cxx*)
17770 # Compaq C++
17771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17772 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'
17773
17774 runpath_var=LD_RUN_PATH
17775 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17776 hardcode_libdir_separator_CXX=:
17777
17778 # Commands to make compiler produce verbose output that lists
17779 # what "hidden" libraries, object files and flags are used when
17780 # linking a shared library.
17781 #
17782 # There doesn't appear to be a way to prevent this compiler from
17783 # explicitly linking system object files so we need to strip them
17784 # from the output so that they don't get included in the library
17785 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017786 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 +000017787 ;;
cristy0c60a692010-11-04 01:09:47 +000017788 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017789 # IBM XL 8.0 on PPC, with GNU ld
17790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17791 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17792 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17793 if test "x$supports_anon_versioning" = xyes; then
17794 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17796 echo "local: *; };" >> $output_objdir/$libname.ver~
17797 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17798 fi
17799 ;;
17800 *)
17801 case `$CC -V 2>&1 | sed 5q` in
17802 *Sun\ C*)
17803 # Sun C++ 5.9
17804 no_undefined_flag_CXX=' -zdefs'
17805 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17806 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'
17807 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017808 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 +000017809 compiler_needs_object_CXX=yes
17810
17811 # Not sure whether something based on
17812 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17813 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017814 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017815
17816 # Archives containing C++ object files must be created using
17817 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17818 # necessary to make sure instantiated templates are included
17819 # in the archive.
17820 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17821 ;;
17822 esac
17823 ;;
17824 esac
17825 ;;
17826
17827 lynxos*)
17828 # FIXME: insert proper C++ library support
17829 ld_shlibs_CXX=no
17830 ;;
17831
17832 m88k*)
17833 # FIXME: insert proper C++ library support
17834 ld_shlibs_CXX=no
17835 ;;
17836
17837 mvs*)
17838 case $cc_basename in
17839 cxx*)
17840 # FIXME: insert proper C++ library support
17841 ld_shlibs_CXX=no
17842 ;;
17843 *)
17844 # FIXME: insert proper C++ library support
17845 ld_shlibs_CXX=no
17846 ;;
17847 esac
17848 ;;
17849
17850 netbsd*)
17851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17852 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17853 wlarc=
17854 hardcode_libdir_flag_spec_CXX='-R$libdir'
17855 hardcode_direct_CXX=yes
17856 hardcode_shlibpath_var_CXX=no
17857 fi
17858 # Workaround some broken pre-1.5 toolchains
17859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17860 ;;
17861
17862 *nto* | *qnx*)
17863 ld_shlibs_CXX=yes
17864 ;;
17865
17866 openbsd2*)
17867 # C++ shared libraries are fairly broken
17868 ld_shlibs_CXX=no
17869 ;;
17870
17871 openbsd*)
17872 if test -f /usr/libexec/ld.so; then
17873 hardcode_direct_CXX=yes
17874 hardcode_shlibpath_var_CXX=no
17875 hardcode_direct_absolute_CXX=yes
17876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17879 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17880 export_dynamic_flag_spec_CXX='${wl}-E'
17881 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17882 fi
cristy0c60a692010-11-04 01:09:47 +000017883 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017884 else
17885 ld_shlibs_CXX=no
17886 fi
17887 ;;
17888
17889 osf3* | osf4* | osf5*)
17890 case $cc_basename in
17891 KCC*)
17892 # Kuck and Associates, Inc. (KAI) C++ Compiler
17893
17894 # KCC will only create a shared library if the output file
17895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17896 # to its proper name (with version) after linking.
17897 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'
17898
17899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17900 hardcode_libdir_separator_CXX=:
17901
17902 # Archives containing C++ object files must be created using
17903 # the KAI C++ compiler.
17904 case $host in
17905 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17906 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17907 esac
17908 ;;
17909 RCC*)
17910 # Rational C++ 2.4.1
17911 # FIXME: insert proper C++ library support
17912 ld_shlibs_CXX=no
17913 ;;
17914 cxx*)
17915 case $host in
17916 osf3*)
17917 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017918 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 +000017919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17920 ;;
17921 *)
17922 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017923 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 +000017924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17925 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017926 $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 +000017927 $RM $lib.exp'
17928 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17929 ;;
17930 esac
17931
17932 hardcode_libdir_separator_CXX=:
17933
17934 # Commands to make compiler produce verbose output that lists
17935 # what "hidden" libraries, object files and flags are used when
17936 # linking a shared library.
17937 #
17938 # There doesn't appear to be a way to prevent this compiler from
17939 # explicitly linking system object files so we need to strip them
17940 # from the output so that they don't get included in the library
17941 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017942 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 +000017943 ;;
17944 *)
17945 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17947 case $host in
17948 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017949 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 +000017950 ;;
17951 *)
cristyda16f162011-02-19 23:52:17 +000017952 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 +000017953 ;;
17954 esac
17955
17956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17957 hardcode_libdir_separator_CXX=:
17958
17959 # Commands to make compiler produce verbose output that lists
17960 # what "hidden" libraries, object files and flags are used when
17961 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017963
17964 else
17965 # FIXME: insert proper C++ library support
17966 ld_shlibs_CXX=no
17967 fi
17968 ;;
17969 esac
17970 ;;
17971
17972 psos*)
17973 # FIXME: insert proper C++ library support
17974 ld_shlibs_CXX=no
17975 ;;
17976
17977 sunos4*)
17978 case $cc_basename in
17979 CC*)
17980 # Sun C++ 4.x
17981 # FIXME: insert proper C++ library support
17982 ld_shlibs_CXX=no
17983 ;;
17984 lcc*)
17985 # Lucid
17986 # FIXME: insert proper C++ library support
17987 ld_shlibs_CXX=no
17988 ;;
17989 *)
17990 # FIXME: insert proper C++ library support
17991 ld_shlibs_CXX=no
17992 ;;
17993 esac
17994 ;;
17995
17996 solaris*)
17997 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017998 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017999 # Sun C++ 4.2, 5.x and Centerline C++
18000 archive_cmds_need_lc_CXX=yes
18001 no_undefined_flag_CXX=' -zdefs'
18002 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18004 $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'
18005
18006 hardcode_libdir_flag_spec_CXX='-R$libdir'
18007 hardcode_shlibpath_var_CXX=no
18008 case $host_os in
18009 solaris2.[0-5] | solaris2.[0-5].*) ;;
18010 *)
18011 # The compiler driver will combine and reorder linker options,
18012 # but understands `-z linker_flag'.
18013 # Supported since Solaris 2.6 (maybe 2.5.1?)
18014 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18015 ;;
18016 esac
18017 link_all_deplibs_CXX=yes
18018
cristy0c60a692010-11-04 01:09:47 +000018019 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018020
18021 # Archives containing C++ object files must be created using
18022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18023 # necessary to make sure instantiated templates are included
18024 # in the archive.
18025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18026 ;;
18027 gcx*)
18028 # Green Hills C++ Compiler
18029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18030
18031 # The C++ compiler must be used to create the archive.
18032 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18033 ;;
18034 *)
18035 # GNU C++ compiler with Solaris linker
18036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18037 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18038 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018039 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 +000018040 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 +000018041 $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 +000018042
18043 # Commands to make compiler produce verbose output that lists
18044 # what "hidden" libraries, object files and flags are used when
18045 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018047 else
18048 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18049 # platform.
18050 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18051 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18052 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18053
18054 # Commands to make compiler produce verbose output that lists
18055 # what "hidden" libraries, object files and flags are used when
18056 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018057 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018058 fi
18059
18060 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18061 case $host_os in
18062 solaris2.[0-5] | solaris2.[0-5].*) ;;
18063 *)
18064 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18065 ;;
18066 esac
18067 fi
18068 ;;
18069 esac
18070 ;;
18071
18072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18073 no_undefined_flag_CXX='${wl}-z,text'
18074 archive_cmds_need_lc_CXX=no
18075 hardcode_shlibpath_var_CXX=no
18076 runpath_var='LD_RUN_PATH'
18077
18078 case $cc_basename in
18079 CC*)
18080 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18081 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18082 ;;
18083 *)
18084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18086 ;;
18087 esac
18088 ;;
18089
18090 sysv5* | sco3.2v5* | sco5v6*)
18091 # Note: We can NOT use -z defs as we might desire, because we do not
18092 # link with -lc, and that would cause any symbols used from libc to
18093 # always be unresolved, which means just about no library would
18094 # ever link correctly. If we're not using GNU ld we use -z text
18095 # though, which does catch some bad symbols but isn't as heavy-handed
18096 # as -z defs.
18097 no_undefined_flag_CXX='${wl}-z,text'
18098 allow_undefined_flag_CXX='${wl}-z,nodefs'
18099 archive_cmds_need_lc_CXX=no
18100 hardcode_shlibpath_var_CXX=no
18101 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18102 hardcode_libdir_separator_CXX=':'
18103 link_all_deplibs_CXX=yes
18104 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18105 runpath_var='LD_RUN_PATH'
18106
18107 case $cc_basename in
18108 CC*)
18109 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18110 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 +000018111 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18112 '"$old_archive_cmds_CXX"
18113 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18114 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018115 ;;
18116 *)
18117 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18118 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119 ;;
18120 esac
18121 ;;
18122
18123 tandem*)
18124 case $cc_basename in
18125 NCC*)
18126 # NonStop-UX NCC 3.20
18127 # FIXME: insert proper C++ library support
18128 ld_shlibs_CXX=no
18129 ;;
18130 *)
18131 # FIXME: insert proper C++ library support
18132 ld_shlibs_CXX=no
18133 ;;
18134 esac
18135 ;;
18136
18137 vxworks*)
18138 # FIXME: insert proper C++ library support
18139 ld_shlibs_CXX=no
18140 ;;
18141
18142 *)
18143 # FIXME: insert proper C++ library support
18144 ld_shlibs_CXX=no
18145 ;;
18146 esac
18147
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18149$as_echo "$ld_shlibs_CXX" >&6; }
18150 test "$ld_shlibs_CXX" = no && can_build_shared=no
18151
18152 GCC_CXX="$GXX"
18153 LD_CXX="$LD"
18154
18155 ## CAVEAT EMPTOR:
18156 ## There is no encapsulation within the following macros, do not change
18157 ## the running order or otherwise move them around unless you know exactly
18158 ## what you are doing...
18159 # Dependencies to place before and after the object being linked:
18160predep_objects_CXX=
18161postdep_objects_CXX=
18162predeps_CXX=
18163postdeps_CXX=
18164compiler_lib_search_path_CXX=
18165
18166cat > conftest.$ac_ext <<_LT_EOF
18167class Foo
18168{
18169public:
18170 Foo (void) { a = 0; }
18171private:
18172 int a;
18173};
18174_LT_EOF
18175
cristyda16f162011-02-19 23:52:17 +000018176
18177_lt_libdeps_save_CFLAGS=$CFLAGS
18178case "$CC $CFLAGS " in #(
18179*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18180*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18181esac
18182
cristy73bd4a52010-10-05 11:24:23 +000018183if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18184 (eval $ac_compile) 2>&5
18185 ac_status=$?
18186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18187 test $ac_status = 0; }; then
18188 # Parse the compiler output and extract the necessary
18189 # objects, libraries and library flags.
18190
18191 # Sentinel used to keep track of whether or not we are before
18192 # the conftest object file.
18193 pre_test_object_deps_done=no
18194
18195 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018196 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018197
18198 -L* | -R* | -l*)
18199 # Some compilers place space between "-{L,R}" and the path.
18200 # Remove the space.
18201 if test $p = "-L" ||
18202 test $p = "-R"; then
18203 prev=$p
18204 continue
cristy73bd4a52010-10-05 11:24:23 +000018205 fi
18206
cristyda16f162011-02-19 23:52:17 +000018207 # Expand the sysroot to ease extracting the directories later.
18208 if test -z "$prev"; then
18209 case $p in
18210 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18211 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18212 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18213 esac
18214 fi
18215 case $p in
18216 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18217 esac
cristy73bd4a52010-10-05 11:24:23 +000018218 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018219 case ${prev} in
18220 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018221 # Internal compiler library paths should come after those
18222 # provided the user. The postdeps already come after the
18223 # user supplied libs so there is no need to process them.
18224 if test -z "$compiler_lib_search_path_CXX"; then
18225 compiler_lib_search_path_CXX="${prev}${p}"
18226 else
18227 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18228 fi
18229 ;;
18230 # The "-l" case would never come before the object being
18231 # linked, so don't bother handling this case.
18232 esac
18233 else
18234 if test -z "$postdeps_CXX"; then
18235 postdeps_CXX="${prev}${p}"
18236 else
18237 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18238 fi
18239 fi
cristyda16f162011-02-19 23:52:17 +000018240 prev=
cristy73bd4a52010-10-05 11:24:23 +000018241 ;;
18242
cristyda16f162011-02-19 23:52:17 +000018243 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018244 *.$objext)
18245 # This assumes that the test object file only shows up
18246 # once in the compiler output.
18247 if test "$p" = "conftest.$objext"; then
18248 pre_test_object_deps_done=yes
18249 continue
18250 fi
18251
18252 if test "$pre_test_object_deps_done" = no; then
18253 if test -z "$predep_objects_CXX"; then
18254 predep_objects_CXX="$p"
18255 else
18256 predep_objects_CXX="$predep_objects_CXX $p"
18257 fi
18258 else
18259 if test -z "$postdep_objects_CXX"; then
18260 postdep_objects_CXX="$p"
18261 else
18262 postdep_objects_CXX="$postdep_objects_CXX $p"
18263 fi
18264 fi
18265 ;;
18266
18267 *) ;; # Ignore the rest.
18268
18269 esac
18270 done
18271
18272 # Clean up.
18273 rm -f a.out a.exe
18274else
18275 echo "libtool.m4: error: problem compiling CXX test program"
18276fi
18277
18278$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018279CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018280
18281# PORTME: override above test on systems where it is broken
18282case $host_os in
18283interix[3-9]*)
18284 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18285 # hack all around it, let's just trust "g++" to DTRT.
18286 predep_objects_CXX=
18287 postdep_objects_CXX=
18288 postdeps_CXX=
18289 ;;
18290
18291linux*)
18292 case `$CC -V 2>&1 | sed 5q` in
18293 *Sun\ C*)
18294 # Sun C++ 5.9
18295
18296 # The more standards-conforming stlport4 library is
18297 # incompatible with the Cstd library. Avoid specifying
18298 # it if it's in CXXFLAGS. Ignore libCrun as
18299 # -library=stlport4 depends on it.
18300 case " $CXX $CXXFLAGS " in
18301 *" -library=stlport4 "*)
18302 solaris_use_stlport4=yes
18303 ;;
18304 esac
18305
18306 if test "$solaris_use_stlport4" != yes; then
18307 postdeps_CXX='-library=Cstd -library=Crun'
18308 fi
18309 ;;
18310 esac
18311 ;;
18312
18313solaris*)
18314 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018315 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018316 # The more standards-conforming stlport4 library is
18317 # incompatible with the Cstd library. Avoid specifying
18318 # it if it's in CXXFLAGS. Ignore libCrun as
18319 # -library=stlport4 depends on it.
18320 case " $CXX $CXXFLAGS " in
18321 *" -library=stlport4 "*)
18322 solaris_use_stlport4=yes
18323 ;;
18324 esac
18325
18326 # Adding this requires a known-good setup of shared libraries for
18327 # Sun compiler versions before 5.6, else PIC objects from an old
18328 # archive will be linked into the output, leading to subtle bugs.
18329 if test "$solaris_use_stlport4" != yes; then
18330 postdeps_CXX='-library=Cstd -library=Crun'
18331 fi
18332 ;;
18333 esac
18334 ;;
18335esac
18336
18337
18338case " $postdeps_CXX " in
18339*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18340esac
18341 compiler_lib_search_dirs_CXX=
18342if test -n "${compiler_lib_search_path_CXX}"; then
18343 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18344fi
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376 lt_prog_compiler_wl_CXX=
18377lt_prog_compiler_pic_CXX=
18378lt_prog_compiler_static_CXX=
18379
cristy73bd4a52010-10-05 11:24:23 +000018380
18381 # C++ specific cases for pic, static, wl, etc.
18382 if test "$GXX" = yes; then
18383 lt_prog_compiler_wl_CXX='-Wl,'
18384 lt_prog_compiler_static_CXX='-static'
18385
18386 case $host_os in
18387 aix*)
18388 # All AIX code is PIC.
18389 if test "$host_cpu" = ia64; then
18390 # AIX 5 now supports IA64 processor
18391 lt_prog_compiler_static_CXX='-Bstatic'
18392 fi
18393 ;;
18394
18395 amigaos*)
18396 case $host_cpu in
18397 powerpc)
18398 # see comment about AmigaOS4 .so support
18399 lt_prog_compiler_pic_CXX='-fPIC'
18400 ;;
18401 m68k)
18402 # FIXME: we need at least 68020 code to build shared libraries, but
18403 # adding the `-m68020' flag to GCC prevents building anything better,
18404 # like `-m68040'.
18405 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18406 ;;
18407 esac
18408 ;;
18409
18410 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18411 # PIC is the default for these OSes.
18412 ;;
18413 mingw* | cygwin* | os2* | pw32* | cegcc*)
18414 # This hack is so that the source file can tell whether it is being
18415 # built for inclusion in a dll (and should export symbols for example).
18416 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18417 # (--disable-auto-import) libraries
18418 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18419 ;;
18420 darwin* | rhapsody*)
18421 # PIC is the default on this platform
18422 # Common symbols not allowed in MH_DYLIB files
18423 lt_prog_compiler_pic_CXX='-fno-common'
18424 ;;
18425 *djgpp*)
18426 # DJGPP does not support shared libraries at all
18427 lt_prog_compiler_pic_CXX=
18428 ;;
cristy0c60a692010-11-04 01:09:47 +000018429 haiku*)
18430 # PIC is the default for Haiku.
18431 # The "-static" flag exists, but is broken.
18432 lt_prog_compiler_static_CXX=
18433 ;;
cristy73bd4a52010-10-05 11:24:23 +000018434 interix[3-9]*)
18435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18436 # Instead, we relocate shared libraries at runtime.
18437 ;;
18438 sysv4*MP*)
18439 if test -d /usr/nec; then
18440 lt_prog_compiler_pic_CXX=-Kconform_pic
18441 fi
18442 ;;
18443 hpux*)
18444 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18445 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18446 # sets the default TLS model and affects inlining.
18447 case $host_cpu in
18448 hppa*64*)
18449 ;;
18450 *)
18451 lt_prog_compiler_pic_CXX='-fPIC'
18452 ;;
18453 esac
18454 ;;
18455 *qnx* | *nto*)
18456 # QNX uses GNU C++, but need to define -shared option too, otherwise
18457 # it will coredump.
18458 lt_prog_compiler_pic_CXX='-fPIC -shared'
18459 ;;
18460 *)
18461 lt_prog_compiler_pic_CXX='-fPIC'
18462 ;;
18463 esac
18464 else
18465 case $host_os in
18466 aix[4-9]*)
18467 # All AIX code is PIC.
18468 if test "$host_cpu" = ia64; then
18469 # AIX 5 now supports IA64 processor
18470 lt_prog_compiler_static_CXX='-Bstatic'
18471 else
18472 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18473 fi
18474 ;;
18475 chorus*)
18476 case $cc_basename in
18477 cxch68*)
18478 # Green Hills C++ Compiler
18479 # _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"
18480 ;;
18481 esac
18482 ;;
cristyda16f162011-02-19 23:52:17 +000018483 mingw* | cygwin* | os2* | pw32* | cegcc*)
18484 # This hack is so that the source file can tell whether it is being
18485 # built for inclusion in a dll (and should export symbols for example).
18486 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18487 ;;
cristy73bd4a52010-10-05 11:24:23 +000018488 dgux*)
18489 case $cc_basename in
18490 ec++*)
18491 lt_prog_compiler_pic_CXX='-KPIC'
18492 ;;
18493 ghcx*)
18494 # Green Hills C++ Compiler
18495 lt_prog_compiler_pic_CXX='-pic'
18496 ;;
18497 *)
18498 ;;
18499 esac
18500 ;;
18501 freebsd* | dragonfly*)
18502 # FreeBSD uses GNU C++
18503 ;;
18504 hpux9* | hpux10* | hpux11*)
18505 case $cc_basename in
18506 CC*)
18507 lt_prog_compiler_wl_CXX='-Wl,'
18508 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18509 if test "$host_cpu" != ia64; then
18510 lt_prog_compiler_pic_CXX='+Z'
18511 fi
18512 ;;
18513 aCC*)
18514 lt_prog_compiler_wl_CXX='-Wl,'
18515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18516 case $host_cpu in
18517 hppa*64*|ia64*)
18518 # +Z the default
18519 ;;
18520 *)
18521 lt_prog_compiler_pic_CXX='+Z'
18522 ;;
18523 esac
18524 ;;
18525 *)
18526 ;;
18527 esac
18528 ;;
18529 interix*)
18530 # This is c89, which is MS Visual C++ (no shared libs)
18531 # Anyone wants to do a port?
18532 ;;
18533 irix5* | irix6* | nonstopux*)
18534 case $cc_basename in
18535 CC*)
18536 lt_prog_compiler_wl_CXX='-Wl,'
18537 lt_prog_compiler_static_CXX='-non_shared'
18538 # CC pic flag -KPIC is the default.
18539 ;;
18540 *)
18541 ;;
18542 esac
18543 ;;
cristy0c60a692010-11-04 01:09:47 +000018544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018545 case $cc_basename in
18546 KCC*)
18547 # KAI C++ Compiler
18548 lt_prog_compiler_wl_CXX='--backend -Wl,'
18549 lt_prog_compiler_pic_CXX='-fPIC'
18550 ;;
18551 ecpc* )
18552 # old Intel C++ for x86_64 which still supported -KPIC.
18553 lt_prog_compiler_wl_CXX='-Wl,'
18554 lt_prog_compiler_pic_CXX='-KPIC'
18555 lt_prog_compiler_static_CXX='-static'
18556 ;;
18557 icpc* )
18558 # Intel C++, used to be incompatible with GCC.
18559 # ICC 10 doesn't accept -KPIC any more.
18560 lt_prog_compiler_wl_CXX='-Wl,'
18561 lt_prog_compiler_pic_CXX='-fPIC'
18562 lt_prog_compiler_static_CXX='-static'
18563 ;;
18564 pgCC* | pgcpp*)
18565 # Portland Group C++ compiler
18566 lt_prog_compiler_wl_CXX='-Wl,'
18567 lt_prog_compiler_pic_CXX='-fpic'
18568 lt_prog_compiler_static_CXX='-Bstatic'
18569 ;;
18570 cxx*)
18571 # Compaq C++
18572 # Make sure the PIC flag is empty. It appears that all Alpha
18573 # Linux and Compaq Tru64 Unix objects are PIC.
18574 lt_prog_compiler_pic_CXX=
18575 lt_prog_compiler_static_CXX='-non_shared'
18576 ;;
cristy0c60a692010-11-04 01:09:47 +000018577 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18578 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018579 lt_prog_compiler_wl_CXX='-Wl,'
18580 lt_prog_compiler_pic_CXX='-qpic'
18581 lt_prog_compiler_static_CXX='-qstaticlink'
18582 ;;
18583 *)
18584 case `$CC -V 2>&1 | sed 5q` in
18585 *Sun\ C*)
18586 # Sun C++ 5.9
18587 lt_prog_compiler_pic_CXX='-KPIC'
18588 lt_prog_compiler_static_CXX='-Bstatic'
18589 lt_prog_compiler_wl_CXX='-Qoption ld '
18590 ;;
18591 esac
18592 ;;
18593 esac
18594 ;;
18595 lynxos*)
18596 ;;
18597 m88k*)
18598 ;;
18599 mvs*)
18600 case $cc_basename in
18601 cxx*)
18602 lt_prog_compiler_pic_CXX='-W c,exportall'
18603 ;;
18604 *)
18605 ;;
18606 esac
18607 ;;
18608 netbsd*)
18609 ;;
18610 *qnx* | *nto*)
18611 # QNX uses GNU C++, but need to define -shared option too, otherwise
18612 # it will coredump.
18613 lt_prog_compiler_pic_CXX='-fPIC -shared'
18614 ;;
18615 osf3* | osf4* | osf5*)
18616 case $cc_basename in
18617 KCC*)
18618 lt_prog_compiler_wl_CXX='--backend -Wl,'
18619 ;;
18620 RCC*)
18621 # Rational C++ 2.4.1
18622 lt_prog_compiler_pic_CXX='-pic'
18623 ;;
18624 cxx*)
18625 # Digital/Compaq C++
18626 lt_prog_compiler_wl_CXX='-Wl,'
18627 # Make sure the PIC flag is empty. It appears that all Alpha
18628 # Linux and Compaq Tru64 Unix objects are PIC.
18629 lt_prog_compiler_pic_CXX=
18630 lt_prog_compiler_static_CXX='-non_shared'
18631 ;;
18632 *)
18633 ;;
18634 esac
18635 ;;
18636 psos*)
18637 ;;
18638 solaris*)
18639 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018640 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018641 # Sun C++ 4.2, 5.x and Centerline C++
18642 lt_prog_compiler_pic_CXX='-KPIC'
18643 lt_prog_compiler_static_CXX='-Bstatic'
18644 lt_prog_compiler_wl_CXX='-Qoption ld '
18645 ;;
18646 gcx*)
18647 # Green Hills C++ Compiler
18648 lt_prog_compiler_pic_CXX='-PIC'
18649 ;;
18650 *)
18651 ;;
18652 esac
18653 ;;
18654 sunos4*)
18655 case $cc_basename in
18656 CC*)
18657 # Sun C++ 4.x
18658 lt_prog_compiler_pic_CXX='-pic'
18659 lt_prog_compiler_static_CXX='-Bstatic'
18660 ;;
18661 lcc*)
18662 # Lucid
18663 lt_prog_compiler_pic_CXX='-pic'
18664 ;;
18665 *)
18666 ;;
18667 esac
18668 ;;
18669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18670 case $cc_basename in
18671 CC*)
18672 lt_prog_compiler_wl_CXX='-Wl,'
18673 lt_prog_compiler_pic_CXX='-KPIC'
18674 lt_prog_compiler_static_CXX='-Bstatic'
18675 ;;
18676 esac
18677 ;;
18678 tandem*)
18679 case $cc_basename in
18680 NCC*)
18681 # NonStop-UX NCC 3.20
18682 lt_prog_compiler_pic_CXX='-KPIC'
18683 ;;
18684 *)
18685 ;;
18686 esac
18687 ;;
18688 vxworks*)
18689 ;;
18690 *)
18691 lt_prog_compiler_can_build_shared_CXX=no
18692 ;;
18693 esac
18694 fi
18695
18696case $host_os in
18697 # For platforms which do not support PIC, -DPIC is meaningless:
18698 *djgpp*)
18699 lt_prog_compiler_pic_CXX=
18700 ;;
18701 *)
18702 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18703 ;;
18704esac
cristy73bd4a52010-10-05 11:24:23 +000018705
cristyda16f162011-02-19 23:52:17 +000018706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18707$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18708if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18709 $as_echo_n "(cached) " >&6
18710else
18711 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18712fi
18713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18714$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18715lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018716
18717#
18718# Check to make sure the PIC flag actually works.
18719#
18720if test -n "$lt_prog_compiler_pic_CXX"; then
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18722$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018723if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018724 $as_echo_n "(cached) " >&6
18725else
18726 lt_cv_prog_compiler_pic_works_CXX=no
18727 ac_outfile=conftest.$ac_objext
18728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18729 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18730 # Insert the option either (1) after the last *FLAGS variable, or
18731 # (2) before a word containing "conftest.", or (3) at the end.
18732 # Note that $ac_compile itself does not contain backslashes and begins
18733 # with a dollar sign (not a hyphen), so the echo should work correctly.
18734 # The option is referenced via a variable to avoid confusing sed.
18735 lt_compile=`echo "$ac_compile" | $SED \
18736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18738 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018740 (eval "$lt_compile" 2>conftest.err)
18741 ac_status=$?
18742 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018744 if (exit $ac_status) && test -s "$ac_outfile"; then
18745 # The compiler can only warn and ignore the option if not recognized
18746 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18750 lt_cv_prog_compiler_pic_works_CXX=yes
18751 fi
18752 fi
18753 $RM conftest*
18754
18755fi
18756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18757$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18758
18759if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18760 case $lt_prog_compiler_pic_CXX in
18761 "" | " "*) ;;
18762 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18763 esac
18764else
18765 lt_prog_compiler_pic_CXX=
18766 lt_prog_compiler_can_build_shared_CXX=no
18767fi
18768
18769fi
18770
18771
18772
cristyda16f162011-02-19 23:52:17 +000018773
18774
cristy73bd4a52010-10-05 11:24:23 +000018775#
18776# Check to make sure the static flag actually works.
18777#
18778wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18780$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018781if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018782 $as_echo_n "(cached) " >&6
18783else
18784 lt_cv_prog_compiler_static_works_CXX=no
18785 save_LDFLAGS="$LDFLAGS"
18786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18789 # The linker can only warn and ignore the option if not recognized
18790 # So say no if there are warnings
18791 if test -s conftest.err; then
18792 # Append any errors to the config.log.
18793 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018794 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18796 if diff conftest.exp conftest.er2 >/dev/null; then
18797 lt_cv_prog_compiler_static_works_CXX=yes
18798 fi
18799 else
18800 lt_cv_prog_compiler_static_works_CXX=yes
18801 fi
18802 fi
18803 $RM -r conftest*
18804 LDFLAGS="$save_LDFLAGS"
18805
18806fi
18807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18808$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18809
18810if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18811 :
18812else
18813 lt_prog_compiler_static_CXX=
18814fi
18815
18816
18817
18818
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18820$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018821if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018822 $as_echo_n "(cached) " >&6
18823else
18824 lt_cv_prog_compiler_c_o_CXX=no
18825 $RM -r conftest 2>/dev/null
18826 mkdir conftest
18827 cd conftest
18828 mkdir out
18829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18830
18831 lt_compiler_flag="-o out/conftest2.$ac_objext"
18832 # Insert the option either (1) after the last *FLAGS variable, or
18833 # (2) before a word containing "conftest.", or (3) at the end.
18834 # Note that $ac_compile itself does not contain backslashes and begins
18835 # with a dollar sign (not a hyphen), so the echo should work correctly.
18836 lt_compile=`echo "$ac_compile" | $SED \
18837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18839 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018840 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018841 (eval "$lt_compile" 2>out/conftest.err)
18842 ac_status=$?
18843 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18846 then
18847 # The compiler can only warn and ignore the option if not recognized
18848 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018849 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18852 lt_cv_prog_compiler_c_o_CXX=yes
18853 fi
18854 fi
18855 chmod u+w . 2>&5
18856 $RM conftest*
18857 # SGI C++ compiler will create directory out/ii_files/ for
18858 # template instantiation
18859 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18860 $RM out/* && rmdir out
18861 cd ..
18862 $RM -r conftest
18863 $RM conftest*
18864
18865fi
18866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18867$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18868
18869
18870
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18872$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018873if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018874 $as_echo_n "(cached) " >&6
18875else
18876 lt_cv_prog_compiler_c_o_CXX=no
18877 $RM -r conftest 2>/dev/null
18878 mkdir conftest
18879 cd conftest
18880 mkdir out
18881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18882
18883 lt_compiler_flag="-o out/conftest2.$ac_objext"
18884 # Insert the option either (1) after the last *FLAGS variable, or
18885 # (2) before a word containing "conftest.", or (3) at the end.
18886 # Note that $ac_compile itself does not contain backslashes and begins
18887 # with a dollar sign (not a hyphen), so the echo should work correctly.
18888 lt_compile=`echo "$ac_compile" | $SED \
18889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18891 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018893 (eval "$lt_compile" 2>out/conftest.err)
18894 ac_status=$?
18895 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18898 then
18899 # The compiler can only warn and ignore the option if not recognized
18900 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18904 lt_cv_prog_compiler_c_o_CXX=yes
18905 fi
18906 fi
18907 chmod u+w . 2>&5
18908 $RM conftest*
18909 # SGI C++ compiler will create directory out/ii_files/ for
18910 # template instantiation
18911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18912 $RM out/* && rmdir out
18913 cd ..
18914 $RM -r conftest
18915 $RM conftest*
18916
18917fi
18918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18919$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18920
18921
18922
18923
18924hard_links="nottested"
18925if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18926 # do not overwrite the value of need_locks provided by the user
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18928$as_echo_n "checking if we can lock with hard links... " >&6; }
18929 hard_links=yes
18930 $RM conftest*
18931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18932 touch conftest.a
18933 ln conftest.a conftest.b 2>&5 || hard_links=no
18934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18936$as_echo "$hard_links" >&6; }
18937 if test "$hard_links" = no; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18939$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18940 need_locks=warn
18941 fi
18942else
18943 need_locks=no
18944fi
18945
18946
18947
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18949$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18950
18951 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018952 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018953 case $host_os in
18954 aix[4-9]*)
18955 # If we're using GNU nm, then we don't want the "-C" option.
18956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018957 # Also, AIX nm treats weak defined symbols like other global defined
18958 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018959 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018960 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 +000018961 else
18962 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'
18963 fi
18964 ;;
18965 pw32*)
18966 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018967 ;;
cristy73bd4a52010-10-05 11:24:23 +000018968 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018969 case $cc_basename in
18970 cl*) ;;
18971 *)
18972 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'
18973 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18974 ;;
18975 esac
18976 ;;
cristy73bd4a52010-10-05 11:24:23 +000018977 *)
18978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018979 ;;
cristy73bd4a52010-10-05 11:24:23 +000018980 esac
cristy73bd4a52010-10-05 11:24:23 +000018981
18982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18983$as_echo "$ld_shlibs_CXX" >&6; }
18984test "$ld_shlibs_CXX" = no && can_build_shared=no
18985
18986with_gnu_ld_CXX=$with_gnu_ld
18987
18988
18989
18990
18991
18992
18993#
18994# Do we need to explicitly link libc?
18995#
18996case "x$archive_cmds_need_lc_CXX" in
18997x|xyes)
18998 # Assume -lc should be added
18999 archive_cmds_need_lc_CXX=yes
19000
19001 if test "$enable_shared" = yes && test "$GCC" = yes; then
19002 case $archive_cmds_CXX in
19003 *'~'*)
19004 # FIXME: we may have to deal with multi-command sequences.
19005 ;;
19006 '$CC '*)
19007 # Test whether the compiler implicitly links with -lc since on some
19008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19009 # to ld, don't add -lc before -lgcc.
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19011$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019012if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019013 $as_echo_n "(cached) " >&6
19014else
19015 $RM conftest*
19016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019017
cristy0c60a692010-11-04 01:09:47 +000019018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019019 (eval $ac_compile) 2>&5
19020 ac_status=$?
19021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19022 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019023 soname=conftest
19024 lib=conftest
19025 libobjs=conftest.$ac_objext
19026 deplibs=
19027 wl=$lt_prog_compiler_wl_CXX
19028 pic_flag=$lt_prog_compiler_pic_CXX
19029 compiler_flags=-v
19030 linker_flags=-v
19031 verstring=
19032 output_objdir=.
19033 libname=conftest
19034 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19035 allow_undefined_flag_CXX=
19036 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 +000019037 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19038 ac_status=$?
19039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19040 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019041 then
19042 lt_cv_archive_cmds_need_lc_CXX=no
19043 else
19044 lt_cv_archive_cmds_need_lc_CXX=yes
19045 fi
19046 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19047 else
19048 cat conftest.err 1>&5
19049 fi
19050 $RM conftest*
19051
19052fi
19053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19054$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19055 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019056 ;;
19057 esac
19058 fi
19059 ;;
19060esac
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19126$as_echo_n "checking dynamic linker characteristics... " >&6; }
19127
19128library_names_spec=
19129libname_spec='lib$name'
19130soname_spec=
19131shrext_cmds=".so"
19132postinstall_cmds=
19133postuninstall_cmds=
19134finish_cmds=
19135finish_eval=
19136shlibpath_var=
19137shlibpath_overrides_runpath=unknown
19138version_type=none
19139dynamic_linker="$host_os ld.so"
19140sys_lib_dlsearch_path_spec="/lib /usr/lib"
19141need_lib_prefix=unknown
19142hardcode_into_libs=no
19143
19144# when you set need_version to no, make sure it does not cause -set_version
19145# flags to be left without arguments
19146need_version=unknown
19147
19148case $host_os in
19149aix3*)
19150 version_type=linux
19151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19152 shlibpath_var=LIBPATH
19153
19154 # AIX 3 has no versioning support, so we append a major version to the name.
19155 soname_spec='${libname}${release}${shared_ext}$major'
19156 ;;
19157
19158aix[4-9]*)
19159 version_type=linux
19160 need_lib_prefix=no
19161 need_version=no
19162 hardcode_into_libs=yes
19163 if test "$host_cpu" = ia64; then
19164 # AIX 5 supports IA64
19165 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19166 shlibpath_var=LD_LIBRARY_PATH
19167 else
19168 # With GCC up to 2.95.x, collect2 would create an import file
19169 # for dependence libraries. The import file would start with
19170 # the line `#! .'. This would cause the generated library to
19171 # depend on `.', always an invalid library. This was fixed in
19172 # development snapshots of GCC prior to 3.0.
19173 case $host_os in
19174 aix4 | aix4.[01] | aix4.[01].*)
19175 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19176 echo ' yes '
19177 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19178 :
19179 else
19180 can_build_shared=no
19181 fi
19182 ;;
19183 esac
19184 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19185 # soname into executable. Probably we can add versioning support to
19186 # collect2, so additional links can be useful in future.
19187 if test "$aix_use_runtimelinking" = yes; then
19188 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19189 # instead of lib<name>.a to let people know that these are not
19190 # typical AIX shared libraries.
19191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19192 else
19193 # We preserve .a as extension for shared libraries through AIX4.2
19194 # and later when we are not doing run time linking.
19195 library_names_spec='${libname}${release}.a $libname.a'
19196 soname_spec='${libname}${release}${shared_ext}$major'
19197 fi
19198 shlibpath_var=LIBPATH
19199 fi
19200 ;;
19201
19202amigaos*)
19203 case $host_cpu in
19204 powerpc)
19205 # Since July 2007 AmigaOS4 officially supports .so libraries.
19206 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208 ;;
19209 m68k)
19210 library_names_spec='$libname.ixlibrary $libname.a'
19211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019212 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 +000019213 ;;
19214 esac
19215 ;;
19216
19217beos*)
19218 library_names_spec='${libname}${shared_ext}'
19219 dynamic_linker="$host_os ld.so"
19220 shlibpath_var=LIBRARY_PATH
19221 ;;
19222
19223bsdi[45]*)
19224 version_type=linux
19225 need_version=no
19226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19227 soname_spec='${libname}${release}${shared_ext}$major'
19228 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19229 shlibpath_var=LD_LIBRARY_PATH
19230 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19231 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19232 # the default ld.so.conf also contains /usr/contrib/lib and
19233 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19234 # libtool to hard-code these into programs
19235 ;;
19236
19237cygwin* | mingw* | pw32* | cegcc*)
19238 version_type=windows
19239 shrext_cmds=".dll"
19240 need_version=no
19241 need_lib_prefix=no
19242
cristyda16f162011-02-19 23:52:17 +000019243 case $GCC,$cc_basename in
19244 yes,*)
19245 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019246 library_names_spec='$libname.dll.a'
19247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19248 postinstall_cmds='base_file=`basename \${file}`~
19249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19250 dldir=$destdir/`dirname \$dlpath`~
19251 test -d \$dldir || mkdir -p \$dldir~
19252 $install_prog $dir/$dlname \$dldir/$dlname~
19253 chmod a+x \$dldir/$dlname~
19254 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19255 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19256 fi'
19257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19258 dlpath=$dir/\$dldll~
19259 $RM \$dlpath'
19260 shlibpath_overrides_runpath=yes
19261
19262 case $host_os in
19263 cygwin*)
19264 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19265 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019266
cristy73bd4a52010-10-05 11:24:23 +000019267 ;;
19268 mingw* | cegcc*)
19269 # MinGW DLLs use traditional 'lib' prefix
19270 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019271 ;;
19272 pw32*)
19273 # pw32 DLLs use 'pw' prefix rather than 'lib'
19274 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19275 ;;
19276 esac
cristyda16f162011-02-19 23:52:17 +000019277 dynamic_linker='Win32 ld.exe'
19278 ;;
19279
19280 *,cl*)
19281 # Native MSVC
19282 libname_spec='$name'
19283 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19284 library_names_spec='${libname}.dll.lib'
19285
19286 case $build_os in
19287 mingw*)
19288 sys_lib_search_path_spec=
19289 lt_save_ifs=$IFS
19290 IFS=';'
19291 for lt_path in $LIB
19292 do
19293 IFS=$lt_save_ifs
19294 # Let DOS variable expansion print the short 8.3 style file name.
19295 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19296 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19297 done
19298 IFS=$lt_save_ifs
19299 # Convert to MSYS style.
19300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19301 ;;
19302 cygwin*)
19303 # Convert to unix form, then to dos form, then back to unix form
19304 # but this time dos style (no spaces!) so that the unix form looks
19305 # like /cygdrive/c/PROGRA~1:/cygdr...
19306 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19307 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19308 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19309 ;;
19310 *)
19311 sys_lib_search_path_spec="$LIB"
19312 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19313 # It is most probably a Windows format PATH.
19314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19315 else
19316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19317 fi
19318 # FIXME: find the short name or the path components, as spaces are
19319 # common. (e.g. "Program Files" -> "PROGRA~1")
19320 ;;
19321 esac
19322
19323 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19324 postinstall_cmds='base_file=`basename \${file}`~
19325 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19326 dldir=$destdir/`dirname \$dlpath`~
19327 test -d \$dldir || mkdir -p \$dldir~
19328 $install_prog $dir/$dlname \$dldir/$dlname'
19329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19330 dlpath=$dir/\$dldll~
19331 $RM \$dlpath'
19332 shlibpath_overrides_runpath=yes
19333 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019334 ;;
19335
19336 *)
cristyda16f162011-02-19 23:52:17 +000019337 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019339 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019340 ;;
19341 esac
cristy73bd4a52010-10-05 11:24:23 +000019342 # FIXME: first we should search . and the directory the executable is in
19343 shlibpath_var=PATH
19344 ;;
19345
19346darwin* | rhapsody*)
19347 dynamic_linker="$host_os dyld"
19348 version_type=darwin
19349 need_lib_prefix=no
19350 need_version=no
19351 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19352 soname_spec='${libname}${release}${major}$shared_ext'
19353 shlibpath_overrides_runpath=yes
19354 shlibpath_var=DYLD_LIBRARY_PATH
19355 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19356
19357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19358 ;;
19359
19360dgux*)
19361 version_type=linux
19362 need_lib_prefix=no
19363 need_version=no
19364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19365 soname_spec='${libname}${release}${shared_ext}$major'
19366 shlibpath_var=LD_LIBRARY_PATH
19367 ;;
19368
19369freebsd1*)
19370 dynamic_linker=no
19371 ;;
19372
19373freebsd* | dragonfly*)
19374 # DragonFly does not have aout. When/if they implement a new
19375 # versioning mechanism, adjust this.
19376 if test -x /usr/bin/objformat; then
19377 objformat=`/usr/bin/objformat`
19378 else
19379 case $host_os in
19380 freebsd[123]*) objformat=aout ;;
19381 *) objformat=elf ;;
19382 esac
19383 fi
19384 version_type=freebsd-$objformat
19385 case $version_type in
19386 freebsd-elf*)
19387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19388 need_version=no
19389 need_lib_prefix=no
19390 ;;
19391 freebsd-*)
19392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19393 need_version=yes
19394 ;;
19395 esac
19396 shlibpath_var=LD_LIBRARY_PATH
19397 case $host_os in
19398 freebsd2*)
19399 shlibpath_overrides_runpath=yes
19400 ;;
19401 freebsd3.[01]* | freebsdelf3.[01]*)
19402 shlibpath_overrides_runpath=yes
19403 hardcode_into_libs=yes
19404 ;;
19405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19407 shlibpath_overrides_runpath=no
19408 hardcode_into_libs=yes
19409 ;;
19410 *) # from 4.6 on, and DragonFly
19411 shlibpath_overrides_runpath=yes
19412 hardcode_into_libs=yes
19413 ;;
19414 esac
19415 ;;
19416
19417gnu*)
19418 version_type=linux
19419 need_lib_prefix=no
19420 need_version=no
19421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19422 soname_spec='${libname}${release}${shared_ext}$major'
19423 shlibpath_var=LD_LIBRARY_PATH
19424 hardcode_into_libs=yes
19425 ;;
19426
cristy0c60a692010-11-04 01:09:47 +000019427haiku*)
19428 version_type=linux
19429 need_lib_prefix=no
19430 need_version=no
19431 dynamic_linker="$host_os runtime_loader"
19432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19433 soname_spec='${libname}${release}${shared_ext}$major'
19434 shlibpath_var=LIBRARY_PATH
19435 shlibpath_overrides_runpath=yes
19436 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19437 hardcode_into_libs=yes
19438 ;;
19439
cristy73bd4a52010-10-05 11:24:23 +000019440hpux9* | hpux10* | hpux11*)
19441 # Give a soname corresponding to the major version so that dld.sl refuses to
19442 # link against other versions.
19443 version_type=sunos
19444 need_lib_prefix=no
19445 need_version=no
19446 case $host_cpu in
19447 ia64*)
19448 shrext_cmds='.so'
19449 hardcode_into_libs=yes
19450 dynamic_linker="$host_os dld.so"
19451 shlibpath_var=LD_LIBRARY_PATH
19452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
19456 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19457 else
19458 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19459 fi
19460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19461 ;;
19462 hppa*64*)
19463 shrext_cmds='.sl'
19464 hardcode_into_libs=yes
19465 dynamic_linker="$host_os dld.sl"
19466 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19469 soname_spec='${libname}${release}${shared_ext}$major'
19470 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19472 ;;
19473 *)
19474 shrext_cmds='.sl'
19475 dynamic_linker="$host_os dld.sl"
19476 shlibpath_var=SHLIB_PATH
19477 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19479 soname_spec='${libname}${release}${shared_ext}$major'
19480 ;;
19481 esac
cristy0c60a692010-11-04 01:09:47 +000019482 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019483 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019484 # or fails outright, so override atomically:
19485 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019486 ;;
19487
19488interix[3-9]*)
19489 version_type=linux
19490 need_lib_prefix=no
19491 need_version=no
19492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19493 soname_spec='${libname}${release}${shared_ext}$major'
19494 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19495 shlibpath_var=LD_LIBRARY_PATH
19496 shlibpath_overrides_runpath=no
19497 hardcode_into_libs=yes
19498 ;;
19499
19500irix5* | irix6* | nonstopux*)
19501 case $host_os in
19502 nonstopux*) version_type=nonstopux ;;
19503 *)
19504 if test "$lt_cv_prog_gnu_ld" = yes; then
19505 version_type=linux
19506 else
19507 version_type=irix
19508 fi ;;
19509 esac
19510 need_lib_prefix=no
19511 need_version=no
19512 soname_spec='${libname}${release}${shared_ext}$major'
19513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19514 case $host_os in
19515 irix5* | nonstopux*)
19516 libsuff= shlibsuff=
19517 ;;
19518 *)
19519 case $LD in # libtool.m4 will add one of these switches to LD
19520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19521 libsuff= shlibsuff= libmagic=32-bit;;
19522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19523 libsuff=32 shlibsuff=N32 libmagic=N32;;
19524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19526 *) libsuff= shlibsuff= libmagic=never-match;;
19527 esac
19528 ;;
19529 esac
19530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19531 shlibpath_overrides_runpath=no
19532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19534 hardcode_into_libs=yes
19535 ;;
19536
19537# No shared lib support for Linux oldld, aout, or coff.
19538linux*oldld* | linux*aout* | linux*coff*)
19539 dynamic_linker=no
19540 ;;
19541
19542# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019543linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019544 version_type=linux
19545 need_lib_prefix=no
19546 need_version=no
19547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19548 soname_spec='${libname}${release}${shared_ext}$major'
19549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19550 shlibpath_var=LD_LIBRARY_PATH
19551 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019552
cristy73bd4a52010-10-05 11:24:23 +000019553 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019554 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019555 $as_echo_n "(cached) " >&6
19556else
19557 lt_cv_shlibpath_overrides_runpath=no
19558 save_LDFLAGS=$LDFLAGS
19559 save_libdir=$libdir
19560 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19561 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019563/* end confdefs.h. */
19564
19565int
19566main ()
19567{
19568
19569 ;
19570 return 0;
19571}
19572_ACEOF
19573if ac_fn_cxx_try_link "$LINENO"; then :
19574 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019575 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019576fi
19577fi
19578rm -f core conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019580 LDFLAGS=$save_LDFLAGS
19581 libdir=$save_libdir
19582
19583fi
19584
19585 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019586
19587 # This implies no fast_install, which is unacceptable.
19588 # Some rework will be needed to allow for fast_install
19589 # before this can be enabled.
19590 hardcode_into_libs=yes
19591
19592 # Add ABI-specific directories to the system library path.
19593 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19594
19595 # Append ld.so.conf contents to the search path
19596 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019597 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 +000019598 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019599
cristy73bd4a52010-10-05 11:24:23 +000019600 fi
19601
19602 # We used to test for /lib/ld.so.1 and disable shared libraries on
19603 # powerpc, because MkLinux only supported shared libraries with the
19604 # GNU dynamic linker. Since this was broken with cross compilers,
19605 # most powerpc-linux boxes support dynamic linking these days and
19606 # people can always --disable-shared, the test was removed, and we
19607 # assume the GNU/Linux dynamic linker is in use.
19608 dynamic_linker='GNU/Linux ld.so'
19609 ;;
19610
19611netbsd*)
19612 version_type=sunos
19613 need_lib_prefix=no
19614 need_version=no
19615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19618 dynamic_linker='NetBSD (a.out) ld.so'
19619 else
19620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19621 soname_spec='${libname}${release}${shared_ext}$major'
19622 dynamic_linker='NetBSD ld.elf_so'
19623 fi
19624 shlibpath_var=LD_LIBRARY_PATH
19625 shlibpath_overrides_runpath=yes
19626 hardcode_into_libs=yes
19627 ;;
19628
19629newsos6)
19630 version_type=linux
19631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19632 shlibpath_var=LD_LIBRARY_PATH
19633 shlibpath_overrides_runpath=yes
19634 ;;
19635
19636*nto* | *qnx*)
19637 version_type=qnx
19638 need_lib_prefix=no
19639 need_version=no
19640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19641 soname_spec='${libname}${release}${shared_ext}$major'
19642 shlibpath_var=LD_LIBRARY_PATH
19643 shlibpath_overrides_runpath=no
19644 hardcode_into_libs=yes
19645 dynamic_linker='ldqnx.so'
19646 ;;
19647
19648openbsd*)
19649 version_type=sunos
19650 sys_lib_dlsearch_path_spec="/usr/lib"
19651 need_lib_prefix=no
19652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19653 case $host_os in
19654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19655 *) need_version=no ;;
19656 esac
19657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19659 shlibpath_var=LD_LIBRARY_PATH
19660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19661 case $host_os in
19662 openbsd2.[89] | openbsd2.[89].*)
19663 shlibpath_overrides_runpath=no
19664 ;;
19665 *)
19666 shlibpath_overrides_runpath=yes
19667 ;;
19668 esac
19669 else
19670 shlibpath_overrides_runpath=yes
19671 fi
19672 ;;
19673
19674os2*)
19675 libname_spec='$name'
19676 shrext_cmds=".dll"
19677 need_lib_prefix=no
19678 library_names_spec='$libname${shared_ext} $libname.a'
19679 dynamic_linker='OS/2 ld.exe'
19680 shlibpath_var=LIBPATH
19681 ;;
19682
19683osf3* | osf4* | osf5*)
19684 version_type=osf
19685 need_lib_prefix=no
19686 need_version=no
19687 soname_spec='${libname}${release}${shared_ext}$major'
19688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19689 shlibpath_var=LD_LIBRARY_PATH
19690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19692 ;;
19693
19694rdos*)
19695 dynamic_linker=no
19696 ;;
19697
19698solaris*)
19699 version_type=linux
19700 need_lib_prefix=no
19701 need_version=no
19702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19703 soname_spec='${libname}${release}${shared_ext}$major'
19704 shlibpath_var=LD_LIBRARY_PATH
19705 shlibpath_overrides_runpath=yes
19706 hardcode_into_libs=yes
19707 # ldd complains unless libraries are executable
19708 postinstall_cmds='chmod +x $lib'
19709 ;;
19710
19711sunos4*)
19712 version_type=sunos
19713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19715 shlibpath_var=LD_LIBRARY_PATH
19716 shlibpath_overrides_runpath=yes
19717 if test "$with_gnu_ld" = yes; then
19718 need_lib_prefix=no
19719 fi
19720 need_version=yes
19721 ;;
19722
19723sysv4 | sysv4.3*)
19724 version_type=linux
19725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19726 soname_spec='${libname}${release}${shared_ext}$major'
19727 shlibpath_var=LD_LIBRARY_PATH
19728 case $host_vendor in
19729 sni)
19730 shlibpath_overrides_runpath=no
19731 need_lib_prefix=no
19732 runpath_var=LD_RUN_PATH
19733 ;;
19734 siemens)
19735 need_lib_prefix=no
19736 ;;
19737 motorola)
19738 need_lib_prefix=no
19739 need_version=no
19740 shlibpath_overrides_runpath=no
19741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19742 ;;
19743 esac
19744 ;;
19745
19746sysv4*MP*)
19747 if test -d /usr/nec ;then
19748 version_type=linux
19749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19750 soname_spec='$libname${shared_ext}.$major'
19751 shlibpath_var=LD_LIBRARY_PATH
19752 fi
19753 ;;
19754
19755sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19756 version_type=freebsd-elf
19757 need_lib_prefix=no
19758 need_version=no
19759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19760 soname_spec='${libname}${release}${shared_ext}$major'
19761 shlibpath_var=LD_LIBRARY_PATH
19762 shlibpath_overrides_runpath=yes
19763 hardcode_into_libs=yes
19764 if test "$with_gnu_ld" = yes; then
19765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19766 else
19767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19768 case $host_os in
19769 sco3.2v5*)
19770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19771 ;;
19772 esac
19773 fi
19774 sys_lib_dlsearch_path_spec='/usr/lib'
19775 ;;
19776
19777tpf*)
19778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19779 version_type=linux
19780 need_lib_prefix=no
19781 need_version=no
19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783 shlibpath_var=LD_LIBRARY_PATH
19784 shlibpath_overrides_runpath=no
19785 hardcode_into_libs=yes
19786 ;;
19787
19788uts4*)
19789 version_type=linux
19790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19791 soname_spec='${libname}${release}${shared_ext}$major'
19792 shlibpath_var=LD_LIBRARY_PATH
19793 ;;
19794
19795*)
19796 dynamic_linker=no
19797 ;;
19798esac
19799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19800$as_echo "$dynamic_linker" >&6; }
19801test "$dynamic_linker" = no && can_build_shared=no
19802
19803variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19804if test "$GCC" = yes; then
19805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19806fi
19807
19808if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19810fi
19811if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19813fi
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
cristy0c60a692010-11-04 01:09:47 +000019850
19851
cristy73bd4a52010-10-05 11:24:23 +000019852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19853$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19854hardcode_action_CXX=
19855if test -n "$hardcode_libdir_flag_spec_CXX" ||
19856 test -n "$runpath_var_CXX" ||
19857 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19858
19859 # We can hardcode non-existent directories.
19860 if test "$hardcode_direct_CXX" != no &&
19861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19862 # have to relink, otherwise we might link with an installed library
19863 # when we should be linking with a yet-to-be-installed one
19864 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19865 test "$hardcode_minus_L_CXX" != no; then
19866 # Linking always hardcodes the temporary library directory.
19867 hardcode_action_CXX=relink
19868 else
19869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19870 hardcode_action_CXX=immediate
19871 fi
19872else
19873 # We cannot hardcode anything, or else we can only hardcode existing
19874 # directories.
19875 hardcode_action_CXX=unsupported
19876fi
19877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19878$as_echo "$hardcode_action_CXX" >&6; }
19879
19880if test "$hardcode_action_CXX" = relink ||
19881 test "$inherit_rpath_CXX" = yes; then
19882 # Fast installation is not supported
19883 enable_fast_install=no
19884elif test "$shlibpath_overrides_runpath" = yes ||
19885 test "$enable_shared" = no; then
19886 # Fast installation is not necessary
19887 enable_fast_install=needless
19888fi
19889
19890
19891
19892
19893
19894
19895
19896 fi # test -n "$compiler"
19897
19898 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019899 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019900 LDCXX=$LD
19901 LD=$lt_save_LD
19902 GCC=$lt_save_GCC
19903 with_gnu_ld=$lt_save_with_gnu_ld
19904 lt_cv_path_LDCXX=$lt_cv_path_LD
19905 lt_cv_path_LD=$lt_save_path_LD
19906 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19907 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19908fi # test "$_lt_caught_CXX_error" != yes
19909
19910ac_ext=c
19911ac_cpp='$CPP $CPPFLAGS'
19912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19914ac_compiler_gnu=$ac_cv_c_compiler_gnu
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928 ac_config_commands="$ac_config_commands libtool"
19929
19930
19931
19932
19933# Only expand once:
19934
19935
19936
cristy3ed852e2009-09-05 21:47:34 +000019937
19938
19939# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019940
19941
19942
19943
19944
19945
19946
cristy73bd4a52010-10-05 11:24:23 +000019947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19948$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019949if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019950 $as_echo_n "(cached) " >&6
19951else
19952
19953module=yes
19954eval libltdl_cv_shlibext=$shrext_cmds
19955
19956fi
19957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19958$as_echo "$libltdl_cv_shlibext" >&6; }
19959if test -n "$libltdl_cv_shlibext"; then
19960
19961cat >>confdefs.h <<_ACEOF
19962#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19963_ACEOF
19964
19965fi
19966
19967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19968$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019969if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019970 $as_echo_n "(cached) " >&6
19971else
19972 lt_cv_module_path_var="$shlibpath_var"
19973fi
19974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19975$as_echo "$lt_cv_module_path_var" >&6; }
19976if test -n "$lt_cv_module_path_var"; then
19977
19978cat >>confdefs.h <<_ACEOF
19979#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19980_ACEOF
19981
19982fi
19983
19984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19985$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019986if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019987 $as_echo_n "(cached) " >&6
19988else
19989 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19990fi
19991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19992$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19993if test -n "$lt_cv_sys_dlsearch_path"; then
19994 sys_dlsearch_path=
19995 for dir in $lt_cv_sys_dlsearch_path; do
19996 if test -z "$sys_dlsearch_path"; then
19997 sys_dlsearch_path="$dir"
19998 else
19999 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20000 fi
20001 done
20002
20003cat >>confdefs.h <<_ACEOF
20004#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20005_ACEOF
20006
20007fi
20008
20009
20010LT_DLLOADERS=
20011
20012
20013ac_ext=c
20014ac_cpp='$CPP $CPPFLAGS'
20015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20017ac_compiler_gnu=$ac_cv_c_compiler_gnu
20018
20019
20020LIBADD_DLOPEN=
20021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20022$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020023if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020024 $as_echo_n "(cached) " >&6
20025else
20026 ac_func_search_save_LIBS=$LIBS
20027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028/* end confdefs.h. */
20029
20030/* Override any GCC internal prototype to avoid an error.
20031 Use char because int might match the return type of a GCC
20032 builtin and then its argument prototype would still apply. */
20033#ifdef __cplusplus
20034extern "C"
20035#endif
20036char dlopen ();
20037int
20038main ()
20039{
20040return dlopen ();
20041 ;
20042 return 0;
20043}
20044_ACEOF
20045for ac_lib in '' dl; do
20046 if test -z "$ac_lib"; then
20047 ac_res="none required"
20048 else
20049 ac_res=-l$ac_lib
20050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20051 fi
20052 if ac_fn_c_try_link "$LINENO"; then :
20053 ac_cv_search_dlopen=$ac_res
20054fi
20055rm -f core conftest.err conftest.$ac_objext \
20056 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020057 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020058 break
20059fi
20060done
cristyda16f162011-02-19 23:52:17 +000020061if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020062
20063else
20064 ac_cv_search_dlopen=no
20065fi
20066rm conftest.$ac_ext
20067LIBS=$ac_func_search_save_LIBS
20068fi
20069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20070$as_echo "$ac_cv_search_dlopen" >&6; }
20071ac_res=$ac_cv_search_dlopen
20072if test "$ac_res" != no; then :
20073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20074
20075$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20076
20077 if test "$ac_cv_search_dlopen" != "none required" ; then
20078 LIBADD_DLOPEN="-ldl"
20079 fi
20080 libltdl_cv_lib_dl_dlopen="yes"
20081 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20082else
20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084/* end confdefs.h. */
20085#if HAVE_DLFCN_H
20086# include <dlfcn.h>
20087#endif
20088
20089int
20090main ()
20091{
20092dlopen(0, 0);
20093 ;
20094 return 0;
20095}
20096_ACEOF
20097if ac_fn_c_try_link "$LINENO"; then :
20098
20099$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20100
20101 libltdl_cv_func_dlopen="yes"
20102 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20103else
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20105$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020106if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020107 $as_echo_n "(cached) " >&6
20108else
20109 ac_check_lib_save_LIBS=$LIBS
20110LIBS="-lsvld $LIBS"
20111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112/* end confdefs.h. */
20113
20114/* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20117#ifdef __cplusplus
20118extern "C"
20119#endif
20120char dlopen ();
20121int
20122main ()
20123{
20124return dlopen ();
20125 ;
20126 return 0;
20127}
20128_ACEOF
20129if ac_fn_c_try_link "$LINENO"; then :
20130 ac_cv_lib_svld_dlopen=yes
20131else
20132 ac_cv_lib_svld_dlopen=no
20133fi
20134rm -f core conftest.err conftest.$ac_objext \
20135 conftest$ac_exeext conftest.$ac_ext
20136LIBS=$ac_check_lib_save_LIBS
20137fi
20138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20139$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020140if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020141
20142$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20143
20144 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20145 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20146fi
20147
20148fi
20149rm -f core conftest.err conftest.$ac_objext \
20150 conftest$ac_exeext conftest.$ac_ext
20151fi
20152
20153if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20154then
20155 lt_save_LIBS="$LIBS"
20156 LIBS="$LIBS $LIBADD_DLOPEN"
20157 for ac_func in dlerror
20158do :
20159 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020160if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020161 cat >>confdefs.h <<_ACEOF
20162#define HAVE_DLERROR 1
20163_ACEOF
20164
20165fi
20166done
20167
20168 LIBS="$lt_save_LIBS"
20169fi
20170
20171
20172LIBADD_SHL_LOAD=
20173ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020174if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020175
20176$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20177
20178 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20179else
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20181$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020182if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020183 $as_echo_n "(cached) " >&6
20184else
20185 ac_check_lib_save_LIBS=$LIBS
20186LIBS="-ldld $LIBS"
20187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188/* end confdefs.h. */
20189
20190/* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20193#ifdef __cplusplus
20194extern "C"
20195#endif
20196char shl_load ();
20197int
20198main ()
20199{
20200return shl_load ();
20201 ;
20202 return 0;
20203}
20204_ACEOF
20205if ac_fn_c_try_link "$LINENO"; then :
20206 ac_cv_lib_dld_shl_load=yes
20207else
20208 ac_cv_lib_dld_shl_load=no
20209fi
20210rm -f core conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
20212LIBS=$ac_check_lib_save_LIBS
20213fi
20214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20215$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020216if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020217
20218$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20219
20220 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20221 LIBADD_SHL_LOAD="-ldld"
20222fi
20223
20224fi
20225
20226
20227
20228case $host_os in
20229darwin[1567].*)
20230# We only want this for pre-Mac OS X 10.4.
20231 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020232if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020233
20234$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20235
20236 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20237fi
20238
20239 ;;
20240beos*)
20241 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20242 ;;
20243cygwin* | mingw* | os2* | pw32*)
20244 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20245"
cristyda16f162011-02-19 23:52:17 +000020246if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020247 ac_have_decl=1
20248else
20249 ac_have_decl=0
20250fi
20251
20252cat >>confdefs.h <<_ACEOF
20253#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20254_ACEOF
20255
20256 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20257 ;;
20258esac
20259
20260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20261$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020262if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020263 $as_echo_n "(cached) " >&6
20264else
20265 ac_check_lib_save_LIBS=$LIBS
20266LIBS="-ldld $LIBS"
20267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20268/* end confdefs.h. */
20269
20270/* Override any GCC internal prototype to avoid an error.
20271 Use char because int might match the return type of a GCC
20272 builtin and then its argument prototype would still apply. */
20273#ifdef __cplusplus
20274extern "C"
20275#endif
20276char dld_link ();
20277int
20278main ()
20279{
20280return dld_link ();
20281 ;
20282 return 0;
20283}
20284_ACEOF
20285if ac_fn_c_try_link "$LINENO"; then :
20286 ac_cv_lib_dld_dld_link=yes
20287else
20288 ac_cv_lib_dld_dld_link=no
20289fi
20290rm -f core conftest.err conftest.$ac_objext \
20291 conftest$ac_exeext conftest.$ac_ext
20292LIBS=$ac_check_lib_save_LIBS
20293fi
20294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20295$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020296if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020297
20298$as_echo "#define HAVE_DLD 1" >>confdefs.h
20299
20300 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20301fi
20302
20303
20304
20305
20306LT_DLPREOPEN=
20307if test -n "$LT_DLLOADERS"
20308then
20309 for lt_loader in $LT_DLLOADERS; do
20310 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20311 done
20312
20313$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20314
20315fi
20316
20317
20318LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20319
20320
20321ac_ext=c
20322ac_cpp='$CPP $CPPFLAGS'
20323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325ac_compiler_gnu=$ac_cv_c_compiler_gnu
20326
20327
20328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20329$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020330if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020331 $as_echo_n "(cached) " >&6
20332else
20333 lt_cv_sys_symbol_underscore=no
20334 cat > conftest.$ac_ext <<_LT_EOF
20335void nm_test_func(){}
20336int main(){nm_test_func;return 0;}
20337_LT_EOF
20338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20339 (eval $ac_compile) 2>&5
20340 ac_status=$?
20341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20342 test $ac_status = 0; }; then
20343 # Now try to grab the symbols.
20344 ac_nlist=conftest.nm
20345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20346 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20347 ac_status=$?
20348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20349 test $ac_status = 0; } && test -s "$ac_nlist"; then
20350 # See whether the symbols have a leading underscore.
20351 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20352 lt_cv_sys_symbol_underscore=yes
20353 else
20354 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20355 :
20356 else
20357 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20358 fi
20359 fi
20360 else
20361 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20362 fi
20363 else
20364 echo "configure: failed program was:" >&5
20365 cat conftest.c >&5
20366 fi
20367 rm -rf conftest*
20368
20369fi
20370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20371$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20372 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20373
20374
20375if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20376 if test x"$libltdl_cv_func_dlopen" = xyes ||
20377 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20379$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020380if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020381 $as_echo_n "(cached) " >&6
20382else
20383 libltdl_cv_need_uscore=unknown
20384 save_LIBS="$LIBS"
20385 LIBS="$LIBS $LIBADD_DLOPEN"
20386 if test "$cross_compiling" = yes; then :
20387 libltdl_cv_need_uscore=cross
20388else
20389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20390 lt_status=$lt_dlunknown
20391 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020392#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020393#include "confdefs.h"
20394
20395#if HAVE_DLFCN_H
20396#include <dlfcn.h>
20397#endif
20398
20399#include <stdio.h>
20400
20401#ifdef RTLD_GLOBAL
20402# define LT_DLGLOBAL RTLD_GLOBAL
20403#else
20404# ifdef DL_GLOBAL
20405# define LT_DLGLOBAL DL_GLOBAL
20406# else
20407# define LT_DLGLOBAL 0
20408# endif
20409#endif
20410
20411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20412 find out it does not work in some platform. */
20413#ifndef LT_DLLAZY_OR_NOW
20414# ifdef RTLD_LAZY
20415# define LT_DLLAZY_OR_NOW RTLD_LAZY
20416# else
20417# ifdef DL_LAZY
20418# define LT_DLLAZY_OR_NOW DL_LAZY
20419# else
20420# ifdef RTLD_NOW
20421# define LT_DLLAZY_OR_NOW RTLD_NOW
20422# else
20423# ifdef DL_NOW
20424# define LT_DLLAZY_OR_NOW DL_NOW
20425# else
20426# define LT_DLLAZY_OR_NOW 0
20427# endif
20428# endif
20429# endif
20430# endif
20431#endif
20432
cristy0c60a692010-11-04 01:09:47 +000020433/* When -fvisbility=hidden is used, assume the code has been annotated
20434 correspondingly for the symbols needed. */
20435#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020436int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020437#endif
20438
cristyda16f162011-02-19 23:52:17 +000020439int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020440int main ()
20441{
20442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20443 int status = $lt_dlunknown;
20444
20445 if (self)
20446 {
20447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020448 else
20449 {
20450 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20451 else puts (dlerror ());
20452 }
cristy73bd4a52010-10-05 11:24:23 +000020453 /* dlclose (self); */
20454 }
20455 else
20456 puts (dlerror ());
20457
20458 return status;
20459}
20460_LT_EOF
20461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20462 (eval $ac_link) 2>&5
20463 ac_status=$?
20464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20465 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20466 (./conftest; exit; ) >&5 2>/dev/null
20467 lt_status=$?
20468 case x$lt_status in
20469 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20470 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20471 x$lt_dlunknown|x*) ;;
20472 esac
20473 else :
20474 # compilation failed
20475
20476 fi
20477fi
20478rm -fr conftest*
20479
20480 LIBS="$save_LIBS"
20481
20482fi
20483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20484$as_echo "$libltdl_cv_need_uscore" >&6; }
20485 fi
20486fi
20487
20488if test x"$libltdl_cv_need_uscore" = xyes; then
20489
20490$as_echo "#define NEED_USCORE 1" >>confdefs.h
20491
20492fi
20493
20494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20495$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020496if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020497 $as_echo_n "(cached) " >&6
20498else
20499 # PORTME does your system automatically load deplibs for dlopen?
20500 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20501 # For now, we just catch OSes we know something about -- in the
20502 # future, we'll try test this programmatically.
20503 lt_cv_sys_dlopen_deplibs=unknown
20504 case $host_os in
20505 aix3*|aix4.1.*|aix4.2.*)
20506 # Unknown whether this is true for these versions of AIX, but
20507 # we want this `case' here to explicitly catch those versions.
20508 lt_cv_sys_dlopen_deplibs=unknown
20509 ;;
20510 aix[4-9]*)
20511 lt_cv_sys_dlopen_deplibs=yes
20512 ;;
20513 amigaos*)
20514 case $host_cpu in
20515 powerpc)
20516 lt_cv_sys_dlopen_deplibs=no
20517 ;;
20518 esac
20519 ;;
20520 darwin*)
20521 # Assuming the user has installed a libdl from somewhere, this is true
20522 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20523 lt_cv_sys_dlopen_deplibs=yes
20524 ;;
20525 freebsd* | dragonfly*)
20526 lt_cv_sys_dlopen_deplibs=yes
20527 ;;
cristy0c60a692010-11-04 01:09:47 +000020528 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020529 # GNU and its variants, using gnu ld.so (Glibc)
20530 lt_cv_sys_dlopen_deplibs=yes
20531 ;;
20532 hpux10*|hpux11*)
20533 lt_cv_sys_dlopen_deplibs=yes
20534 ;;
20535 interix*)
20536 lt_cv_sys_dlopen_deplibs=yes
20537 ;;
20538 irix[12345]*|irix6.[01]*)
20539 # Catch all versions of IRIX before 6.2, and indicate that we don't
20540 # know how it worked for any of those versions.
20541 lt_cv_sys_dlopen_deplibs=unknown
20542 ;;
20543 irix*)
20544 # The case above catches anything before 6.2, and it's known that
20545 # at 6.2 and later dlopen does load deplibs.
20546 lt_cv_sys_dlopen_deplibs=yes
20547 ;;
20548 netbsd*)
20549 lt_cv_sys_dlopen_deplibs=yes
20550 ;;
20551 openbsd*)
20552 lt_cv_sys_dlopen_deplibs=yes
20553 ;;
20554 osf[1234]*)
20555 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20556 # it did *not* use an RPATH in a shared library to find objects the
20557 # library depends on, so we explicitly say `no'.
20558 lt_cv_sys_dlopen_deplibs=no
20559 ;;
20560 osf5.0|osf5.0a|osf5.1)
20561 # dlopen *does* load deplibs and with the right loader patch applied
20562 # it even uses RPATH in a shared library to search for shared objects
20563 # that the library depends on, but there's no easy way to know if that
20564 # patch is installed. Since this is the case, all we can really
20565 # say is unknown -- it depends on the patch being installed. If
20566 # it is, this changes to `yes'. Without it, it would be `no'.
20567 lt_cv_sys_dlopen_deplibs=unknown
20568 ;;
20569 osf*)
20570 # the two cases above should catch all versions of osf <= 5.1. Read
20571 # the comments above for what we know about them.
20572 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20573 # is used to find them so we can finally say `yes'.
20574 lt_cv_sys_dlopen_deplibs=yes
20575 ;;
20576 qnx*)
20577 lt_cv_sys_dlopen_deplibs=yes
20578 ;;
20579 solaris*)
20580 lt_cv_sys_dlopen_deplibs=yes
20581 ;;
20582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20583 libltdl_cv_sys_dlopen_deplibs=yes
20584 ;;
20585 esac
20586
20587fi
20588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20589$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20590if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20591
20592$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20593
20594fi
20595
20596:
20597
20598for ac_header in argz.h
20599do :
20600 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20601"
cristyda16f162011-02-19 23:52:17 +000020602if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020603 cat >>confdefs.h <<_ACEOF
20604#define HAVE_ARGZ_H 1
20605_ACEOF
20606
20607fi
20608
20609done
20610
20611
20612ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20613# include <argz.h>
20614#endif
20615"
cristyda16f162011-02-19 23:52:17 +000020616if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020617
20618cat >>confdefs.h <<_ACEOF
20619#define HAVE_ERROR_T 1
20620_ACEOF
20621
20622
20623else
20624
20625$as_echo "#define error_t int" >>confdefs.h
20626
20627
20628$as_echo "#define __error_t_defined 1" >>confdefs.h
20629
20630fi
20631
20632
20633ARGZ_H=
20634for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20635 argz_next argz_stringify
20636do :
20637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20638ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020639if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020640 cat >>confdefs.h <<_ACEOF
20641#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20642_ACEOF
20643
20644else
20645 ARGZ_H=argz.h;
20646
20647 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20648
20649fi
20650done
20651
20652
20653if test -z "$ARGZ_H"; then :
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20655$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020656if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020657 $as_echo_n "(cached) " >&6
20658else
20659 case $host_os in #(
20660 *cygwin*)
20661 lt_cv_sys_argz_works=no
20662 if test "$cross_compiling" != no; then
20663 lt_cv_sys_argz_works="guessing no"
20664 else
20665 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20666 save_IFS=$IFS
20667 IFS=-.
20668 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20669 IFS=$save_IFS
20670 lt_os_major=${2-0}
20671 lt_os_minor=${3-0}
20672 lt_os_micro=${4-0}
20673 if test "$lt_os_major" -gt 1 \
20674 || { test "$lt_os_major" -eq 1 \
20675 && { test "$lt_os_minor" -gt 5 \
20676 || { test "$lt_os_minor" -eq 5 \
20677 && test "$lt_os_micro" -gt 24; }; }; }; then
20678 lt_cv_sys_argz_works=yes
20679 fi
20680 fi
20681 ;; #(
20682 *) lt_cv_sys_argz_works=yes ;;
20683 esac
20684fi
20685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20686$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020687 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020688
20689$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20690
20691else
20692 ARGZ_H=argz.h
20693
20694
20695 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20696
20697fi
20698fi
20699
20700
20701
20702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20703$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020704if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020705 $as_echo_n "(cached) " >&6
20706else
20707 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20708 libltdl_cv_preloaded_symbols=yes
20709 else
20710 libltdl_cv_preloaded_symbols=no
20711 fi
20712
20713fi
20714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20715$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20716if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20717
20718$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20719
20720fi
20721
20722# Set options
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734# Check whether --with-included_ltdl was given.
20735if test "${with_included_ltdl+set}" = set; then :
20736 withval=$with_included_ltdl;
20737fi
20738
20739
20740if test "x$with_included_ltdl" != xyes; then
20741 # We are not being forced to use the included libltdl sources, so
20742 # decide whether there is a useful installed version we can use.
20743 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20744
20745"
cristyda16f162011-02-19 23:52:17 +000020746if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020747 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20748 #include <ltdl.h>
20749"
cristyda16f162011-02-19 23:52:17 +000020750if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20752$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020753if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020754 $as_echo_n "(cached) " >&6
20755else
20756 ac_check_lib_save_LIBS=$LIBS
20757LIBS="-lltdl $LIBS"
20758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20759/* end confdefs.h. */
20760
20761/* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20764#ifdef __cplusplus
20765extern "C"
20766#endif
20767char lt_dladvise_preload ();
20768int
20769main ()
20770{
20771return lt_dladvise_preload ();
20772 ;
20773 return 0;
20774}
20775_ACEOF
20776if ac_fn_c_try_link "$LINENO"; then :
20777 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20778else
20779 ac_cv_lib_ltdl_lt_dladvise_preload=no
20780fi
20781rm -f core conftest.err conftest.$ac_objext \
20782 conftest$ac_exeext conftest.$ac_ext
20783LIBS=$ac_check_lib_save_LIBS
20784fi
20785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20786$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020787if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020788 with_included_ltdl=no
20789else
20790 with_included_ltdl=yes
20791fi
20792
20793else
20794 with_included_ltdl=yes
20795fi
20796
20797else
20798 with_included_ltdl=yes
20799fi
20800
20801
20802fi
20803
20804
20805
20806
20807# Check whether --with-ltdl_include was given.
20808if test "${with_ltdl_include+set}" = set; then :
20809 withval=$with_ltdl_include;
20810fi
20811
20812
20813if test -n "$with_ltdl_include"; then
20814 if test -f "$with_ltdl_include/ltdl.h"; then :
20815 else
cristy98dddb52010-11-04 00:30:15 +000020816 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020817 fi
20818else
20819 with_ltdl_include=no
20820fi
20821
20822
20823# Check whether --with-ltdl_lib was given.
20824if test "${with_ltdl_lib+set}" = set; then :
20825 withval=$with_ltdl_lib;
20826fi
20827
20828
20829if test -n "$with_ltdl_lib"; then
20830 if test -f "$with_ltdl_lib/libltdl.la"; then :
20831 else
cristy98dddb52010-11-04 00:30:15 +000020832 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020833 fi
20834else
20835 with_ltdl_lib=no
20836fi
20837
20838case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20839 ,yes,no,no,)
20840 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020841 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020842 "") enable_ltdl_convenience=yes
20843 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20844esac
20845LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20846LTDLDEPS=$LIBLTDL
20847LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20848
20849
20850
20851
20852
20853# For backwards non-gettext consistent compatibility...
20854INCLTDL="$LTDLINCL"
20855
20856
20857 ;;
20858 ,no,no,no,)
20859 # If the included ltdl is not to be used, then use the
20860 # preinstalled libltdl we found.
20861
20862$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20863
20864 LIBLTDL=-lltdl
20865 LTDLDEPS=
20866 LTDLINCL=
20867 ;;
20868 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020869 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020870 ;;
20871 *) with_included_ltdl=no
20872 LIBLTDL="-L$with_ltdl_lib -lltdl"
20873 LTDLDEPS=
20874 LTDLINCL="-I$with_ltdl_include"
20875 ;;
20876esac
20877INCLTDL="$LTDLINCL"
20878
20879# Report our decision...
20880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20881$as_echo_n "checking where to find libltdl headers... " >&6; }
20882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20883$as_echo "$LTDLINCL" >&6; }
20884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20885$as_echo_n "checking where to find libltdl library... " >&6; }
20886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20887$as_echo "$LIBLTDL" >&6; }
20888
20889
20890
20891# Check whether --enable-ltdl-install was given.
20892if test "${enable_ltdl_install+set}" = set; then :
20893 enableval=$enable_ltdl_install;
20894fi
20895
20896
20897case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20898 *yes*) ;;
20899 *) enable_ltdl_convenience=yes ;;
20900esac
20901
20902 if test x"${enable_ltdl_install-no}" != xno; then
20903 INSTALL_LTDL_TRUE=
20904 INSTALL_LTDL_FALSE='#'
20905else
20906 INSTALL_LTDL_TRUE='#'
20907 INSTALL_LTDL_FALSE=
20908fi
20909
20910 if test x"${enable_ltdl_convenience-no}" != xno; then
20911 CONVENIENCE_LTDL_TRUE=
20912 CONVENIENCE_LTDL_FALSE='#'
20913else
20914 CONVENIENCE_LTDL_TRUE='#'
20915 CONVENIENCE_LTDL_FALSE=
20916fi
20917
20918
20919
20920
20921
20922
cristy73bd4a52010-10-05 11:24:23 +000020923# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20924# the user used. This is so that ltdl.h can pick up the parent projects
20925# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20926# definitions required by ltdl.c.
20927# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20928
20929
20930
20931for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20932do :
20933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20934ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20935"
cristy98dddb52010-11-04 00:30:15 +000020936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020937 cat >>confdefs.h <<_ACEOF
20938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20939_ACEOF
20940
20941fi
20942
20943done
20944
20945
20946for ac_func in closedir opendir readdir
20947do :
20948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020950if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020951 cat >>confdefs.h <<_ACEOF
20952#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20953_ACEOF
20954
20955else
20956
20957
20958 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20959
20960fi
20961done
20962
20963for ac_func in strlcat strlcpy
20964do :
20965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20966ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020967if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020968 cat >>confdefs.h <<_ACEOF
20969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20970_ACEOF
20971
20972else
20973
20974
20975 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20976
20977fi
20978done
20979
20980
20981
20982cat >>confdefs.h <<_ACEOF
20983#define LT_LIBEXT "$libext"
20984_ACEOF
20985
20986
cristyda16f162011-02-19 23:52:17 +000020987name=
20988eval "lt_libprefix=\"$libname_spec\""
20989
20990cat >>confdefs.h <<_ACEOF
20991#define LT_LIBPREFIX "$lt_libprefix"
20992_ACEOF
20993
20994
cristy73bd4a52010-10-05 11:24:23 +000020995name=ltdl
cristyda16f162011-02-19 23:52:17 +000020996eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020997
20998
20999
21000
21001
21002
21003
21004
21005# Only expand once:
21006
21007
cristy3ed852e2009-09-05 21:47:34 +000021008
21009# Check to see if building shared libraries
21010libtool_build_shared_libs='no'
21011if test "$enable_shared" = 'yes'; then
21012 libtool_build_shared_libs='yes'
21013fi
21014
21015# Check to see if building static libraries
21016libtool_build_static_libs='no'
21017if test "$enable_static" = 'yes'; then
21018 libtool_build_static_libs='yes'
21019fi
21020
cristy73bd4a52010-10-05 11:24:23 +000021021 if test "${libtool_build_shared_libs}" = 'yes'; then
21022 WITH_SHARED_LIBS_TRUE=
21023 WITH_SHARED_LIBS_FALSE='#'
21024else
21025 WITH_SHARED_LIBS_TRUE='#'
21026 WITH_SHARED_LIBS_FALSE=
21027fi
21028
cristy3ed852e2009-09-05 21:47:34 +000021029#
21030# Enable support for building loadable modules
21031#
21032
21033# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021034if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021035 withval=$with_modules; with_modules=$withval
21036else
cristy5a1cefd2010-01-06 20:42:35 +000021037 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021038fi
21039
21040
21041# Only allow building loadable modules if we are building shared libraries
21042if test "$with_modules" != 'no' ; then
21043 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021044 { $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 +000021045$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21046 with_modules='no'
21047 fi
21048fi
21049if test "$with_modules" != 'no'; then
21050
cristy8b350f62009-11-15 23:12:43 +000021051$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021052
21053fi
cristy73bd4a52010-10-05 11:24:23 +000021054 if test "$with_modules" != 'no'; then
21055 WITH_MODULES_TRUE=
21056 WITH_MODULES_FALSE='#'
21057else
21058 WITH_MODULES_TRUE='#'
21059 WITH_MODULES_FALSE=
21060fi
21061
cristy3ed852e2009-09-05 21:47:34 +000021062
21063# Enable building/use of libltdl if we are building shared libraries regardless
21064# of whether modules are built or not.
21065with_ltdl='no'
21066if test "$libtool_build_shared_libs" != 'no'; then
21067 with_ltdl='yes'
21068fi
21069
cristy73bd4a52010-10-05 11:24:23 +000021070 if test "$with_ltdl" != 'no'; then
21071 WITH_LTDL_TRUE=
21072 WITH_LTDL_FALSE='#'
21073else
21074 WITH_LTDL_TRUE='#'
21075 WITH_LTDL_FALSE=
21076fi
21077
cristy3ed852e2009-09-05 21:47:34 +000021078if test "$with_ltdl" != 'no'; then
21079
cristy8b350f62009-11-15 23:12:43 +000021080$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021081
21082
21083 # Set DLLDFLAGS
21084 if test X"$enable_shared" = Xyes; then
21085 DLLDFLAGS=-export-dynamic
21086
21087 fi
21088fi
21089
21090# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021091# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021092# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021093if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021094 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21095else
21096 enable_delegate_build='no'
21097fi
21098
21099
21100# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021101if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021102 enableval=$enable_deprecated; enable_deprecated=$enableval
21103else
21104 enable_deprecated='no'
21105fi
21106
21107
21108if test "$enable_deprecated" = 'yes'; then
21109
cristy8b350f62009-11-15 23:12:43 +000021110$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021111
21112else
21113 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21114fi
21115
21116# Build a version of ImageMagick which operates uninstalled.
21117# Used to build distributions located via MAGICK_HOME / executable path
21118# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021119if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021120 enableval=$enable_installed; enable_installed=$enableval
21121else
21122 enable_installed='yes'
21123fi
21124
21125
21126if test "$enable_installed" = 'yes'; then
21127
cristy8b350f62009-11-15 23:12:43 +000021128$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021129
21130else
21131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21132fi
21133
21134# Permit enciphering and deciphering image pixels.
21135# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021136if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021137 enableval=$enable_cipher; enable_cipher=$enableval
21138else
21139 enable_cipher='yes'
21140fi
21141
21142
21143if test "$enable_cipher" = 'yes'; then
21144
cristy8b350f62009-11-15 23:12:43 +000021145$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021146
21147fi
21148
cristy6e3607c2011-09-13 13:59:17 +000021149# Build a zero-configuration version of ImageMagick.
21150# Check whether --enable-zero-configuration was given.
21151if test "${enable_zero_configuration+set}" = set; then :
21152 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021153else
cristy6e3607c2011-09-13 13:59:17 +000021154 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021155fi
21156
21157
cristy6e3607c2011-09-13 13:59:17 +000021158if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021159
cristy6e3607c2011-09-13 13:59:17 +000021160$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021161
cristy81af5702011-09-13 14:20:58 +000021162 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021163fi
21164
21165# Build a high dynamic range version of ImageMagick.
21166# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021167if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021168 enableval=$enable_hdri; enable_hdri=$enableval
21169else
21170 enable_hdri='no'
21171fi
21172
21173
21174MAGICK_HDRI=""
21175if test "$enable_hdri" = 'yes'; then
21176 MAGICK_HDRI="HDRI"
21177
cristy8b350f62009-11-15 23:12:43 +000021178$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021179
cristyfd9dcd42010-08-08 18:07:02 +000021180 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021181fi
21182
cristy3ed852e2009-09-05 21:47:34 +000021183# Build a version of ImageMagick with assert statements.
21184# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021185if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021186 enableval=$enable_assert; enable_assert=$enableval
21187else
21188 enable_assert='yes'
21189fi
21190
21191
21192if test "$enable_assert" = 'no'; then
21193
cristy8b350f62009-11-15 23:12:43 +000021194$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021195
21196fi
21197
cristya448bd22011-10-14 12:38:13 +000021198# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021199
21200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21201$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21202 # Check whether --enable-maintainer-mode was given.
21203if test "${enable_maintainer_mode+set}" = set; then :
21204 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21205else
21206 USE_MAINTAINER_MODE=no
21207fi
21208
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21210$as_echo "$USE_MAINTAINER_MODE" >&6; }
21211 if test $USE_MAINTAINER_MODE = yes; then
21212 MAINTAINER_MODE_TRUE=
21213 MAINTAINER_MODE_FALSE='#'
21214else
21215 MAINTAINER_MODE_TRUE='#'
21216 MAINTAINER_MODE_FALSE=
21217fi
21218
21219 MAINT=$MAINTAINER_MODE_TRUE
21220
21221
cristy3ed852e2009-09-05 21:47:34 +000021222
cristy3ed852e2009-09-05 21:47:34 +000021223# Enable ccmalloc memory debugging support
21224# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021225if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021226 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21227else
21228 enable_ccmalloc='no'
21229fi
21230
21231
21232# Enable Electric Fence memory debugging support
21233# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021234if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021235 enableval=$enable_efence; enable_efence=$enableval
21236else
21237 enable_efence='no'
21238fi
21239
21240
21241# Enable prof-based profiling support
21242# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021243if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021244 enableval=$enable_prof; enable_prof=$enableval
21245else
21246 enable_prof='no'
21247fi
21248
21249
21250# Enable gprof-based profiling support
21251# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021252if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021253 enableval=$enable_gprof; enable_gprof=$enableval
21254else
21255 enable_gprof='no'
21256fi
21257
21258
21259# Enable gcov-based profiling support
21260# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021261if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021262 enableval=$enable_gcov; enable_gcov=$enableval
21263else
21264 enable_gcov='no'
21265fi
21266
21267
21268enable_profiling='no'
21269if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21270 enable_profiling='yes'
21271 if test "$libtool_build_shared_libs" = 'yes'; then
21272 echo "Warning: Can not profile code using shared libraries"
21273 fi
21274fi
21275
21276# Magick API method prefix
21277
21278# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021279if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021280 withval=$with_method_prefix; with_method_prefix=$enableval
21281else
21282 with_method_prefix=''
21283fi
21284
21285
21286if test "$with_method_prefix" != ''; then
21287
21288cat >>confdefs.h <<_ACEOF
21289#define NAMESPACE_PREFIX $with_method_prefix
21290_ACEOF
21291
21292fi
21293
21294# Number of bits in a Quantum
21295
21296# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021297if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021298 withval=$with_quantum_depth; with_quantum_depth=$withval
21299else
21300 with_quantum_depth=16
21301fi
21302
21303
21304if test "$with_quantum_depth" != '8'; then
21305 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21306fi
21307
21308case "${with_quantum_depth}" in
21309 8 ) ;;
21310 16 ) ;;
21311 32 ) ;;
21312 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021313 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021314esac
21315QUANTUM_DEPTH="$with_quantum_depth"
21316
21317cat >>confdefs.h <<_ACEOF
21318#define QUANTUM_DEPTH $QUANTUM_DEPTH
21319_ACEOF
21320
21321
21322# Set pixel cache threshold
21323
21324# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021325if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021326 withval=$with_cache; with_cache=$withval
21327else
21328 with_cache=''
21329fi
21330
21331
21332if test "$with_cache" != ''; then
21333
21334cat >>confdefs.h <<_ACEOF
21335#define PixelCacheThreshold $with_cache
21336_ACEOF
21337
21338 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21339fi
21340
21341# Disable/Enable support for full delegate paths
21342
21343# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021344if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 withval=$with_frozenpaths; with_frozenpaths=$withval
21346else
21347 with_frozenpaths='no'
21348fi
21349
21350
21351# Enable build/install of Magick++
21352
21353# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021354if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021355 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21356else
21357 with_magick_plus_plus='yes'
21358fi
21359
21360
21361# Disable build/install of PerlMagick.
21362
21363# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021364if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021365 withval=$with_perl; with_perl=$withval
21366else
cristyb5f4e2f2010-04-25 00:49:11 +000021367 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021368fi
21369
21370
21371# Options to pass when configuring PerlMagick
21372
21373# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021374if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021375 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021376fi
21377
21378
cristy3ed852e2009-09-05 21:47:34 +000021379
21380# Enable umem, object-caching memory allocation library.
21381
21382# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021383if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021384 withval=$with_umem; with_umem=$withval
21385else
21386 with_umem='no'
21387fi
21388
21389if test "$with_umem" != 'yes' ; then
21390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21391fi
21392
21393#
21394# Specify path to shared libstdc++ if not in normal location
21395#
21396
21397# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021398if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021399 withval=$with_libstdc; with_libstdc=$withval
21400else
21401 with_libstdc=''
21402fi
21403
21404
21405if test "$with_libstdc" != ''; then
21406 if test -d "$with_libstdc"; then
21407 LIBSTDCLDFLAGS="-L$with_libstdc"
21408 fi
21409fi
21410
21411
21412# Does gcc required -traditional?
21413if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021415$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021416if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021417 $as_echo_n "(cached) " >&6
21418else
21419 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021421/* end confdefs.h. */
21422#include <sgtty.h>
21423Autoconf TIOCGETP
21424_ACEOF
21425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021426 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021427 ac_cv_prog_gcc_traditional=yes
21428else
21429 ac_cv_prog_gcc_traditional=no
21430fi
21431rm -f conftest*
21432
21433
21434 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021436/* end confdefs.h. */
21437#include <termio.h>
21438Autoconf TCGETA
21439_ACEOF
21440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021441 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021442 ac_cv_prog_gcc_traditional=yes
21443fi
21444rm -f conftest*
21445
21446 fi
21447fi
cristy8b350f62009-11-15 23:12:43 +000021448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021449$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21450 if test $ac_cv_prog_gcc_traditional = yes; then
21451 CC="$CC -traditional"
21452 fi
21453fi
21454
21455
21456########
21457#
21458# Set defines required to build DLLs and modules using MinGW
21459#
21460########
21461# These options are set for multi-thread DLL module build
21462# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21463# module: _DLL
21464# executable/Magick++: _DLL _MAGICKMOD_
21465MODULE_EXTRA_CPPFLAGS=''
21466LIBRARY_EXTRA_CPPFLAGS=''
21467if test "${native_win32_build}" = 'yes'; then
21468 if test "${libtool_build_shared_libs}" = 'yes'; then
21469 CPPFLAGS="$CPPFLAGS -D_DLL"
21470 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21471 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21472 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21473 if test "$with_modules" = 'yes'; then
21474 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21475 else
21476 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21477 fi
21478 else
21479 CPPFLAGS="$CPPFLAGS -D_LIB"
21480 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21481 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21482 fi
21483 if test "$with_threads" = 'yes'; then
21484 CPPFLAGS="$CPPFLAGS -D_MT"
21485 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21486 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21487 fi
21488fi
21489
21490
21491
21492# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021494$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021495if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021496 $as_echo_n "(cached) " >&6
21497else
cristy8b350f62009-11-15 23:12:43 +000021498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021499/* end confdefs.h. */
21500#include <stdlib.h>
21501#include <stdarg.h>
21502#include <string.h>
21503#include <float.h>
21504
21505int
21506main ()
21507{
21508
21509 ;
21510 return 0;
21511}
21512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021513if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021514 ac_cv_header_stdc=yes
21515else
cristy8b350f62009-11-15 23:12:43 +000021516 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021517fi
cristy3ed852e2009-09-05 21:47:34 +000021518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21519
21520if test $ac_cv_header_stdc = yes; then
21521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021523/* end confdefs.h. */
21524#include <string.h>
21525
21526_ACEOF
21527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021528 $EGREP "memchr" >/dev/null 2>&1; then :
21529
cristy3ed852e2009-09-05 21:47:34 +000021530else
21531 ac_cv_header_stdc=no
21532fi
21533rm -f conftest*
21534
21535fi
21536
21537if test $ac_cv_header_stdc = yes; then
21538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021540/* end confdefs.h. */
21541#include <stdlib.h>
21542
21543_ACEOF
21544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021545 $EGREP "free" >/dev/null 2>&1; then :
21546
cristy3ed852e2009-09-05 21:47:34 +000021547else
21548 ac_cv_header_stdc=no
21549fi
21550rm -f conftest*
21551
21552fi
21553
21554if test $ac_cv_header_stdc = yes; then
21555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021556 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021557 :
21558else
cristy8b350f62009-11-15 23:12:43 +000021559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021560/* end confdefs.h. */
21561#include <ctype.h>
21562#include <stdlib.h>
21563#if ((' ' & 0x0FF) == 0x020)
21564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21566#else
21567# define ISLOWER(c) \
21568 (('a' <= (c) && (c) <= 'i') \
21569 || ('j' <= (c) && (c) <= 'r') \
21570 || ('s' <= (c) && (c) <= 'z'))
21571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21572#endif
21573
21574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21575int
21576main ()
21577{
21578 int i;
21579 for (i = 0; i < 256; i++)
21580 if (XOR (islower (i), ISLOWER (i))
21581 || toupper (i) != TOUPPER (i))
21582 return 2;
21583 return 0;
21584}
21585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021586if ac_fn_c_try_run "$LINENO"; then :
21587
cristy3ed852e2009-09-05 21:47:34 +000021588else
cristy8b350f62009-11-15 23:12:43 +000021589 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021590fi
cristy8b350f62009-11-15 23:12:43 +000021591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21592 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021593fi
21594
cristy3ed852e2009-09-05 21:47:34 +000021595fi
21596fi
cristy8b350f62009-11-15 23:12:43 +000021597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021598$as_echo "$ac_cv_header_stdc" >&6; }
21599if test $ac_cv_header_stdc = yes; then
21600
cristy8b350f62009-11-15 23:12:43 +000021601$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021602
21603fi
21604
21605if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021606 { $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 +000021607 header files. Compilation cannot proceed. Please install the ANSI C
21608 headers and rerun this script." >&5
21609$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21610 header files. Compilation cannot proceed. Please install the ANSI C
21611 headers and rerun this script." >&2;};
21612fi
cristya0b81c32010-01-22 02:54:33 +000021613
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21615$as_echo_n "checking whether to enable assertions... " >&6; }
21616 # Check whether --enable-assert was given.
21617if test "${enable_assert+set}" = set; then :
21618 enableval=$enable_assert; ac_enable_assert=$enableval
21619 if test "x$enableval" = xno; then :
21620
21621$as_echo "#define NDEBUG 1" >>confdefs.h
21622
21623elif test "x$enableval" != xyes; then :
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21625$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21626 ac_enable_assert=yes
21627fi
21628else
21629 ac_enable_assert=yes
21630fi
21631
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21633$as_echo "$ac_enable_assert" >&6; }
21634
cristy3ed852e2009-09-05 21:47:34 +000021635ac_header_dirent=no
21636for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21637 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021639$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021640if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021641 $as_echo_n "(cached) " >&6
21642else
cristy8b350f62009-11-15 23:12:43 +000021643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021644/* end confdefs.h. */
21645#include <sys/types.h>
21646#include <$ac_hdr>
21647
21648int
21649main ()
21650{
21651if ((DIR *) 0)
21652return 0;
21653 ;
21654 return 0;
21655}
21656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021657if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021658 eval "$as_ac_Header=yes"
21659else
cristy8b350f62009-11-15 23:12:43 +000021660 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021661fi
cristy3ed852e2009-09-05 21:47:34 +000021662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663fi
cristy8b350f62009-11-15 23:12:43 +000021664eval ac_res=\$$as_ac_Header
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021666$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021668 cat >>confdefs.h <<_ACEOF
21669#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21670_ACEOF
21671
21672ac_header_dirent=$ac_hdr; break
21673fi
21674
21675done
21676# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21677if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021679$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021680if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021681 $as_echo_n "(cached) " >&6
21682else
21683 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021685/* end confdefs.h. */
21686
21687/* Override any GCC internal prototype to avoid an error.
21688 Use char because int might match the return type of a GCC
21689 builtin and then its argument prototype would still apply. */
21690#ifdef __cplusplus
21691extern "C"
21692#endif
21693char opendir ();
21694int
21695main ()
21696{
21697return opendir ();
21698 ;
21699 return 0;
21700}
21701_ACEOF
21702for ac_lib in '' dir; do
21703 if test -z "$ac_lib"; then
21704 ac_res="none required"
21705 else
21706 ac_res=-l$ac_lib
21707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21708 fi
cristy8b350f62009-11-15 23:12:43 +000021709 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021710 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021711fi
cristy8b350f62009-11-15 23:12:43 +000021712rm -f core conftest.err conftest.$ac_objext \
21713 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021714 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 break
21716fi
21717done
cristyda16f162011-02-19 23:52:17 +000021718if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021719
cristy3ed852e2009-09-05 21:47:34 +000021720else
21721 ac_cv_search_opendir=no
21722fi
21723rm conftest.$ac_ext
21724LIBS=$ac_func_search_save_LIBS
21725fi
cristy8b350f62009-11-15 23:12:43 +000021726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021727$as_echo "$ac_cv_search_opendir" >&6; }
21728ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021729if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21731
21732fi
21733
21734else
cristy8b350f62009-11-15 23:12:43 +000021735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021736$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021737if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021738 $as_echo_n "(cached) " >&6
21739else
21740 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021742/* end confdefs.h. */
21743
21744/* Override any GCC internal prototype to avoid an error.
21745 Use char because int might match the return type of a GCC
21746 builtin and then its argument prototype would still apply. */
21747#ifdef __cplusplus
21748extern "C"
21749#endif
21750char opendir ();
21751int
21752main ()
21753{
21754return opendir ();
21755 ;
21756 return 0;
21757}
21758_ACEOF
21759for ac_lib in '' x; do
21760 if test -z "$ac_lib"; then
21761 ac_res="none required"
21762 else
21763 ac_res=-l$ac_lib
21764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21765 fi
cristy8b350f62009-11-15 23:12:43 +000021766 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021767 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021768fi
cristy8b350f62009-11-15 23:12:43 +000021769rm -f core conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021771 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021772 break
21773fi
21774done
cristyda16f162011-02-19 23:52:17 +000021775if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021776
cristy3ed852e2009-09-05 21:47:34 +000021777else
21778 ac_cv_search_opendir=no
21779fi
21780rm conftest.$ac_ext
21781LIBS=$ac_func_search_save_LIBS
21782fi
cristy8b350f62009-11-15 23:12:43 +000021783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021784$as_echo "$ac_cv_search_opendir" >&6; }
21785ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021786if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21788
21789fi
21790
21791fi
21792
21793
21794# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021795for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021796do :
21797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21798ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021799if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021800 cat >>confdefs.h <<_ACEOF
21801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21802_ACEOF
21803
21804fi
21805
21806done
21807
21808
21809########
21810#
21811# Checks for typedefs, structures, and compiler characteristics.
21812#
21813########
21814
cristy8b350f62009-11-15 23:12:43 +000021815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021816$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021817if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021818 $as_echo_n "(cached) " >&6
21819else
cristy8b350f62009-11-15 23:12:43 +000021820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021821/* end confdefs.h. */
21822
21823#include <stdbool.h>
21824#ifndef bool
21825 "error: bool is not defined"
21826#endif
21827#ifndef false
21828 "error: false is not defined"
21829#endif
21830#if false
21831 "error: false is not 0"
21832#endif
21833#ifndef true
21834 "error: true is not defined"
21835#endif
21836#if true != 1
21837 "error: true is not 1"
21838#endif
21839#ifndef __bool_true_false_are_defined
21840 "error: __bool_true_false_are_defined is not defined"
21841#endif
21842
21843 struct s { _Bool s: 1; _Bool t; } s;
21844
21845 char a[true == 1 ? 1 : -1];
21846 char b[false == 0 ? 1 : -1];
21847 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21848 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021849 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021850 char f[(_Bool) 0.0 == false ? 1 : -1];
21851 char g[true];
21852 char h[sizeof (_Bool)];
21853 char i[sizeof s.t];
21854 enum { j = false, k = true, l = false * true, m = true * 256 };
21855 /* The following fails for
21856 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21857 _Bool n[m];
21858 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21859 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021860 /* Catch a bug in an HP-UX C compiler. See
21861 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21862 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21863 */
21864 _Bool q = true;
21865 _Bool *pq = &q;
21866
21867int
21868main ()
21869{
21870
cristyda16f162011-02-19 23:52:17 +000021871 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021872 *pq |= q;
21873 *pq |= ! q;
21874 /* Refer to every declared value, to avoid compiler optimizations. */
21875 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21876 + !m + !n + !o + !p + !q + !pq);
21877
21878 ;
21879 return 0;
21880}
21881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 ac_cv_header_stdbool_h=yes
21884else
cristy8b350f62009-11-15 23:12:43 +000021885 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021886fi
cristy3ed852e2009-09-05 21:47:34 +000021887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888fi
cristy8b350f62009-11-15 23:12:43 +000021889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021890$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021891ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021892if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021893
21894cat >>confdefs.h <<_ACEOF
21895#define HAVE__BOOL 1
21896_ACEOF
21897
21898
21899fi
21900
21901if test $ac_cv_header_stdbool_h = yes; then
21902
cristy8b350f62009-11-15 23:12:43 +000021903$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021904
21905fi
21906
cristy8b350f62009-11-15 23:12:43 +000021907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021908$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021909if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 $as_echo_n "(cached) " >&6
21911else
cristy8b350f62009-11-15 23:12:43 +000021912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021913/* end confdefs.h. */
21914
21915int
21916main ()
21917{
21918
21919volatile int x;
21920int * volatile y = (int *) 0;
21921return !x && !y;
21922 ;
21923 return 0;
21924}
21925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 ac_cv_c_volatile=yes
21928else
cristy8b350f62009-11-15 23:12:43 +000021929 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021930fi
cristy3ed852e2009-09-05 21:47:34 +000021931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932fi
cristy8b350f62009-11-15 23:12:43 +000021933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021934$as_echo "$ac_cv_c_volatile" >&6; }
21935if test $ac_cv_c_volatile = no; then
21936
cristy8b350f62009-11-15 23:12:43 +000021937$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021938
21939fi
21940
cristy8b350f62009-11-15 23:12:43 +000021941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021942$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021943if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 $as_echo_n "(cached) " >&6
21945else
cristy8b350f62009-11-15 23:12:43 +000021946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021947/* end confdefs.h. */
21948#define x(y) #y
21949
21950char *s = x(teststring);
21951_ACEOF
21952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021953 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 ac_cv_c_stringize=no
21955else
21956 ac_cv_c_stringize=yes
21957fi
21958rm -f conftest*
21959
21960fi
cristy8b350f62009-11-15 23:12:43 +000021961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021962$as_echo "$ac_cv_c_stringize" >&6; }
21963if test $ac_cv_c_stringize = yes; then
21964
cristy8b350f62009-11-15 23:12:43 +000021965$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021966
21967fi
21968
cristy8b350f62009-11-15 23:12:43 +000021969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021970$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021971if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021972 $as_echo_n "(cached) " >&6
21973else
cristy8b350f62009-11-15 23:12:43 +000021974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021975/* end confdefs.h. */
21976#include <sys/types.h>
21977#include <sys/stat.h>
21978
21979#if defined S_ISBLK && defined S_IFDIR
21980extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21981#endif
21982
21983#if defined S_ISBLK && defined S_IFCHR
21984extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21985#endif
21986
21987#if defined S_ISLNK && defined S_IFREG
21988extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21989#endif
21990
21991#if defined S_ISSOCK && defined S_IFREG
21992extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21993#endif
21994
21995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021996if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021997 ac_cv_header_stat_broken=no
21998else
cristy8b350f62009-11-15 23:12:43 +000021999 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022000fi
cristy3ed852e2009-09-05 21:47:34 +000022001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22002fi
cristy8b350f62009-11-15 23:12:43 +000022003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022004$as_echo "$ac_cv_header_stat_broken" >&6; }
22005if test $ac_cv_header_stat_broken = yes; then
22006
cristy8b350f62009-11-15 23:12:43 +000022007$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022008
22009fi
22010
cristy8b350f62009-11-15 23:12:43 +000022011{ $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 +000022012$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022013if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022014 $as_echo_n "(cached) " >&6
22015else
cristy8b350f62009-11-15 23:12:43 +000022016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022017/* end confdefs.h. */
22018#include <sys/types.h>
22019#include <sys/time.h>
22020#include <time.h>
22021
22022int
22023main ()
22024{
22025if ((struct tm *) 0)
22026return 0;
22027 ;
22028 return 0;
22029}
22030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022031if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022032 ac_cv_header_time=yes
22033else
cristy8b350f62009-11-15 23:12:43 +000022034 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022035fi
cristy3ed852e2009-09-05 21:47:34 +000022036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037fi
cristy8b350f62009-11-15 23:12:43 +000022038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022039$as_echo "$ac_cv_header_time" >&6; }
22040if test $ac_cv_header_time = yes; then
22041
cristy8b350f62009-11-15 23:12:43 +000022042$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022043
22044fi
22045
cristy8b350f62009-11-15 23:12:43 +000022046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022047$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022048if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 $as_echo_n "(cached) " >&6
22050else
cristy8b350f62009-11-15 23:12:43 +000022051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022052/* end confdefs.h. */
22053#include <sys/types.h>
22054#include <time.h>
22055
22056int
22057main ()
22058{
22059struct tm tm;
22060 int *p = &tm.tm_sec;
22061 return !p;
22062 ;
22063 return 0;
22064}
22065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022066if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022067 ac_cv_struct_tm=time.h
22068else
cristy8b350f62009-11-15 23:12:43 +000022069 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022070fi
cristy3ed852e2009-09-05 21:47:34 +000022071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22072fi
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo "$ac_cv_struct_tm" >&6; }
22075if test $ac_cv_struct_tm = sys/time.h; then
22076
cristy8b350f62009-11-15 23:12:43 +000022077$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022078
22079fi
22080
cristy92703d82010-04-26 00:18:18 +000022081ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22082#include <$ac_cv_struct_tm>
22083
22084"
cristyda16f162011-02-19 23:52:17 +000022085if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022086
22087cat >>confdefs.h <<_ACEOF
22088#define HAVE_STRUCT_TM_TM_ZONE 1
22089_ACEOF
22090
22091
22092fi
22093
22094if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22095
22096$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22097
22098else
22099 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22100"
cristyda16f162011-02-19 23:52:17 +000022101if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022102 ac_have_decl=1
22103else
22104 ac_have_decl=0
22105fi
22106
22107cat >>confdefs.h <<_ACEOF
22108#define HAVE_DECL_TZNAME $ac_have_decl
22109_ACEOF
22110
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22112$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022113if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022114 $as_echo_n "(cached) " >&6
22115else
22116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22117/* end confdefs.h. */
22118#include <time.h>
22119#if !HAVE_DECL_TZNAME
22120extern char *tzname[];
22121#endif
22122
22123int
22124main ()
22125{
22126return tzname[0][0];
22127 ;
22128 return 0;
22129}
22130_ACEOF
22131if ac_fn_c_try_link "$LINENO"; then :
22132 ac_cv_var_tzname=yes
22133else
22134 ac_cv_var_tzname=no
22135fi
22136rm -f core conftest.err conftest.$ac_objext \
22137 conftest$ac_exeext conftest.$ac_ext
22138fi
22139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22140$as_echo "$ac_cv_var_tzname" >&6; }
22141 if test $ac_cv_var_tzname = yes; then
22142
22143$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22144
22145 fi
22146fi
22147
cristy8b350f62009-11-15 23:12:43 +000022148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022149$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022150if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022151 $as_echo_n "(cached) " >&6
22152else
22153 echo '#! /bin/cat
22154exit 69
22155' >conftest
22156chmod u+x conftest
22157(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22158if test $? -ne 69; then
22159 ac_cv_sys_interpreter=yes
22160else
22161 ac_cv_sys_interpreter=no
22162fi
22163rm -f conftest
22164fi
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo "$ac_cv_sys_interpreter" >&6; }
22167interpval=$ac_cv_sys_interpreter
22168
22169
cristy3ed852e2009-09-05 21:47:34 +000022170# If the C compiler supports the keyword inline, do nothing. Otherwise
22171# define inline to __inline__ or __inline if it accepts one of those,
22172# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022174$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022175if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022176 $as_echo_n "(cached) " >&6
22177else
22178 ac_cv_c_inline=no
22179for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022181/* end confdefs.h. */
22182#ifndef __cplusplus
22183typedef int foo_t;
22184static $ac_kw foo_t static_foo () {return 0; }
22185$ac_kw foo_t foo () {return 0; }
22186#endif
22187
22188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022189if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022190 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022191fi
cristy3ed852e2009-09-05 21:47:34 +000022192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 test "$ac_cv_c_inline" != no && break
22194done
22195
22196fi
cristy8b350f62009-11-15 23:12:43 +000022197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022198$as_echo "$ac_cv_c_inline" >&6; }
22199
cristy3ed852e2009-09-05 21:47:34 +000022200case $ac_cv_c_inline in
22201 inline | yes) ;;
22202 *)
22203 case $ac_cv_c_inline in
22204 no) ac_val=;;
22205 *) ac_val=$ac_cv_c_inline;;
22206 esac
22207 cat >>confdefs.h <<_ACEOF
22208#ifndef __cplusplus
22209#define inline $ac_val
22210#endif
22211_ACEOF
22212 ;;
22213esac
22214
22215
22216# If the C compiler supports the keyword restrict, do nothing. Otherwise
22217# define restrict to __restrict__ or __restrict if it accepts one of those,
22218# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022220$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022221if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022222 $as_echo_n "(cached) " >&6
22223else
22224 ac_cv_c_restrict=no
22225 # The order here caters to the fact that C++ does not require restrict.
22226 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022228/* end confdefs.h. */
22229typedef int * int_ptr;
22230 int foo (int_ptr $ac_kw ip) {
22231 return ip[0];
22232 }
22233int
22234main ()
22235{
22236int s[1];
22237 int * $ac_kw t = s;
22238 t[0] = 0;
22239 return foo(t)
22240 ;
22241 return 0;
22242}
22243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022244if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022245 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022246fi
cristy3ed852e2009-09-05 21:47:34 +000022247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 test "$ac_cv_c_restrict" != no && break
22249 done
22250
22251fi
cristy8b350f62009-11-15 23:12:43 +000022252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022253$as_echo "$ac_cv_c_restrict" >&6; }
22254
cristy3ed852e2009-09-05 21:47:34 +000022255 case $ac_cv_c_restrict in
22256 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022257 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022258 ;;
22259 *) cat >>confdefs.h <<_ACEOF
22260#define restrict $ac_cv_c_restrict
22261_ACEOF
22262 ;;
22263 esac
22264
22265
22266# If words are stored with the most significant byte first (like
22267# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022269$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022270if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022271 $as_echo_n "(cached) " >&6
22272else
22273 ac_cv_c_bigendian=unknown
22274 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022276/* end confdefs.h. */
22277#ifndef __APPLE_CC__
22278 not a universal capable compiler
22279 #endif
22280 typedef int dummy;
22281
22282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022284
22285 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022286 # there are at least two -arch flags with different values.
22287 ac_arch=
22288 ac_prev=
22289 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22290 if test -n "$ac_prev"; then
22291 case $ac_word in
22292 i?86 | x86_64 | ppc | ppc64)
22293 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22294 ac_arch=$ac_word
22295 else
22296 ac_cv_c_bigendian=universal
22297 break
22298 fi
22299 ;;
22300 esac
22301 ac_prev=
22302 elif test "x$ac_word" = "x-arch"; then
22303 ac_prev=arch
22304 fi
22305 done
cristy3ed852e2009-09-05 21:47:34 +000022306fi
cristy3ed852e2009-09-05 21:47:34 +000022307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22308 if test $ac_cv_c_bigendian = unknown; then
22309 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022311/* end confdefs.h. */
22312#include <sys/types.h>
22313 #include <sys/param.h>
22314
22315int
22316main ()
22317{
22318#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22319 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22320 && LITTLE_ENDIAN)
22321 bogus endian macros
22322 #endif
22323
22324 ;
22325 return 0;
22326}
22327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022328if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022329 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022331/* end confdefs.h. */
22332#include <sys/types.h>
22333 #include <sys/param.h>
22334
22335int
22336main ()
22337{
22338#if BYTE_ORDER != BIG_ENDIAN
22339 not big endian
22340 #endif
22341
22342 ;
22343 return 0;
22344}
22345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022346if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022347 ac_cv_c_bigendian=yes
22348else
cristy8b350f62009-11-15 23:12:43 +000022349 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022350fi
cristy3ed852e2009-09-05 21:47:34 +000022351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022352fi
cristy3ed852e2009-09-05 21:47:34 +000022353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22354 fi
22355 if test $ac_cv_c_bigendian = unknown; then
22356 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022358/* end confdefs.h. */
22359#include <limits.h>
22360
22361int
22362main ()
22363{
22364#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22365 bogus endian macros
22366 #endif
22367
22368 ;
22369 return 0;
22370}
22371_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022372if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022373 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022375/* end confdefs.h. */
22376#include <limits.h>
22377
22378int
22379main ()
22380{
22381#ifndef _BIG_ENDIAN
22382 not big endian
22383 #endif
22384
22385 ;
22386 return 0;
22387}
22388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022389if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022390 ac_cv_c_bigendian=yes
22391else
cristy8b350f62009-11-15 23:12:43 +000022392 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022393fi
cristy3ed852e2009-09-05 21:47:34 +000022394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022395fi
cristy3ed852e2009-09-05 21:47:34 +000022396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 fi
22398 if test $ac_cv_c_bigendian = unknown; then
22399 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022400 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022401 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022403/* end confdefs.h. */
22404short int ascii_mm[] =
22405 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22406 short int ascii_ii[] =
22407 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22408 int use_ascii (int i) {
22409 return ascii_mm[i] + ascii_ii[i];
22410 }
22411 short int ebcdic_ii[] =
22412 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22413 short int ebcdic_mm[] =
22414 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22415 int use_ebcdic (int i) {
22416 return ebcdic_mm[i] + ebcdic_ii[i];
22417 }
22418 extern int foo;
22419
22420int
22421main ()
22422{
22423return use_ascii (foo) == use_ebcdic (foo);
22424 ;
22425 return 0;
22426}
22427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022428if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022429 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22430 ac_cv_c_bigendian=yes
22431 fi
22432 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22433 if test "$ac_cv_c_bigendian" = unknown; then
22434 ac_cv_c_bigendian=no
22435 else
22436 # finding both strings is unlikely to happen, but who knows?
22437 ac_cv_c_bigendian=unknown
22438 fi
22439 fi
cristy3ed852e2009-09-05 21:47:34 +000022440fi
cristy3ed852e2009-09-05 21:47:34 +000022441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442else
cristy8b350f62009-11-15 23:12:43 +000022443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022444/* end confdefs.h. */
22445$ac_includes_default
22446int
22447main ()
22448{
22449
22450 /* Are we little or big endian? From Harbison&Steele. */
22451 union
22452 {
22453 long int l;
22454 char c[sizeof (long int)];
22455 } u;
22456 u.l = 1;
22457 return u.c[sizeof (long int) - 1] == 1;
22458
22459 ;
22460 return 0;
22461}
22462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022463if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022464 ac_cv_c_bigendian=no
22465else
cristy8b350f62009-11-15 23:12:43 +000022466 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022467fi
cristy8b350f62009-11-15 23:12:43 +000022468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22469 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022470fi
22471
cristy3ed852e2009-09-05 21:47:34 +000022472 fi
22473fi
cristy8b350f62009-11-15 23:12:43 +000022474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022475$as_echo "$ac_cv_c_bigendian" >&6; }
22476 case $ac_cv_c_bigendian in #(
22477 yes)
cristy8b350f62009-11-15 23:12:43 +000022478 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022479;; #(
22480 no)
22481 ;; #(
22482 universal)
22483
cristy8b350f62009-11-15 23:12:43 +000022484$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022485
22486 ;; #(
22487 *)
cristy98dddb52010-11-04 00:30:15 +000022488 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022489 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022490 esac
22491
22492
cristy501c8042011-05-26 17:46:28 +000022493# Define to a suitable type, if standard headers do not define it.
22494ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22495case $ac_cv_c_int8_t in #(
22496 no|yes) ;; #(
22497 *)
cristy3ed852e2009-09-05 21:47:34 +000022498
22499cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022500#define int8_t $ac_cv_c_int8_t
22501_ACEOF
22502;;
22503esac
22504
22505ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22506case $ac_cv_c_int16_t in #(
22507 no|yes) ;; #(
22508 *)
22509
22510cat >>confdefs.h <<_ACEOF
22511#define int16_t $ac_cv_c_int16_t
22512_ACEOF
22513;;
22514esac
22515
22516ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22517case $ac_cv_c_int32_t in #(
22518 no|yes) ;; #(
22519 *)
22520
22521cat >>confdefs.h <<_ACEOF
22522#define int32_t $ac_cv_c_int32_t
22523_ACEOF
22524;;
22525esac
22526
22527ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22528case $ac_cv_c_int64_t in #(
22529 no|yes) ;; #(
22530 *)
22531
22532cat >>confdefs.h <<_ACEOF
22533#define int64_t $ac_cv_c_int64_t
22534_ACEOF
22535;;
22536esac
22537
22538
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22540$as_echo_n "checking for long long int... " >&6; }
22541if ${ac_cv_type_long_long_int+:} false; then :
22542 $as_echo_n "(cached) " >&6
22543else
22544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22545/* end confdefs.h. */
22546
22547 /* For now, do not test the preprocessor; as of 2007 there are too many
22548 implementations with broken preprocessors. Perhaps this can
22549 be revisited in 2012. In the meantime, code should not expect
22550 #if to work with literals wider than 32 bits. */
22551 /* Test literals. */
22552 long long int ll = 9223372036854775807ll;
22553 long long int nll = -9223372036854775807LL;
22554 unsigned long long int ull = 18446744073709551615ULL;
22555 /* Test constant expressions. */
22556 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22557 ? 1 : -1)];
22558 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22559 ? 1 : -1)];
22560 int i = 63;
22561int
22562main ()
22563{
22564/* Test availability of runtime routines for shift and division. */
22565 long long int llmax = 9223372036854775807ll;
22566 unsigned long long int ullmax = 18446744073709551615ull;
22567 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22568 | (llmax / ll) | (llmax % ll)
22569 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22570 | (ullmax / ull) | (ullmax % ull));
22571 ;
22572 return 0;
22573}
22574
22575_ACEOF
22576if ac_fn_c_try_link "$LINENO"; then :
22577 if test "$cross_compiling" = yes; then :
22578 ac_cv_type_long_long_int=yes
22579else
22580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22581/* end confdefs.h. */
22582#include <limits.h>
22583 #ifndef LLONG_MAX
22584 # define HALF \
22585 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22586 # define LLONG_MAX (HALF - 1 + HALF)
22587 #endif
22588int
22589main ()
22590{
22591long long int n = 1;
22592 int i;
22593 for (i = 0; ; i++)
22594 {
22595 long long int m = n << i;
22596 if (m >> i != n)
22597 return 1;
22598 if (LLONG_MAX / 2 < m)
22599 break;
22600 }
22601 return 0;
22602 ;
22603 return 0;
22604}
22605_ACEOF
22606if ac_fn_c_try_run "$LINENO"; then :
22607 ac_cv_type_long_long_int=yes
22608else
22609 ac_cv_type_long_long_int=no
22610fi
22611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22612 conftest.$ac_objext conftest.beam conftest.$ac_ext
22613fi
22614
22615else
22616 ac_cv_type_long_long_int=no
22617fi
22618rm -f core conftest.err conftest.$ac_objext \
22619 conftest$ac_exeext conftest.$ac_ext
22620fi
22621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22622$as_echo "$ac_cv_type_long_long_int" >&6; }
22623 if test $ac_cv_type_long_long_int = yes; then
22624
22625$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22626
22627 fi
22628
22629
22630
22631 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22632if test "x$ac_cv_type_intmax_t" = xyes; then :
22633
22634$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22635
22636else
22637 test $ac_cv_type_long_long_int = yes \
22638 && ac_type='long long int' \
22639 || ac_type='long int'
22640
22641cat >>confdefs.h <<_ACEOF
22642#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022643_ACEOF
22644
22645fi
22646
22647
cristy501c8042011-05-26 17:46:28 +000022648
22649 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22650if test "x$ac_cv_type_intptr_t" = xyes; then :
22651
22652$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022653
cristy3ed852e2009-09-05 21:47:34 +000022654else
cristy501c8042011-05-26 17:46:28 +000022655 for ac_type in 'int' 'long int' 'long long int'; do
22656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657/* end confdefs.h. */
22658$ac_includes_default
22659int
22660main ()
22661{
22662static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22663test_array [0] = 0
22664
22665 ;
22666 return 0;
22667}
22668_ACEOF
22669if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022670
22671cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022672#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022673_ACEOF
22674
cristy501c8042011-05-26 17:46:28 +000022675 ac_type=
22676fi
22677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22678 test -z "$ac_type" && break
22679 done
cristy3ed852e2009-09-05 21:47:34 +000022680fi
22681
22682
cristy3ed852e2009-09-05 21:47:34 +000022683
cristy501c8042011-05-26 17:46:28 +000022684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22685$as_echo_n "checking for long double... " >&6; }
22686if ${ac_cv_type_long_double+:} false; then :
22687 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022688else
cristy501c8042011-05-26 17:46:28 +000022689 if test "$GCC" = yes; then
22690 ac_cv_type_long_double=yes
22691 else
22692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693/* end confdefs.h. */
22694/* The Stardent Vistra knows sizeof (long double), but does
22695 not support it. */
22696 long double foo = 0.0L;
22697int
22698main ()
22699{
22700static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22701 sizeof (double) <= sizeof (long double))];
22702test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022703
cristy501c8042011-05-26 17:46:28 +000022704 ;
22705 return 0;
22706}
cristy3ed852e2009-09-05 21:47:34 +000022707_ACEOF
cristy501c8042011-05-26 17:46:28 +000022708if ac_fn_c_try_compile "$LINENO"; then :
22709 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022710else
cristy501c8042011-05-26 17:46:28 +000022711 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022712fi
cristy501c8042011-05-26 17:46:28 +000022713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22714 fi
cristy3ed852e2009-09-05 21:47:34 +000022715fi
cristy501c8042011-05-26 17:46:28 +000022716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22717$as_echo "$ac_cv_type_long_double" >&6; }
22718 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022719
cristy501c8042011-05-26 17:46:28 +000022720$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022721
cristy501c8042011-05-26 17:46:28 +000022722 fi
22723
cristy3ed852e2009-09-05 21:47:34 +000022724
cristy8b350f62009-11-15 23:12:43 +000022725 { $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 +000022726$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022727if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022728 $as_echo_n "(cached) " >&6
22729else
cristy8b350f62009-11-15 23:12:43 +000022730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022731/* end confdefs.h. */
22732#include <float.h>
22733 long double const a[] =
22734 {
22735 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22736 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22737 };
22738 long double
22739 f (long double x)
22740 {
22741 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22742 + (x ? f (x) : 'c'));
22743 }
22744
22745int
22746main ()
22747{
22748static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22749 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22750 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22751 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22752 && (int) LDBL_EPSILON == 0
22753 )];
22754test_array [0] = 0
22755
22756 ;
22757 return 0;
22758}
22759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022760if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022761 ac_cv_type_long_double_wider=yes
22762else
cristy8b350f62009-11-15 23:12:43 +000022763 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022764fi
cristy3ed852e2009-09-05 21:47:34 +000022765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766fi
cristy8b350f62009-11-15 23:12:43 +000022767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022768$as_echo "$ac_cv_type_long_double_wider" >&6; }
22769 if test $ac_cv_type_long_double_wider = yes; then
22770
cristy8b350f62009-11-15 23:12:43 +000022771$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022772
22773 fi
22774
22775
cristy501c8042011-05-26 17:46:28 +000022776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22777$as_echo_n "checking for long long int... " >&6; }
22778if ${ac_cv_type_long_long_int+:} false; then :
22779 $as_echo_n "(cached) " >&6
22780else
22781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782/* end confdefs.h. */
22783
22784 /* For now, do not test the preprocessor; as of 2007 there are too many
22785 implementations with broken preprocessors. Perhaps this can
22786 be revisited in 2012. In the meantime, code should not expect
22787 #if to work with literals wider than 32 bits. */
22788 /* Test literals. */
22789 long long int ll = 9223372036854775807ll;
22790 long long int nll = -9223372036854775807LL;
22791 unsigned long long int ull = 18446744073709551615ULL;
22792 /* Test constant expressions. */
22793 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22794 ? 1 : -1)];
22795 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22796 ? 1 : -1)];
22797 int i = 63;
22798int
22799main ()
22800{
22801/* Test availability of runtime routines for shift and division. */
22802 long long int llmax = 9223372036854775807ll;
22803 unsigned long long int ullmax = 18446744073709551615ull;
22804 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22805 | (llmax / ll) | (llmax % ll)
22806 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22807 | (ullmax / ull) | (ullmax % ull));
22808 ;
22809 return 0;
22810}
22811
22812_ACEOF
22813if ac_fn_c_try_link "$LINENO"; then :
22814 if test "$cross_compiling" = yes; then :
22815 ac_cv_type_long_long_int=yes
22816else
22817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818/* end confdefs.h. */
22819#include <limits.h>
22820 #ifndef LLONG_MAX
22821 # define HALF \
22822 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22823 # define LLONG_MAX (HALF - 1 + HALF)
22824 #endif
22825int
22826main ()
22827{
22828long long int n = 1;
22829 int i;
22830 for (i = 0; ; i++)
22831 {
22832 long long int m = n << i;
22833 if (m >> i != n)
22834 return 1;
22835 if (LLONG_MAX / 2 < m)
22836 break;
22837 }
22838 return 0;
22839 ;
22840 return 0;
22841}
22842_ACEOF
22843if ac_fn_c_try_run "$LINENO"; then :
22844 ac_cv_type_long_long_int=yes
22845else
22846 ac_cv_type_long_long_int=no
22847fi
22848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22849 conftest.$ac_objext conftest.beam conftest.$ac_ext
22850fi
22851
22852else
22853 ac_cv_type_long_long_int=no
22854fi
22855rm -f core conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22857fi
22858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22859$as_echo "$ac_cv_type_long_long_int" >&6; }
22860 if test $ac_cv_type_long_long_int = yes; then
22861
22862$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22863
22864 fi
22865
22866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22867$as_echo_n "checking for mbstate_t... " >&6; }
22868if ${ac_cv_type_mbstate_t+:} false; then :
22869 $as_echo_n "(cached) " >&6
22870else
22871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22872/* end confdefs.h. */
22873$ac_includes_default
22874# include <wchar.h>
22875int
22876main ()
22877{
22878mbstate_t x; return sizeof x;
22879 ;
22880 return 0;
22881}
22882_ACEOF
22883if ac_fn_c_try_compile "$LINENO"; then :
22884 ac_cv_type_mbstate_t=yes
22885else
22886 ac_cv_type_mbstate_t=no
22887fi
22888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889fi
22890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22891$as_echo "$ac_cv_type_mbstate_t" >&6; }
22892 if test $ac_cv_type_mbstate_t = yes; then
22893
22894$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22895
22896 else
22897
22898$as_echo "#define mbstate_t int" >>confdefs.h
22899
22900 fi
22901ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22902if test "x$ac_cv_type_mode_t" = xyes; then :
22903
22904else
22905
22906cat >>confdefs.h <<_ACEOF
22907#define mode_t int
22908_ACEOF
22909
22910fi
22911
22912ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22913if test "x$ac_cv_type_off_t" = xyes; then :
22914
22915else
22916
22917cat >>confdefs.h <<_ACEOF
22918#define off_t long int
22919_ACEOF
22920
22921fi
22922
22923ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22924if test "x$ac_cv_type_pid_t" = xyes; then :
22925
22926else
22927
22928cat >>confdefs.h <<_ACEOF
22929#define pid_t int
22930_ACEOF
22931
22932fi
22933
22934ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22935if test "x$ac_cv_type_size_t" = xyes; then :
22936
22937else
22938
22939cat >>confdefs.h <<_ACEOF
22940#define size_t unsigned int
22941_ACEOF
22942
22943fi
22944
22945ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22946if test "x$ac_cv_type_ssize_t" = xyes; then :
22947
22948else
22949
22950cat >>confdefs.h <<_ACEOF
22951#define ssize_t int
22952_ACEOF
22953
22954fi
22955
22956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22957$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22958if ${ac_cv_type_uid_t+:} false; then :
22959 $as_echo_n "(cached) " >&6
22960else
22961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22962/* end confdefs.h. */
22963#include <sys/types.h>
22964
22965_ACEOF
22966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22967 $EGREP "uid_t" >/dev/null 2>&1; then :
22968 ac_cv_type_uid_t=yes
22969else
22970 ac_cv_type_uid_t=no
22971fi
22972rm -f conftest*
22973
22974fi
22975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22976$as_echo "$ac_cv_type_uid_t" >&6; }
22977if test $ac_cv_type_uid_t = no; then
22978
22979$as_echo "#define uid_t int" >>confdefs.h
22980
22981
22982$as_echo "#define gid_t int" >>confdefs.h
22983
22984fi
22985
22986ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22987case $ac_cv_c_uint8_t in #(
22988 no|yes) ;; #(
22989 *)
22990
22991$as_echo "#define _UINT8_T 1" >>confdefs.h
22992
22993
22994cat >>confdefs.h <<_ACEOF
22995#define uint8_t $ac_cv_c_uint8_t
22996_ACEOF
22997;;
22998 esac
22999
23000ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23001case $ac_cv_c_uint16_t in #(
23002 no|yes) ;; #(
23003 *)
23004
23005
23006cat >>confdefs.h <<_ACEOF
23007#define uint16_t $ac_cv_c_uint16_t
23008_ACEOF
23009;;
23010 esac
23011
23012ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23013case $ac_cv_c_uint32_t in #(
23014 no|yes) ;; #(
23015 *)
23016
23017$as_echo "#define _UINT32_T 1" >>confdefs.h
23018
23019
23020cat >>confdefs.h <<_ACEOF
23021#define uint32_t $ac_cv_c_uint32_t
23022_ACEOF
23023;;
23024 esac
23025
23026ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23027case $ac_cv_c_uint64_t in #(
23028 no|yes) ;; #(
23029 *)
23030
23031$as_echo "#define _UINT64_T 1" >>confdefs.h
23032
23033
23034cat >>confdefs.h <<_ACEOF
23035#define uint64_t $ac_cv_c_uint64_t
23036_ACEOF
23037;;
23038 esac
23039
23040
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23042$as_echo_n "checking for unsigned long long int... " >&6; }
23043if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23044 $as_echo_n "(cached) " >&6
23045else
23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047/* end confdefs.h. */
23048
23049 /* For now, do not test the preprocessor; as of 2007 there are too many
23050 implementations with broken preprocessors. Perhaps this can
23051 be revisited in 2012. In the meantime, code should not expect
23052 #if to work with literals wider than 32 bits. */
23053 /* Test literals. */
23054 long long int ll = 9223372036854775807ll;
23055 long long int nll = -9223372036854775807LL;
23056 unsigned long long int ull = 18446744073709551615ULL;
23057 /* Test constant expressions. */
23058 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23059 ? 1 : -1)];
23060 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23061 ? 1 : -1)];
23062 int i = 63;
23063int
23064main ()
23065{
23066/* Test availability of runtime routines for shift and division. */
23067 long long int llmax = 9223372036854775807ll;
23068 unsigned long long int ullmax = 18446744073709551615ull;
23069 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23070 | (llmax / ll) | (llmax % ll)
23071 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23072 | (ullmax / ull) | (ullmax % ull));
23073 ;
23074 return 0;
23075}
23076
23077_ACEOF
23078if ac_fn_c_try_link "$LINENO"; then :
23079 ac_cv_type_unsigned_long_long_int=yes
23080else
23081 ac_cv_type_unsigned_long_long_int=no
23082fi
23083rm -f core conftest.err conftest.$ac_objext \
23084 conftest$ac_exeext conftest.$ac_ext
23085fi
23086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23087$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23088 if test $ac_cv_type_unsigned_long_long_int = yes; then
23089
23090$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23091
23092 fi
23093
23094
23095
23096 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23097if test "x$ac_cv_type_uintmax_t" = xyes; then :
23098
23099$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23100
23101else
23102 test $ac_cv_type_unsigned_long_long_int = yes \
23103 && ac_type='unsigned long long int' \
23104 || ac_type='unsigned long int'
23105
23106cat >>confdefs.h <<_ACEOF
23107#define uintmax_t $ac_type
23108_ACEOF
23109
23110fi
23111
23112
23113
23114 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23115if test "x$ac_cv_type_uintptr_t" = xyes; then :
23116
23117$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23118
23119else
23120 for ac_type in 'unsigned int' 'unsigned long int' \
23121 'unsigned long long int'; do
23122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23123/* end confdefs.h. */
23124$ac_includes_default
23125int
23126main ()
23127{
23128static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23129test_array [0] = 0
23130
23131 ;
23132 return 0;
23133}
23134_ACEOF
23135if ac_fn_c_try_compile "$LINENO"; then :
23136
23137cat >>confdefs.h <<_ACEOF
23138#define uintptr_t $ac_type
23139_ACEOF
23140
23141 ac_type=
23142fi
23143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 test -z "$ac_type" && break
23145 done
23146fi
23147
23148
23149
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23151$as_echo_n "checking for unsigned long long int... " >&6; }
23152if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23153 $as_echo_n "(cached) " >&6
23154else
23155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23156/* end confdefs.h. */
23157
23158 /* For now, do not test the preprocessor; as of 2007 there are too many
23159 implementations with broken preprocessors. Perhaps this can
23160 be revisited in 2012. In the meantime, code should not expect
23161 #if to work with literals wider than 32 bits. */
23162 /* Test literals. */
23163 long long int ll = 9223372036854775807ll;
23164 long long int nll = -9223372036854775807LL;
23165 unsigned long long int ull = 18446744073709551615ULL;
23166 /* Test constant expressions. */
23167 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23168 ? 1 : -1)];
23169 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23170 ? 1 : -1)];
23171 int i = 63;
23172int
23173main ()
23174{
23175/* Test availability of runtime routines for shift and division. */
23176 long long int llmax = 9223372036854775807ll;
23177 unsigned long long int ullmax = 18446744073709551615ull;
23178 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23179 | (llmax / ll) | (llmax % ll)
23180 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23181 | (ullmax / ull) | (ullmax % ull));
23182 ;
23183 return 0;
23184}
23185
23186_ACEOF
23187if ac_fn_c_try_link "$LINENO"; then :
23188 ac_cv_type_unsigned_long_long_int=yes
23189else
23190 ac_cv_type_unsigned_long_long_int=no
23191fi
23192rm -f core conftest.err conftest.$ac_objext \
23193 conftest$ac_exeext conftest.$ac_ext
23194fi
23195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23196$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23197 if test $ac_cv_type_unsigned_long_long_int = yes; then
23198
23199$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23200
23201 fi
23202
23203
cristy3ed852e2009-09-05 21:47:34 +000023204# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23205# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023207$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023208if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023209 $as_echo_n "(cached) " >&6
23210else
cristy8b350f62009-11-15 23:12:43 +000023211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023212/* end confdefs.h. */
23213$ac_includes_default
23214int
23215main ()
23216{
23217static int test_array [1 - 2 * !(((char) -1) < 0)];
23218test_array [0] = 0
23219
23220 ;
23221 return 0;
23222}
23223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023224if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023225 ac_cv_c_char_unsigned=no
23226else
cristy8b350f62009-11-15 23:12:43 +000023227 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023228fi
cristy3ed852e2009-09-05 21:47:34 +000023229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230fi
cristy8b350f62009-11-15 23:12:43 +000023231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023232$as_echo "$ac_cv_c_char_unsigned" >&6; }
23233if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023234 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023235
23236fi
23237
23238
23239# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23240# The cast to long int works around a bug in the HP C Compiler
23241# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23242# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23243# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023245$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023246if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023247 $as_echo_n "(cached) " >&6
23248else
cristy8b350f62009-11-15 23:12:43 +000023249 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 +000023250
cristy3ed852e2009-09-05 21:47:34 +000023251else
cristy8b350f62009-11-15 23:12:43 +000023252 if test "$ac_cv_type_signed_short" = yes; then
23253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023255as_fn_error 77 "cannot compute sizeof (signed short)
23256See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023257 else
23258 ac_cv_sizeof_signed_short=0
23259 fi
23260fi
cristy8b350f62009-11-15 23:12:43 +000023261
cristy3ed852e2009-09-05 21:47:34 +000023262fi
cristy8b350f62009-11-15 23:12:43 +000023263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023264$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23265
23266
23267
23268cat >>confdefs.h <<_ACEOF
23269#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23270_ACEOF
23271
23272
23273
23274# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23275# The cast to long int works around a bug in the HP C Compiler
23276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23278# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023280$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023281if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023282 $as_echo_n "(cached) " >&6
23283else
cristy8b350f62009-11-15 23:12:43 +000023284 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 +000023285
cristy3ed852e2009-09-05 21:47:34 +000023286else
cristy8b350f62009-11-15 23:12:43 +000023287 if test "$ac_cv_type_unsigned_short" = yes; then
23288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023290as_fn_error 77 "cannot compute sizeof (unsigned short)
23291See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023292 else
23293 ac_cv_sizeof_unsigned_short=0
23294 fi
23295fi
cristy8b350f62009-11-15 23:12:43 +000023296
cristy3ed852e2009-09-05 21:47:34 +000023297fi
cristy8b350f62009-11-15 23:12:43 +000023298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023299$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23300
23301
23302
23303cat >>confdefs.h <<_ACEOF
23304#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23305_ACEOF
23306
23307
23308
23309# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23310# The cast to long int works around a bug in the HP C Compiler
23311# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23312# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23313# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023315$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023316if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023317 $as_echo_n "(cached) " >&6
23318else
cristy8b350f62009-11-15 23:12:43 +000023319 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 +000023320
cristy3ed852e2009-09-05 21:47:34 +000023321else
cristy8b350f62009-11-15 23:12:43 +000023322 if test "$ac_cv_type_signed_int" = yes; then
23323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023325as_fn_error 77 "cannot compute sizeof (signed int)
23326See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023327 else
23328 ac_cv_sizeof_signed_int=0
23329 fi
23330fi
cristy8b350f62009-11-15 23:12:43 +000023331
cristy3ed852e2009-09-05 21:47:34 +000023332fi
cristy8b350f62009-11-15 23:12:43 +000023333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023334$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23335
23336
23337
23338cat >>confdefs.h <<_ACEOF
23339#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23340_ACEOF
23341
23342
23343
23344# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23345# The cast to long int works around a bug in the HP C Compiler
23346# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23347# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23348# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023350$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023351if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023352 $as_echo_n "(cached) " >&6
23353else
cristy8b350f62009-11-15 23:12:43 +000023354 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023355
cristy3ed852e2009-09-05 21:47:34 +000023356else
cristy8b350f62009-11-15 23:12:43 +000023357 if test "$ac_cv_type_unsigned_int" = yes; then
23358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023360as_fn_error 77 "cannot compute sizeof (unsigned int)
23361See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023362 else
23363 ac_cv_sizeof_unsigned_int=0
23364 fi
23365fi
cristy8b350f62009-11-15 23:12:43 +000023366
cristy3ed852e2009-09-05 21:47:34 +000023367fi
cristy8b350f62009-11-15 23:12:43 +000023368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023369$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23370
23371
23372
23373cat >>confdefs.h <<_ACEOF
23374#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23375_ACEOF
23376
23377
23378
23379# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23380# The cast to long int works around a bug in the HP C Compiler
23381# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23382# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23383# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023385$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023386if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023387 $as_echo_n "(cached) " >&6
23388else
cristy8b350f62009-11-15 23:12:43 +000023389 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023390
cristy3ed852e2009-09-05 21:47:34 +000023391else
cristy8b350f62009-11-15 23:12:43 +000023392 if test "$ac_cv_type_signed_long" = yes; then
23393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023395as_fn_error 77 "cannot compute sizeof (signed long)
23396See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023397 else
23398 ac_cv_sizeof_signed_long=0
23399 fi
23400fi
cristy8b350f62009-11-15 23:12:43 +000023401
cristy3ed852e2009-09-05 21:47:34 +000023402fi
cristy8b350f62009-11-15 23:12:43 +000023403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023404$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23405
23406
23407
23408cat >>confdefs.h <<_ACEOF
23409#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23410_ACEOF
23411
23412
23413
23414# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23415# The cast to long int works around a bug in the HP C Compiler
23416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23418# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023420$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023421if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023422 $as_echo_n "(cached) " >&6
23423else
cristy8b350f62009-11-15 23:12:43 +000023424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023425
cristy3ed852e2009-09-05 21:47:34 +000023426else
cristy8b350f62009-11-15 23:12:43 +000023427 if test "$ac_cv_type_unsigned_long" = yes; then
23428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023430as_fn_error 77 "cannot compute sizeof (unsigned long)
23431See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023432 else
23433 ac_cv_sizeof_unsigned_long=0
23434 fi
23435fi
cristy8b350f62009-11-15 23:12:43 +000023436
cristy3ed852e2009-09-05 21:47:34 +000023437fi
cristy8b350f62009-11-15 23:12:43 +000023438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023439$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23440
23441
23442
23443cat >>confdefs.h <<_ACEOF
23444#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23445_ACEOF
23446
23447
23448
23449# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23450# 'signed long long' is not supported then the value defined is zero.
23451# The cast to long int works around a bug in the HP C Compiler
23452# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23453# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23454# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023456$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023457if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023458 $as_echo_n "(cached) " >&6
23459else
cristy8b350f62009-11-15 23:12:43 +000023460 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 +000023461
cristy3ed852e2009-09-05 21:47:34 +000023462else
cristy8b350f62009-11-15 23:12:43 +000023463 if test "$ac_cv_type_signed_long_long" = yes; then
23464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023466as_fn_error 77 "cannot compute sizeof (signed long long)
23467See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023468 else
23469 ac_cv_sizeof_signed_long_long=0
23470 fi
23471fi
cristy8b350f62009-11-15 23:12:43 +000023472
cristy3ed852e2009-09-05 21:47:34 +000023473fi
cristy8b350f62009-11-15 23:12:43 +000023474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23476
23477
23478
23479cat >>confdefs.h <<_ACEOF
23480#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23481_ACEOF
23482
23483
23484
23485# Obtain size of a 'unsigned long long' and define as
23486# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23487# supported then the value defined is zero.
23488# The cast to long int works around a bug in the HP C Compiler
23489# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23490# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23491# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023493$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023494if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023495 $as_echo_n "(cached) " >&6
23496else
cristy8b350f62009-11-15 23:12:43 +000023497 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 +000023498
cristy3ed852e2009-09-05 21:47:34 +000023499else
cristy8b350f62009-11-15 23:12:43 +000023500 if test "$ac_cv_type_unsigned_long_long" = yes; then
23501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023503as_fn_error 77 "cannot compute sizeof (unsigned long long)
23504See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023505 else
23506 ac_cv_sizeof_unsigned_long_long=0
23507 fi
23508fi
cristy8b350f62009-11-15 23:12:43 +000023509
cristy3ed852e2009-09-05 21:47:34 +000023510fi
cristy8b350f62009-11-15 23:12:43 +000023511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023512$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23513
23514
23515
23516cat >>confdefs.h <<_ACEOF
23517#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23518_ACEOF
23519
23520
23521
23522# Obtain size of off_t and define as SIZEOF_OFF_T
23523# The cast to long int works around a bug in the HP C Compiler
23524# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23525# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23526# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023528$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023529if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023530 $as_echo_n "(cached) " >&6
23531else
cristy8b350f62009-11-15 23:12:43 +000023532 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 +000023533
cristy3ed852e2009-09-05 21:47:34 +000023534else
cristy8b350f62009-11-15 23:12:43 +000023535 if test "$ac_cv_type_off_t" = yes; then
23536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023538as_fn_error 77 "cannot compute sizeof (off_t)
23539See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023540 else
23541 ac_cv_sizeof_off_t=0
23542 fi
23543fi
cristy8b350f62009-11-15 23:12:43 +000023544
cristy3ed852e2009-09-05 21:47:34 +000023545fi
cristy8b350f62009-11-15 23:12:43 +000023546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023547$as_echo "$ac_cv_sizeof_off_t" >&6; }
23548
23549
23550
23551cat >>confdefs.h <<_ACEOF
23552#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23553_ACEOF
23554
23555
23556
23557# Obtain size of size_t and define as SIZEOF_SIZE_T
23558# The cast to long int works around a bug in the HP C Compiler
23559# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23560# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23561# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023563$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023564if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023565 $as_echo_n "(cached) " >&6
23566else
cristy8b350f62009-11-15 23:12:43 +000023567 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 +000023568
cristy3ed852e2009-09-05 21:47:34 +000023569else
cristy8b350f62009-11-15 23:12:43 +000023570 if test "$ac_cv_type_size_t" = yes; then
23571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023573as_fn_error 77 "cannot compute sizeof (size_t)
23574See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023575 else
23576 ac_cv_sizeof_size_t=0
23577 fi
23578fi
cristy8b350f62009-11-15 23:12:43 +000023579
cristy3ed852e2009-09-05 21:47:34 +000023580fi
cristy8b350f62009-11-15 23:12:43 +000023581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023582$as_echo "$ac_cv_sizeof_size_t" >&6; }
23583
23584
23585
23586cat >>confdefs.h <<_ACEOF
23587#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23588_ACEOF
23589
23590
23591
cristy330e9352010-06-01 18:42:49 +000023592# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23593# The cast to long int works around a bug in the HP C Compiler
23594# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23595# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23596# This bug is HP SR number 8606223364.
23597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23598$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023599if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023600 $as_echo_n "(cached) " >&6
23601else
23602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23603
23604else
23605 if test "$ac_cv_type_ssize_t" = yes; then
23606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023608as_fn_error 77 "cannot compute sizeof (ssize_t)
23609See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023610 else
23611 ac_cv_sizeof_ssize_t=0
23612 fi
23613fi
23614
23615fi
23616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23617$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23618
23619
23620
23621cat >>confdefs.h <<_ACEOF
23622#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23623_ACEOF
23624
23625
23626
cristy3ed852e2009-09-05 21:47:34 +000023627# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23628# The cast to long int works around a bug in the HP C Compiler
23629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23631# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023633$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023634if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023635 $as_echo_n "(cached) " >&6
23636else
cristy8b350f62009-11-15 23:12:43 +000023637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023638
cristy3ed852e2009-09-05 21:47:34 +000023639else
cristy8b350f62009-11-15 23:12:43 +000023640 if test "$ac_cv_type_unsigned_intp" = yes; then
23641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023643as_fn_error 77 "cannot compute sizeof (unsigned int*)
23644See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023645 else
23646 ac_cv_sizeof_unsigned_intp=0
23647 fi
23648fi
cristy8b350f62009-11-15 23:12:43 +000023649
cristy3ed852e2009-09-05 21:47:34 +000023650fi
cristy8b350f62009-11-15 23:12:43 +000023651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023652$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23653
23654
23655
23656cat >>confdefs.h <<_ACEOF
23657#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23658_ACEOF
23659
23660
23661
23662#
23663# Compute sized types for current CPU and compiler options.
23664#
23665
cristy8b350f62009-11-15 23:12:43 +000023666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023667$as_echo_n "checking for signed 8-bit type... " >&6; }
23668INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023669{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23670$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023671
23672
cristy8b350f62009-11-15 23:12:43 +000023673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023674$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23675UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023676{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23677$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023678
23679
cristy8b350f62009-11-15 23:12:43 +000023680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo_n "checking for signed 16-bit type... " >&6; }
23682INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023683{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23684$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023685
23686
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23689UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023690{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23691$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023692
23693
cristy8b350f62009-11-15 23:12:43 +000023694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023695$as_echo_n "checking for signed 32-bit type... " >&6; }
23696INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023697INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023698if test $ac_cv_sizeof_signed_int -eq 4; then
23699 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023700 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023701elif test $ac_cv_sizeof_signed_long -eq 4; then
23702 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023703 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023704fi
cristy09b53e12011-10-14 12:47:22 +000023705{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23706$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023707
23708
cristy6d5e20f2011-04-25 13:48:54 +000023709
cristy8b350f62009-11-15 23:12:43 +000023710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023711$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23712UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023713UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023714if test $ac_cv_sizeof_unsigned_int -eq 4; then
23715 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023716 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023717elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23718 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023719 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023720fi
cristy09b53e12011-10-14 12:47:22 +000023721{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23722$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023723
23724
cristy6d5e20f2011-04-25 13:48:54 +000023725
cristy8b350f62009-11-15 23:12:43 +000023726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023727$as_echo_n "checking for signed 64-bit type... " >&6; }
23728INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023729INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023730if test $ac_cv_sizeof_signed_long -eq 8; then
23731 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023732 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023733elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23734 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023735 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023736fi
cristy6d5e20f2011-04-25 13:48:54 +000023737case "${build_os}" in
23738 mingw* )
23739 INT64_F='"I64"'
23740 ;;
23741esac
cristy09b53e12011-10-14 12:47:22 +000023742{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23743$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023744
23745
cristy6d5e20f2011-04-25 13:48:54 +000023746
cristy8b350f62009-11-15 23:12:43 +000023747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023748$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23749UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023750UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023751if test $ac_cv_sizeof_unsigned_long -eq 8; then
23752 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023753 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023754elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23755 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023756 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023757fi
cristy6d5e20f2011-04-25 13:48:54 +000023758case "${build_os}" in
23759 mingw* )
23760 UINT64_F='"I64"'
23761 ;;
23762esac
cristy09b53e12011-10-14 12:47:22 +000023763{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23764$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023765
23766
cristy6d5e20f2011-04-25 13:48:54 +000023767
cristy8b350f62009-11-15 23:12:43 +000023768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023769$as_echo_n "checking for unsigned maximum type... " >&6; }
23770UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023771UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023772if test "$UINT64_T" != 'none'; then
23773 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023774 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023775elif test "$UINT32_T" != 'none'; then
23776 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023777 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023778fi
cristy09b53e12011-10-14 12:47:22 +000023779{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23780$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023781
23782
cristy6d5e20f2011-04-25 13:48:54 +000023783
cristy8b350f62009-11-15 23:12:43 +000023784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023785$as_echo_n "checking for pointer difference type... " >&6; }
23786UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023787UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023788if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23789 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023790 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023791elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23792 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023793 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023794fi
cristy09b53e12011-10-14 12:47:22 +000023795{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23796$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023797
23798
cristy6d5e20f2011-04-25 13:48:54 +000023799
cristy8b350f62009-11-15 23:12:43 +000023800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023801$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023803/* end confdefs.h. */
23804
23805int
23806main ()
23807{
23808{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23809 ;
23810 return 0;
23811}
23812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023813if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023814 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23815$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023816else
cristy09b53e12011-10-14 12:47:22 +000023817 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23818$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023820$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023822/* end confdefs.h. */
23823
23824int
23825main ()
23826{
23827{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23828 ;
23829 return 0;
23830}
23831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023832if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023833 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23834$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023835
cristy8b350f62009-11-15 23:12:43 +000023836$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023837
23838else
cristy09b53e12011-10-14 12:47:22 +000023839 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23840$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023841
cristy8b350f62009-11-15 23:12:43 +000023842$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023843
23844fi
cristy3ed852e2009-09-05 21:47:34 +000023845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23846fi
cristy3ed852e2009-09-05 21:47:34 +000023847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23848
23849########
23850#
23851# Check for functions
23852#
23853########
cristy73bd4a52010-10-05 11:24:23 +000023854for ac_header in stdlib.h unistd.h
23855do :
23856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23857ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023858if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023859 cat >>confdefs.h <<_ACEOF
23860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23861_ACEOF
23862
23863fi
23864
23865done
23866
23867for ac_func in getpagesize
23868do :
23869 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023870if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023871 cat >>confdefs.h <<_ACEOF
23872#define HAVE_GETPAGESIZE 1
23873_ACEOF
23874
23875fi
23876done
23877
23878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23879$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023880if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023881 $as_echo_n "(cached) " >&6
23882else
23883 if test "$cross_compiling" = yes; then :
23884 magick_cv_func_mmap_fileio=no
23885else
23886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23887/* end confdefs.h. */
23888$ac_includes_default
23889/* malloc might have been renamed as rpl_malloc. */
23890#undef malloc
23891
23892/*
23893 This test is derived from GNU Autoconf's similar macro.
23894 The purpose of this test is to verify that files may be memory
23895 mapped, and that memory mapping and file I/O are coherent.
23896
23897 The test creates a test file, memory maps the file, updates
23898 the file using the memory map, and then reads the file using
23899 file I/O to verify that the file contains the updates.
23900*/
23901
23902#include <fcntl.h>
23903#include <sys/mman.h>
23904
23905#if !STDC_HEADERS && !HAVE_STDLIB_H
23906char *malloc ();
23907#endif
23908
23909/* This mess was copied from the GNU getpagesize.h. */
23910#if !HAVE_GETPAGESIZE
23911/* Assume that all systems that can run configure have sys/param.h. */
23912# if !HAVE_SYS_PARAM_H
23913# define HAVE_SYS_PARAM_H 1
23914# endif
23915
23916# ifdef _SC_PAGESIZE
23917# define getpagesize() sysconf(_SC_PAGESIZE)
23918# else /* no _SC_PAGESIZE */
23919# if HAVE_SYS_PARAM_H
23920# include <sys/param.h>
23921# ifdef EXEC_PAGESIZE
23922# define getpagesize() EXEC_PAGESIZE
23923# else /* no EXEC_PAGESIZE */
23924# ifdef NBPG
23925# define getpagesize() NBPG * CLSIZE
23926# ifndef CLSIZE
23927# define CLSIZE 1
23928# endif /* no CLSIZE */
23929# else /* no NBPG */
23930# ifdef NBPC
23931# define getpagesize() NBPC
23932# else /* no NBPC */
23933# ifdef PAGESIZE
23934# define getpagesize() PAGESIZE
23935# endif /* PAGESIZE */
23936# endif /* no NBPC */
23937# endif /* no NBPG */
23938# endif /* no EXEC_PAGESIZE */
23939# else /* no HAVE_SYS_PARAM_H */
23940# define getpagesize() 8192 /* punt totally */
23941# endif /* no HAVE_SYS_PARAM_H */
23942# endif /* no _SC_PAGESIZE */
23943
23944#endif /* no HAVE_GETPAGESIZE */
23945
23946int
23947main ()
23948{
23949 char *data, *data2, *data3;
23950 int i, pagesize;
23951 int fd;
23952
23953 pagesize = getpagesize ();
23954
23955 /* First, make a file with some known garbage in it. */
23956 data = (char *) malloc (pagesize);
23957 if (!data)
23958 exit (1);
23959 for (i = 0; i < pagesize; ++i)
23960 *(data + i) = rand ();
23961 umask (0);
23962 fd = creat ("conftest.mmap", 0600);
23963 if (fd < 0)
23964 exit (1);
23965 if (write (fd, data, pagesize) != pagesize)
23966 exit (1);
23967 close (fd);
23968
23969 /* Mmap the file as read/write/shared and verify that we see the
23970 same garbage. */
23971 fd = open ("conftest.mmap", O_RDWR);
23972 if (fd < 0)
23973 exit (1);
23974 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23975 if (data2 == 0)
23976 exit (1);
23977 for (i = 0; i < pagesize; ++i)
23978 if (*(data + i) != *(data2 + i))
23979 exit (1);
23980
23981 /* Finally, make sure that changes to the mapped area
23982 percolate back to the file as seen by read(). */
23983 for (i = 0; i < pagesize; ++i)
23984 *(data2 + i) = *(data2 + i) + 1;
23985 data3 = (char *) malloc (pagesize);
23986 if (!data3)
23987 exit (1);
23988 if (read (fd, data3, pagesize) != pagesize)
23989 exit (1);
23990 for (i = 0; i < pagesize; ++i)
23991 if (*(data2 + i) != *(data3 + i))
23992 exit (1);
23993 close (fd);
23994 exit (0);
23995}
23996_ACEOF
23997if ac_fn_c_try_run "$LINENO"; then :
23998 magick_cv_func_mmap_fileio=yes
23999else
24000 magick_cv_func_mmap_fileio=no
24001fi
24002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24003 conftest.$ac_objext conftest.beam conftest.$ac_ext
24004fi
24005
24006fi
24007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24008$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24009if test $magick_cv_func_mmap_fileio = yes; then
24010
24011$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24012
24013fi
24014rm -f conftest.mmap
24015
cristy8b350f62009-11-15 23:12:43 +000024016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024017$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024018if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024019 $as_echo_n "(cached) " >&6
24020else
cristy8b350f62009-11-15 23:12:43 +000024021 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024022 ac_cv_func_closedir_void=yes
24023else
cristy8b350f62009-11-15 23:12:43 +000024024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024025/* end confdefs.h. */
24026$ac_includes_default
24027#include <$ac_header_dirent>
24028#ifndef __cplusplus
24029int closedir ();
24030#endif
24031
24032int
24033main ()
24034{
24035return closedir (opendir (".")) != 0;
24036 ;
24037 return 0;
24038}
24039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024040if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024041 ac_cv_func_closedir_void=no
24042else
cristy8b350f62009-11-15 23:12:43 +000024043 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024044fi
cristy8b350f62009-11-15 23:12:43 +000024045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24046 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024047fi
24048
cristy3ed852e2009-09-05 21:47:34 +000024049fi
cristy8b350f62009-11-15 23:12:43 +000024050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024051$as_echo "$ac_cv_func_closedir_void" >&6; }
24052if test $ac_cv_func_closedir_void = yes; then
24053
cristy8b350f62009-11-15 23:12:43 +000024054$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024055
24056fi
24057
cristycd4c5312009-11-22 01:19:08 +000024058
24059
24060
24061 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024062do :
24063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024064ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24065"
cristy98dddb52010-11-04 00:30:15 +000024066if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024067 cat >>confdefs.h <<_ACEOF
24068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24069_ACEOF
24070
24071fi
24072
24073done
24074
cristycd4c5312009-11-22 01:19:08 +000024075
24076
24077
24078
24079
24080
24081
cristy3ed852e2009-09-05 21:47:34 +000024082for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024083do :
24084 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024085if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024086 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024087#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024088_ACEOF
24089
24090fi
24091done
24092
cristy8b350f62009-11-15 23:12:43 +000024093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024094$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024095if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024096 $as_echo_n "(cached) " >&6
24097else
cristy8b350f62009-11-15 23:12:43 +000024098 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024099 ac_cv_func_mmap_fixed_mapped=no
24100else
cristy8b350f62009-11-15 23:12:43 +000024101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024102/* end confdefs.h. */
24103$ac_includes_default
24104/* malloc might have been renamed as rpl_malloc. */
24105#undef malloc
24106
24107/* Thanks to Mike Haertel and Jim Avera for this test.
24108 Here is a matrix of mmap possibilities:
24109 mmap private not fixed
24110 mmap private fixed at somewhere currently unmapped
24111 mmap private fixed at somewhere already mapped
24112 mmap shared not fixed
24113 mmap shared fixed at somewhere currently unmapped
24114 mmap shared fixed at somewhere already mapped
24115 For private mappings, we should verify that changes cannot be read()
24116 back from the file, nor mmap's back from the file at a different
24117 address. (There have been systems where private was not correctly
24118 implemented like the infamous i386 svr4.0, and systems where the
24119 VM page cache was not coherent with the file system buffer cache
24120 like early versions of FreeBSD and possibly contemporary NetBSD.)
24121 For shared mappings, we should conversely verify that changes get
24122 propagated back to all the places they're supposed to be.
24123
24124 Grep wants private fixed already mapped.
24125 The main things grep needs to know about mmap are:
24126 * does it exist and is it safe to write into the mmap'd area
24127 * how to use it (BSD variants) */
24128
24129#include <fcntl.h>
24130#include <sys/mman.h>
24131
24132#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24133char *malloc ();
24134#endif
24135
24136/* This mess was copied from the GNU getpagesize.h. */
24137#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024138# ifdef _SC_PAGESIZE
24139# define getpagesize() sysconf(_SC_PAGESIZE)
24140# else /* no _SC_PAGESIZE */
24141# ifdef HAVE_SYS_PARAM_H
24142# include <sys/param.h>
24143# ifdef EXEC_PAGESIZE
24144# define getpagesize() EXEC_PAGESIZE
24145# else /* no EXEC_PAGESIZE */
24146# ifdef NBPG
24147# define getpagesize() NBPG * CLSIZE
24148# ifndef CLSIZE
24149# define CLSIZE 1
24150# endif /* no CLSIZE */
24151# else /* no NBPG */
24152# ifdef NBPC
24153# define getpagesize() NBPC
24154# else /* no NBPC */
24155# ifdef PAGESIZE
24156# define getpagesize() PAGESIZE
24157# endif /* PAGESIZE */
24158# endif /* no NBPC */
24159# endif /* no NBPG */
24160# endif /* no EXEC_PAGESIZE */
24161# else /* no HAVE_SYS_PARAM_H */
24162# define getpagesize() 8192 /* punt totally */
24163# endif /* no HAVE_SYS_PARAM_H */
24164# endif /* no _SC_PAGESIZE */
24165
24166#endif /* no HAVE_GETPAGESIZE */
24167
24168int
24169main ()
24170{
24171 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024172 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024173 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024174 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024175
24176 pagesize = getpagesize ();
24177
24178 /* First, make a file with some known garbage in it. */
24179 data = (char *) malloc (pagesize);
24180 if (!data)
24181 return 1;
24182 for (i = 0; i < pagesize; ++i)
24183 *(data + i) = rand ();
24184 umask (0);
24185 fd = creat ("conftest.mmap", 0600);
24186 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024187 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024188 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024189 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024190 close (fd);
24191
cristycd4c5312009-11-22 01:19:08 +000024192 /* Next, check that the tail of a page is zero-filled. File must have
24193 non-zero length, otherwise we risk SIGBUS for entire page. */
24194 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24195 if (fd2 < 0)
24196 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024197 cdata2 = "";
24198 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024199 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024200 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024201 if (data2 == MAP_FAILED)
24202 return 6;
24203 for (i = 0; i < pagesize; ++i)
24204 if (*(data2 + i))
24205 return 7;
24206 close (fd2);
24207 if (munmap (data2, pagesize))
24208 return 8;
24209
cristy3ed852e2009-09-05 21:47:34 +000024210 /* Next, try to mmap the file at a fixed address which already has
24211 something else allocated at it. If we can, also make sure that
24212 we see the same garbage. */
24213 fd = open ("conftest.mmap", O_RDWR);
24214 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024215 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024216 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24217 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024218 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024219 for (i = 0; i < pagesize; ++i)
24220 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024221 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024222
24223 /* Finally, make sure that changes to the mapped area do not
24224 percolate back to the file as seen by read(). (This is a bug on
24225 some variants of i386 svr4.0.) */
24226 for (i = 0; i < pagesize; ++i)
24227 *(data2 + i) = *(data2 + i) + 1;
24228 data3 = (char *) malloc (pagesize);
24229 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024230 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024231 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024232 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024233 for (i = 0; i < pagesize; ++i)
24234 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024235 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024236 close (fd);
24237 return 0;
24238}
24239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024240if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024241 ac_cv_func_mmap_fixed_mapped=yes
24242else
cristy8b350f62009-11-15 23:12:43 +000024243 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024244fi
cristy8b350f62009-11-15 23:12:43 +000024245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24246 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024247fi
24248
cristy3ed852e2009-09-05 21:47:34 +000024249fi
cristy8b350f62009-11-15 23:12:43 +000024250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024251$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24252if test $ac_cv_func_mmap_fixed_mapped = yes; then
24253
cristy8b350f62009-11-15 23:12:43 +000024254$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024255
24256fi
cristycd4c5312009-11-22 01:19:08 +000024257rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024258
cristy3ed852e2009-09-05 21:47:34 +000024259for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024260do :
24261 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024262if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024263 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024264#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024265_ACEOF
24266
24267fi
24268
24269done
24270
cristy3ed852e2009-09-05 21:47:34 +000024271for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024272do :
24273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24274ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024275if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 cat >>confdefs.h <<_ACEOF
24277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24278_ACEOF
24279
24280fi
24281done
24282
24283if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024285$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024286if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024287 $as_echo_n "(cached) " >&6
24288else
cristy8b350f62009-11-15 23:12:43 +000024289 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024290 ac_cv_func_fork_works=cross
24291else
cristy8b350f62009-11-15 23:12:43 +000024292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024293/* end confdefs.h. */
24294$ac_includes_default
24295int
24296main ()
24297{
24298
24299 /* By Ruediger Kuhlmann. */
24300 return fork () < 0;
24301
24302 ;
24303 return 0;
24304}
24305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024306if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 ac_cv_func_fork_works=yes
24308else
cristy8b350f62009-11-15 23:12:43 +000024309 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024310fi
cristy8b350f62009-11-15 23:12:43 +000024311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24312 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024313fi
24314
cristy3ed852e2009-09-05 21:47:34 +000024315fi
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$ac_cv_func_fork_works" >&6; }
24318
24319else
24320 ac_cv_func_fork_works=$ac_cv_func_fork
24321fi
24322if test "x$ac_cv_func_fork_works" = xcross; then
24323 case $host in
24324 *-*-amigaos* | *-*-msdosdjgpp*)
24325 # Override, as these systems have only a dummy fork() stub
24326 ac_cv_func_fork_works=no
24327 ;;
24328 *)
24329 ac_cv_func_fork_works=yes
24330 ;;
24331 esac
cristy8b350f62009-11-15 23:12:43 +000024332 { $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 +000024333$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24334fi
24335ac_cv_func_vfork_works=$ac_cv_func_vfork
24336if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024338$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024339if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024340 $as_echo_n "(cached) " >&6
24341else
cristy8b350f62009-11-15 23:12:43 +000024342 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024343 ac_cv_func_vfork_works=cross
24344else
cristy8b350f62009-11-15 23:12:43 +000024345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024346/* end confdefs.h. */
24347/* Thanks to Paul Eggert for this test. */
24348$ac_includes_default
24349#include <sys/wait.h>
24350#ifdef HAVE_VFORK_H
24351# include <vfork.h>
24352#endif
24353/* On some sparc systems, changes by the child to local and incoming
24354 argument registers are propagated back to the parent. The compiler
24355 is told about this with #include <vfork.h>, but some compilers
24356 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24357 static variable whose address is put into a register that is
24358 clobbered by the vfork. */
24359static void
24360#ifdef __cplusplus
24361sparc_address_test (int arg)
24362# else
24363sparc_address_test (arg) int arg;
24364#endif
24365{
24366 static pid_t child;
24367 if (!child) {
24368 child = vfork ();
24369 if (child < 0) {
24370 perror ("vfork");
24371 _exit(2);
24372 }
24373 if (!child) {
24374 arg = getpid();
24375 write(-1, "", 0);
24376 _exit (arg);
24377 }
24378 }
24379}
24380
24381int
24382main ()
24383{
24384 pid_t parent = getpid ();
24385 pid_t child;
24386
24387 sparc_address_test (0);
24388
24389 child = vfork ();
24390
24391 if (child == 0) {
24392 /* Here is another test for sparc vfork register problems. This
24393 test uses lots of local variables, at least as many local
24394 variables as main has allocated so far including compiler
24395 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24396 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24397 reuse the register of parent for one of the local variables,
24398 since it will think that parent can't possibly be used any more
24399 in this routine. Assigning to the local variable will thus
24400 munge parent in the parent process. */
24401 pid_t
24402 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24403 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24404 /* Convince the compiler that p..p7 are live; otherwise, it might
24405 use the same hardware register for all 8 local variables. */
24406 if (p != p1 || p != p2 || p != p3 || p != p4
24407 || p != p5 || p != p6 || p != p7)
24408 _exit(1);
24409
24410 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24411 from child file descriptors. If the child closes a descriptor
24412 before it execs or exits, this munges the parent's descriptor
24413 as well. Test for this by closing stdout in the child. */
24414 _exit(close(fileno(stdout)) != 0);
24415 } else {
24416 int status;
24417 struct stat st;
24418
24419 while (wait(&status) != child)
24420 ;
24421 return (
24422 /* Was there some problem with vforking? */
24423 child < 0
24424
24425 /* Did the child fail? (This shouldn't happen.) */
24426 || status
24427
24428 /* Did the vfork/compiler bug occur? */
24429 || parent != getpid()
24430
24431 /* Did the file descriptor bug occur? */
24432 || fstat(fileno(stdout), &st) != 0
24433 );
24434 }
24435}
24436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024437if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024438 ac_cv_func_vfork_works=yes
24439else
cristy8b350f62009-11-15 23:12:43 +000024440 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024441fi
cristy8b350f62009-11-15 23:12:43 +000024442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24443 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024444fi
24445
cristy3ed852e2009-09-05 21:47:34 +000024446fi
cristy8b350f62009-11-15 23:12:43 +000024447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024448$as_echo "$ac_cv_func_vfork_works" >&6; }
24449
24450fi;
24451if test "x$ac_cv_func_fork_works" = xcross; then
24452 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024453 { $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 +000024454$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24455fi
24456
24457if test "x$ac_cv_func_vfork_works" = xyes; then
24458
cristy8b350f62009-11-15 23:12:43 +000024459$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024460
24461else
24462
cristy8b350f62009-11-15 23:12:43 +000024463$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024464
24465fi
24466if test "x$ac_cv_func_fork_works" = xyes; then
24467
cristy8b350f62009-11-15 23:12:43 +000024468$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024469
24470fi
24471
cristy8b350f62009-11-15 23:12:43 +000024472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024473$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024474if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024475 $as_echo_n "(cached) " >&6
24476else
cristy8b350f62009-11-15 23:12:43 +000024477 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024478 ac_cv_func_memcmp_working=no
24479else
cristy8b350f62009-11-15 23:12:43 +000024480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024481/* end confdefs.h. */
24482$ac_includes_default
24483int
24484main ()
24485{
24486
24487 /* Some versions of memcmp are not 8-bit clean. */
24488 char c0 = '\100', c1 = '\200', c2 = '\201';
24489 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24490 return 1;
24491
24492 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24493 or more and with at least one buffer not starting on a 4-byte boundary.
24494 William Lewis provided this test program. */
24495 {
24496 char foo[21];
24497 char bar[21];
24498 int i;
24499 for (i = 0; i < 4; i++)
24500 {
24501 char *a = foo + i;
24502 char *b = bar + i;
24503 strcpy (a, "--------01111111");
24504 strcpy (b, "--------10000000");
24505 if (memcmp (a, b, 16) >= 0)
24506 return 1;
24507 }
24508 return 0;
24509 }
24510
24511 ;
24512 return 0;
24513}
24514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024515if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 ac_cv_func_memcmp_working=yes
24517else
cristy8b350f62009-11-15 23:12:43 +000024518 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024519fi
cristy8b350f62009-11-15 23:12:43 +000024520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24521 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024522fi
24523
cristy3ed852e2009-09-05 21:47:34 +000024524fi
cristy8b350f62009-11-15 23:12:43 +000024525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024526$as_echo "$ac_cv_func_memcmp_working" >&6; }
24527test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24528 *" memcmp.$ac_objext "* ) ;;
24529 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24530 ;;
24531esac
24532
24533
cristy3ed852e2009-09-05 21:47:34 +000024534for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024535do :
24536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24537ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024538if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024539 cat >>confdefs.h <<_ACEOF
24540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24541_ACEOF
24542
24543fi
24544
24545done
24546
cristy8b350f62009-11-15 23:12:43 +000024547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024549if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 $as_echo_n "(cached) " >&6
24551else
24552 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24553 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24554 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024556/* end confdefs.h. */
24557$ac_includes_default
24558#ifdef HAVE_SYS_SELECT_H
24559# include <sys/select.h>
24560#endif
24561#ifdef HAVE_SYS_SOCKET_H
24562# include <sys/socket.h>
24563#endif
24564
24565int
24566main ()
24567{
24568extern int select ($ac_arg1,
24569 $ac_arg234, $ac_arg234, $ac_arg234,
24570 $ac_arg5);
24571 ;
24572 return 0;
24573}
24574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024575if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024576 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024577fi
cristy3ed852e2009-09-05 21:47:34 +000024578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24579 done
24580 done
24581done
24582# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024583: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024584
24585fi
cristy8b350f62009-11-15 23:12:43 +000024586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024587$as_echo "$ac_cv_func_select_args" >&6; }
24588ac_save_IFS=$IFS; IFS=','
24589set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24590IFS=$ac_save_IFS
24591shift
24592
24593cat >>confdefs.h <<_ACEOF
24594#define SELECT_TYPE_ARG1 $1
24595_ACEOF
24596
24597
24598cat >>confdefs.h <<_ACEOF
24599#define SELECT_TYPE_ARG234 ($2)
24600_ACEOF
24601
24602
24603cat >>confdefs.h <<_ACEOF
24604#define SELECT_TYPE_ARG5 ($3)
24605_ACEOF
24606
24607rm -f conftest*
24608
cristyda16f162011-02-19 23:52:17 +000024609if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024610 $as_echo_n "(cached) " >&6
24611else
24612 ac_cv_func_setvbuf_reversed=no
24613fi
24614
24615
cristy8b350f62009-11-15 23:12:43 +000024616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024617$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024618if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024619 $as_echo_n "(cached) " >&6
24620else
cristy8b350f62009-11-15 23:12:43 +000024621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024622/* end confdefs.h. */
24623#include <sys/types.h>
24624#include <signal.h>
24625
24626int
24627main ()
24628{
24629return *(signal (0, 0)) (0) == 1;
24630 ;
24631 return 0;
24632}
24633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024634if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024635 ac_cv_type_signal=int
24636else
cristy8b350f62009-11-15 23:12:43 +000024637 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024638fi
cristy3ed852e2009-09-05 21:47:34 +000024639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24640fi
cristy8b350f62009-11-15 23:12:43 +000024641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024642$as_echo "$ac_cv_type_signal" >&6; }
24643
24644cat >>confdefs.h <<_ACEOF
24645#define RETSIGTYPE $ac_cv_type_signal
24646_ACEOF
24647
24648
cristy8b350f62009-11-15 23:12:43 +000024649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024650$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024651if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 $as_echo_n "(cached) " >&6
24653else
cristy8b350f62009-11-15 23:12:43 +000024654 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024655 ac_cv_func_strtod=no
24656else
cristy8b350f62009-11-15 23:12:43 +000024657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024658/* end confdefs.h. */
24659
24660$ac_includes_default
24661#ifndef strtod
24662double strtod ();
24663#endif
24664int
24665main()
24666{
24667 {
24668 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24669 char *string = " +69";
24670 char *term;
24671 double value;
24672 value = strtod (string, &term);
24673 if (value != 69 || term != (string + 4))
24674 return 1;
24675 }
24676
24677 {
24678 /* Under Solaris 2.4, strtod returns the wrong value for the
24679 terminating character under some conditions. */
24680 char *string = "NaN";
24681 char *term;
24682 strtod (string, &term);
24683 if (term != string && *(term - 1) == 0)
24684 return 1;
24685 }
24686 return 0;
24687}
24688
24689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024690if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 ac_cv_func_strtod=yes
24692else
cristy8b350f62009-11-15 23:12:43 +000024693 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024694fi
cristy8b350f62009-11-15 23:12:43 +000024695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24696 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024697fi
24698
cristy3ed852e2009-09-05 21:47:34 +000024699fi
cristy8b350f62009-11-15 23:12:43 +000024700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024701$as_echo "$ac_cv_func_strtod" >&6; }
24702if test $ac_cv_func_strtod = no; then
24703 case " $LIBOBJS " in
24704 *" strtod.$ac_objext "* ) ;;
24705 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24706 ;;
24707esac
24708
cristy8b350f62009-11-15 23:12:43 +000024709ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024710if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024711
cristy3ed852e2009-09-05 21:47:34 +000024712fi
24713
cristy3ed852e2009-09-05 21:47:34 +000024714if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024716$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024717if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024718 $as_echo_n "(cached) " >&6
24719else
24720 ac_check_lib_save_LIBS=$LIBS
24721LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024723/* end confdefs.h. */
24724
24725/* Override any GCC internal prototype to avoid an error.
24726 Use char because int might match the return type of a GCC
24727 builtin and then its argument prototype would still apply. */
24728#ifdef __cplusplus
24729extern "C"
24730#endif
24731char pow ();
24732int
24733main ()
24734{
24735return pow ();
24736 ;
24737 return 0;
24738}
24739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024740if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 ac_cv_lib_m_pow=yes
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024744fi
cristy8b350f62009-11-15 23:12:43 +000024745rm -f core conftest.err conftest.$ac_objext \
24746 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024747LIBS=$ac_check_lib_save_LIBS
24748fi
cristy8b350f62009-11-15 23:12:43 +000024749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024750$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024751if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024752 POW_LIB=-lm
24753else
cristy8b350f62009-11-15 23:12:43 +000024754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024755$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24756fi
24757
24758fi
24759
24760fi
24761
cristy7d4a1d62011-10-13 15:54:12 +000024762ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24763if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24764 ac_have_decl=1
24765else
24766 ac_have_decl=0
24767fi
24768
24769cat >>confdefs.h <<_ACEOF
24770#define HAVE_DECL_STRERROR_R $ac_have_decl
24771_ACEOF
24772
24773for ac_func in strerror_r
24774do :
24775 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24776if test "x$ac_cv_func_strerror_r" = xyes; then :
24777 cat >>confdefs.h <<_ACEOF
24778#define HAVE_STRERROR_R 1
24779_ACEOF
24780
24781fi
24782done
24783
24784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24785$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24786if ${ac_cv_func_strerror_r_char_p+:} false; then :
24787 $as_echo_n "(cached) " >&6
24788else
24789
24790 ac_cv_func_strerror_r_char_p=no
24791 if test $ac_cv_have_decl_strerror_r = yes; then
24792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24793/* end confdefs.h. */
24794$ac_includes_default
24795int
24796main ()
24797{
24798
24799 char buf[100];
24800 char x = *strerror_r (0, buf, sizeof buf);
24801 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024802 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024803
24804 ;
24805 return 0;
24806}
24807_ACEOF
24808if ac_fn_c_try_compile "$LINENO"; then :
24809 ac_cv_func_strerror_r_char_p=yes
24810fi
24811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24812 else
24813 # strerror_r is not declared. Choose between
24814 # systems that have relatively inaccessible declarations for the
24815 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24816 # former has a strerror_r that returns char*, while the latter
24817 # has a strerror_r that returns `int'.
24818 # This test should segfault on the DEC system.
24819 if test "$cross_compiling" = yes; then :
24820 :
24821else
24822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24823/* end confdefs.h. */
24824$ac_includes_default
24825 extern char *strerror_r ();
24826int
24827main ()
24828{
24829char buf[100];
24830 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024831 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024832 ;
24833 return 0;
24834}
24835_ACEOF
24836if ac_fn_c_try_run "$LINENO"; then :
24837 ac_cv_func_strerror_r_char_p=yes
24838fi
24839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24840 conftest.$ac_objext conftest.beam conftest.$ac_ext
24841fi
24842
24843 fi
24844
24845fi
24846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24847$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24848if test $ac_cv_func_strerror_r_char_p = yes; then
24849
24850$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24851
24852fi
24853
cristy3ed852e2009-09-05 21:47:34 +000024854for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024855do :
24856 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024857if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024858 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024859#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024860_ACEOF
24861
cristy8b350f62009-11-15 23:12:43 +000024862ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024863if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024864
cristy8b350f62009-11-15 23:12:43 +000024865$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024866
24867fi
24868
24869fi
24870done
24871
24872
24873
cristy161b9262010-03-20 19:34:32 +000024874#
24875# Find math library
24876#
24877MATH_LIBS=''
24878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24879$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024880if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024881 $as_echo_n "(cached) " >&6
24882else
24883 ac_check_lib_save_LIBS=$LIBS
24884LIBS="-lm $LIBS"
24885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24886/* end confdefs.h. */
24887
24888/* Override any GCC internal prototype to avoid an error.
24889 Use char because int might match the return type of a GCC
24890 builtin and then its argument prototype would still apply. */
24891#ifdef __cplusplus
24892extern "C"
24893#endif
24894char sqrt ();
24895int
24896main ()
24897{
24898return sqrt ();
24899 ;
24900 return 0;
24901}
24902_ACEOF
24903if ac_fn_c_try_link "$LINENO"; then :
24904 ac_cv_lib_m_sqrt=yes
24905else
24906 ac_cv_lib_m_sqrt=no
24907fi
24908rm -f core conftest.err conftest.$ac_objext \
24909 conftest$ac_exeext conftest.$ac_ext
24910LIBS=$ac_check_lib_save_LIBS
24911fi
24912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24913$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024914if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024915 MATH_LIBS="-lm"
24916fi
24917
24918LIBS="$MATH_LIBS $LIBS"
24919
24920
cristy7d4a1d62011-10-13 15:54:12 +000024921for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000024922do :
24923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24924ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024925if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024926 cat >>confdefs.h <<_ACEOF
24927#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24928_ACEOF
24929
24930fi
24931done
24932
24933
cristye43a45e2009-09-28 14:49:00 +000024934#
24935# Check for clock_gettime().
24936#
cristy8b350f62009-11-15 23:12:43 +000024937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024938$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024939if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024940 $as_echo_n "(cached) " >&6
24941else
24942 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024944/* end confdefs.h. */
24945
24946/* Override any GCC internal prototype to avoid an error.
24947 Use char because int might match the return type of a GCC
24948 builtin and then its argument prototype would still apply. */
24949#ifdef __cplusplus
24950extern "C"
24951#endif
24952char clock_gettime ();
24953int
24954main ()
24955{
24956return clock_gettime ();
24957 ;
24958 return 0;
24959}
24960_ACEOF
24961for ac_lib in '' rt; do
24962 if test -z "$ac_lib"; then
24963 ac_res="none required"
24964 else
24965 ac_res=-l$ac_lib
24966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24967 fi
cristy8b350f62009-11-15 23:12:43 +000024968 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024969 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024970fi
cristy8b350f62009-11-15 23:12:43 +000024971rm -f core conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024973 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024974 break
24975fi
24976done
cristyda16f162011-02-19 23:52:17 +000024977if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024978
cristye43a45e2009-09-28 14:49:00 +000024979else
24980 ac_cv_search_clock_gettime=no
24981fi
24982rm conftest.$ac_ext
24983LIBS=$ac_func_search_save_LIBS
24984fi
cristy8b350f62009-11-15 23:12:43 +000024985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024986$as_echo "$ac_cv_search_clock_gettime" >&6; }
24987ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024988if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24990
24991
cristy8b350f62009-11-15 23:12:43 +000024992$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024993
cristy8b350f62009-11-15 23:12:43 +000024994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024995$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024997/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024998
24999 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025000int
25001main ()
25002{
25003clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025004 ;
25005 return 0;
25006}
25007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025008if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025009
cristy09b53e12011-10-14 12:47:22 +000025010 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25011$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025012
cristy8b350f62009-11-15 23:12:43 +000025013$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025014
25015
25016else
cristy09b53e12011-10-14 12:47:22 +000025017 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25018$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025019
25020fi
cristye43a45e2009-09-28 14:49:00 +000025021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022
25023else
25024
cristy8b350f62009-11-15 23:12:43 +000025025 for ac_func in gettimeofday ftime
25026do :
25027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25028ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025029if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025030 cat >>confdefs.h <<_ACEOF
25031#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25032_ACEOF
25033 break
25034fi
25035done
25036
25037
25038
25039fi
25040
25041
cristy3ed852e2009-09-05 21:47:34 +000025042########
25043#
25044# Check for function prototypes
25045#
25046########
25047
cristy8b350f62009-11-15 23:12:43 +000025048ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025049#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025050"
cristyda16f162011-02-19 23:52:17 +000025051if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025052 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025053else
cristy8b350f62009-11-15 23:12:43 +000025054 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025055fi
25056
cristy3ed852e2009-09-05 21:47:34 +000025057cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025058#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025060ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025061#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025062"
cristyda16f162011-02-19 23:52:17 +000025063if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025064 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025065else
cristy8b350f62009-11-15 23:12:43 +000025066 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025067fi
25068
cristy3ed852e2009-09-05 21:47:34 +000025069cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025070#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025071_ACEOF
25072
25073
cristy8b350f62009-11-15 23:12:43 +000025074ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025075#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025076"
cristyda16f162011-02-19 23:52:17 +000025077if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025078 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025079else
cristy8b350f62009-11-15 23:12:43 +000025080 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025081fi
25082
cristy3ed852e2009-09-05 21:47:34 +000025083cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025084#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025085_ACEOF
25086
25087
cristy8b350f62009-11-15 23:12:43 +000025088ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025089#include <stdio.h>
25090#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025091"
cristyda16f162011-02-19 23:52:17 +000025092if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025093 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025094else
cristy8b350f62009-11-15 23:12:43 +000025095 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025096fi
25097
cristy3ed852e2009-09-05 21:47:34 +000025098cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025099#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025100_ACEOF
25101
25102
cristy3ed852e2009-09-05 21:47:34 +000025103########
25104#
25105# C++ Support Tests (For Magick++)
25106#
25107########
25108have_magick_plus_plus='no'
25109if test "$with_magick_plus_plus" = 'yes'; then
25110 OLIBS="$LIBS"
25111 LIBS=''
25112 ac_ext=cpp
25113ac_cpp='$CXXCPP $CPPFLAGS'
25114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25117
25118
25119 # Full set of headers used...
25120 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25121 # functional iomanip iosfwd iostream iterator list string strstream utility
25122 ac_ext=cpp
25123ac_cpp='$CXXCPP $CPPFLAGS'
25124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25127
25128 ac_ext=cpp
25129ac_cpp='$CXXCPP $CPPFLAGS'
25130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25133if test -z "$CXX"; then
25134 if test -n "$CCC"; then
25135 CXX=$CCC
25136 else
25137 if test -n "$ac_tool_prefix"; then
25138 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25139 do
25140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25141set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025144if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025145 $as_echo_n "(cached) " >&6
25146else
25147 if test -n "$CXX"; then
25148 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25149else
25150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25151for as_dir in $PATH
25152do
25153 IFS=$as_save_IFS
25154 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025155 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25157 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025159 break 2
25160 fi
25161done
cristy8b350f62009-11-15 23:12:43 +000025162 done
cristy3ed852e2009-09-05 21:47:34 +000025163IFS=$as_save_IFS
25164
25165fi
25166fi
25167CXX=$ac_cv_prog_CXX
25168if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025170$as_echo "$CXX" >&6; }
25171else
cristy8b350f62009-11-15 23:12:43 +000025172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025173$as_echo "no" >&6; }
25174fi
25175
25176
25177 test -n "$CXX" && break
25178 done
25179fi
25180if test -z "$CXX"; then
25181 ac_ct_CXX=$CXX
25182 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25183do
25184 # Extract the first word of "$ac_prog", so it can be a program name with args.
25185set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025188if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025189 $as_echo_n "(cached) " >&6
25190else
25191 if test -n "$ac_ct_CXX"; then
25192 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25193else
25194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25195for as_dir in $PATH
25196do
25197 IFS=$as_save_IFS
25198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25201 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025203 break 2
25204 fi
25205done
cristy8b350f62009-11-15 23:12:43 +000025206 done
cristy3ed852e2009-09-05 21:47:34 +000025207IFS=$as_save_IFS
25208
25209fi
25210fi
25211ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25212if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025214$as_echo "$ac_ct_CXX" >&6; }
25215else
cristy8b350f62009-11-15 23:12:43 +000025216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025217$as_echo "no" >&6; }
25218fi
25219
25220
25221 test -n "$ac_ct_CXX" && break
25222done
25223
25224 if test "x$ac_ct_CXX" = x; then
25225 CXX="g++"
25226 else
25227 case $cross_compiling:$ac_tool_warned in
25228yes:)
cristy8b350f62009-11-15 23:12:43 +000025229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25231ac_tool_warned=yes ;;
25232esac
25233 CXX=$ac_ct_CXX
25234 fi
25235fi
25236
25237 fi
25238fi
25239# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025240$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025241set X $ac_compile
25242ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025243for ac_option in --version -v -V -qversion; do
25244 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025245case "(($ac_try" in
25246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25247 *) ac_try_echo=$ac_try;;
25248esac
cristy8b350f62009-11-15 23:12:43 +000025249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25250$as_echo "$ac_try_echo"; } >&5
25251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025252 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025253 if test -s conftest.err; then
25254 sed '10a\
25255... rest of stderr output deleted ...
25256 10q' conftest.err >conftest.er1
25257 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025258 fi
cristycd4c5312009-11-22 01:19:08 +000025259 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }
25262done
cristy3ed852e2009-09-05 21:47:34 +000025263
cristy8b350f62009-11-15 23:12:43 +000025264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025265$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025266if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025267 $as_echo_n "(cached) " >&6
25268else
cristy8b350f62009-11-15 23:12:43 +000025269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025270/* end confdefs.h. */
25271
25272int
25273main ()
25274{
25275#ifndef __GNUC__
25276 choke me
25277#endif
25278
25279 ;
25280 return 0;
25281}
25282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025283if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025284 ac_compiler_gnu=yes
25285else
cristy8b350f62009-11-15 23:12:43 +000025286 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025287fi
cristy3ed852e2009-09-05 21:47:34 +000025288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25289ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25290
25291fi
cristy8b350f62009-11-15 23:12:43 +000025292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25294if test $ac_compiler_gnu = yes; then
25295 GXX=yes
25296else
25297 GXX=
25298fi
25299ac_test_CXXFLAGS=${CXXFLAGS+set}
25300ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025302$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025303if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025304 $as_echo_n "(cached) " >&6
25305else
25306 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25307 ac_cxx_werror_flag=yes
25308 ac_cv_prog_cxx_g=no
25309 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025311/* end confdefs.h. */
25312
25313int
25314main ()
25315{
25316
25317 ;
25318 return 0;
25319}
25320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025321if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025322 ac_cv_prog_cxx_g=yes
25323else
cristy8b350f62009-11-15 23:12:43 +000025324 CXXFLAGS=""
25325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025326/* end confdefs.h. */
25327
25328int
25329main ()
25330{
25331
25332 ;
25333 return 0;
25334}
25335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025336if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025337
cristy8b350f62009-11-15 23:12:43 +000025338else
25339 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025340 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025342/* end confdefs.h. */
25343
25344int
25345main ()
25346{
25347
25348 ;
25349 return 0;
25350}
25351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025352if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025353 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025354fi
cristy3ed852e2009-09-05 21:47:34 +000025355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356fi
cristy3ed852e2009-09-05 21:47:34 +000025357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25358fi
cristy3ed852e2009-09-05 21:47:34 +000025359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25360 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25361fi
cristy8b350f62009-11-15 23:12:43 +000025362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025363$as_echo "$ac_cv_prog_cxx_g" >&6; }
25364if test "$ac_test_CXXFLAGS" = set; then
25365 CXXFLAGS=$ac_save_CXXFLAGS
25366elif test $ac_cv_prog_cxx_g = yes; then
25367 if test "$GXX" = yes; then
25368 CXXFLAGS="-g -O2"
25369 else
25370 CXXFLAGS="-g"
25371 fi
25372else
25373 if test "$GXX" = yes; then
25374 CXXFLAGS="-O2"
25375 else
25376 CXXFLAGS=
25377 fi
25378fi
25379ac_ext=cpp
25380ac_cpp='$CXXCPP $CPPFLAGS'
25381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25384
cristy73bd4a52010-10-05 11:24:23 +000025385depcc="$CXX" am_compiler_list=
25386
25387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25388$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025389if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025390 $as_echo_n "(cached) " >&6
25391else
25392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25393 # We make a subdir and do the tests there. Otherwise we can end up
25394 # making bogus files that we don't know about and never remove. For
25395 # instance it was reported that on HP-UX the gcc test will end up
25396 # making a dummy file named `D' -- because `-MD' means `put the output
25397 # in D'.
25398 mkdir conftest.dir
25399 # Copy depcomp to subdir because otherwise we won't find it if we're
25400 # using a relative directory.
25401 cp "$am_depcomp" conftest.dir
25402 cd conftest.dir
25403 # We will build objects and dependencies in a subdirectory because
25404 # it helps to detect inapplicable dependency modes. For instance
25405 # both Tru64's cc and ICC support -MD to output dependencies as a
25406 # side effect of compilation, but ICC will put the dependencies in
25407 # the current directory while Tru64 will put them in the object
25408 # directory.
25409 mkdir sub
25410
25411 am_cv_CXX_dependencies_compiler_type=none
25412 if test "$am_compiler_list" = ""; then
25413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25414 fi
25415 am__universal=false
25416 case " $depcc " in #(
25417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25418 esac
25419
25420 for depmode in $am_compiler_list; do
25421 # Setup a source with many dependencies, because some compilers
25422 # like to wrap large dependency lists on column 80 (with \), and
25423 # we should not choose a depcomp mode which is confused by this.
25424 #
25425 # We need to recreate these files for each test, as the compiler may
25426 # overwrite some of them when testing with obscure command lines.
25427 # This happens at least with the AIX C compiler.
25428 : > sub/conftest.c
25429 for i in 1 2 3 4 5 6; do
25430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25432 # Solaris 8's {/usr,}/bin/sh.
25433 touch sub/conftst$i.h
25434 done
25435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25436
25437 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25438 # mode. It turns out that the SunPro C++ compiler does not properly
25439 # handle `-M -o', and we need to detect this. Also, some Intel
25440 # versions had trouble with output in subdirs
25441 am__obj=sub/conftest.${OBJEXT-o}
25442 am__minus_obj="-o $am__obj"
25443 case $depmode in
25444 gcc)
25445 # This depmode causes a compiler race in universal mode.
25446 test "$am__universal" = false || continue
25447 ;;
25448 nosideeffect)
25449 # after this tag, mechanisms are not by side-effect, so they'll
25450 # only be used when explicitly requested
25451 if test "x$enable_dependency_tracking" = xyes; then
25452 continue
25453 else
25454 break
25455 fi
25456 ;;
25457 msvisualcpp | msvcmsys)
25458 # This compiler won't grok `-c -o', but also, the minuso test has
25459 # not run yet. These depmodes are late enough in the game, and
25460 # so weak that their functioning should not be impacted.
25461 am__obj=conftest.${OBJEXT-o}
25462 am__minus_obj=
25463 ;;
25464 none) break ;;
25465 esac
25466 if depmode=$depmode \
25467 source=sub/conftest.c object=$am__obj \
25468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25470 >/dev/null 2>conftest.err &&
25471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25475 # icc doesn't choke on unknown options, it will just issue warnings
25476 # or remarks (even with -Werror). So we grep stderr for any message
25477 # that says an option was ignored or not supported.
25478 # When given -MP, icc 7.0 and 7.1 complain thusly:
25479 # icc: Command line warning: ignoring option '-M'; no argument required
25480 # The diagnosis changed in icc 8.0:
25481 # icc: Command line remark: option '-MP' not supported
25482 if (grep 'ignoring option' conftest.err ||
25483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25484 am_cv_CXX_dependencies_compiler_type=$depmode
25485 break
25486 fi
25487 fi
25488 done
25489
25490 cd ..
25491 rm -rf conftest.dir
25492else
25493 am_cv_CXX_dependencies_compiler_type=none
25494fi
25495
25496fi
25497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25498$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25499CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25500
25501 if
25502 test "x$enable_dependency_tracking" != xno \
25503 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25504 am__fastdepCXX_TRUE=
25505 am__fastdepCXX_FALSE='#'
25506else
25507 am__fastdepCXX_TRUE='#'
25508 am__fastdepCXX_FALSE=
25509fi
25510
25511
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25513$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025514if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025515 $as_echo_n "(cached) " >&6
25516else
25517
25518 ac_ext=cpp
25519ac_cpp='$CXXCPP $CPPFLAGS'
25520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25523
25524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25525/* end confdefs.h. */
25526
25527int f(int x){return 1;}
25528int f(char x){return 1;}
25529int f(bool x){return 1;}
25530
25531int
25532main ()
25533{
25534bool b = true; return f(b);
25535 ;
25536 return 0;
25537}
25538_ACEOF
25539if ac_fn_cxx_try_compile "$LINENO"; then :
25540 ax_cv_cxx_bool=yes
25541else
25542 ax_cv_cxx_bool=no
25543fi
25544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25545 ac_ext=cpp
25546ac_cpp='$CXXCPP $CPPFLAGS'
25547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25550
25551
25552fi
25553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25554$as_echo "$ax_cv_cxx_bool" >&6; }
25555if test "$ax_cv_cxx_bool" = yes; then
25556
25557$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25558
25559fi
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25562$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025563if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025564 $as_echo_n "(cached) " >&6
25565else
25566
25567 ac_ext=cpp
25568ac_cpp='$CXXCPP $CPPFLAGS'
25569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25572
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574/* end confdefs.h. */
25575namespace Outer { namespace Inner { int i = 0; }}
25576int
25577main ()
25578{
25579using namespace Outer::Inner; return i;
25580 ;
25581 return 0;
25582}
25583_ACEOF
25584if ac_fn_cxx_try_compile "$LINENO"; then :
25585 ax_cv_cxx_namespaces=yes
25586else
25587 ax_cv_cxx_namespaces=no
25588fi
25589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25590 ac_ext=cpp
25591ac_cpp='$CXXCPP $CPPFLAGS'
25592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25595
25596
25597fi
25598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25599$as_echo "$ax_cv_cxx_namespaces" >&6; }
25600if test "$ax_cv_cxx_namespaces" = yes; then
25601
25602$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25603
25604fi
25605
25606
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25608$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025609if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025610 $as_echo_n "(cached) " >&6
25611else
25612
25613 ac_ext=cpp
25614ac_cpp='$CXXCPP $CPPFLAGS'
25615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25618
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620/* end confdefs.h. */
25621#include <iostream>
25622 std::istream& is = std::cin;
25623int
25624main ()
25625{
25626
25627 ;
25628 return 0;
25629}
25630_ACEOF
25631if ac_fn_cxx_try_compile "$LINENO"; then :
25632 ax_cv_cxx_have_std_namespace=yes
25633else
25634 ax_cv_cxx_have_std_namespace=no
25635fi
25636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25637 ac_ext=cpp
25638ac_cpp='$CXXCPP $CPPFLAGS'
25639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25642
25643
25644fi
25645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25646$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25647 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25648
25649$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25650
25651 fi
25652
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25654$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025655if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025656 $as_echo_n "(cached) " >&6
25657else
25658
25659
25660 ac_ext=cpp
25661ac_cpp='$CXXCPP $CPPFLAGS'
25662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25665
25666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25667/* end confdefs.h. */
25668#include <iostream>
25669#include <map>
25670#include <iomanip>
25671#include <cmath>
25672#ifdef HAVE_NAMESPACES
25673using namespace std;
25674#endif
25675int
25676main ()
25677{
25678return 0;
25679 ;
25680 return 0;
25681}
25682_ACEOF
25683if ac_fn_cxx_try_compile "$LINENO"; then :
25684 ac_cv_cxx_have_std_libs=yes
25685else
25686 ac_cv_cxx_have_std_libs=no
25687fi
25688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25689 ac_ext=cpp
25690ac_cpp='$CXXCPP $CPPFLAGS'
25691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25694
25695
25696fi
25697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25698$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25699if test "$ac_cv_cxx_have_std_libs" = yes; then
25700
25701$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25702
25703fi
25704
cristy3ed852e2009-09-05 21:47:34 +000025705
25706 OPENMP_CXXFLAGS=
25707 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025708if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025709 enableval=$enable_openmp;
25710fi
25711
25712 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25714$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025715if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025716 $as_echo_n "(cached) " >&6
25717else
cristy8b350f62009-11-15 23:12:43 +000025718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25719/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025720
25721#ifndef _OPENMP
25722 choke me
25723#endif
25724#include <omp.h>
25725int main () { return omp_get_num_threads (); }
25726
25727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025728if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025729 ac_cv_prog_cxx_openmp='none needed'
25730else
cristy8b350f62009-11-15 23:12:43 +000025731 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025732 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25733 ac_save_CXXFLAGS=$CXXFLAGS
25734 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025737
25738#ifndef _OPENMP
25739 choke me
25740#endif
25741#include <omp.h>
25742int main () { return omp_get_num_threads (); }
25743
25744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025745if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025746 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025747fi
cristy8b350f62009-11-15 23:12:43 +000025748rm -f core conftest.err conftest.$ac_objext \
25749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025750 CXXFLAGS=$ac_save_CXXFLAGS
25751 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25752 break
25753 fi
25754 done
25755fi
cristy8b350f62009-11-15 23:12:43 +000025756rm -f core conftest.err conftest.$ac_objext \
25757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025758fi
cristy8b350f62009-11-15 23:12:43 +000025759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025760$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25761 case $ac_cv_prog_cxx_openmp in #(
25762 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025763 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025764 *)
cristy8b350f62009-11-15 23:12:43 +000025765 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025766 esac
25767 fi
25768
25769
25770 ac_ext=c
25771ac_cpp='$CPP $CPPFLAGS'
25772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25774ac_compiler_gnu=$ac_cv_c_compiler_gnu
25775
25776
cristy8b350f62009-11-15 23:12:43 +000025777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025778$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25779 if \
cristy964cb7f2010-04-25 23:18:00 +000025780 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025781 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025782 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025783 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025784 have_magick_plus_plus='yes'
25785 else
25786 have_magick_plus_plus='no (failed tests)'
25787 fi
cristy09b53e12011-10-14 12:47:22 +000025788 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25789$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025790 LIBS="$OLIBS"
25791fi
cristy73bd4a52010-10-05 11:24:23 +000025792 if test "$have_magick_plus_plus" = 'yes'; then
25793 WITH_MAGICK_PLUS_PLUS_TRUE=
25794 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25795else
25796 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25797 WITH_MAGICK_PLUS_PLUS_FALSE=
25798fi
25799
cristy3ed852e2009-09-05 21:47:34 +000025800
25801# Only check for delegate libraries in subdirectories if requested.
25802if test "$enable_delegate_build" != 'no'; then
25803 # Check for delegate sub-directories and add -I & -L options as required.
25804 # This presumes that delegates are installed as detailed in the ImageMagick
25805 # README. If delegates are installed in a standard location where the
25806 # compiler will automatically find them then these options should not be
25807 # required.
25808
25809 #
25810 # Most delegates have includes in the same directory as the library, but not all...
25811 #
25812 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025813 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 +000025814 if test -d "$builddir/$dir"; then
25815 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25816 else
25817 if test -d "$srcdirfull/$dir"; then
25818 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25819 fi
25820 fi
25821 done
25822
25823 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025824 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 +000025825 if test -d "$builddir/$dir/.libs"; then
25826 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25827 else
25828 if test -d "$srcdirfull/$dir/.libs"; then
25829 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25830 fi
25831 fi
25832 if test -d "$builddir/$dir"; then
25833 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25834 else
25835 if test -d "$srcdirfull/$dir"; then
25836 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25837 fi
25838 fi
25839 done
25840fi
25841
25842# Assume that delegate headers reside under same directory as ImageMagick
25843# installation prefix.
25844MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25845
25846#
25847# Find the X11 RGB database
25848#
cristy8b350f62009-11-15 23:12:43 +000025849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025850$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025851if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025852 $as_echo_n "(cached) " >&6
25853else
25854 # Look for the header file in a standard set of common directories.
25855# Check X11 before X11Rn because it is often a symlink to the current release.
25856 for ac_dir in \
25857 /lib/usr/lib/X11 \
25858 /usr/X11/lib \
25859 /usr/X11R4/lib \
25860 /usr/X11R5/lib \
25861 /usr/X11R6/lib \
25862 /usr/X11R7/lib \
25863 /usr/X386/lib \
25864 /usr/XFree86/lib/X11 \
25865 /usr/athena/lib \
25866 /usr/lib \
25867 /usr/lib/X11 \
25868 /usr/lib/X11R4 \
25869 /usr/lib/X11R5 \
25870 /usr/lib/X11R6 \
25871 /usr/lib/X11R7 \
25872 /usr/local/X11/lib \
25873 /usr/local/X11R4/lib \
25874 /usr/local/X11R5/lib \
25875 /usr/local/X11R6/lib \
25876 /usr/local/lib \
25877 /usr/local/lib/X11 \
25878 /usr/local/lib/X11R4 \
25879 /usr/local/lib/X11R5 \
25880 /usr/local/lib/X11R6 \
25881 /usr/local/lib/X11R7 \
25882 /usr/local/x11r5/lib \
25883 /usr/lpp/Xamples/lib \
25884 /usr/openwin/lib \
25885 /usr/openwin/share/lib \
25886 /usr/unsupported/lib \
25887 /usr/x386/lib \
25888 ; do
25889 if test -f "$ac_dir/X11/rgb.txt"; then
25890 im_cv_x_configure="$ac_dir/X11/"
25891 break
25892 elif test -f "$ac_dir/rgb.txt"; then
25893 im_cv_x_configure="$ac_dir/"
25894 break
25895 fi
25896
25897 done
25898fi
cristy8b350f62009-11-15 23:12:43 +000025899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025900$as_echo "$im_cv_x_configure" >&6; }
25901X11_CONFIGURE_PATH="$im_cv_x_configure"
25902case "${build_os}" in
25903 mingw* )
25904 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25905 ;;
25906esac
25907
25908cat >>confdefs.h <<_ACEOF
25909#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25910_ACEOF
25911
25912
25913#
25914# Find OpenMP library
25915#
25916GOMP_LIBS=''
25917if test "$enable_openmp" != 'no'; then
25918 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025920$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025921if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025922 $as_echo_n "(cached) " >&6
25923else
25924 ac_check_lib_save_LIBS=$LIBS
25925LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025927/* end confdefs.h. */
25928
25929/* Override any GCC internal prototype to avoid an error.
25930 Use char because int might match the return type of a GCC
25931 builtin and then its argument prototype would still apply. */
25932#ifdef __cplusplus
25933extern "C"
25934#endif
25935char GOMP_parallel_start ();
25936int
25937main ()
25938{
25939return GOMP_parallel_start ();
25940 ;
25941 return 0;
25942}
25943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025944if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025945 ac_cv_lib_gomp_GOMP_parallel_start=yes
25946else
cristy8b350f62009-11-15 23:12:43 +000025947 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025948fi
cristy8b350f62009-11-15 23:12:43 +000025949rm -f core conftest.err conftest.$ac_objext \
25950 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025951LIBS=$ac_check_lib_save_LIBS
25952fi
cristy8b350f62009-11-15 23:12:43 +000025953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025954$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025955if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025956 GOMP_LIBS="-lgomp"
25957fi
25958 # gcc
25959 else
cristy8b350f62009-11-15 23:12:43 +000025960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025961$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025962if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025963 $as_echo_n "(cached) " >&6
25964else
25965 ac_check_lib_save_LIBS=$LIBS
25966LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025968/* end confdefs.h. */
25969
25970/* Override any GCC internal prototype to avoid an error.
25971 Use char because int might match the return type of a GCC
25972 builtin and then its argument prototype would still apply. */
25973#ifdef __cplusplus
25974extern "C"
25975#endif
25976char sunw_mp_register_warn ();
25977int
25978main ()
25979{
25980return sunw_mp_register_warn ();
25981 ;
25982 return 0;
25983}
25984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025985if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025986 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25987else
cristy8b350f62009-11-15 23:12:43 +000025988 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025989fi
cristy8b350f62009-11-15 23:12:43 +000025990rm -f core conftest.err conftest.$ac_objext \
25991 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025992LIBS=$ac_check_lib_save_LIBS
25993fi
cristy8b350f62009-11-15 23:12:43 +000025994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025995$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025996if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025997 GOMP_LIBS="-lmtsk"
25998fi
25999 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026001$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026002if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 $as_echo_n "(cached) " >&6
26004else
26005 ac_check_lib_save_LIBS=$LIBS
26006LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026008/* end confdefs.h. */
26009
26010/* Override any GCC internal prototype to avoid an error.
26011 Use char because int might match the return type of a GCC
26012 builtin and then its argument prototype would still apply. */
26013#ifdef __cplusplus
26014extern "C"
26015#endif
26016char _xlsmpFlush ();
26017int
26018main ()
26019{
26020return _xlsmpFlush ();
26021 ;
26022 return 0;
26023}
26024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026025if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026026 ac_cv_lib_xlsmp__xlsmpFlush=yes
26027else
cristy8b350f62009-11-15 23:12:43 +000026028 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026029fi
cristy8b350f62009-11-15 23:12:43 +000026030rm -f core conftest.err conftest.$ac_objext \
26031 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026032LIBS=$ac_check_lib_save_LIBS
26033fi
cristy8b350f62009-11-15 23:12:43 +000026034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026035$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026036if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026037 GOMP_LIBS="-lxlsmp"
26038fi
26039 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026041$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026042if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026043 $as_echo_n "(cached) " >&6
26044else
26045 ac_check_lib_save_LIBS=$LIBS
26046LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026048/* end confdefs.h. */
26049
26050/* Override any GCC internal prototype to avoid an error.
26051 Use char because int might match the return type of a GCC
26052 builtin and then its argument prototype would still apply. */
26053#ifdef __cplusplus
26054extern "C"
26055#endif
26056char mp_destroy ();
26057int
26058main ()
26059{
26060return mp_destroy ();
26061 ;
26062 return 0;
26063}
26064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026065if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026066 ac_cv_lib_mp_mp_destroy=yes
26067else
cristy8b350f62009-11-15 23:12:43 +000026068 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026069fi
cristy8b350f62009-11-15 23:12:43 +000026070rm -f core conftest.err conftest.$ac_objext \
26071 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026072LIBS=$ac_check_lib_save_LIBS
26073fi
cristy8b350f62009-11-15 23:12:43 +000026074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026075$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026076if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026077 GOMP_LIBS="-lmp"
26078fi
26079 # SGI IRIX 6.5 MIPSpro C/C++
26080 fi
26081 LIBS="$GOMP_LIBS $LIBS"
26082fi
26083
26084
26085#
26086# Find Posix threads library
26087#
26088THREAD_LIBS=''
26089if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26090
26091 if test "x$PTHREAD_LIBS" = "x"; then
26092 case "${host_cpu}-${host_os}" in
26093 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026094
26095
26096
26097ac_ext=c
26098ac_cpp='$CPP $CPPFLAGS'
26099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26101ac_compiler_gnu=$ac_cv_c_compiler_gnu
26102
26103magick_pthread_lib_ok=no
26104
26105LIB=-lc_r
26106save_LIBS="$LIBS"
26107LIBS="$LIBS $LIB"
26108
26109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26110$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26112/* end confdefs.h. */
26113#include <pthread.h>
26114int
26115main ()
26116{
26117 pthread_t th;
26118 pthread_join(th, 0);
26119 pthread_attr_init(0);
26120 pthread_cleanup_push(0, 0);
26121 pthread_create(0,0,0,0);
26122 pthread_cleanup_pop(0);
26123 ;
26124 return 0;
26125}
26126_ACEOF
26127if ac_fn_c_try_link "$LINENO"; then :
26128 magick_pthread_lib_ok=yes
26129fi
26130rm -f core conftest.err conftest.$ac_objext \
26131 conftest$ac_exeext conftest.$ac_ext
26132
26133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26134$as_echo "${magick_pthread_lib_ok}" >&6; }
26135if test "$magick_pthread_lib_ok" = yes
26136then
26137 PTHREAD_LIBS=-lc_r
26138 :
26139else
26140
26141 :
26142fi
26143
26144LIBS="$save_LIBS"
26145
26146ac_ext=c
26147ac_cpp='$CPP $CPPFLAGS'
26148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26150ac_compiler_gnu=$ac_cv_c_compiler_gnu
26151
26152 ;;
cristy3ed852e2009-09-05 21:47:34 +000026153 esac
26154 fi
26155
26156 for lib in pthread pthreads; do
26157 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026158
26159
26160
26161ac_ext=c
26162ac_cpp='$CPP $CPPFLAGS'
26163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26165ac_compiler_gnu=$ac_cv_c_compiler_gnu
26166
26167magick_pthread_lib_ok=no
26168
26169LIB=-l$lib
26170save_LIBS="$LIBS"
26171LIBS="$LIBS $LIB"
26172
26173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26174$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176/* end confdefs.h. */
26177#include <pthread.h>
26178int
26179main ()
26180{
26181 pthread_t th;
26182 pthread_join(th, 0);
26183 pthread_attr_init(0);
26184 pthread_cleanup_push(0, 0);
26185 pthread_create(0,0,0,0);
26186 pthread_cleanup_pop(0);
26187 ;
26188 return 0;
26189}
26190_ACEOF
26191if ac_fn_c_try_link "$LINENO"; then :
26192 magick_pthread_lib_ok=yes
26193fi
26194rm -f core conftest.err conftest.$ac_objext \
26195 conftest$ac_exeext conftest.$ac_ext
26196
26197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26198$as_echo "${magick_pthread_lib_ok}" >&6; }
26199if test "$magick_pthread_lib_ok" = yes
26200then
26201 PTHREAD_LIBS=-l$lib
26202 :
26203else
26204
26205 :
26206fi
26207
26208LIBS="$save_LIBS"
26209
26210ac_ext=c
26211ac_cpp='$CPP $CPPFLAGS'
26212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26214ac_compiler_gnu=$ac_cv_c_compiler_gnu
26215
26216
cristy3ed852e2009-09-05 21:47:34 +000026217 fi
26218 done
26219
26220 THREAD_LIBS="$PTHREAD_LIBS"
26221 LIBS="$LIBS $THREAD_LIBS"
26222fi
26223
26224
26225#
26226# Check for umem.
26227#
26228have_umem='no'
26229UMEM_LIBS=''
26230if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026232$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026233 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26234$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026235 failed=0
26236 passed=0
cristy8b350f62009-11-15 23:12:43 +000026237 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026238if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026239 passed=`expr $passed + 1`
26240else
26241 failed=`expr $failed + 1`
26242fi
26243
26244
cristy8b350f62009-11-15 23:12:43 +000026245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026246$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026247if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026248 $as_echo_n "(cached) " >&6
26249else
26250 ac_check_lib_save_LIBS=$LIBS
26251LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026253/* end confdefs.h. */
26254
26255/* Override any GCC internal prototype to avoid an error.
26256 Use char because int might match the return type of a GCC
26257 builtin and then its argument prototype would still apply. */
26258#ifdef __cplusplus
26259extern "C"
26260#endif
26261char umem_alloc ();
26262int
26263main ()
26264{
26265return umem_alloc ();
26266 ;
26267 return 0;
26268}
26269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026270if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026271 ac_cv_lib_umem_umem_alloc=yes
26272else
cristy8b350f62009-11-15 23:12:43 +000026273 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026274fi
cristy8b350f62009-11-15 23:12:43 +000026275rm -f core conftest.err conftest.$ac_objext \
26276 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026277LIBS=$ac_check_lib_save_LIBS
26278fi
cristy8b350f62009-11-15 23:12:43 +000026279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026280$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026281if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026282 passed=`expr $passed + 1`
26283else
26284 failed=`expr $failed + 1`
26285fi
26286
cristy8b350f62009-11-15 23:12:43 +000026287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026288$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026289if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026290 $as_echo_n "(cached) " >&6
26291else
26292 ac_check_lib_save_LIBS=$LIBS
26293LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026295/* end confdefs.h. */
26296
26297/* Override any GCC internal prototype to avoid an error.
26298 Use char because int might match the return type of a GCC
26299 builtin and then its argument prototype would still apply. */
26300#ifdef __cplusplus
26301extern "C"
26302#endif
26303char umem_free ();
26304int
26305main ()
26306{
26307return umem_free ();
26308 ;
26309 return 0;
26310}
26311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 ac_cv_lib_umem_umem_free=yes
26314else
cristy8b350f62009-11-15 23:12:43 +000026315 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026316fi
cristy8b350f62009-11-15 23:12:43 +000026317rm -f core conftest.err conftest.$ac_objext \
26318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026319LIBS=$ac_check_lib_save_LIBS
26320fi
cristy8b350f62009-11-15 23:12:43 +000026321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026322$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026323if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026324 passed=`expr $passed + 1`
26325else
26326 failed=`expr $failed + 1`
26327fi
26328
cristy8b350f62009-11-15 23:12:43 +000026329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026330$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26331 if test $passed -gt 0; then
26332 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026333 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26334$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026335 have_umem='no (failed tests)'
26336 else
26337 UMEM_LIBS='-lumem'
26338 LIBS="$UMEM_LIBS $LIBS"
26339
cristy8b350f62009-11-15 23:12:43 +000026340$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026341
cristy09b53e12011-10-14 12:47:22 +000026342 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26343$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026344 have_umem='yes'
26345 fi
26346 else
cristy09b53e12011-10-14 12:47:22 +000026347 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26348$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026349 fi
26350fi
cristy73bd4a52010-10-05 11:24:23 +000026351 if test "$have_umem" = 'yes'; then
26352 HasUMEM_TRUE=
26353 HasUMEM_FALSE='#'
26354else
26355 HasUMEM_TRUE='#'
26356 HasUMEM_FALSE=
26357fi
26358
cristy3ed852e2009-09-05 21:47:34 +000026359
26360
26361#
26362# Add support for ccmalloc memory debugging library if requested
26363#
26364have_ccmalloc='no'
26365CCMALLOC_LIBS=''
26366if test "$enable_ccmalloc" = 'yes'; then
26367 # Extract the first word of "ccmalloc", so it can be a program name with args.
26368set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026371if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026372 $as_echo_n "(cached) " >&6
26373else
26374 case $CCMALLOCDelegate in
26375 [\\/]* | ?:[\\/]*)
26376 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26377 ;;
26378 *)
26379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26380for as_dir in $PATH
26381do
26382 IFS=$as_save_IFS
26383 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026384 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26386 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026388 break 2
26389 fi
26390done
cristy8b350f62009-11-15 23:12:43 +000026391 done
cristy3ed852e2009-09-05 21:47:34 +000026392IFS=$as_save_IFS
26393
26394 ;;
26395esac
26396fi
26397CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26398if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026400$as_echo "$CCMALLOCDelegate" >&6; }
26401else
cristy8b350f62009-11-15 23:12:43 +000026402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026403$as_echo "no" >&6; }
26404fi
26405
26406
26407 if test -n "$CCMALLOCDelegate"; then
26408 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26409 OLIBS="$LIBS"
26410 # Assume that gcc is used with ccmalloc.
26411 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026413$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026414if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026415 $as_echo_n "(cached) " >&6
26416else
26417 ac_check_lib_save_LIBS=$LIBS
26418LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026420/* end confdefs.h. */
26421
26422/* Override any GCC internal prototype to avoid an error.
26423 Use char because int might match the return type of a GCC
26424 builtin and then its argument prototype would still apply. */
26425#ifdef __cplusplus
26426extern "C"
26427#endif
26428char ccmalloc_malloc ();
26429int
26430main ()
26431{
26432return ccmalloc_malloc ();
26433 ;
26434 return 0;
26435}
26436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026438 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26439else
cristy8b350f62009-11-15 23:12:43 +000026440 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026441fi
cristy8b350f62009-11-15 23:12:43 +000026442rm -f core conftest.err conftest.$ac_objext \
26443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026444LIBS=$ac_check_lib_save_LIBS
26445fi
cristy8b350f62009-11-15 23:12:43 +000026446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026447$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026448if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026449 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26450fi
26451
26452 if test -n "$CCMALLOC_LIBS"; then
26453 LIBS="$OLIBS"
26454 LIBS="$LIBS $CCMALLOC_LIBS"
26455 have_ccmalloc='yes'
26456 else
26457 LIBS="$OLIBS"
26458 fi
26459 fi
26460fi
26461
26462#
26463# Add support for efence memory debugging library if requested
26464#
26465if test "$enable_efence" = 'yes'; then
26466 EFENCE_LIBS='-lefence'
26467 LIBS="$EFENCE_LIBS $LIBS"
26468fi
26469
cristy3ed852e2009-09-05 21:47:34 +000026470
26471#
26472# Check for BZLIB
26473#
26474
26475
26476# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026477if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026478 withval=$with_bzlib; with_bzlib=$withval
26479else
26480 with_bzlib='yes'
26481fi
26482
26483
26484if test "$with_bzlib" != 'yes'; then
26485 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26486fi
26487
26488have_bzlib='no'
26489if test "$with_bzlib" != 'no'; then
26490 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026491 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26492$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026495 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26496$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026497 failed=0
26498 passed=0
26499 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026500 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026501if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026502 passed=`expr $passed + 1`
26503else
26504 failed=`expr $failed + 1`
26505fi
26506
26507
cristy8b350f62009-11-15 23:12:43 +000026508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026509$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026510if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026511 $as_echo_n "(cached) " >&6
26512else
26513 ac_check_lib_save_LIBS=$LIBS
26514LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516/* end confdefs.h. */
26517
26518/* Override any GCC internal prototype to avoid an error.
26519 Use char because int might match the return type of a GCC
26520 builtin and then its argument prototype would still apply. */
26521#ifdef __cplusplus
26522extern "C"
26523#endif
26524char BZ2_bzDecompress ();
26525int
26526main ()
26527{
26528return BZ2_bzDecompress ();
26529 ;
26530 return 0;
26531}
26532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26535else
cristy8b350f62009-11-15 23:12:43 +000026536 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026537fi
cristy8b350f62009-11-15 23:12:43 +000026538rm -f core conftest.err conftest.$ac_objext \
26539 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026540LIBS=$ac_check_lib_save_LIBS
26541fi
cristy8b350f62009-11-15 23:12:43 +000026542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026544if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026545 found_libbz=`expr $found_libbz + 1`
26546fi
26547
26548 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026550$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026551if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026552 $as_echo_n "(cached) " >&6
26553else
26554 ac_check_lib_save_LIBS=$LIBS
26555LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026557/* end confdefs.h. */
26558
26559/* Override any GCC internal prototype to avoid an error.
26560 Use char because int might match the return type of a GCC
26561 builtin and then its argument prototype would still apply. */
26562#ifdef __cplusplus
26563extern "C"
26564#endif
26565char _imp__BZ2_decompress ();
26566int
26567main ()
26568{
26569return _imp__BZ2_decompress ();
26570 ;
26571 return 0;
26572}
26573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026574if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026575 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26576else
cristy8b350f62009-11-15 23:12:43 +000026577 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026578fi
cristy8b350f62009-11-15 23:12:43 +000026579rm -f core conftest.err conftest.$ac_objext \
26580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026581LIBS=$ac_check_lib_save_LIBS
26582fi
cristy8b350f62009-11-15 23:12:43 +000026583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026584$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026585if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026586 found_libbz=`expr $found_libbz + 1`
26587fi
26588
26589 fi
26590 if test $found_libbz -gt 0; then
26591 passed=`expr $passed + 1`
26592 else
26593 failed=`expr $failed + 1`
26594 fi
cristy8b350f62009-11-15 23:12:43 +000026595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026596$as_echo_n "checking if BZLIB package is complete... " >&6; }
26597 if test $passed -gt 0; then
26598 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026599 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26600$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026601 have_bzlib='no (failed tests)'
26602 else
26603 BZLIB_LIBS='-lbz2'
26604 LIBS="$BZLIB_LIBS $LIBS"
26605
cristy8b350f62009-11-15 23:12:43 +000026606$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026607
cristy09b53e12011-10-14 12:47:22 +000026608 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26609$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026610 have_bzlib='yes'
26611 fi
26612 else
cristy09b53e12011-10-14 12:47:22 +000026613 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26614$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026615 fi
26616fi
cristy73bd4a52010-10-05 11:24:23 +000026617 if test "$have_bzlib" = 'yes'; then
26618 BZLIB_DELEGATE_TRUE=
26619 BZLIB_DELEGATE_FALSE='#'
26620else
26621 BZLIB_DELEGATE_TRUE='#'
26622 BZLIB_DELEGATE_FALSE=
26623fi
26624
cristy3ed852e2009-09-05 21:47:34 +000026625
26626
26627#
26628# Find the X11 include and library directories.
26629#
26630IPC_LIBS=''
26631X11_LIBS=''
26632XEXT_LIBS=''
26633XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026635$as_echo_n "checking for X... " >&6; }
26636
26637
26638# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026639if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026640 withval=$with_x;
26641fi
26642
26643# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26644if test "x$with_x" = xno; then
26645 # The user explicitly disabled X.
26646 have_x=disabled
26647else
26648 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026649 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026650 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026651 $as_echo_n "(cached) " >&6
26652else
26653 # One or both of the vars are not set, and there is no cached value.
26654ac_x_includes=no ac_x_libraries=no
26655rm -f -r conftest.dir
26656if mkdir conftest.dir; then
26657 cd conftest.dir
26658 cat >Imakefile <<'_ACEOF'
26659incroot:
26660 @echo incroot='${INCROOT}'
26661usrlibdir:
26662 @echo usrlibdir='${USRLIBDIR}'
26663libdir:
26664 @echo libdir='${LIBDIR}'
26665_ACEOF
26666 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026667 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026668 for ac_var in incroot usrlibdir libdir; do
26669 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26670 done
26671 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26672 for ac_extension in a so sl dylib la dll; do
26673 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26674 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26675 ac_im_usrlibdir=$ac_im_libdir; break
26676 fi
26677 done
26678 # Screen out bogus values from the imake configuration. They are
26679 # bogus both because they are the default anyway, and because
26680 # using them would break gcc on systems where it needs fixed includes.
26681 case $ac_im_incroot in
26682 /usr/include) ac_x_includes= ;;
26683 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26684 esac
26685 case $ac_im_usrlibdir in
26686 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26687 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26688 esac
26689 fi
26690 cd ..
26691 rm -f -r conftest.dir
26692fi
26693
26694# Standard set of common directories for X headers.
26695# Check X11 before X11Rn because it is often a symlink to the current release.
26696ac_x_header_dirs='
26697/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026698/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026699/usr/X11R6/include
26700/usr/X11R5/include
26701/usr/X11R4/include
26702
26703/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026704/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026705/usr/include/X11R6
26706/usr/include/X11R5
26707/usr/include/X11R4
26708
26709/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026710/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026711/usr/local/X11R6/include
26712/usr/local/X11R5/include
26713/usr/local/X11R4/include
26714
26715/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026716/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026717/usr/local/include/X11R6
26718/usr/local/include/X11R5
26719/usr/local/include/X11R4
26720
26721/usr/X386/include
26722/usr/x386/include
26723/usr/XFree86/include/X11
26724
26725/usr/include
26726/usr/local/include
26727/usr/unsupported/include
26728/usr/athena/include
26729/usr/local/x11r5/include
26730/usr/lpp/Xamples/include
26731
26732/usr/openwin/include
26733/usr/openwin/share/include'
26734
26735if test "$ac_x_includes" = no; then
26736 # Guess where to find include files, by looking for Xlib.h.
26737 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026739/* end confdefs.h. */
26740#include <X11/Xlib.h>
26741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026742if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026743 # We can compile using X headers with no special include directory.
26744ac_x_includes=
26745else
cristyc7083c12009-10-14 03:16:55 +000026746 for ac_dir in $ac_x_header_dirs; do
26747 if test -r "$ac_dir/X11/Xlib.h"; then
26748 ac_x_includes=$ac_dir
26749 break
26750 fi
26751done
26752fi
cristyda16f162011-02-19 23:52:17 +000026753rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026754fi # $ac_x_includes = no
26755
26756if test "$ac_x_libraries" = no; then
26757 # Check for the libraries.
26758 # See if we find them without any special options.
26759 # Don't add to $LIBS permanently.
26760 ac_save_LIBS=$LIBS
26761 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026763/* end confdefs.h. */
26764#include <X11/Xlib.h>
26765int
26766main ()
26767{
26768XrmInitialize ()
26769 ;
26770 return 0;
26771}
26772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026773if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026774 LIBS=$ac_save_LIBS
26775# We can link X programs with no special library path.
26776ac_x_libraries=
26777else
cristy8b350f62009-11-15 23:12:43 +000026778 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026779for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26780do
26781 # Don't even attempt the hair of trying to link an X program!
26782 for ac_extension in a so sl dylib la dll; do
26783 if test -r "$ac_dir/libX11.$ac_extension"; then
26784 ac_x_libraries=$ac_dir
26785 break 2
26786 fi
26787 done
26788done
26789fi
cristy8b350f62009-11-15 23:12:43 +000026790rm -f core conftest.err conftest.$ac_objext \
26791 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026792fi # $ac_x_libraries = no
26793
26794case $ac_x_includes,$ac_x_libraries in #(
26795 no,* | *,no | *\'*)
26796 # Didn't find X, or a directory has "'" in its name.
26797 ac_cv_have_x="have_x=no";; #(
26798 *)
26799 # Record where we found X for the cache.
26800 ac_cv_have_x="have_x=yes\
26801 ac_x_includes='$ac_x_includes'\
26802 ac_x_libraries='$ac_x_libraries'"
26803esac
26804fi
26805;; #(
26806 *) have_x=yes;;
26807 esac
26808 eval "$ac_cv_have_x"
26809fi # $with_x != no
26810
26811if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026813$as_echo "$have_x" >&6; }
26814 no_x=yes
26815else
26816 # If each of the values was on the command line, it overrides each guess.
26817 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26818 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26819 # Update the cache value to reflect the command line values.
26820 ac_cv_have_x="have_x=yes\
26821 ac_x_includes='$x_includes'\
26822 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026824$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26825fi
26826
cristy3ed852e2009-09-05 21:47:34 +000026827if test "$no_x" = yes; then
26828 # Not all programs may use this symbol, but it does not hurt to define it.
26829
cristy8b350f62009-11-15 23:12:43 +000026830$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026831
26832 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26833else
26834 if test -n "$x_includes"; then
26835 X_CFLAGS="$X_CFLAGS -I$x_includes"
26836 fi
26837
26838 # It would also be nice to do this for all -L options, not just this one.
26839 if test -n "$x_libraries"; then
26840 X_LIBS="$X_LIBS -L$x_libraries"
26841 # For Solaris; some versions of Sun CC require a space after -R and
26842 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026844$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26845 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26846 ac_xsave_c_werror_flag=$ac_c_werror_flag
26847 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026849/* end confdefs.h. */
26850
26851int
26852main ()
26853{
26854
26855 ;
26856 return 0;
26857}
26858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026859if ac_fn_c_try_link "$LINENO"; then :
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026861$as_echo "no" >&6; }
26862 X_LIBS="$X_LIBS -R$x_libraries"
26863else
cristy8b350f62009-11-15 23:12:43 +000026864 LIBS="$ac_xsave_LIBS -R $x_libraries"
26865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026866/* end confdefs.h. */
26867
26868int
26869main ()
26870{
26871
26872 ;
26873 return 0;
26874}
26875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026876if ac_fn_c_try_link "$LINENO"; then :
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026878$as_echo "yes" >&6; }
26879 X_LIBS="$X_LIBS -R $x_libraries"
26880else
cristy8b350f62009-11-15 23:12:43 +000026881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026882$as_echo "neither works" >&6; }
26883fi
cristy8b350f62009-11-15 23:12:43 +000026884rm -f core conftest.err conftest.$ac_objext \
26885 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026886fi
cristy8b350f62009-11-15 23:12:43 +000026887rm -f core conftest.err conftest.$ac_objext \
26888 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026889 ac_c_werror_flag=$ac_xsave_c_werror_flag
26890 LIBS=$ac_xsave_LIBS
26891 fi
26892
26893 # Check for system-dependent libraries X programs must link with.
26894 # Do this before checking for the system-independent R6 libraries
26895 # (-lICE), since we may need -lsocket or whatever for X linking.
26896
26897 if test "$ISC" = yes; then
26898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26899 else
26900 # Martyn Johnson says this is needed for Ultrix, if the X
26901 # libraries were built with DECnet support. And Karl Berry says
26902 # the Alpha needs dnet_stub (dnet does not exist).
26903 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026905/* end confdefs.h. */
26906
26907/* Override any GCC internal prototype to avoid an error.
26908 Use char because int might match the return type of a GCC
26909 builtin and then its argument prototype would still apply. */
26910#ifdef __cplusplus
26911extern "C"
26912#endif
26913char XOpenDisplay ();
26914int
26915main ()
26916{
26917return XOpenDisplay ();
26918 ;
26919 return 0;
26920}
26921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026923
cristy8b350f62009-11-15 23:12:43 +000026924else
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026927if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026928 $as_echo_n "(cached) " >&6
26929else
26930 ac_check_lib_save_LIBS=$LIBS
26931LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026933/* end confdefs.h. */
26934
26935/* Override any GCC internal prototype to avoid an error.
26936 Use char because int might match the return type of a GCC
26937 builtin and then its argument prototype would still apply. */
26938#ifdef __cplusplus
26939extern "C"
26940#endif
26941char dnet_ntoa ();
26942int
26943main ()
26944{
26945return dnet_ntoa ();
26946 ;
26947 return 0;
26948}
26949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026950if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026951 ac_cv_lib_dnet_dnet_ntoa=yes
26952else
cristy8b350f62009-11-15 23:12:43 +000026953 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026954fi
cristy8b350f62009-11-15 23:12:43 +000026955rm -f core conftest.err conftest.$ac_objext \
26956 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026957LIBS=$ac_check_lib_save_LIBS
26958fi
cristy8b350f62009-11-15 23:12:43 +000026959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026960$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026961if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026962 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26963fi
26964
26965 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026967$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026968if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026969 $as_echo_n "(cached) " >&6
26970else
26971 ac_check_lib_save_LIBS=$LIBS
26972LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026974/* end confdefs.h. */
26975
26976/* Override any GCC internal prototype to avoid an error.
26977 Use char because int might match the return type of a GCC
26978 builtin and then its argument prototype would still apply. */
26979#ifdef __cplusplus
26980extern "C"
26981#endif
26982char dnet_ntoa ();
26983int
26984main ()
26985{
26986return dnet_ntoa ();
26987 ;
26988 return 0;
26989}
26990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026992 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26993else
cristy8b350f62009-11-15 23:12:43 +000026994 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026995fi
cristy8b350f62009-11-15 23:12:43 +000026996rm -f core conftest.err conftest.$ac_objext \
26997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026998LIBS=$ac_check_lib_save_LIBS
26999fi
cristy8b350f62009-11-15 23:12:43 +000027000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027001$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027002if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027003 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27004fi
27005
27006 fi
27007fi
cristy8b350f62009-11-15 23:12:43 +000027008rm -f core conftest.err conftest.$ac_objext \
27009 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027010 LIBS="$ac_xsave_LIBS"
27011
27012 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27013 # to get the SysV transport functions.
27014 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27015 # needs -lnsl.
27016 # The nsl library prevents programs from opening the X display
27017 # on Irix 5.2, according to T.E. Dickey.
27018 # The functions gethostbyname, getservbyname, and inet_addr are
27019 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027020 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027021if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027022
cristy3ed852e2009-09-05 21:47:34 +000027023fi
27024
cristy3ed852e2009-09-05 21:47:34 +000027025 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027027$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027028if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027029 $as_echo_n "(cached) " >&6
27030else
27031 ac_check_lib_save_LIBS=$LIBS
27032LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027034/* end confdefs.h. */
27035
27036/* Override any GCC internal prototype to avoid an error.
27037 Use char because int might match the return type of a GCC
27038 builtin and then its argument prototype would still apply. */
27039#ifdef __cplusplus
27040extern "C"
27041#endif
27042char gethostbyname ();
27043int
27044main ()
27045{
27046return gethostbyname ();
27047 ;
27048 return 0;
27049}
27050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 ac_cv_lib_nsl_gethostbyname=yes
27053else
cristy8b350f62009-11-15 23:12:43 +000027054 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027055fi
cristy8b350f62009-11-15 23:12:43 +000027056rm -f core conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058LIBS=$ac_check_lib_save_LIBS
27059fi
cristy8b350f62009-11-15 23:12:43 +000027060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027061$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027062if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027063 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27064fi
27065
27066 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027068$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027069if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027070 $as_echo_n "(cached) " >&6
27071else
27072 ac_check_lib_save_LIBS=$LIBS
27073LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027075/* end confdefs.h. */
27076
27077/* Override any GCC internal prototype to avoid an error.
27078 Use char because int might match the return type of a GCC
27079 builtin and then its argument prototype would still apply. */
27080#ifdef __cplusplus
27081extern "C"
27082#endif
27083char gethostbyname ();
27084int
27085main ()
27086{
27087return gethostbyname ();
27088 ;
27089 return 0;
27090}
27091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027092if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027093 ac_cv_lib_bsd_gethostbyname=yes
27094else
cristy8b350f62009-11-15 23:12:43 +000027095 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027096fi
cristy8b350f62009-11-15 23:12:43 +000027097rm -f core conftest.err conftest.$ac_objext \
27098 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027099LIBS=$ac_check_lib_save_LIBS
27100fi
cristy8b350f62009-11-15 23:12:43 +000027101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027102$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027103if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27105fi
27106
27107 fi
27108 fi
27109
27110 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27111 # socket/setsockopt and other routines are undefined under SCO ODT
27112 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27113 # on later versions), says Simon Leinen: it contains gethostby*
27114 # variants that don't use the name server (or something). -lsocket
27115 # must be given before -lnsl if both are needed. We assume that
27116 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027117 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027118if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027119
cristy3ed852e2009-09-05 21:47:34 +000027120fi
27121
cristy3ed852e2009-09-05 21:47:34 +000027122 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027125if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027126 $as_echo_n "(cached) " >&6
27127else
27128 ac_check_lib_save_LIBS=$LIBS
27129LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027131/* end confdefs.h. */
27132
27133/* Override any GCC internal prototype to avoid an error.
27134 Use char because int might match the return type of a GCC
27135 builtin and then its argument prototype would still apply. */
27136#ifdef __cplusplus
27137extern "C"
27138#endif
27139char connect ();
27140int
27141main ()
27142{
27143return connect ();
27144 ;
27145 return 0;
27146}
27147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027148if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027149 ac_cv_lib_socket_connect=yes
27150else
cristy8b350f62009-11-15 23:12:43 +000027151 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027152fi
cristy8b350f62009-11-15 23:12:43 +000027153rm -f core conftest.err conftest.$ac_objext \
27154 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027155LIBS=$ac_check_lib_save_LIBS
27156fi
cristy8b350f62009-11-15 23:12:43 +000027157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027159if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027160 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27161fi
27162
27163 fi
27164
27165 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027166 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027167if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027168
cristy3ed852e2009-09-05 21:47:34 +000027169fi
27170
cristy3ed852e2009-09-05 21:47:34 +000027171 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027173$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027174if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027175 $as_echo_n "(cached) " >&6
27176else
27177 ac_check_lib_save_LIBS=$LIBS
27178LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027180/* end confdefs.h. */
27181
27182/* Override any GCC internal prototype to avoid an error.
27183 Use char because int might match the return type of a GCC
27184 builtin and then its argument prototype would still apply. */
27185#ifdef __cplusplus
27186extern "C"
27187#endif
27188char remove ();
27189int
27190main ()
27191{
27192return remove ();
27193 ;
27194 return 0;
27195}
27196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027198 ac_cv_lib_posix_remove=yes
27199else
cristy8b350f62009-11-15 23:12:43 +000027200 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027201fi
cristy8b350f62009-11-15 23:12:43 +000027202rm -f core conftest.err conftest.$ac_objext \
27203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027204LIBS=$ac_check_lib_save_LIBS
27205fi
cristy8b350f62009-11-15 23:12:43 +000027206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027207$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027208if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27210fi
27211
27212 fi
27213
27214 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027215 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027216if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027217
cristy3ed852e2009-09-05 21:47:34 +000027218fi
27219
cristy3ed852e2009-09-05 21:47:34 +000027220 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027222$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027223if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 $as_echo_n "(cached) " >&6
27225else
27226 ac_check_lib_save_LIBS=$LIBS
27227LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027229/* end confdefs.h. */
27230
27231/* Override any GCC internal prototype to avoid an error.
27232 Use char because int might match the return type of a GCC
27233 builtin and then its argument prototype would still apply. */
27234#ifdef __cplusplus
27235extern "C"
27236#endif
27237char shmat ();
27238int
27239main ()
27240{
27241return shmat ();
27242 ;
27243 return 0;
27244}
27245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 ac_cv_lib_ipc_shmat=yes
27248else
cristy8b350f62009-11-15 23:12:43 +000027249 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027250fi
cristy8b350f62009-11-15 23:12:43 +000027251rm -f core conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027253LIBS=$ac_check_lib_save_LIBS
27254fi
cristy8b350f62009-11-15 23:12:43 +000027255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027257if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27259fi
27260
27261 fi
27262 fi
27263
27264 # Check for libraries that X11R6 Xt/Xaw programs need.
27265 ac_save_LDFLAGS=$LDFLAGS
27266 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27267 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27268 # check for ICE first), but we must link in the order -lSM -lICE or
27269 # we get undefined symbols. So assume we have SM if we have ICE.
27270 # These have to be linked with before -lX11, unlike the other
27271 # libraries we check for below, so use a different variable.
27272 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027275if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 $as_echo_n "(cached) " >&6
27277else
27278 ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027281/* end confdefs.h. */
27282
27283/* Override any GCC internal prototype to avoid an error.
27284 Use char because int might match the return type of a GCC
27285 builtin and then its argument prototype would still apply. */
27286#ifdef __cplusplus
27287extern "C"
27288#endif
27289char IceConnectionNumber ();
27290int
27291main ()
27292{
27293return IceConnectionNumber ();
27294 ;
27295 return 0;
27296}
27297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 ac_cv_lib_ICE_IceConnectionNumber=yes
27300else
cristy8b350f62009-11-15 23:12:43 +000027301 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027302fi
cristy8b350f62009-11-15 23:12:43 +000027303rm -f core conftest.err conftest.$ac_objext \
27304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027305LIBS=$ac_check_lib_save_LIBS
27306fi
cristy8b350f62009-11-15 23:12:43 +000027307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027308$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027309if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027310 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27311fi
27312
27313 LDFLAGS=$ac_save_LDFLAGS
27314
27315fi
27316
27317if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027318 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27319$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027321$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027322 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27323$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027324 LDFLAGS="$LDFLAGS $X_LIBS"
27325 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27326 LIBS="$X11_LIBS $LIBS"
27327 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27328
27329
cristy8b350f62009-11-15 23:12:43 +000027330$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027331
27332 #
27333 # Check for X11 shared memory extension
27334 #
27335 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027336 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027337if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 have_shmctl='yes'
27339fi
27340
27341 if test "$have_shmctl" != 'yes'; then
27342 PERSIST_LIBS=$LIBS
27343 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027345/* end confdefs.h. */
27346
27347/* Override any GCC internal prototype to avoid an error.
27348 Use char because int might match the return type of a GCC
27349 builtin and then its argument prototype would still apply. */
27350#ifdef __cplusplus
27351extern "C"
27352#endif
27353char shmctl ();
27354int
27355main ()
27356{
27357return shmctl ();
27358 ;
27359 return 0;
27360}
27361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027363 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027364fi
cristy8b350f62009-11-15 23:12:43 +000027365rm -f core conftest.err conftest.$ac_objext \
27366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027367 LIBS=$PERSIST_LIBS
27368 fi
27369
27370 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027372$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027373if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027374 $as_echo_n "(cached) " >&6
27375else
27376 ac_check_lib_save_LIBS=$LIBS
27377LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027379/* end confdefs.h. */
27380
27381/* Override any GCC internal prototype to avoid an error.
27382 Use char because int might match the return type of a GCC
27383 builtin and then its argument prototype would still apply. */
27384#ifdef __cplusplus
27385extern "C"
27386#endif
27387char XShmAttach ();
27388int
27389main ()
27390{
27391return XShmAttach ();
27392 ;
27393 return 0;
27394}
27395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027397 ac_cv_lib_Xext_XShmAttach=yes
27398else
cristy8b350f62009-11-15 23:12:43 +000027399 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027400fi
cristy8b350f62009-11-15 23:12:43 +000027401rm -f core conftest.err conftest.$ac_objext \
27402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027403LIBS=$ac_check_lib_save_LIBS
27404fi
cristy8b350f62009-11-15 23:12:43 +000027405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027406$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027407if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027408 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027409$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027410
27411fi
27412
27413 fi
27414
27415 #
27416 # Check for X11 shape extension
27417 #
cristy8b350f62009-11-15 23:12:43 +000027418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027419$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027420if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027421 $as_echo_n "(cached) " >&6
27422else
27423 ac_check_lib_save_LIBS=$LIBS
27424LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027426/* end confdefs.h. */
27427
27428/* Override any GCC internal prototype to avoid an error.
27429 Use char because int might match the return type of a GCC
27430 builtin and then its argument prototype would still apply. */
27431#ifdef __cplusplus
27432extern "C"
27433#endif
27434char XShapeCombineMask ();
27435int
27436main ()
27437{
27438return XShapeCombineMask ();
27439 ;
27440 return 0;
27441}
27442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027443if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027444 ac_cv_lib_Xext_XShapeCombineMask=yes
27445else
cristy8b350f62009-11-15 23:12:43 +000027446 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027447fi
cristy8b350f62009-11-15 23:12:43 +000027448rm -f core conftest.err conftest.$ac_objext \
27449 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027450LIBS=$ac_check_lib_save_LIBS
27451fi
cristy8b350f62009-11-15 23:12:43 +000027452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027453$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027454if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027455 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027456$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027457
27458fi
27459
cristy8b350f62009-11-15 23:12:43 +000027460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027461$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027462if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 $as_echo_n "(cached) " >&6
27464else
27465 ac_check_lib_save_LIBS=$LIBS
27466LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027468/* end confdefs.h. */
27469
27470/* Override any GCC internal prototype to avoid an error.
27471 Use char because int might match the return type of a GCC
27472 builtin and then its argument prototype would still apply. */
27473#ifdef __cplusplus
27474extern "C"
27475#endif
27476char XtSetEventDispatcher ();
27477int
27478main ()
27479{
27480return XtSetEventDispatcher ();
27481 ;
27482 return 0;
27483}
27484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027486 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27487else
cristy8b350f62009-11-15 23:12:43 +000027488 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027489fi
cristy8b350f62009-11-15 23:12:43 +000027490rm -f core conftest.err conftest.$ac_objext \
27491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027492LIBS=$ac_check_lib_save_LIBS
27493fi
cristy8b350f62009-11-15 23:12:43 +000027494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027495$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027496if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027497 XT_LIBS='-lXt'
27498fi
27499
27500 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27501fi
27502if test "$no_x" != 'yes'; then
27503 have_x='yes'
27504else
27505 have_x='no'
27506fi
cristy73bd4a52010-10-05 11:24:23 +000027507 if test "$have_x" = 'yes'; then
27508 X11_DELEGATE_TRUE=
27509 X11_DELEGATE_FALSE='#'
27510else
27511 X11_DELEGATE_TRUE='#'
27512 X11_DELEGATE_FALSE=
27513fi
27514
cristy3ed852e2009-09-05 21:47:34 +000027515
27516
27517
27518
27519#
27520# Check for ZLIB
27521#
27522
27523# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027524if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 withval=$with_zlib; with_zlib=$withval
27526else
27527 with_zlib='yes'
27528fi
27529
27530
27531if test "$with_zlib" != 'yes'; then
27532 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27533fi
27534
27535have_zlib='no'
27536ZLIB_LIBS=''
27537if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027538 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27539$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027541$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027542 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27543$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027544 ZLIB_LIBS=''
27545 failed=0
27546 passed=0
cristy8b350f62009-11-15 23:12:43 +000027547 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027548if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027549 passed=`expr $passed + 1`
27550else
27551 failed=`expr $failed + 1`
27552fi
27553
27554
cristy8b350f62009-11-15 23:12:43 +000027555 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027556if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027557 passed=`expr $passed + 1`
27558else
27559 failed=`expr $failed + 1`
27560fi
27561
27562
cristy8b350f62009-11-15 23:12:43 +000027563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027564$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027565if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027566 $as_echo_n "(cached) " >&6
27567else
27568 ac_check_lib_save_LIBS=$LIBS
27569LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027571/* end confdefs.h. */
27572
27573/* Override any GCC internal prototype to avoid an error.
27574 Use char because int might match the return type of a GCC
27575 builtin and then its argument prototype would still apply. */
27576#ifdef __cplusplus
27577extern "C"
27578#endif
27579char compress ();
27580int
27581main ()
27582{
27583return compress ();
27584 ;
27585 return 0;
27586}
27587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027588if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 ac_cv_lib_z_compress=yes
27590else
cristy8b350f62009-11-15 23:12:43 +000027591 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027592fi
cristy8b350f62009-11-15 23:12:43 +000027593rm -f core conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027595LIBS=$ac_check_lib_save_LIBS
27596fi
cristy8b350f62009-11-15 23:12:43 +000027597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027598$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027599if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027600 passed=`expr $passed + 1`
27601else
27602 failed=`expr $failed + 1`
27603fi
27604
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027607if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027608 $as_echo_n "(cached) " >&6
27609else
27610 ac_check_lib_save_LIBS=$LIBS
27611LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027613/* end confdefs.h. */
27614
27615/* Override any GCC internal prototype to avoid an error.
27616 Use char because int might match the return type of a GCC
27617 builtin and then its argument prototype would still apply. */
27618#ifdef __cplusplus
27619extern "C"
27620#endif
27621char uncompress ();
27622int
27623main ()
27624{
27625return uncompress ();
27626 ;
27627 return 0;
27628}
27629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027630if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027631 ac_cv_lib_z_uncompress=yes
27632else
cristy8b350f62009-11-15 23:12:43 +000027633 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027634fi
cristy8b350f62009-11-15 23:12:43 +000027635rm -f core conftest.err conftest.$ac_objext \
27636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027637LIBS=$ac_check_lib_save_LIBS
27638fi
cristy8b350f62009-11-15 23:12:43 +000027639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027640$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027641if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027642 passed=`expr $passed + 1`
27643else
27644 failed=`expr $failed + 1`
27645fi
27646
cristy8b350f62009-11-15 23:12:43 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027649if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027650 $as_echo_n "(cached) " >&6
27651else
27652 ac_check_lib_save_LIBS=$LIBS
27653LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655/* end confdefs.h. */
27656
27657/* Override any GCC internal prototype to avoid an error.
27658 Use char because int might match the return type of a GCC
27659 builtin and then its argument prototype would still apply. */
27660#ifdef __cplusplus
27661extern "C"
27662#endif
27663char deflate ();
27664int
27665main ()
27666{
27667return deflate ();
27668 ;
27669 return 0;
27670}
27671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027672if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027673 ac_cv_lib_z_deflate=yes
27674else
cristy8b350f62009-11-15 23:12:43 +000027675 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027676fi
cristy8b350f62009-11-15 23:12:43 +000027677rm -f core conftest.err conftest.$ac_objext \
27678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027679LIBS=$ac_check_lib_save_LIBS
27680fi
cristy8b350f62009-11-15 23:12:43 +000027681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027682$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027683if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027684 passed=`expr $passed + 1`
27685else
27686 failed=`expr $failed + 1`
27687fi
27688
cristy8b350f62009-11-15 23:12:43 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027691if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027692 $as_echo_n "(cached) " >&6
27693else
27694 ac_check_lib_save_LIBS=$LIBS
27695LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027697/* end confdefs.h. */
27698
27699/* Override any GCC internal prototype to avoid an error.
27700 Use char because int might match the return type of a GCC
27701 builtin and then its argument prototype would still apply. */
27702#ifdef __cplusplus
27703extern "C"
27704#endif
27705char inflate ();
27706int
27707main ()
27708{
27709return inflate ();
27710 ;
27711 return 0;
27712}
27713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 ac_cv_lib_z_inflate=yes
27716else
cristy8b350f62009-11-15 23:12:43 +000027717 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027718fi
cristy8b350f62009-11-15 23:12:43 +000027719rm -f core conftest.err conftest.$ac_objext \
27720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027721LIBS=$ac_check_lib_save_LIBS
27722fi
cristy8b350f62009-11-15 23:12:43 +000027723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027724$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027725if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027726 passed=`expr $passed + 1`
27727else
27728 failed=`expr $failed + 1`
27729fi
27730
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027733if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 $as_echo_n "(cached) " >&6
27735else
27736 ac_check_lib_save_LIBS=$LIBS
27737LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char gzseek ();
27748int
27749main ()
27750{
27751return gzseek ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 ac_cv_lib_z_gzseek=yes
27758else
cristy8b350f62009-11-15 23:12:43 +000027759 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027760fi
cristy8b350f62009-11-15 23:12:43 +000027761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763LIBS=$ac_check_lib_save_LIBS
27764fi
cristy8b350f62009-11-15 23:12:43 +000027765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027767if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 passed=`expr $passed + 1`
27769else
27770 failed=`expr $failed + 1`
27771fi
27772
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 $as_echo_n "(cached) " >&6
27777else
27778 ac_check_lib_save_LIBS=$LIBS
27779LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027781/* end confdefs.h. */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char gztell ();
27790int
27791main ()
27792{
27793return gztell ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 ac_cv_lib_z_gztell=yes
27800else
cristy8b350f62009-11-15 23:12:43 +000027801 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027802fi
cristy8b350f62009-11-15 23:12:43 +000027803rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027805LIBS=$ac_check_lib_save_LIBS
27806fi
cristy8b350f62009-11-15 23:12:43 +000027807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027809if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027810 passed=`expr $passed + 1`
27811else
27812 failed=`expr $failed + 1`
27813fi
27814
cristy8b350f62009-11-15 23:12:43 +000027815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo_n "checking if ZLIB package is complete... " >&6; }
27817 if test $passed -gt 0; then
27818 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27820$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027821 have_zlib='no (failed tests)'
27822 else
27823 ZLIB_LIBS='-lz'
27824 LIBS="$ZLIB_LIBS $LIBS"
27825
cristy8b350f62009-11-15 23:12:43 +000027826$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027827
cristy09b53e12011-10-14 12:47:22 +000027828 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27829$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027830 have_zlib='yes'
27831 fi
27832 else
cristy09b53e12011-10-14 12:47:22 +000027833 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27834$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027835 fi
27836fi
cristy73bd4a52010-10-05 11:24:23 +000027837 if test "$have_zlib" = 'yes'; then
27838 ZLIB_DELEGATE_TRUE=
27839 ZLIB_DELEGATE_FALSE='#'
27840else
27841 ZLIB_DELEGATE_TRUE='#'
27842 ZLIB_DELEGATE_FALSE=
27843fi
27844
cristy3ed852e2009-09-05 21:47:34 +000027845
27846
27847#
27848# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27849#
27850LIB_DL=''
27851if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027854if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 $as_echo_n "(cached) " >&6
27856else
27857 ac_check_lib_save_LIBS=$LIBS
27858LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027860/* end confdefs.h. */
27861
27862/* Override any GCC internal prototype to avoid an error.
27863 Use char because int might match the return type of a GCC
27864 builtin and then its argument prototype would still apply. */
27865#ifdef __cplusplus
27866extern "C"
27867#endif
27868char dlopen ();
27869int
27870main ()
27871{
27872return dlopen ();
27873 ;
27874 return 0;
27875}
27876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 ac_cv_lib_dl_dlopen=yes
27879else
cristy8b350f62009-11-15 23:12:43 +000027880 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027881fi
cristy8b350f62009-11-15 23:12:43 +000027882rm -f core conftest.err conftest.$ac_objext \
27883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027884LIBS=$ac_check_lib_save_LIBS
27885fi
cristy8b350f62009-11-15 23:12:43 +000027886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027887$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027888if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 LIB_DL='-ldl'
27890fi
27891
27892 LIBS="$LIB_DL $LIBS"
27893fi
27894
27895
27896
27897#
27898# Check for Autotrace delegate library.
27899#
27900
27901# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027902if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027903 withval=$with_autotrace; with_autotrace=$withval
27904else
27905 with_autotrace='no'
27906fi
27907
27908
27909if test "$with_autotrace" != 'yes'; then
27910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27911fi
27912
27913have_autotrace='no'
27914AUTOTRACE_CFLAGS=""
27915AUTOTRACE_LIBS=""
27916AUTOTRACE_PKG=""
27917if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027918 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27919$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027920
27921pkg_failed=no
27922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27923$as_echo_n "checking for AUTOTRACE... " >&6; }
27924
27925if test -n "$AUTOTRACE_CFLAGS"; then
27926 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27927 elif test -n "$PKG_CONFIG"; then
27928 if test -n "$PKG_CONFIG" && \
27929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27930 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27931 ac_status=$?
27932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27933 test $ac_status = 0; }; then
27934 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27935else
27936 pkg_failed=yes
27937fi
27938 else
27939 pkg_failed=untried
27940fi
27941if test -n "$AUTOTRACE_LIBS"; then
27942 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27943 elif test -n "$PKG_CONFIG"; then
27944 if test -n "$PKG_CONFIG" && \
27945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27946 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27947 ac_status=$?
27948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27949 test $ac_status = 0; }; then
27950 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27951else
27952 pkg_failed=yes
27953fi
27954 else
27955 pkg_failed=untried
27956fi
27957
27958
27959
27960if test $pkg_failed = yes; then
27961
27962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27963 _pkg_short_errors_supported=yes
27964else
27965 _pkg_short_errors_supported=no
27966fi
27967 if test $_pkg_short_errors_supported = yes; then
27968 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27969 else
27970 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27971 fi
27972 # Put the nasty error message in config.log where it belongs
27973 echo "$AUTOTRACE_PKG_ERRORS" >&5
27974
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27976$as_echo "no" >&6; }
27977 have_autotrace=no
27978elif test $pkg_failed = untried; then
27979 have_autotrace=no
27980else
27981 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27982 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27984$as_echo "yes" >&6; }
27985 have_autotrace=yes
27986fi
cristy09b53e12011-10-14 12:47:22 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27988$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027989fi
27990
27991if test "$have_autotrace" = 'yes'; then
27992 failed=0
27993
cristy8b350f62009-11-15 23:12:43 +000027994$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027995
27996 if test "$with_modules" = 'no'; then
27997 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27998 fi
27999fi
28000
cristy73bd4a52010-10-05 11:24:23 +000028001 if test "$have_autotrace" = 'yes'; then
28002 AUTOTRACE_DELEGATE_TRUE=
28003 AUTOTRACE_DELEGATE_FALSE='#'
28004else
28005 AUTOTRACE_DELEGATE_TRUE='#'
28006 AUTOTRACE_DELEGATE_FALSE=
28007fi
28008
cristy3ed852e2009-09-05 21:47:34 +000028009
28010
28011
28012
28013#
28014# Check for Display Postscript delegate library.
28015#
28016
28017# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028018if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028019 withval=$with_dps; with_dps=$withval
28020else
28021 with_dps='yes'
28022fi
28023
28024
28025if test "$with_dps" != 'yes'; then
28026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28027fi
28028
28029have_dps='no'
28030DPS_LIBS=''
28031if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028032 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28033$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028035$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028036 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28037$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028038 failed=0
28039 passed=0
28040 PERSIST_CPPFLAGS="$CPPFLAGS"
28041 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028042 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 +000028043if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028044 passed=`expr $passed + 1`
28045else
28046 failed=`expr $failed + 1`
28047fi
28048
28049
28050 # DPS issues:
28051 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28052 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28053 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28054 # ImageMagick itself doesn't use -lXt.
28055 have_libdps='no'
28056 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028059if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028060 $as_echo_n "(cached) " >&6
28061else
28062 ac_check_lib_save_LIBS=$LIBS
28063LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028065/* end confdefs.h. */
28066
28067/* Override any GCC internal prototype to avoid an error.
28068 Use char because int might match the return type of a GCC
28069 builtin and then its argument prototype would still apply. */
28070#ifdef __cplusplus
28071extern "C"
28072#endif
28073char DPSInitialize ();
28074int
28075main ()
28076{
28077return DPSInitialize ();
28078 ;
28079 return 0;
28080}
28081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028082if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028083 ac_cv_lib_dps_DPSInitialize=yes
28084else
cristy8b350f62009-11-15 23:12:43 +000028085 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028086fi
cristy8b350f62009-11-15 23:12:43 +000028087rm -f core conftest.err conftest.$ac_objext \
28088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028089LIBS=$ac_check_lib_save_LIBS
28090fi
cristy8b350f62009-11-15 23:12:43 +000028091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028092$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028093if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028094 have_libdps='yes'
28095else
28096 have_libdps='no'
28097fi
28098
28099 if test "$have_libdps" != 'yes'; then
28100 # Unset cache variable so we can try again.
28101 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028103$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028104if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028105 $as_echo_n "(cached) " >&6
28106else
28107 ac_check_lib_save_LIBS=$LIBS
28108LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110/* end confdefs.h. */
28111
28112/* Override any GCC internal prototype to avoid an error.
28113 Use char because int might match the return type of a GCC
28114 builtin and then its argument prototype would still apply. */
28115#ifdef __cplusplus
28116extern "C"
28117#endif
28118char DPSInitialize ();
28119int
28120main ()
28121{
28122return DPSInitialize ();
28123 ;
28124 return 0;
28125}
28126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 ac_cv_lib_dps_DPSInitialize=yes
28129else
cristy8b350f62009-11-15 23:12:43 +000028130 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028131fi
cristy8b350f62009-11-15 23:12:43 +000028132rm -f core conftest.err conftest.$ac_objext \
28133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028134LIBS=$ac_check_lib_save_LIBS
28135fi
cristy8b350f62009-11-15 23:12:43 +000028136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028138if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028139 have_libdps='yes'
28140else
28141 have_libdps='no'
28142fi
28143
28144 if test "$have_libdps" = 'yes'; then
28145 LIBDPS_XT='-lXt'
28146 fi
28147 fi
28148 if test "$have_libdps" = 'yes'; then
28149 passed=`expr $passed + 1`
28150 else
28151 failed=`expr $failed + 1`
28152 fi
cristy8b350f62009-11-15 23:12:43 +000028153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028154$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028155if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 $as_echo_n "(cached) " >&6
28157else
28158 ac_check_lib_save_LIBS=$LIBS
28159LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028161/* end confdefs.h. */
28162
28163/* Override any GCC internal prototype to avoid an error.
28164 Use char because int might match the return type of a GCC
28165 builtin and then its argument prototype would still apply. */
28166#ifdef __cplusplus
28167extern "C"
28168#endif
28169char XDPSPixelsPerPoint ();
28170int
28171main ()
28172{
28173return XDPSPixelsPerPoint ();
28174 ;
28175 return 0;
28176}
28177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028178if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028179 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28180else
cristy8b350f62009-11-15 23:12:43 +000028181 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028182fi
cristy8b350f62009-11-15 23:12:43 +000028183rm -f core conftest.err conftest.$ac_objext \
28184 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028185LIBS=$ac_check_lib_save_LIBS
28186fi
cristy8b350f62009-11-15 23:12:43 +000028187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028188$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028189if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028190 passed=`expr $passed + 1`
28191else
28192 failed=`expr $failed + 1`
28193fi
28194
cristy8b350f62009-11-15 23:12:43 +000028195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028196$as_echo_n "checking if DPS package is complete... " >&6; }
28197 if test $passed -gt 0; then
28198 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028199 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28200$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028201 have_dps='no (failed tests)'
28202 CPPFLAGS="$PERSIST_CPPFLAGS"
28203 else
28204 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28205 LIBS="$DPS_LIBS $LIBS"
28206
cristy8b350f62009-11-15 23:12:43 +000028207$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028208
cristy09b53e12011-10-14 12:47:22 +000028209 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28210$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028211 have_dps='yes'
28212 fi
28213 else
cristy09b53e12011-10-14 12:47:22 +000028214 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28215$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028216 CPPFLAGS=$PERSIST_CPPFLAGS
28217 fi
28218fi
cristy73bd4a52010-10-05 11:24:23 +000028219 if test "$have_dps" = 'yes'; then
28220 DPS_DELEGATE_TRUE=
28221 DPS_DELEGATE_FALSE='#'
28222else
28223 DPS_DELEGATE_TRUE='#'
28224 DPS_DELEGATE_FALSE=
28225fi
28226
cristy3ed852e2009-09-05 21:47:34 +000028227
28228
28229
28230#
28231# Check for DJVU delegate library.
28232#
28233
28234# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028235if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028236 withval=$with_djvu; with_djvu=$withval
28237else
28238 with_djvu='yes'
28239fi
28240
28241
28242if test "$with_djvu" != 'yes'; then
28243 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28244fi
28245
28246have_djvu='no'
28247DJVU_LIBS=''
28248if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028249 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28250$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028252$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28254$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028255 failed=0
28256 passed=0
cristy8b350f62009-11-15 23:12:43 +000028257 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 +000028258if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028259 passed=`expr $passed + 1`
28260else
28261 failed=`expr $failed + 1`
28262fi
28263
28264
cristy8b350f62009-11-15 23:12:43 +000028265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028266$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028267if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 $as_echo_n "(cached) " >&6
28269else
28270 ac_check_lib_save_LIBS=$LIBS
28271LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028273/* end confdefs.h. */
28274
28275/* Override any GCC internal prototype to avoid an error.
28276 Use char because int might match the return type of a GCC
28277 builtin and then its argument prototype would still apply. */
28278#ifdef __cplusplus
28279extern "C"
28280#endif
28281char ddjvu_context_create ();
28282int
28283main ()
28284{
28285return ddjvu_context_create ();
28286 ;
28287 return 0;
28288}
28289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28292else
cristy8b350f62009-11-15 23:12:43 +000028293 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028294fi
cristy8b350f62009-11-15 23:12:43 +000028295rm -f core conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028297LIBS=$ac_check_lib_save_LIBS
28298fi
cristy8b350f62009-11-15 23:12:43 +000028299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028301if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 passed=`expr $passed + 1`
28303else
28304 failed=`expr $failed + 1`
28305fi
28306
cristy8b350f62009-11-15 23:12:43 +000028307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028308$as_echo_n "checking if DJVU package is complete... " >&6; }
28309 if test $passed -gt 0; then
28310 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028311 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28312$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028313 have_djvu='no (failed tests)'
28314 else
28315 DJVU_LIBS='-ldjvulibre'
28316 LIBS="$DJVU_LIBS $LIBS"
28317
cristy8b350f62009-11-15 23:12:43 +000028318$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028319
cristy09b53e12011-10-14 12:47:22 +000028320 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28321$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028322 have_djvu='yes'
28323 fi
28324 else
cristy09b53e12011-10-14 12:47:22 +000028325 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28326$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028327 fi
28328fi
cristy73bd4a52010-10-05 11:24:23 +000028329 if test "$have_djvu" = 'yes'; then
28330 DJVU_DELEGATE_TRUE=
28331 DJVU_DELEGATE_FALSE='#'
28332else
28333 DJVU_DELEGATE_TRUE='#'
28334 DJVU_DELEGATE_FALSE=
28335fi
28336
cristy3ed852e2009-09-05 21:47:34 +000028337
28338
28339
28340#
cristy430a7312010-01-21 20:44:04 +000028341# Set DejaVu font directory.
28342#
28343
28344# Check whether --with-dejavu-font-dir was given.
28345if test "${with_dejavu_font_dir+set}" = set; then :
28346 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28347else
28348 with_dejavu_font_dir='default'
28349fi
28350
28351
28352if test "$with_dejavu_font_dir" != 'default'; then
28353 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28354fi
28355
28356
28357#
cristy3ed852e2009-09-05 21:47:34 +000028358# Check for FFTW delegate library.
28359#
28360
28361# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028362if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028363 withval=$with_fftw; with_fftw=$withval
28364else
28365 with_fftw='yes'
28366fi
28367
28368
28369if test "$with_fftw" != 'yes'; then
28370 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28371fi
28372
cristy81beccd2011-10-03 18:17:24 +000028373have_fftw='no'
28374FFTW_LIBS=''
28375if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028376 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28377$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28379$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028380 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28381$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028382 failed=0
28383 passed=0
28384 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28385if test "x$ac_cv_header_fftw3_h" = xyes; then :
28386 passed=`expr $passed + 1`
28387else
28388 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028389fi
28390
cristy81beccd2011-10-03 18:17:24 +000028391
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28393$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28394if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28395 $as_echo_n "(cached) " >&6
28396else
28397 ac_check_lib_save_LIBS=$LIBS
28398LIBS="-lfftw3 $LIBS"
28399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28400/* end confdefs.h. */
28401
28402/* Override any GCC internal prototype to avoid an error.
28403 Use char because int might match the return type of a GCC
28404 builtin and then its argument prototype would still apply. */
28405#ifdef __cplusplus
28406extern "C"
28407#endif
28408char fftw_execute ();
28409int
28410main ()
28411{
28412return fftw_execute ();
28413 ;
28414 return 0;
28415}
28416_ACEOF
28417if ac_fn_c_try_link "$LINENO"; then :
28418 ac_cv_lib_fftw3_fftw_execute=yes
28419else
28420 ac_cv_lib_fftw3_fftw_execute=no
28421fi
28422rm -f core conftest.err conftest.$ac_objext \
28423 conftest$ac_exeext conftest.$ac_ext
28424LIBS=$ac_check_lib_save_LIBS
28425fi
28426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28427$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28428if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28429 passed=`expr $passed + 1`
28430else
28431 failed=`expr $failed + 1`
28432fi
28433
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28435$as_echo_n "checking if FFTW package is complete... " >&6; }
28436 if test $passed -gt 0; then
28437 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028438 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28439$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028440 have_fftw='no (failed tests)'
28441 else
28442 FFTW_LIBS='-lfftw3'
28443 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028444
cristy8b350f62009-11-15 23:12:43 +000028445$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028446
cristy09b53e12011-10-14 12:47:22 +000028447 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28448$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028449 have_fftw='yes'
28450 fi
28451 else
cristy09b53e12011-10-14 12:47:22 +000028452 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28453$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028454 fi
28455fi
cristy73bd4a52010-10-05 11:24:23 +000028456 if test "$have_fftw" = 'yes'; then
28457 FFTW_DELEGATE_TRUE=
28458 FFTW_DELEGATE_FALSE='#'
28459else
28460 FFTW_DELEGATE_TRUE='#'
28461 FFTW_DELEGATE_FALSE=
28462fi
28463
cristy3ed852e2009-09-05 21:47:34 +000028464
28465
28466
28467#
28468# Check for FlashPIX delegate library.
28469#
28470
28471# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028472if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028473 withval=$with_fpx; with_fpx=$withval
28474else
28475 with_fpx='yes'
28476fi
28477
28478
28479if test "$with_fpx" != 'yes'; then
28480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28481fi
28482
28483have_fpx='no'
28484FPX_LIBS=''
28485if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28487$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028489$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28491$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028492 failed=0
28493 passed=0
28494 ac_ext=cpp
28495ac_cpp='$CXXCPP $CPPFLAGS'
28496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28499
28500
cristy8b350f62009-11-15 23:12:43 +000028501ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028502if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028503 passed=`expr $passed + 1`
28504else
28505 failed=`expr $failed + 1`
28506fi
28507
28508
cristy8b350f62009-11-15 23:12:43 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028510$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028511if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 $as_echo_n "(cached) " >&6
28513else
28514 ac_check_lib_save_LIBS=$LIBS
28515LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028517/* end confdefs.h. */
28518
28519/* Override any GCC internal prototype to avoid an error.
28520 Use char because int might match the return type of a GCC
28521 builtin and then its argument prototype would still apply. */
28522#ifdef __cplusplus
28523extern "C"
28524#endif
28525char FPX_OpenImageByFilename ();
28526int
28527main ()
28528{
28529return FPX_OpenImageByFilename ();
28530 ;
28531 return 0;
28532}
28533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028534if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028535 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28536else
cristy8b350f62009-11-15 23:12:43 +000028537 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028538fi
cristy8b350f62009-11-15 23:12:43 +000028539rm -f core conftest.err conftest.$ac_objext \
28540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028541LIBS=$ac_check_lib_save_LIBS
28542fi
cristy8b350f62009-11-15 23:12:43 +000028543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028544$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028545if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028546 passed=`expr $passed + 1`
28547else
28548 failed=`expr $failed + 1`
28549fi
28550
28551 ac_ext=c
28552ac_cpp='$CPP $CPPFLAGS'
28553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28555ac_compiler_gnu=$ac_cv_c_compiler_gnu
28556
cristy8b350f62009-11-15 23:12:43 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28559 if test $passed -gt 0; then
28560 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28562$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028563 have_fpx='no (failed tests)'
28564 else
28565 FPX_LIBS='-lfpx'
28566
cristy8b350f62009-11-15 23:12:43 +000028567$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028568
cristy09b53e12011-10-14 12:47:22 +000028569 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28570$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028571 have_fpx='yes'
28572 PERLMAINCC="$CXX"
28573 fi
28574 else
cristy09b53e12011-10-14 12:47:22 +000028575 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28576$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028577 fi
28578fi
cristy73bd4a52010-10-05 11:24:23 +000028579 if test "$have_fpx" = 'yes'; then
28580 FPX_DELEGATE_TRUE=
28581 FPX_DELEGATE_FALSE='#'
28582else
28583 FPX_DELEGATE_TRUE='#'
28584 FPX_DELEGATE_FALSE=
28585fi
28586
cristy3ed852e2009-09-05 21:47:34 +000028587
28588
28589
28590#
28591# Check for fontconfig delegate library.
28592#
28593
28594# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028595if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028596 withval=$with_fontconfig; with_fontconfig=$withval
28597else
28598 with_fontconfig=$have_x
28599fi
28600
28601
28602if test "$with_fontconfig" != 'yes'; then
28603 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28604fi
28605
28606have_fontconfig='no'
28607FONTCONFIG_CFLAGS=""
28608FONTCONFIG_LIBS=""
28609FONTCONFIG_PKG=""
28610if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28612$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028613
28614pkg_failed=no
28615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28616$as_echo_n "checking for FONTCONFIG... " >&6; }
28617
28618if test -n "$FONTCONFIG_CFLAGS"; then
28619 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28620 elif test -n "$PKG_CONFIG"; then
28621 if test -n "$PKG_CONFIG" && \
28622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28623 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28624 ac_status=$?
28625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28626 test $ac_status = 0; }; then
28627 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28628else
28629 pkg_failed=yes
28630fi
28631 else
28632 pkg_failed=untried
28633fi
28634if test -n "$FONTCONFIG_LIBS"; then
28635 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28636 elif test -n "$PKG_CONFIG"; then
28637 if test -n "$PKG_CONFIG" && \
28638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28639 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28640 ac_status=$?
28641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28642 test $ac_status = 0; }; then
28643 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28644else
28645 pkg_failed=yes
28646fi
28647 else
28648 pkg_failed=untried
28649fi
28650
28651
28652
28653if test $pkg_failed = yes; then
28654
28655if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28656 _pkg_short_errors_supported=yes
28657else
28658 _pkg_short_errors_supported=no
28659fi
28660 if test $_pkg_short_errors_supported = yes; then
28661 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28662 else
28663 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28664 fi
28665 # Put the nasty error message in config.log where it belongs
28666 echo "$FONTCONFIG_PKG_ERRORS" >&5
28667
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28669$as_echo "no" >&6; }
28670 have_fontconfig=no
28671elif test $pkg_failed = untried; then
28672 have_fontconfig=no
28673else
28674 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28675 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28677$as_echo "yes" >&6; }
28678 have_fontconfig=yes
28679fi
cristy09b53e12011-10-14 12:47:22 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28681$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028682fi
28683
28684if test "$have_fontconfig" = 'yes'; then
28685
cristy8b350f62009-11-15 23:12:43 +000028686$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028687
cristyd09bcf92010-03-25 03:04:45 +000028688 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028689 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028690 fi
cristy3ed852e2009-09-05 21:47:34 +000028691fi
28692
cristy73bd4a52010-10-05 11:24:23 +000028693 if test "$have_fontconfig" = 'yes'; then
28694 FONTCONFIG_DELEGATE_TRUE=
28695 FONTCONFIG_DELEGATE_FALSE='#'
28696else
28697 FONTCONFIG_DELEGATE_TRUE='#'
28698 FONTCONFIG_DELEGATE_FALSE=
28699fi
28700
cristy3ed852e2009-09-05 21:47:34 +000028701
28702
28703
28704
28705#
cristy81beccd2011-10-03 18:17:24 +000028706# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028707#
28708
28709# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028710if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028711 withval=$with_freetype; with_freetype=$withval
28712else
28713 with_freetype='yes'
28714fi
28715
28716
cristy81beccd2011-10-03 18:17:24 +000028717
cristy3ed852e2009-09-05 21:47:34 +000028718if test "$with_freetype" != 'yes'; then
28719 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28720fi
28721
cristy81beccd2011-10-03 18:17:24 +000028722have_freetype='no'
28723FREETYPE_LIBS=''
28724if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028725 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28726$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28728$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028729 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28730$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028731 failed=0
28732 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028733 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028734 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028735 freetype_config=''
28736 # Allow the user to specify the location of freetype.
28737 if test "$with_freetype" != 'yes'; then
28738 if test -x "${with_freetype}/bin/freetype-config"; then
28739 freetype_config="${with_freetype}/bin/freetype-config"
28740 elif test -x "${with_freetype}"; then
28741 freetype_config=${with_freetype}
28742 fi
28743 fi
28744 if test -z "$freetype_config"; then
28745 # Extract the first word of "freetype-config", so it can be a program name with args.
28746set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28748$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028749if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028750 $as_echo_n "(cached) " >&6
28751else
cristy98ca0f52011-10-08 23:19:10 +000028752 case $freetype_config in
28753 [\\/]* | ?:[\\/]*)
28754 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28755 ;;
28756 *)
28757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028758for as_dir in $PATH
28759do
28760 IFS=$as_save_IFS
28761 test -z "$as_dir" && as_dir=.
28762 for ac_exec_ext in '' $ac_executable_extensions; do
28763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028764 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28766 break 2
28767 fi
28768done
28769 done
28770IFS=$as_save_IFS
28771
cristy98ca0f52011-10-08 23:19:10 +000028772 ;;
28773esac
cristy81beccd2011-10-03 18:17:24 +000028774fi
cristy98ca0f52011-10-08 23:19:10 +000028775freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028776if test -n "$freetype_config"; then
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28778$as_echo "$freetype_config" >&6; }
28779else
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28781$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028782fi
28783
cristy98ca0f52011-10-08 23:19:10 +000028784 fi
28785 if test -n "$freetype_config"; then
28786 freetype_prefix=`${freetype_config} --prefix`
28787 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28788 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28789 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028790 fi
28791
28792 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028794$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28795if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28796 $as_echo_n "(cached) " >&6
28797else
28798 ac_check_lib_save_LIBS=$LIBS
28799LIBS="-lfreetype $LIBS"
28800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28801/* end confdefs.h. */
28802
28803/* Override any GCC internal prototype to avoid an error.
28804 Use char because int might match the return type of a GCC
28805 builtin and then its argument prototype would still apply. */
28806#ifdef __cplusplus
28807extern "C"
28808#endif
28809char FT_Init_FreeType ();
28810int
28811main ()
28812{
28813return FT_Init_FreeType ();
28814 ;
28815 return 0;
28816}
28817_ACEOF
28818if ac_fn_c_try_link "$LINENO"; then :
28819 ac_cv_lib_freetype_FT_Init_FreeType=yes
28820else
28821 ac_cv_lib_freetype_FT_Init_FreeType=no
28822fi
28823rm -f core conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
28825LIBS=$ac_check_lib_save_LIBS
28826fi
28827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28828$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28829if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28830 FREETYPE_LIBS='-lfreetype'
28831fi
28832
cristy98ca0f52011-10-08 23:19:10 +000028833 if test "$FREETYPE_LIBS" != ''; then
28834 passed=`expr $passed + 1`
28835 else
28836 failed=`expr $failed + 1`
28837 LDFLAGS="$PERSIST_LDFLAGS"
28838 fi
cristy81beccd2011-10-03 18:17:24 +000028839 fi
28840
28841 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28842if test "x$ac_cv_header_ft2build_h" = xyes; then :
28843 FT2BUILD_H='#include <ft2build.h>'
28844else
28845 ft2build=''
28846fi
28847
28848
28849 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28850"
28851if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28852 have_freetype_h='yes'
28853else
28854 have_freetype_h='no'
28855fi
28856
28857
cristy98ca0f52011-10-08 23:19:10 +000028858 if test "$have_freetype_h" = 'yes'; then
28859 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028860 else
cristy98ca0f52011-10-08 23:19:10 +000028861 failed=`expr $failed + 1`
28862 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028863 fi
28864
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28866$as_echo_n "checking if FreeType package is complete... " >&6; }
28867 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028868 if test $failed -gt 0; then
28869 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028870 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28871$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028872 have_freetype='no (failed tests)'
28873 else
28874 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028875
cristy8b350f62009-11-15 23:12:43 +000028876$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028877
cristy98ca0f52011-10-08 23:19:10 +000028878 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028879
28880$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28881
cristy81beccd2011-10-03 18:17:24 +000028882 fi
cristy09b53e12011-10-14 12:47:22 +000028883 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28884$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028885 have_freetype='yes'
28886 fi
cristy81beccd2011-10-03 18:17:24 +000028887 else
cristy09b53e12011-10-14 12:47:22 +000028888 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28889$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028890 fi
28891fi
cristy73bd4a52010-10-05 11:24:23 +000028892 if test "$have_freetype" = 'yes'; then
28893 FREETYPE_DELEGATE_TRUE=
28894 FREETYPE_DELEGATE_FALSE='#'
28895else
28896 FREETYPE_DELEGATE_TRUE='#'
28897 FREETYPE_DELEGATE_FALSE=
28898fi
28899
cristy3ed852e2009-09-05 21:47:34 +000028900
28901
28902
cristy3ed852e2009-09-05 21:47:34 +000028903#
28904# Check for Ghostscript library or framework.
28905#
28906# Test for iapi.h & test for gsapi_new_instance in -lgs
28907# or -framework Ghostscript
28908
28909
28910# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028911if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028912 withval=$with_gslib; with_gslib=$withval
28913else
28914 with_gslib='no'
28915fi
28916
28917
cristyb7931f12009-09-25 10:22:21 +000028918gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028919if test "$with_gslib" != 'yes'; then
28920 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28921fi
28922
28923have_gslib='no'
28924GS_LIBS=''
28925if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028926 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28927$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028929$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028930 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28931$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028932 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028933 failed=0
28934 passed=0
cristy8b350f62009-11-15 23:12:43 +000028935 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 +000028936if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028937 passed=`expr $passed + 1`
28938else
28939 failed=`expr $failed + 1`
28940fi
28941
28942
cristy8b350f62009-11-15 23:12:43 +000028943 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 +000028944if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028945 passed=`expr $passed + 1`
28946else
28947 failed=`expr $failed + 1`
28948fi
28949
28950
cristy73bd4a52010-10-05 11:24:23 +000028951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28952$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028953if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028954 $as_echo_n "(cached) " >&6
28955else
28956 ac_check_framework_save_LIBS=$LIBS
28957LIBS="-framework Ghostscript $LIBS"
28958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959/* end confdefs.h. */
28960
28961/* Override any GCC internal prototype to avoid an error.
28962 Use char because int might match the return type of a GCC
28963 builtin and then its argument prototype would still apply. */
28964#ifdef __cplusplus
28965extern "C"
28966#endif
28967char gsapi_new_instance ();
28968int
28969main ()
28970{
28971return gsapi_new_instance ();
28972 ;
28973 return 0;
28974}
28975_ACEOF
28976if ac_fn_c_try_link "$LINENO"; then :
28977 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28978else
28979 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28980fi
28981rm -f core conftest.err conftest.$ac_objext \
28982 conftest$ac_exeext conftest.$ac_ext
28983LIBS=$ac_check_framework_save_LIBS
28984fi
28985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28986$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28987if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28988 framework=`expr $framework + 1`
28989else
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028991$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028992if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028993 $as_echo_n "(cached) " >&6
28994else
28995 ac_check_lib_save_LIBS=$LIBS
28996LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028998/* end confdefs.h. */
28999
29000/* Override any GCC internal prototype to avoid an error.
29001 Use char because int might match the return type of a GCC
29002 builtin and then its argument prototype would still apply. */
29003#ifdef __cplusplus
29004extern "C"
29005#endif
29006char gsapi_new_instance ();
29007int
29008main ()
29009{
29010return gsapi_new_instance ();
29011 ;
29012 return 0;
29013}
29014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029015if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029016 ac_cv_lib_gs_gsapi_new_instance=yes
29017else
cristy8b350f62009-11-15 23:12:43 +000029018 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029019fi
cristy8b350f62009-11-15 23:12:43 +000029020rm -f core conftest.err conftest.$ac_objext \
29021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029022LIBS=$ac_check_lib_save_LIBS
29023fi
cristy8b350f62009-11-15 23:12:43 +000029024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029025$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029026if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029027 passed=`expr $passed + 1`
29028else
29029 failed=`expr $failed + 1`
29030fi
cristy73bd4a52010-10-05 11:24:23 +000029031
29032fi
cristy8b350f62009-11-15 23:12:43 +000029033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029034$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29035 if test $passed -gt 0; then
29036 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029037 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29038$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029039 have_gslib='no (failed tests)'
29040 else
29041 if test $framework -gt 0; then
29042 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029043 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29045$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029046 else
cristy09b53e12011-10-14 12:47:22 +000029047 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29048$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029049 GS_LIBS='-lgs'
29050 fi
29051 LIBS="$GS_LIBS $LIBS"
29052
cristy8b350f62009-11-15 23:12:43 +000029053$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029054
29055 have_gslib='yes'
29056 fi
29057 else
cristy09b53e12011-10-14 12:47:22 +000029058 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29059$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029060 fi
29061fi
cristy73bd4a52010-10-05 11:24:23 +000029062 if test "$have_gslib" = 'yes'; then
29063 GS_DELEGATE_TRUE=
29064 GS_DELEGATE_FALSE='#'
29065else
29066 GS_DELEGATE_TRUE='#'
29067 GS_DELEGATE_FALSE=
29068fi
29069
cristy3ed852e2009-09-05 21:47:34 +000029070
29071
29072# Set default font search path
29073
29074# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029075if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029076 withval=$with_fontpath; with_fontpath=$withval
29077else
29078 with_fontpath=''
29079fi
29080
29081
29082if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29083 with_fontpath=''
29084else
29085
29086cat >>confdefs.h <<_ACEOF
29087#define MAGICK_FONT_PATH "$with_fontpath"
29088_ACEOF
29089
29090fi
29091if test "$with_fontpath=" != ''; then
29092 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29093fi
29094
29095# Set Ghostscript font directory
29096
29097# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029098if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029099 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29100else
29101 with_gs_font_dir='default'
29102fi
29103
29104
29105if test "$with_gs_font_dir" != 'default'; then
29106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29107fi
29108
29109
29110#
29111# Check for GVC delegate library.
29112#
29113
29114# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029115if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029116 withval=$with_gvc; with_gvc=$withval
29117else
29118 with_gvc='yes'
29119fi
29120
29121
29122if test "$with_gvc" != 'yes'; then
29123 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29124fi
29125
29126GVC_PKG=""
29127if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029128 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29129$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029130
29131pkg_failed=no
29132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29133$as_echo_n "checking for GVC... " >&6; }
29134
29135if test -n "$GVC_CFLAGS"; then
29136 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29137 elif test -n "$PKG_CONFIG"; then
29138 if test -n "$PKG_CONFIG" && \
29139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29140 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29141 ac_status=$?
29142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29143 test $ac_status = 0; }; then
29144 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29145else
29146 pkg_failed=yes
29147fi
29148 else
29149 pkg_failed=untried
29150fi
29151if test -n "$GVC_LIBS"; then
29152 pkg_cv_GVC_LIBS="$GVC_LIBS"
29153 elif test -n "$PKG_CONFIG"; then
29154 if test -n "$PKG_CONFIG" && \
29155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29156 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29157 ac_status=$?
29158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29159 test $ac_status = 0; }; then
29160 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29161else
29162 pkg_failed=yes
29163fi
29164 else
29165 pkg_failed=untried
29166fi
29167
29168
29169
29170if test $pkg_failed = yes; then
29171
29172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29173 _pkg_short_errors_supported=yes
29174else
29175 _pkg_short_errors_supported=no
29176fi
29177 if test $_pkg_short_errors_supported = yes; then
29178 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29179 else
29180 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29181 fi
29182 # Put the nasty error message in config.log where it belongs
29183 echo "$GVC_PKG_ERRORS" >&5
29184
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29186$as_echo "no" >&6; }
29187 have_gvc=no
29188elif test $pkg_failed = untried; then
29189 have_gvc=no
29190else
29191 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29192 GVC_LIBS=$pkg_cv_GVC_LIBS
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29194$as_echo "yes" >&6; }
29195 have_gvc=yes
29196fi
cristy09b53e12011-10-14 12:47:22 +000029197 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29198$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029199fi
29200
29201if test "$have_gvc" = 'yes'; then
29202
cristy8b350f62009-11-15 23:12:43 +000029203$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029204
29205 if test "$with_modules" = 'no'; then
29206 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29207 fi
29208fi
29209
cristy73bd4a52010-10-05 11:24:23 +000029210 if test "$have_gvc" = 'yes'; then
29211 GVC_DELEGATE_TRUE=
29212 GVC_DELEGATE_FALSE='#'
29213else
29214 GVC_DELEGATE_TRUE='#'
29215 GVC_DELEGATE_FALSE=
29216fi
29217
cristy3ed852e2009-09-05 21:47:34 +000029218
29219
29220
29221
29222#
29223# Check for JBIG delegate library.
29224#
29225
29226
29227# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029228if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029229 withval=$with_jbig; with_jbig=$withval
29230else
29231 with_jbig='yes'
29232fi
29233
29234
29235have_jbig='no'
29236JBIG_LIBS=''
29237if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029238 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29239$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029241$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29243$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029244 failed=0
29245 passed=0
cristy8b350f62009-11-15 23:12:43 +000029246 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029247if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029248 passed=`expr $passed + 1`
29249else
29250 failed=`expr $failed + 1`
29251fi
29252
29253
cristy8b350f62009-11-15 23:12:43 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029255$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029256if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029257 $as_echo_n "(cached) " >&6
29258else
29259 ac_check_lib_save_LIBS=$LIBS
29260LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029262/* end confdefs.h. */
29263
29264/* Override any GCC internal prototype to avoid an error.
29265 Use char because int might match the return type of a GCC
29266 builtin and then its argument prototype would still apply. */
29267#ifdef __cplusplus
29268extern "C"
29269#endif
29270char jbg_dec_init ();
29271int
29272main ()
29273{
29274return jbg_dec_init ();
29275 ;
29276 return 0;
29277}
29278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029279if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029280 ac_cv_lib_jbig_jbg_dec_init=yes
29281else
cristy8b350f62009-11-15 23:12:43 +000029282 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029283fi
cristy8b350f62009-11-15 23:12:43 +000029284rm -f core conftest.err conftest.$ac_objext \
29285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029286LIBS=$ac_check_lib_save_LIBS
29287fi
cristy8b350f62009-11-15 23:12:43 +000029288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029289$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029290if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029291 passed=`expr $passed + 1`
29292else
29293 failed=`expr $failed + 1`
29294fi
29295
cristy8b350f62009-11-15 23:12:43 +000029296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029297$as_echo_n "checking if JBIG package is complete... " >&6; }
29298 if test $passed -gt 0; then
29299 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029300 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29301$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029302 have_jbig='no (failed tests)'
29303 else
29304 JBIG_LIBS='-ljbig'
29305 LIBS="$JBIG_LIBS $LIBS"
29306
cristy8b350f62009-11-15 23:12:43 +000029307$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029308
cristy09b53e12011-10-14 12:47:22 +000029309 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29310$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029311 have_jbig='yes'
29312 fi
29313 else
cristy09b53e12011-10-14 12:47:22 +000029314 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29315$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029316 fi
29317fi
cristy73bd4a52010-10-05 11:24:23 +000029318 if test "$have_jbig" = 'yes'; then
29319 JBIG_DELEGATE_TRUE=
29320 JBIG_DELEGATE_FALSE='#'
29321else
29322 JBIG_DELEGATE_TRUE='#'
29323 JBIG_DELEGATE_FALSE=
29324fi
29325
cristy3ed852e2009-09-05 21:47:34 +000029326
29327
29328
29329#
29330# Check for JPEG delegate library.
29331#
29332
29333# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029334if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029335 withval=$with_jpeg; with_jpeg=$withval
29336else
29337 with_jpeg='yes'
29338fi
29339
29340
29341if test "$with_jpeg" != 'yes'; then
29342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29343fi
29344
29345have_jpeg='no'
29346JPEG_LIBS=''
29347if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029348 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29349$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029351$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029352 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29353$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029354 failed=0
29355 passed=0
cristy8b350f62009-11-15 23:12:43 +000029356 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029357if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029358 passed=`expr $passed + 1`
29359else
29360 failed=`expr $failed + 1`
29361fi
29362
29363
cristy8b350f62009-11-15 23:12:43 +000029364 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029365if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029366 passed=`expr $passed + 1`
29367else
29368 failed=`expr $failed + 1`
29369fi
29370
29371
cristy8b350f62009-11-15 23:12:43 +000029372 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029373if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 passed=`expr $passed + 1`
29375else
29376 failed=`expr $failed + 1`
29377fi
29378
29379
cristy8b350f62009-11-15 23:12:43 +000029380 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029381if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029382 passed=`expr $passed + 1`
29383else
29384 failed=`expr $failed + 1`
29385fi
29386
29387
cristy8b350f62009-11-15 23:12:43 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029390if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029391 $as_echo_n "(cached) " >&6
29392else
29393 ac_check_lib_save_LIBS=$LIBS
29394LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029396/* end confdefs.h. */
29397
29398/* Override any GCC internal prototype to avoid an error.
29399 Use char because int might match the return type of a GCC
29400 builtin and then its argument prototype would still apply. */
29401#ifdef __cplusplus
29402extern "C"
29403#endif
29404char jpeg_read_header ();
29405int
29406main ()
29407{
29408return jpeg_read_header ();
29409 ;
29410 return 0;
29411}
29412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029413if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029414 ac_cv_lib_jpeg_jpeg_read_header=yes
29415else
cristy8b350f62009-11-15 23:12:43 +000029416 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029417fi
cristy8b350f62009-11-15 23:12:43 +000029418rm -f core conftest.err conftest.$ac_objext \
29419 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029420LIBS=$ac_check_lib_save_LIBS
29421fi
cristy8b350f62009-11-15 23:12:43 +000029422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029423$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029424if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029425 passed=`expr $passed + 1`
29426else
29427 failed=`expr $failed + 1`
29428fi
29429
29430
29431# Test for compatible JPEG library
29432if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029434$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029435if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029436 $as_echo_n "(cached) " >&6
29437else
cristy8b350f62009-11-15 23:12:43 +000029438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029439/* end confdefs.h. */
29440#include <stdio.h>
29441#include <stdlib.h>
29442#include <jpeglib.h>
29443
29444int
29445main ()
29446{
29447
29448#if JPEG_LIB_VERSION < 62
29449#error IJG JPEG library must be version 6b or newer!
29450#endif
29451return 0;
29452
29453 ;
29454 return 0;
29455}
29456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029457if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029458 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29459else
cristy8b350f62009-11-15 23:12:43 +000029460 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029461fi
cristy3ed852e2009-09-05 21:47:34 +000029462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29463fi
cristy8b350f62009-11-15 23:12:43 +000029464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29466fi
cristy8b350f62009-11-15 23:12:43 +000029467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029468$as_echo_n "checking if JPEG package is complete... " >&6; }
29469 if test $passed -gt 0; then
29470 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029471 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29472$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029473 have_jpeg='no (failed tests)'
29474 else
29475 JPEG_LIBS='-ljpeg'
29476 LIBS="$JPEG_LIBS $LIBS"
29477
cristy8b350f62009-11-15 23:12:43 +000029478$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029479
cristy09b53e12011-10-14 12:47:22 +000029480 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29481$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029482 have_jpeg='yes'
29483 fi
29484 else
cristy09b53e12011-10-14 12:47:22 +000029485 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29486$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029487 fi
29488fi
cristy73bd4a52010-10-05 11:24:23 +000029489 if test "$have_jpeg" = 'yes'; then
29490 JPEG_DELEGATE_TRUE=
29491 JPEG_DELEGATE_FALSE='#'
29492else
29493 JPEG_DELEGATE_TRUE='#'
29494 JPEG_DELEGATE_FALSE=
29495fi
29496
cristy3ed852e2009-09-05 21:47:34 +000029497
29498
29499
29500#
29501# Check for JPEG Version 2 delegate library.
29502#
29503
29504# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029505if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029506 withval=$with_jp2; with_jp2=$withval
29507else
29508 with_jp2='yes'
29509fi
29510
29511
29512if test "$with_jp2" != 'yes'; then
29513 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29514fi
29515
29516have_jp2='no'
29517JP2_LIBS=''
29518if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029519 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29520$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029522$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029523 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29524$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029525 failed=0
29526 passed=0
cristy8b350f62009-11-15 23:12:43 +000029527 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 +000029528if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029529 passed=`expr $passed + 1`
29530else
29531 failed=`expr $failed + 1`
29532fi
29533
29534
cristy8b350f62009-11-15 23:12:43 +000029535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029536$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029537if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029538 $as_echo_n "(cached) " >&6
29539else
29540 ac_check_lib_save_LIBS=$LIBS
29541LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029543/* end confdefs.h. */
29544
29545/* Override any GCC internal prototype to avoid an error.
29546 Use char because int might match the return type of a GCC
29547 builtin and then its argument prototype would still apply. */
29548#ifdef __cplusplus
29549extern "C"
29550#endif
29551char jas_stream_fopen ();
29552int
29553main ()
29554{
29555return jas_stream_fopen ();
29556 ;
29557 return 0;
29558}
29559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029561 ac_cv_lib_jasper_jas_stream_fopen=yes
29562else
cristy8b350f62009-11-15 23:12:43 +000029563 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029564fi
cristy8b350f62009-11-15 23:12:43 +000029565rm -f core conftest.err conftest.$ac_objext \
29566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029567LIBS=$ac_check_lib_save_LIBS
29568fi
cristy8b350f62009-11-15 23:12:43 +000029569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029570$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029571if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029572 passed=`expr $passed + 1`
29573else
29574 failed=`expr $failed + 1`
29575fi
29576
cristy8b350f62009-11-15 23:12:43 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29579 if test $passed -gt 0; then
29580 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029581 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29582$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029583 have_jp2='no (failed tests)'
29584 else
29585 JP2_LIBS='-ljasper'
29586 LIBS="$JP2_LIBS $LIBS"
29587
cristy8b350f62009-11-15 23:12:43 +000029588$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029589
cristy09b53e12011-10-14 12:47:22 +000029590 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29591$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029592 have_jp2='yes'
29593 fi
29594 else
cristy09b53e12011-10-14 12:47:22 +000029595 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29596$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029597 fi
29598fi
cristy73bd4a52010-10-05 11:24:23 +000029599 if test "$have_jp2" = 'yes'; then
29600 JP2_DELEGATE_TRUE=
29601 JP2_DELEGATE_FALSE='#'
29602else
29603 JP2_DELEGATE_TRUE='#'
29604 JP2_DELEGATE_FALSE=
29605fi
29606
cristy3ed852e2009-09-05 21:47:34 +000029607
29608
29609
29610#
29611# Check for LCMS delegate library.
29612#
cristy71203402010-06-18 13:12:03 +000029613# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029614
29615# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029616if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029617 withval=$with_lcms; with_lcms=$withval
29618else
29619 with_lcms='yes'
29620fi
29621
cristy71203402010-06-18 13:12:03 +000029622if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029623 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29624fi
29625
cristy71203402010-06-18 13:12:03 +000029626# Disable LCMS2.
29627
29628# Check whether --with-lcms2 was given.
29629if test "${with_lcms2+set}" = set; then :
29630 withval=$with_lcms2; with_lcms2=$withval
29631else
29632 with_lcms2='yes'
29633fi
29634
29635if test "$with_lcms2" != 'yes' ; then
29636 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29637fi
29638
29639have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029640LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029641if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29643$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29645$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029646 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29647$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029648 failed=0
29649 passed=0
29650 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029651
29652 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029653 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029654if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029655 have_lcms_header='yes'
29656fi
29657
29658
29659 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029660
29661$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29662
cristy71203402010-06-18 13:12:03 +000029663 passed=`expr $passed + 1`
29664 fi
29665
29666 # Check for <lcms2/lcms2.h)
29667 if test "$have_lcms_header" != 'yes'; then
29668 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 +000029669if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029670 have_lcms_header='yes'
29671fi
29672
29673
cristy71203402010-06-18 13:12:03 +000029674 if test "$have_lcms_header" = 'yes'; then
29675 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029676
cristy71203402010-06-18 13:12:03 +000029677$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029678
cristy71203402010-06-18 13:12:03 +000029679 fi
cristyd09bcf92010-03-25 03:04:45 +000029680 fi
cristy71203402010-06-18 13:12:03 +000029681
29682 # Failed to find lcms header?
29683 if test "$have_lcms_header" != 'yes'; then
29684 failed=`expr $failed + 1`
29685 fi
29686
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29688$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029689if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029690 $as_echo_n "(cached) " >&6
29691else
29692 ac_check_lib_save_LIBS=$LIBS
29693LIBS="-llcms2 $LIBS"
29694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29695/* end confdefs.h. */
29696
29697/* Override any GCC internal prototype to avoid an error.
29698 Use char because int might match the return type of a GCC
29699 builtin and then its argument prototype would still apply. */
29700#ifdef __cplusplus
29701extern "C"
29702#endif
cristy71203402010-06-18 13:12:03 +000029703char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029704int
29705main ()
29706{
cristy71203402010-06-18 13:12:03 +000029707return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029708 ;
29709 return 0;
29710}
29711_ACEOF
29712if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029713 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029714else
cristy71203402010-06-18 13:12:03 +000029715 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029716fi
29717rm -f core conftest.err conftest.$ac_objext \
29718 conftest$ac_exeext conftest.$ac_ext
29719LIBS=$ac_check_lib_save_LIBS
29720fi
cristy71203402010-06-18 13:12:03 +000029721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29722$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029723if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029724 passed=`expr $passed + 1`
29725else
29726 failed=`expr $failed + 1`
29727fi
29728
cristy71203402010-06-18 13:12:03 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29730$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029731 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029732 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029733 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29734$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029735 have_lcms2='no (failed tests)'
29736 else
29737 LCMS_LIBS='-llcms2'
29738 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029739 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29740$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029741 have_lcms2='yes'
29742 fi
cristyd09bcf92010-03-25 03:04:45 +000029743 else
cristy09b53e12011-10-14 12:47:22 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29745$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029746 fi
29747fi
29748
cristy71203402010-06-18 13:12:03 +000029749#
29750# Check for LCMS v1 (1.11 or later)
29751#
29752if test $have_lcms2 = 'yes'; then
29753 with_lcms='no'
29754fi
29755
29756have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029757if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029758 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29759$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29761$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029762 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29763$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029764 failed=0
29765 passed=0
29766 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029767
29768 # Check for <lcms.h>
29769 if test "$have_lcms_header" != 'yes'; then
29770 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029771if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029772 have_lcms_header='yes'
29773fi
29774
29775
cristy71203402010-06-18 13:12:03 +000029776 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029777 passed=`expr $passed + 1`
29778
cristy8b350f62009-11-15 23:12:43 +000029779$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029780
cristy71203402010-06-18 13:12:03 +000029781 fi
29782 fi
29783
29784 # Check for <lcms/lcms.h>
29785 if test "$have_lcms_header" != 'yes'; then
29786 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 +000029787if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029788 have_lcms_header='yes'
29789fi
29790
29791
cristy71203402010-06-18 13:12:03 +000029792 if test "$have_lcms_header" = 'yes'; then
29793 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029794
cristy8b350f62009-11-15 23:12:43 +000029795$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029796
cristy71203402010-06-18 13:12:03 +000029797 fi
cristy3ed852e2009-09-05 21:47:34 +000029798 fi
cristy71203402010-06-18 13:12:03 +000029799
29800 # Failed to find lcms header?
29801 if test "$have_lcms_header" != 'yes'; then
29802 failed=`expr $failed + 1`
29803 fi
29804
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29806$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029807if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029808 $as_echo_n "(cached) " >&6
29809else
29810 ac_check_lib_save_LIBS=$LIBS
29811LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029813/* end confdefs.h. */
29814
29815/* Override any GCC internal prototype to avoid an error.
29816 Use char because int might match the return type of a GCC
29817 builtin and then its argument prototype would still apply. */
29818#ifdef __cplusplus
29819extern "C"
29820#endif
cristy71203402010-06-18 13:12:03 +000029821char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029822int
29823main ()
29824{
cristy71203402010-06-18 13:12:03 +000029825return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029826 ;
29827 return 0;
29828}
29829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029830if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029831 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029832else
cristy71203402010-06-18 13:12:03 +000029833 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029834fi
cristy8b350f62009-11-15 23:12:43 +000029835rm -f core conftest.err conftest.$ac_objext \
29836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029837LIBS=$ac_check_lib_save_LIBS
29838fi
cristy71203402010-06-18 13:12:03 +000029839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29840$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029841if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029842 passed=`expr $passed + 1`
29843else
29844 failed=`expr $failed + 1`
29845fi
29846
cristy8b350f62009-11-15 23:12:43 +000029847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029848$as_echo_n "checking if LCMS package is complete... " >&6; }
29849 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029850 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029851 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29852$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029853 have_lcms='no (failed tests)'
29854 else
29855 LCMS_LIBS='-llcms'
29856 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029857 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29858$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029859 have_lcms='yes'
29860 fi
cristy3ed852e2009-09-05 21:47:34 +000029861 else
cristy09b53e12011-10-14 12:47:22 +000029862 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29863$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029864 fi
29865fi
cristy71203402010-06-18 13:12:03 +000029866
cristy73bd4a52010-10-05 11:24:23 +000029867 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29868 LCMS_DELEGATE_TRUE=
29869 LCMS_DELEGATE_FALSE='#'
29870else
29871 LCMS_DELEGATE_TRUE='#'
29872 LCMS_DELEGATE_FALSE=
29873fi
29874
cristy71203402010-06-18 13:12:03 +000029875if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29876
29877$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29878
29879fi
29880
cristy3ed852e2009-09-05 21:47:34 +000029881
29882
29883
29884#
29885# Check for the LQR (Liquid Rescale) delegate library.
29886#
29887
29888# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029889if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029890 withval=$with_lqr; with_lqr=$withval
29891else
29892 with_lqr='yes'
29893fi
29894
29895
29896if test "$with_lqr" != 'yes'; then
29897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29898fi
29899
29900have_lqr='no'
29901LQR_CFLAGS=""
29902LQR_LIBS=""
29903LQR_PKG=""
29904if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029905 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29906$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029907
29908pkg_failed=no
29909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29910$as_echo_n "checking for LQR... " >&6; }
29911
29912if test -n "$LQR_CFLAGS"; then
29913 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29914 elif test -n "$PKG_CONFIG"; then
29915 if test -n "$PKG_CONFIG" && \
29916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29917 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29918 ac_status=$?
29919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29920 test $ac_status = 0; }; then
29921 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29922else
29923 pkg_failed=yes
29924fi
29925 else
29926 pkg_failed=untried
29927fi
29928if test -n "$LQR_LIBS"; then
29929 pkg_cv_LQR_LIBS="$LQR_LIBS"
29930 elif test -n "$PKG_CONFIG"; then
29931 if test -n "$PKG_CONFIG" && \
29932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29933 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29934 ac_status=$?
29935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29936 test $ac_status = 0; }; then
29937 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29938else
29939 pkg_failed=yes
29940fi
29941 else
29942 pkg_failed=untried
29943fi
29944
29945
29946
29947if test $pkg_failed = yes; then
29948
29949if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29950 _pkg_short_errors_supported=yes
29951else
29952 _pkg_short_errors_supported=no
29953fi
29954 if test $_pkg_short_errors_supported = yes; then
29955 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29956 else
29957 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29958 fi
29959 # Put the nasty error message in config.log where it belongs
29960 echo "$LQR_PKG_ERRORS" >&5
29961
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29963$as_echo "no" >&6; }
29964 have_lqr=no
29965elif test $pkg_failed = untried; then
29966 have_lqr=no
29967else
29968 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29969 LQR_LIBS=$pkg_cv_LQR_LIBS
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29971$as_echo "yes" >&6; }
29972 have_lqr=yes
29973fi
cristy09b53e12011-10-14 12:47:22 +000029974 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29975$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029976fi
29977
29978if test "$have_lqr" = 'yes'; then
29979
cristy8b350f62009-11-15 23:12:43 +000029980$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029981
29982 CFLAGS="$LQR_CFLAGS $CFLAGS"
29983fi
29984
cristy73bd4a52010-10-05 11:24:23 +000029985 if test "$have_lqr" = 'yes'; then
29986 LQR_DELEGATE_TRUE=
29987 LQR_DELEGATE_FALSE='#'
29988else
29989 LQR_DELEGATE_TRUE='#'
29990 LQR_DELEGATE_FALSE=
29991fi
29992
cristy3ed852e2009-09-05 21:47:34 +000029993
29994
29995
29996
cristy81beccd2011-10-03 18:17:24 +000029997# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029998
29999# Check whether --with-lzma was given.
30000if test "${with_lzma+set}" = set; then :
30001 withval=$with_lzma; with_lzma=$withval
30002else
30003 with_lzma='yes'
30004fi
30005
cristy81beccd2011-10-03 18:17:24 +000030006if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30008fi
30009
cristy81beccd2011-10-03 18:17:24 +000030010#
30011# Check for LZMA
30012#
30013have_lzma='no'
30014LZMA_LIBS=''
30015if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30017$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030019$as_echo_n "checking for LZMA... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30021$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030022 failed=0
30023 passed=0
30024 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30025if test "x$ac_cv_header_lzma_h" = xyes; then :
30026 passed=`expr $passed + 1`
30027else
30028 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000030029fi
30030
cristy81beccd2011-10-03 18:17:24 +000030031
30032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30033$as_echo_n "checking for lzma_code in -llzma... " >&6; }
30034if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30035 $as_echo_n "(cached) " >&6
30036else
30037 ac_check_lib_save_LIBS=$LIBS
30038LIBS="-llzma $LIBS"
30039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30040/* end confdefs.h. */
30041
30042/* Override any GCC internal prototype to avoid an error.
30043 Use char because int might match the return type of a GCC
30044 builtin and then its argument prototype would still apply. */
30045#ifdef __cplusplus
30046extern "C"
30047#endif
30048char lzma_code ();
30049int
30050main ()
30051{
30052return lzma_code ();
30053 ;
30054 return 0;
30055}
30056_ACEOF
30057if ac_fn_c_try_link "$LINENO"; then :
30058 ac_cv_lib_lzma_lzma_code=yes
30059else
30060 ac_cv_lib_lzma_lzma_code=no
30061fi
30062rm -f core conftest.err conftest.$ac_objext \
30063 conftest$ac_exeext conftest.$ac_ext
30064LIBS=$ac_check_lib_save_LIBS
30065fi
30066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30067$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30068if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30069 passed=`expr $passed + 1`
30070else
30071 failed=`expr $failed + 1`
30072fi
30073
30074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30075$as_echo_n "checking if LZMA package is complete... " >&6; }
30076 if test $passed -gt 0; then
30077 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030078 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30079$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030080 have_lzma='no (failed tests)'
30081 else
30082 LZMA_LIBS='-llzma'
30083 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030084
30085$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30086
cristy09b53e12011-10-14 12:47:22 +000030087 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30088$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030089 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030090 fi
cristy81beccd2011-10-03 18:17:24 +000030091 else
cristy09b53e12011-10-14 12:47:22 +000030092 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30093$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030094 fi
cristyfbb0ef02010-12-19 02:32:11 +000030095fi
30096 if test "$have_lzma" = 'yes'; then
30097 LZMA_DELEGATE_TRUE=
30098 LZMA_DELEGATE_FALSE='#'
30099else
30100 LZMA_DELEGATE_TRUE='#'
30101 LZMA_DELEGATE_FALSE=
30102fi
30103
30104
30105
30106
cristy3ed852e2009-09-05 21:47:34 +000030107#
30108# Check for the OpenEXR delegate library.
30109#
30110
30111# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030112if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030113 withval=$with_openexr; with_openexr=$withval
30114else
30115 with_openexr='yes'
30116fi
30117
30118
30119if test "$with_openexr" != 'yes'; then
30120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30121fi
30122
30123have_openexr='no'
30124OPENEXR_CFLAGS=""
30125OPENEXR_LIBS=""
30126OPENEXR_PKG=""
30127if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030128 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30129$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030130
30131pkg_failed=no
30132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30133$as_echo_n "checking for OPENEXR... " >&6; }
30134
30135if test -n "$OPENEXR_CFLAGS"; then
30136 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30137 elif test -n "$PKG_CONFIG"; then
30138 if test -n "$PKG_CONFIG" && \
30139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30140 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30141 ac_status=$?
30142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30143 test $ac_status = 0; }; then
30144 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30145else
30146 pkg_failed=yes
30147fi
30148 else
30149 pkg_failed=untried
30150fi
30151if test -n "$OPENEXR_LIBS"; then
30152 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30153 elif test -n "$PKG_CONFIG"; then
30154 if test -n "$PKG_CONFIG" && \
30155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30156 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30157 ac_status=$?
30158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30159 test $ac_status = 0; }; then
30160 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30161else
30162 pkg_failed=yes
30163fi
30164 else
30165 pkg_failed=untried
30166fi
30167
30168
30169
30170if test $pkg_failed = yes; then
30171
30172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30173 _pkg_short_errors_supported=yes
30174else
30175 _pkg_short_errors_supported=no
30176fi
30177 if test $_pkg_short_errors_supported = yes; then
30178 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30179 else
30180 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30181 fi
30182 # Put the nasty error message in config.log where it belongs
30183 echo "$OPENEXR_PKG_ERRORS" >&5
30184
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30186$as_echo "no" >&6; }
30187 have_openexr=no
30188elif test $pkg_failed = untried; then
30189 have_openexr=no
30190else
30191 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30192 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30194$as_echo "yes" >&6; }
30195 have_openexr=yes
30196fi
cristy09b53e12011-10-14 12:47:22 +000030197 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30198$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030199fi
30200
30201if test "$have_openexr" = 'yes'; then
30202
cristy8b350f62009-11-15 23:12:43 +000030203$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030204
30205 if test "$with_modules" = 'no'; then
30206 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30207 fi
30208fi
30209
cristy73bd4a52010-10-05 11:24:23 +000030210 if test "$have_openexr" = 'yes'; then
30211 OPENEXR_DELEGATE_TRUE=
30212 OPENEXR_DELEGATE_FALSE='#'
30213else
30214 OPENEXR_DELEGATE_TRUE='#'
30215 OPENEXR_DELEGATE_FALSE=
30216fi
30217
cristy3ed852e2009-09-05 21:47:34 +000030218
30219
30220
30221
30222#
cristy41cbe8a2011-10-27 01:35:18 +000030223# Check for PANGO delegate library.
30224#
30225
30226# Check whether --with-pango was given.
30227if test "${with_pango+set}" = set; then :
30228 withval=$with_pango; with_pango=$withval
30229else
30230 with_pango=$have_x
30231fi
30232
30233
30234if test "$with_pango" != 'yes'; then
30235 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30236fi
30237
30238have_pango='no'
30239have_pangoft2='no'
30240PANGO_CFLAGS=""
30241PANGO_LIBS=""
30242PANGO_PKG=""
30243if test "x$with_pango" = "xyes"; then
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30245$as_echo "-------------------------------------------------------------" >&6; }
30246
30247pkg_failed=no
30248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30249$as_echo_n "checking for PANGO... " >&6; }
30250
30251if test -n "$PANGO_CFLAGS"; then
30252 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30253 elif test -n "$PKG_CONFIG"; then
30254 if test -n "$PKG_CONFIG" && \
cristy41cbe8a2011-10-27 01:35:18 +000030255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30256 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30257 ac_status=$?
30258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30259 test $ac_status = 0; }; then
30260 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30261else
30262 pkg_failed=yes
30263fi
30264 else
30265 pkg_failed=untried
30266fi
30267if test -n "$PANGO_LIBS"; then
30268 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30269 elif test -n "$PKG_CONFIG"; then
30270 if test -n "$PKG_CONFIG" && \
30271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30272 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30273 ac_status=$?
30274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30275 test $ac_status = 0; }; then
30276 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30277else
30278 pkg_failed=yes
30279fi
30280 else
30281 pkg_failed=untried
30282fi
30283
30284
30285
30286if test $pkg_failed = yes; then
30287
30288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30289 _pkg_short_errors_supported=yes
30290else
30291 _pkg_short_errors_supported=no
30292fi
30293 if test $_pkg_short_errors_supported = yes; then
30294 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2" 2>&1`
30295 else
30296 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2" 2>&1`
30297 fi
30298 # Put the nasty error message in config.log where it belongs
30299 echo "$PANGO_PKG_ERRORS" >&5
30300
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30302$as_echo "no" >&6; }
30303 have_pangoft2=no
30304elif test $pkg_failed = untried; then
30305 have_pangoft2=no
30306else
30307 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30308 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30310$as_echo "yes" >&6; }
30311 have_pangoft2=yes
30312fi
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30314$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030315
30316pkg_failed=no
30317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30318$as_echo_n "checking for PANGO... " >&6; }
30319
30320if test -n "$PANGO_CFLAGS"; then
30321 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30322 elif test -n "$PKG_CONFIG"; then
30323 if test -n "$PKG_CONFIG" && \
30324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30325 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30326 ac_status=$?
30327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30328 test $ac_status = 0; }; then
30329 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango" 2>/dev/null`
30330else
30331 pkg_failed=yes
30332fi
30333 else
30334 pkg_failed=untried
30335fi
30336if test -n "$PANGO_LIBS"; then
30337 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30338 elif test -n "$PKG_CONFIG"; then
30339 if test -n "$PKG_CONFIG" && \
30340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30341 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30342 ac_status=$?
30343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30344 test $ac_status = 0; }; then
30345 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango" 2>/dev/null`
30346else
30347 pkg_failed=yes
30348fi
30349 else
30350 pkg_failed=untried
30351fi
30352
30353
30354
30355if test $pkg_failed = yes; then
30356
30357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30358 _pkg_short_errors_supported=yes
30359else
30360 _pkg_short_errors_supported=no
30361fi
30362 if test $_pkg_short_errors_supported = yes; then
30363 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango" 2>&1`
30364 else
30365 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango" 2>&1`
30366 fi
30367 # Put the nasty error message in config.log where it belongs
30368 echo "$PANGO_PKG_ERRORS" >&5
30369
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30371$as_echo "no" >&6; }
30372 have_pango=no
30373elif test $pkg_failed = untried; then
30374 have_pango=no
30375else
30376 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30377 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30379$as_echo "yes" >&6; }
30380 have_pango=yes
30381fi
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30383$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030384fi
30385
30386if test "$have_pango" = 'yes'; then
30387
30388$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30389
30390 if test "$with_modules" = 'no'; then
30391 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30392 fi
30393fi
30394
30395if test "$have_pangoft2" = 'yes'; then
30396
30397$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30398
30399 if test "$with_modules" = 'no'; then
30400 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30401 fi
30402fi
30403
30404 if test "$have_pango" = 'yes'; then
30405 PANGO_DELEGATE_TRUE=
30406 PANGO_DELEGATE_FALSE='#'
30407else
30408 PANGO_DELEGATE_TRUE='#'
30409 PANGO_DELEGATE_FALSE=
30410fi
30411
30412 if test "$have_pangoft2" = 'yes'; then
30413 PANGOFT2_DELEGATE_TRUE=
30414 PANGOFT2_DELEGATE_FALSE='#'
30415else
30416 PANGOFT2_DELEGATE_TRUE='#'
30417 PANGOFT2_DELEGATE_FALSE=
30418fi
30419
30420
30421
30422
30423
30424#
cristy3ed852e2009-09-05 21:47:34 +000030425# Check for PNG delegate library.
30426#
30427
30428# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030429if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030430 withval=$with_png; with_png=$withval
30431else
30432 with_png='yes'
30433fi
30434
30435
30436if test "$with_png" != 'yes'; then
30437 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30438fi
30439
cristy81beccd2011-10-03 18:17:24 +000030440have_png='no'
30441PNG_LIBS=''
30442
30443if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030444 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30445$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30447$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030448 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30449$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030450 failed=0
30451 passed=0
30452 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30453if test "x$ac_cv_header_png_h" = xyes; then :
30454 passed=`expr $passed + 1`
30455else
30456 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030457fi
30458
cristy81beccd2011-10-03 18:17:24 +000030459
30460
30461 if test $passed -gt 0; then
30462 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030463 if test "$have_png" = 'no' ; then
30464 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030465 pnglib='png'
30466 else
30467 pnglib="png1${var}"
30468 fi
30469
30470# Test for compatible LIBPNG library
30471 failed=0
30472 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030473 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030474 if test "${pnglib}" != 'png' ; then
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30476$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30478/* end confdefs.h. */
30479#include <stdio.h>
30480#include <stdlib.h>
30481#include <png.h>
30482
30483int
30484main ()
30485{
30486
30487#if PNG_LIBPNG_VER_MINOR != ${var}
30488#error LIBPNG library must be version 1${var}!
30489Kaboom, Kaboom
30490#endif
30491return 0;
30492
30493 ;
30494 return 0;
30495}
30496_ACEOF
30497if ac_fn_c_try_compile "$LINENO"; then :
30498 ac_cv_libpng_ok='yes'
30499else
30500 ac_cv_libpng_ok='no'
30501fi
30502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30503 if test "$ac_cv_libpng_ok" = 'yes' ; then
30504 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030505 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30506$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030507 else
30508 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030509 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30510$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030511 fi
30512 else
30513 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30515$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030516 fi
30517 fi
30518
30519 if test $passed -gt 0 -a $failed -le 0; then
30520 if test "1${var}" = '15' ; then
30521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30522$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30523if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30524 $as_echo_n "(cached) " >&6
30525else
30526 ac_check_lib_save_LIBS=$LIBS
30527LIBS="-lpng15 $LIBS"
30528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30529/* end confdefs.h. */
30530
30531/* Override any GCC internal prototype to avoid an error.
30532 Use char because int might match the return type of a GCC
30533 builtin and then its argument prototype would still apply. */
30534#ifdef __cplusplus
30535extern "C"
30536#endif
30537char png_get_io_ptr ();
30538int
30539main ()
30540{
30541return png_get_io_ptr ();
30542 ;
30543 return 0;
30544}
30545_ACEOF
30546if ac_fn_c_try_link "$LINENO"; then :
30547 ac_cv_lib_png15_png_get_io_ptr=yes
30548else
30549 ac_cv_lib_png15_png_get_io_ptr=no
30550fi
30551rm -f core conftest.err conftest.$ac_objext \
30552 conftest$ac_exeext conftest.$ac_ext
30553LIBS=$ac_check_lib_save_LIBS
30554fi
30555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30556$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30557if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30558 passed=`expr $passed + 1`
30559else
30560 failed=`expr $failed + 1`
30561fi
30562
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30564$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30565if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30566 $as_echo_n "(cached) " >&6
30567else
30568 ac_check_lib_save_LIBS=$LIBS
30569LIBS="-lpng15 $LIBS"
30570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30571/* end confdefs.h. */
30572
30573/* Override any GCC internal prototype to avoid an error.
30574 Use char because int might match the return type of a GCC
30575 builtin and then its argument prototype would still apply. */
30576#ifdef __cplusplus
30577extern "C"
30578#endif
30579char png_longjmp ();
30580int
30581main ()
30582{
30583return png_longjmp ();
30584 ;
30585 return 0;
30586}
30587_ACEOF
30588if ac_fn_c_try_link "$LINENO"; then :
30589 ac_cv_lib_png15_png_longjmp=yes
30590else
30591 ac_cv_lib_png15_png_longjmp=no
30592fi
30593rm -f core conftest.err conftest.$ac_objext \
30594 conftest$ac_exeext conftest.$ac_ext
30595LIBS=$ac_check_lib_save_LIBS
30596fi
30597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30598$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30599if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30600 passed=`expr $passed + 1`
30601else
30602 failed=`expr $failed + 1`
30603fi
30604
30605 fi
30606 if test "1${var}" = '14' ; then
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30608$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30609if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30610 $as_echo_n "(cached) " >&6
30611else
30612 ac_check_lib_save_LIBS=$LIBS
30613LIBS="-lpng14 $LIBS"
30614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30615/* end confdefs.h. */
30616
30617/* Override any GCC internal prototype to avoid an error.
30618 Use char because int might match the return type of a GCC
30619 builtin and then its argument prototype would still apply. */
30620#ifdef __cplusplus
30621extern "C"
30622#endif
30623char png_get_io_ptr ();
30624int
30625main ()
30626{
30627return png_get_io_ptr ();
30628 ;
30629 return 0;
30630}
30631_ACEOF
30632if ac_fn_c_try_link "$LINENO"; then :
30633 ac_cv_lib_png14_png_get_io_ptr=yes
30634else
30635 ac_cv_lib_png14_png_get_io_ptr=no
30636fi
30637rm -f core conftest.err conftest.$ac_objext \
30638 conftest$ac_exeext conftest.$ac_ext
30639LIBS=$ac_check_lib_save_LIBS
30640fi
30641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30642$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30643if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30644 passed=`expr $passed + 1`
30645else
30646 failed=`expr $failed + 1`
30647fi
30648
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30650$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30651if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30652 $as_echo_n "(cached) " >&6
30653else
30654 ac_check_lib_save_LIBS=$LIBS
30655LIBS="-lpng14 $LIBS"
30656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30657/* end confdefs.h. */
30658
30659/* Override any GCC internal prototype to avoid an error.
30660 Use char because int might match the return type of a GCC
30661 builtin and then its argument prototype would still apply. */
30662#ifdef __cplusplus
30663extern "C"
30664#endif
30665char png_get_io_state ();
30666int
30667main ()
30668{
30669return png_get_io_state ();
30670 ;
30671 return 0;
30672}
30673_ACEOF
30674if ac_fn_c_try_link "$LINENO"; then :
30675 ac_cv_lib_png14_png_get_io_state=yes
30676else
30677 ac_cv_lib_png14_png_get_io_state=no
30678fi
30679rm -f core conftest.err conftest.$ac_objext \
30680 conftest$ac_exeext conftest.$ac_ext
30681LIBS=$ac_check_lib_save_LIBS
30682fi
30683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30684$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30685if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30686 passed=`expr $passed + 1`
30687else
30688 failed=`expr $failed + 1`
30689fi
30690
30691 fi
30692 if test "1${var}" = '12' ; then
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30694$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30695if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30696 $as_echo_n "(cached) " >&6
30697else
30698 ac_check_lib_save_LIBS=$LIBS
30699LIBS="-lpng12 $LIBS"
30700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30701/* end confdefs.h. */
30702
30703/* Override any GCC internal prototype to avoid an error.
30704 Use char because int might match the return type of a GCC
30705 builtin and then its argument prototype would still apply. */
30706#ifdef __cplusplus
30707extern "C"
30708#endif
30709char png_get_io_ptr ();
30710int
30711main ()
30712{
30713return png_get_io_ptr ();
30714 ;
30715 return 0;
30716}
30717_ACEOF
30718if ac_fn_c_try_link "$LINENO"; then :
30719 ac_cv_lib_png12_png_get_io_ptr=yes
30720else
30721 ac_cv_lib_png12_png_get_io_ptr=no
30722fi
30723rm -f core conftest.err conftest.$ac_objext \
30724 conftest$ac_exeext conftest.$ac_ext
30725LIBS=$ac_check_lib_save_LIBS
30726fi
30727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30728$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30729if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30730 passed=`expr $passed + 1`
30731else
30732 failed=`expr $failed + 1`
30733fi
30734
30735 fi
30736 if test "1${var}" = '1' ; then
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30738$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30739if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30740 $as_echo_n "(cached) " >&6
30741else
30742 ac_check_lib_save_LIBS=$LIBS
30743LIBS="-lpng $LIBS"
30744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30745/* end confdefs.h. */
30746
30747/* Override any GCC internal prototype to avoid an error.
30748 Use char because int might match the return type of a GCC
30749 builtin and then its argument prototype would still apply. */
30750#ifdef __cplusplus
30751extern "C"
30752#endif
30753char png_get_io_ptr ();
30754int
30755main ()
30756{
30757return png_get_io_ptr ();
30758 ;
30759 return 0;
30760}
30761_ACEOF
30762if ac_fn_c_try_link "$LINENO"; then :
30763 ac_cv_lib_png_png_get_io_ptr=yes
30764else
30765 ac_cv_lib_png_png_get_io_ptr=no
30766fi
30767rm -f core conftest.err conftest.$ac_objext \
30768 conftest$ac_exeext conftest.$ac_ext
30769LIBS=$ac_check_lib_save_LIBS
30770fi
30771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30772$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30773if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30774 passed=`expr $passed + 1`
30775else
30776 failed=`expr $failed + 1`
30777fi
30778
30779 fi
30780 if test $passed -gt 0 -a $failed -le 0 ; then
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30782$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30783 if test $passed -gt 0 ; then
30784 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030785 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30786$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030787 have_png='no (failed tests)'
30788 else
30789 PNG_LIBS="-l${pnglib}"
30790 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030791
cristy8b350f62009-11-15 23:12:43 +000030792$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030793
cristy09b53e12011-10-14 12:47:22 +000030794 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30795$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030796 have_png='yes'
30797 fi
30798 fi
30799 fi
30800 fi
30801 fi
30802 done
30803 fi
cristy3ed852e2009-09-05 21:47:34 +000030804fi
cristy64877302011-08-23 19:10:31 +000030805
cristy73bd4a52010-10-05 11:24:23 +000030806 if test "$have_png" = 'yes'; then
30807 PNG_DELEGATE_TRUE=
30808 PNG_DELEGATE_FALSE='#'
30809else
30810 PNG_DELEGATE_TRUE='#'
30811 PNG_DELEGATE_FALSE=
30812fi
30813
cristy3ed852e2009-09-05 21:47:34 +000030814
cristy50d3f5c2011-09-10 20:09:06 +000030815
cristy3ed852e2009-09-05 21:47:34 +000030816
30817
30818#
30819# Check for RSVG delegate library.
30820#
30821
30822# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030823if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030824 withval=$with_rsvg; with_rsvg=$withval
30825else
30826 with_rsvg=$have_x
30827fi
30828
30829
30830if test "$with_rsvg" != 'yes'; then
30831 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30832fi
30833
30834have_rsvg='no'
30835have_cairo='no'
30836RSVG_CFLAGS=""
30837RSVG_LIBS=""
30838RSVG_PKG=""
30839if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030840 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30841$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030842
30843pkg_failed=no
30844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30845$as_echo_n "checking for RSVG... " >&6; }
30846
30847if test -n "$RSVG_CFLAGS"; then
30848 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30849 elif test -n "$PKG_CONFIG"; then
30850 if test -n "$PKG_CONFIG" && \
30851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30852 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30853 ac_status=$?
30854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30855 test $ac_status = 0; }; then
30856 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30857else
30858 pkg_failed=yes
30859fi
30860 else
30861 pkg_failed=untried
30862fi
30863if test -n "$RSVG_LIBS"; then
30864 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30865 elif test -n "$PKG_CONFIG"; then
30866 if test -n "$PKG_CONFIG" && \
30867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30868 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30869 ac_status=$?
30870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30871 test $ac_status = 0; }; then
30872 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30873else
30874 pkg_failed=yes
30875fi
30876 else
30877 pkg_failed=untried
30878fi
30879
30880
30881
30882if test $pkg_failed = yes; then
30883
30884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30885 _pkg_short_errors_supported=yes
30886else
30887 _pkg_short_errors_supported=no
30888fi
30889 if test $_pkg_short_errors_supported = yes; then
30890 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30891 else
30892 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30893 fi
30894 # Put the nasty error message in config.log where it belongs
30895 echo "$RSVG_PKG_ERRORS" >&5
30896
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30898$as_echo "no" >&6; }
30899 have_rsvg=no
30900elif test $pkg_failed = untried; then
30901 have_rsvg=no
30902else
30903 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30904 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30906$as_echo "yes" >&6; }
30907 have_rsvg=yes
30908fi
cristy09b53e12011-10-14 12:47:22 +000030909 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30910$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030911
30912pkg_failed=no
30913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30914$as_echo_n "checking for CAIRO_SVG... " >&6; }
30915
30916if test -n "$CAIRO_SVG_CFLAGS"; then
30917 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30918 elif test -n "$PKG_CONFIG"; then
30919 if test -n "$PKG_CONFIG" && \
30920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30921 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30922 ac_status=$?
30923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30924 test $ac_status = 0; }; then
30925 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30926else
30927 pkg_failed=yes
30928fi
30929 else
30930 pkg_failed=untried
30931fi
30932if test -n "$CAIRO_SVG_LIBS"; then
30933 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30934 elif test -n "$PKG_CONFIG"; then
30935 if test -n "$PKG_CONFIG" && \
30936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30937 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30938 ac_status=$?
30939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30940 test $ac_status = 0; }; then
30941 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30942else
30943 pkg_failed=yes
30944fi
30945 else
30946 pkg_failed=untried
30947fi
30948
30949
30950
30951if test $pkg_failed = yes; then
30952
30953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30954 _pkg_short_errors_supported=yes
30955else
30956 _pkg_short_errors_supported=no
30957fi
30958 if test $_pkg_short_errors_supported = yes; then
30959 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30960 else
30961 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30962 fi
30963 # Put the nasty error message in config.log where it belongs
30964 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30965
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30967$as_echo "no" >&6; }
30968 have_cairo=no
30969elif test $pkg_failed = untried; then
30970 have_cairo=no
30971else
30972 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30973 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30975$as_echo "yes" >&6; }
30976 have_cairo=yes
30977fi
cristy09b53e12011-10-14 12:47:22 +000030978 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30979$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030980fi
30981
30982if test "$have_rsvg" = 'yes'; then
30983
cristy8b350f62009-11-15 23:12:43 +000030984$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030985
30986 if test "$with_modules" = 'no'; then
30987 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30988 fi
30989fi
30990
30991if test "$have_cairo" = 'yes'; then
30992
cristy8b350f62009-11-15 23:12:43 +000030993$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030994
30995 if test "$with_modules" = 'no'; then
30996 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30997 fi
30998fi
30999
cristy73bd4a52010-10-05 11:24:23 +000031000 if test "$have_rsvg" = 'yes'; then
31001 RSVG_DELEGATE_TRUE=
31002 RSVG_DELEGATE_FALSE='#'
31003else
31004 RSVG_DELEGATE_TRUE='#'
31005 RSVG_DELEGATE_FALSE=
31006fi
31007
31008 if test "$have_cairo" = 'yes'; then
31009 CAIRO_DELEGATE_TRUE=
31010 CAIRO_DELEGATE_FALSE='#'
31011else
31012 CAIRO_DELEGATE_TRUE='#'
31013 CAIRO_DELEGATE_FALSE=
31014fi
31015
cristy3ed852e2009-09-05 21:47:34 +000031016
31017
31018
31019
31020#
31021# Check for TIFF delegate library.
31022#
31023
31024# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031025if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031026 withval=$with_tiff; with_tiff=$withval
31027else
31028 with_tiff='yes'
31029fi
31030
31031
31032if test "$with_tiff" != 'yes'; then
31033 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31034fi
31035
31036have_tiff='no'
31037TIFF_LIBS=''
31038if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031039 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31040$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031042$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031043 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31044$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031045 failed=0
31046 passed=0
cristy8b350f62009-11-15 23:12:43 +000031047 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031048if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031049 passed=`expr $passed + 1`
31050else
31051 failed=`expr $failed + 1`
31052fi
31053
31054
cristy8b350f62009-11-15 23:12:43 +000031055 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031056if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031057 passed=`expr $passed + 1`
31058else
31059 failed=`expr $failed + 1`
31060fi
31061
31062
cristy8b350f62009-11-15 23:12:43 +000031063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031064$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031065if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031066 $as_echo_n "(cached) " >&6
31067else
31068 ac_check_lib_save_LIBS=$LIBS
31069LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031071/* end confdefs.h. */
31072
31073/* Override any GCC internal prototype to avoid an error.
31074 Use char because int might match the return type of a GCC
31075 builtin and then its argument prototype would still apply. */
31076#ifdef __cplusplus
31077extern "C"
31078#endif
31079char TIFFOpen ();
31080int
31081main ()
31082{
31083return TIFFOpen ();
31084 ;
31085 return 0;
31086}
31087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031088if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031089 ac_cv_lib_tiff_TIFFOpen=yes
31090else
cristy8b350f62009-11-15 23:12:43 +000031091 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031092fi
cristy8b350f62009-11-15 23:12:43 +000031093rm -f core conftest.err conftest.$ac_objext \
31094 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031095LIBS=$ac_check_lib_save_LIBS
31096fi
cristy8b350f62009-11-15 23:12:43 +000031097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031099if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031100 passed=`expr $passed + 1`
31101else
31102 failed=`expr $failed + 1`
31103fi
31104
cristy8b350f62009-11-15 23:12:43 +000031105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031106$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031107if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031108 $as_echo_n "(cached) " >&6
31109else
31110 ac_check_lib_save_LIBS=$LIBS
31111LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031113/* end confdefs.h. */
31114
31115/* Override any GCC internal prototype to avoid an error.
31116 Use char because int might match the return type of a GCC
31117 builtin and then its argument prototype would still apply. */
31118#ifdef __cplusplus
31119extern "C"
31120#endif
31121char TIFFClientOpen ();
31122int
31123main ()
31124{
31125return TIFFClientOpen ();
31126 ;
31127 return 0;
31128}
31129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031131 ac_cv_lib_tiff_TIFFClientOpen=yes
31132else
cristy8b350f62009-11-15 23:12:43 +000031133 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031134fi
cristy8b350f62009-11-15 23:12:43 +000031135rm -f core conftest.err conftest.$ac_objext \
31136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031137LIBS=$ac_check_lib_save_LIBS
31138fi
cristy8b350f62009-11-15 23:12:43 +000031139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031141if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031142 passed=`expr $passed + 1`
31143else
31144 failed=`expr $failed + 1`
31145fi
31146
cristyb97f1002010-07-26 14:02:57 +000031147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
31148$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031149if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000031150 $as_echo_n "(cached) " >&6
31151else
31152 ac_check_lib_save_LIBS=$LIBS
31153LIBS="-ltiff $LIBS"
31154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31155/* end confdefs.h. */
31156
31157/* Override any GCC internal prototype to avoid an error.
31158 Use char because int might match the return type of a GCC
31159 builtin and then its argument prototype would still apply. */
31160#ifdef __cplusplus
31161extern "C"
31162#endif
31163char TIFFIsBigEndian ();
31164int
31165main ()
31166{
31167return TIFFIsBigEndian ();
31168 ;
31169 return 0;
31170}
31171_ACEOF
31172if ac_fn_c_try_link "$LINENO"; then :
31173 ac_cv_lib_tiff_TIFFIsBigEndian=yes
31174else
31175 ac_cv_lib_tiff_TIFFIsBigEndian=no
31176fi
31177rm -f core conftest.err conftest.$ac_objext \
31178 conftest$ac_exeext conftest.$ac_ext
31179LIBS=$ac_check_lib_save_LIBS
31180fi
31181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
31182$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000031183if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000031184 passed=`expr $passed + 1`
31185else
31186 failed=`expr $failed + 1`
31187fi
31188
cristy8b350f62009-11-15 23:12:43 +000031189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031190$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031191if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031192 $as_echo_n "(cached) " >&6
31193else
31194 ac_check_lib_save_LIBS=$LIBS
31195LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031197/* end confdefs.h. */
31198
31199/* Override any GCC internal prototype to avoid an error.
31200 Use char because int might match the return type of a GCC
31201 builtin and then its argument prototype would still apply. */
31202#ifdef __cplusplus
31203extern "C"
31204#endif
31205char TIFFIsByteSwapped ();
31206int
31207main ()
31208{
31209return TIFFIsByteSwapped ();
31210 ;
31211 return 0;
31212}
31213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031215 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31216else
cristy8b350f62009-11-15 23:12:43 +000031217 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031218fi
cristy8b350f62009-11-15 23:12:43 +000031219rm -f core conftest.err conftest.$ac_objext \
31220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031221LIBS=$ac_check_lib_save_LIBS
31222fi
cristy8b350f62009-11-15 23:12:43 +000031223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031224$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031225if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031226 passed=`expr $passed + 1`
31227else
31228 failed=`expr $failed + 1`
31229fi
31230
cristy8b350f62009-11-15 23:12:43 +000031231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031232$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031233if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031234 $as_echo_n "(cached) " >&6
31235else
31236 ac_check_lib_save_LIBS=$LIBS
31237LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031239/* end confdefs.h. */
31240
31241/* Override any GCC internal prototype to avoid an error.
31242 Use char because int might match the return type of a GCC
31243 builtin and then its argument prototype would still apply. */
31244#ifdef __cplusplus
31245extern "C"
31246#endif
31247char TIFFReadRGBATile ();
31248int
31249main ()
31250{
31251return TIFFReadRGBATile ();
31252 ;
31253 return 0;
31254}
31255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031257 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31258else
cristy8b350f62009-11-15 23:12:43 +000031259 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031260fi
cristy8b350f62009-11-15 23:12:43 +000031261rm -f core conftest.err conftest.$ac_objext \
31262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031263LIBS=$ac_check_lib_save_LIBS
31264fi
cristy8b350f62009-11-15 23:12:43 +000031265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031266$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031267if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031268 passed=`expr $passed + 1`
31269else
31270 failed=`expr $failed + 1`
31271fi
31272
cristy8b350f62009-11-15 23:12:43 +000031273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031274$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031275if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031276 $as_echo_n "(cached) " >&6
31277else
31278 ac_check_lib_save_LIBS=$LIBS
31279LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031281/* end confdefs.h. */
31282
31283/* Override any GCC internal prototype to avoid an error.
31284 Use char because int might match the return type of a GCC
31285 builtin and then its argument prototype would still apply. */
31286#ifdef __cplusplus
31287extern "C"
31288#endif
31289char TIFFReadRGBAStrip ();
31290int
31291main ()
31292{
31293return TIFFReadRGBAStrip ();
31294 ;
31295 return 0;
31296}
31297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031299 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31300else
cristy8b350f62009-11-15 23:12:43 +000031301 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031302fi
cristy8b350f62009-11-15 23:12:43 +000031303rm -f core conftest.err conftest.$ac_objext \
31304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031305LIBS=$ac_check_lib_save_LIBS
31306fi
cristy8b350f62009-11-15 23:12:43 +000031307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031308$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031309if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031310 passed=`expr $passed + 1`
31311else
31312 failed=`expr $failed + 1`
31313fi
31314
cristy8b350f62009-11-15 23:12:43 +000031315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031316$as_echo_n "checking if TIFF package is complete... " >&6; }
31317 if test $passed -gt 0; then
31318 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031319 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31320$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031321 have_tiff='no (failed tests)'
31322 else
31323 TIFF_LIBS='-ltiff'
31324 LIBS="$TIFF_LIBS $LIBS"
31325
cristy8b350f62009-11-15 23:12:43 +000031326$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031327
cristy09b53e12011-10-14 12:47:22 +000031328 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31329$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031330 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031331 for ac_header in tiffconf.h
31332do :
31333 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031334if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031335 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031336#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031337_ACEOF
31338
31339fi
31340
31341done
31342
cristy8b350f62009-11-15 23:12:43 +000031343 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031344 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31345 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031346do :
31347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31348ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031349if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031350 cat >>confdefs.h <<_ACEOF
31351#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31352_ACEOF
31353
31354fi
31355done
31356
31357 fi
31358 else
cristy09b53e12011-10-14 12:47:22 +000031359 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31360$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031361 fi
31362fi
cristy73bd4a52010-10-05 11:24:23 +000031363 if test "$have_tiff" = 'yes'; then
31364 TIFF_DELEGATE_TRUE=
31365 TIFF_DELEGATE_FALSE='#'
31366else
31367 TIFF_DELEGATE_TRUE='#'
31368 TIFF_DELEGATE_FALSE=
31369fi
31370
cristy3ed852e2009-09-05 21:47:34 +000031371
31372
31373
31374#
cristyb1860752011-03-14 00:27:46 +000031375# Check for WEBP delegate library.
31376#
31377
31378# Check whether --with-webp was given.
31379if test "${with_webp+set}" = set; then :
31380 withval=$with_webp; with_webp=$withval
31381else
31382 with_webp='yes'
31383fi
31384
31385
31386if test "$with_webp" != 'yes'; then
31387 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31388fi
31389
31390have_webp='no'
31391WEBP_LIBS=''
31392if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031393 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31394$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31396$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031397 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31398$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031399 failed=0
31400 passed=0
31401 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31402if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31403 passed=`expr $passed + 1`
31404else
31405 failed=`expr $failed + 1`
31406fi
31407
31408
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31410$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31411if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31412 $as_echo_n "(cached) " >&6
31413else
31414 ac_check_lib_save_LIBS=$LIBS
31415LIBS="-lwebp $LIBS"
31416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31417/* end confdefs.h. */
31418
31419/* Override any GCC internal prototype to avoid an error.
31420 Use char because int might match the return type of a GCC
31421 builtin and then its argument prototype would still apply. */
31422#ifdef __cplusplus
31423extern "C"
31424#endif
31425char WebPDecodeRGB ();
31426int
31427main ()
31428{
31429return WebPDecodeRGB ();
31430 ;
31431 return 0;
31432}
31433_ACEOF
31434if ac_fn_c_try_link "$LINENO"; then :
31435 ac_cv_lib_webp_WebPDecodeRGB=yes
31436else
31437 ac_cv_lib_webp_WebPDecodeRGB=no
31438fi
31439rm -f core conftest.err conftest.$ac_objext \
31440 conftest$ac_exeext conftest.$ac_ext
31441LIBS=$ac_check_lib_save_LIBS
31442fi
31443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31444$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31445if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31446 passed=`expr $passed + 1`
31447else
31448 failed=`expr $failed + 1`
31449fi
31450
31451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31452$as_echo_n "checking if WEBP package is complete... " >&6; }
31453 if test $passed -gt 0; then
31454 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031455 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31456$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031457 have_webp='no (failed tests)'
31458 else
31459 WEBP_LIBS='-lwebp'
31460 LIBS="$WEBP_LIBS $LIBS"
31461
31462$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31463
cristy09b53e12011-10-14 12:47:22 +000031464 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31465$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031466 have_webp='yes'
31467 fi
31468 else
cristy09b53e12011-10-14 12:47:22 +000031469 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31470$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031471 fi
31472fi
31473 if test "$have_webp" = 'yes'; then
31474 WEBP_DELEGATE_TRUE=
31475 WEBP_DELEGATE_FALSE='#'
31476else
31477 WEBP_DELEGATE_TRUE='#'
31478 WEBP_DELEGATE_FALSE=
31479fi
31480
31481
31482
31483
31484#
cristy3ed852e2009-09-05 21:47:34 +000031485# Set Windows font directory.
31486#
31487
31488# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031489if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031490 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31491else
31492 with_windows_font_dir=''
31493fi
31494
31495if test "$with_windows_font_dir" != '' ; then
31496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31497fi
31498
31499
31500#
31501# Check for WMF delegate library.
31502#
31503
31504# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031505if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031506 withval=$with_wmf; with_wmf=$withval
31507else
cristy8d63d1d2010-01-06 20:38:37 +000031508 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031509fi
31510
31511
31512if test "$with_wmf" != 'yes'; then
31513 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31514fi
31515
31516have_wmf='no'
31517WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031518if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031519 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31520$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031522$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031523 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31524$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031525 failed=0
31526 passed=0
31527 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31528if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31529 passed=`expr $passed + 1`
31530else
31531 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031532fi
31533
31534
glennrp33e524b2011-08-24 17:41:57 +000031535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31536$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31537if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031538 $as_echo_n "(cached) " >&6
31539else
31540 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031541LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031543/* end confdefs.h. */
31544
31545/* Override any GCC internal prototype to avoid an error.
31546 Use char because int might match the return type of a GCC
31547 builtin and then its argument prototype would still apply. */
31548#ifdef __cplusplus
31549extern "C"
31550#endif
glennrp33e524b2011-08-24 17:41:57 +000031551char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031552int
31553main ()
31554{
glennrp33e524b2011-08-24 17:41:57 +000031555return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031556 ;
31557 return 0;
31558}
31559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031560if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031561 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031562else
glennrp33e524b2011-08-24 17:41:57 +000031563 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031564fi
cristy8b350f62009-11-15 23:12:43 +000031565rm -f core conftest.err conftest.$ac_objext \
31566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031567LIBS=$ac_check_lib_save_LIBS
31568fi
glennrp33e524b2011-08-24 17:41:57 +000031569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31570$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31571if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31572 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031573else
glennrp33e524b2011-08-24 17:41:57 +000031574 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031575fi
31576
glennrp33e524b2011-08-24 17:41:57 +000031577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31578$as_echo_n "checking if WMF package is complete... " >&6; }
31579 if test $passed -gt 0; then
31580 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031581 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31582$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031583 have_wmf='no (failed tests)'
31584 else
31585 WMF_LIBS='-lwmf -lwmflite'
31586 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031587
cristy8b350f62009-11-15 23:12:43 +000031588$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031589
cristy09b53e12011-10-14 12:47:22 +000031590 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31591$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031592 have_wmf='yes'
31593 fi
31594 else
cristy09b53e12011-10-14 12:47:22 +000031595 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31596$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031597 fi
cristy3ed852e2009-09-05 21:47:34 +000031598fi
cristy73bd4a52010-10-05 11:24:23 +000031599 if test "$have_wmf" = 'yes'; then
31600 WMF_DELEGATE_TRUE=
31601 WMF_DELEGATE_FALSE='#'
31602else
31603 WMF_DELEGATE_TRUE='#'
31604 WMF_DELEGATE_FALSE=
31605fi
31606
cristy3ed852e2009-09-05 21:47:34 +000031607
31608
31609
cristy81beccd2011-10-03 18:17:24 +000031610
31611
cristy3ed852e2009-09-05 21:47:34 +000031612#
31613# Check for XML delegate library.
31614#
31615
31616# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031617if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031618 withval=$with_xml; with_xml=$withval
31619else
cristy81beccd2011-10-03 18:17:24 +000031620 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031621fi
31622
31623
cristy81beccd2011-10-03 18:17:24 +000031624if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031625 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31626fi
31627
cristy81beccd2011-10-03 18:17:24 +000031628have_xml='no'
31629XML_LIBS=''
31630if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031631 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31632$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31634$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031635 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31636$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031637 PERSIST_LDFLAGS=$LDFLAGS
31638 PERSIST_CPPFLAGS=$CPPFLAGS
31639 xml2_config=''
31640 # Extract the first word of "xml2-config", so it can be a program name with args.
31641set dummy xml2-config; 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; }
31644if ${ac_cv_path_xml2_config+:} false; then :
31645 $as_echo_n "(cached) " >&6
31646else
31647 case $xml2_config in
31648 [\\/]* | ?:[\\/]*)
31649 ac_cv_path_xml2_config="$xml2_config" # 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_xml2_config="$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 ;;
31668esac
31669fi
31670xml2_config=$ac_cv_path_xml2_config
31671if test -n "$xml2_config"; then
31672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31673$as_echo "$xml2_config" >&6; }
31674else
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31676$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031677fi
31678
cristy81beccd2011-10-03 18:17:24 +000031679 if test -n "$xml2_config"; then
31680 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31681 # the shared library installed under /usr/lib, whereas the package
31682 # installs itself under $prefix/libxml and $prefix/lib.
31683 xml2_prefix=`xml2-config --prefix`
31684 if test -d "${xml2_prefix}/include/libxml2"; then
31685 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31686 fi
31687 if test "${xml2_prefix}" != '/usr'; then
31688 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31689 fi
31690 fi
31691 failed=0
31692 passed=0
31693 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31694if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31695 passed=`expr $passed + 1`
31696else
31697 failed=`expr $failed + 1`
31698fi
31699
31700
31701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31702$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31703if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31704 $as_echo_n "(cached) " >&6
31705else
31706 ac_check_lib_save_LIBS=$LIBS
31707LIBS="-lxml2 $LIBS"
31708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31709/* end confdefs.h. */
31710
31711/* Override any GCC internal prototype to avoid an error.
31712 Use char because int might match the return type of a GCC
31713 builtin and then its argument prototype would still apply. */
31714#ifdef __cplusplus
31715extern "C"
31716#endif
31717char xmlSAXVersion ();
31718int
31719main ()
31720{
31721return xmlSAXVersion ();
31722 ;
31723 return 0;
31724}
31725_ACEOF
31726if ac_fn_c_try_link "$LINENO"; then :
31727 ac_cv_lib_xml2_xmlSAXVersion=yes
31728else
31729 ac_cv_lib_xml2_xmlSAXVersion=no
31730fi
31731rm -f core conftest.err conftest.$ac_objext \
31732 conftest$ac_exeext conftest.$ac_ext
31733LIBS=$ac_check_lib_save_LIBS
31734fi
31735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31736$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31737if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31738 passed=`expr $passed + 1`
31739else
31740 failed=`expr $failed + 1`
31741fi
31742
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31744$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31745if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31746 $as_echo_n "(cached) " >&6
31747else
31748 ac_check_lib_save_LIBS=$LIBS
31749LIBS="-lxml2 $LIBS"
31750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31751/* end confdefs.h. */
31752
31753/* Override any GCC internal prototype to avoid an error.
31754 Use char because int might match the return type of a GCC
31755 builtin and then its argument prototype would still apply. */
31756#ifdef __cplusplus
31757extern "C"
31758#endif
31759char xmlParseChunk ();
31760int
31761main ()
31762{
31763return xmlParseChunk ();
31764 ;
31765 return 0;
31766}
31767_ACEOF
31768if ac_fn_c_try_link "$LINENO"; then :
31769 ac_cv_lib_xml2_xmlParseChunk=yes
31770else
31771 ac_cv_lib_xml2_xmlParseChunk=no
31772fi
31773rm -f core conftest.err conftest.$ac_objext \
31774 conftest$ac_exeext conftest.$ac_ext
31775LIBS=$ac_check_lib_save_LIBS
31776fi
31777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31778$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31779if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31780 passed=`expr $passed + 1`
31781else
31782 failed=`expr $failed + 1`
31783fi
31784
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31786$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31787if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31788 $as_echo_n "(cached) " >&6
31789else
31790 ac_check_lib_save_LIBS=$LIBS
31791LIBS="-lxml2 $LIBS"
31792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31793/* end confdefs.h. */
31794
31795/* Override any GCC internal prototype to avoid an error.
31796 Use char because int might match the return type of a GCC
31797 builtin and then its argument prototype would still apply. */
31798#ifdef __cplusplus
31799extern "C"
31800#endif
31801char xmlCreatePushParserCtxt ();
31802int
31803main ()
31804{
31805return xmlCreatePushParserCtxt ();
31806 ;
31807 return 0;
31808}
31809_ACEOF
31810if ac_fn_c_try_link "$LINENO"; then :
31811 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31812else
31813 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31814fi
31815rm -f core conftest.err conftest.$ac_objext \
31816 conftest$ac_exeext conftest.$ac_ext
31817LIBS=$ac_check_lib_save_LIBS
31818fi
31819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31820$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31821if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31822 passed=`expr $passed + 1`
31823else
31824 failed=`expr $failed + 1`
31825fi
31826
31827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31828$as_echo_n "checking if XML package is complete... " >&6; }
31829 if test $passed -gt 0; then
31830 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031831 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31832$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031833 have_xml='no (failed tests)'
31834 LDFLAGS="$PERSIST_LDFLAGS"
31835 CPPFLAGS="$PERSIST_CPPFLAGS"
31836 else
31837 XML_LIBS='-lxml2'
31838 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031839
cristy8b350f62009-11-15 23:12:43 +000031840$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031841
cristy09b53e12011-10-14 12:47:22 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31843$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031844 have_xml='yes'
31845 fi
31846 else
cristy09b53e12011-10-14 12:47:22 +000031847 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31848$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031849 fi
31850fi
cristy73bd4a52010-10-05 11:24:23 +000031851 if test "$have_xml" = 'yes'; then
31852 XML_DELEGATE_TRUE=
31853 XML_DELEGATE_FALSE='#'
31854else
31855 XML_DELEGATE_TRUE='#'
31856 XML_DELEGATE_FALSE=
31857fi
31858
cristy3ed852e2009-09-05 21:47:34 +000031859
31860
31861
31862# Substitute compiler name to build/link PerlMagick
31863#
31864
31865
31866#
31867# Configure install Paths
31868#
31869
31870# Subdirectory under lib to place ImageMagick lib files
31871LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31872
31873cat >>confdefs.h <<_ACEOF
31874#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31875_ACEOF
31876
31877
31878# Path to ImageMagick bin directory
31879EXECUTABLE_PATH="${BIN_DIR}"
31880DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31881case "${build_os}" in
31882 mingw* )
31883 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31884 ;;
31885esac
31886
31887cat >>confdefs.h <<_ACEOF
31888#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31889_ACEOF
31890
31891
31892
31893# Path to ImageMagick lib
31894LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31895DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31896case "${build_os}" in
31897 mingw* )
31898 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31899 ;;
31900esac
31901
31902cat >>confdefs.h <<_ACEOF
31903#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31904_ACEOF
31905
31906
31907
cristy3ed852e2009-09-05 21:47:34 +000031908#
31909# Subdirectory under lib to place ImageMagick coder module files
31910CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31911
31912cat >>confdefs.h <<_ACEOF
31913#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31914_ACEOF
31915
31916CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31917DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31918case "${build_os}" in
31919 mingw* )
31920 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31921 ;;
31922esac
31923
31924cat >>confdefs.h <<_ACEOF
31925#define CODER_PATH "$DEFINE_CODER_PATH"
31926_ACEOF
31927
31928
31929
31930#
31931# Subdirectory under lib to place ImageMagick filter module files
31932FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31933
31934cat >>confdefs.h <<_ACEOF
31935#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31936_ACEOF
31937
31938FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31939DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31940case "${build_os}" in
31941 mingw* )
31942 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31943 ;;
31944esac
31945
31946cat >>confdefs.h <<_ACEOF
31947#define FILTER_PATH "$DEFINE_FILTER_PATH"
31948_ACEOF
31949
31950
31951
31952#
31953# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031954DOCUMENTATION_RELATIVE_PATH=""
31955DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31956DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031957case "${build_os}" in
31958 mingw* )
31959 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31960 ;;
31961esac
31962
31963cat >>confdefs.h <<_ACEOF
31964#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31965_ACEOF
31966
31967
31968
cristy3cf8a722011-03-20 23:32:22 +000031969# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031970CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031971
31972cat >>confdefs.h <<_ACEOF
31973#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31974_ACEOF
31975
31976CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31977DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31978case "${build_os}" in
31979 mingw* )
31980 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31981 ;;
31982esac
31983
31984cat >>confdefs.h <<_ACEOF
31985#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31986_ACEOF
31987
31988
31989
31990# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031991SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031992
31993cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031994#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031995_ACEOF
31996
cristy4f820712011-04-01 12:35:43 +000031997SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31998DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031999case "${build_os}" in
32000 mingw* )
cristy4f820712011-04-01 12:35:43 +000032001 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032002 ;;
32003esac
32004
32005cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032006#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032007_ACEOF
32008
32009
32010
32011#
32012# program_transform_name is formed for use in a Makefile, so create a
32013# modified version for use in a shell script.
32014configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32015
32016# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032017{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32018$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032020$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032021{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32022$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032023AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032024BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032025BZIPDelegateDefault='bzip2'
32026BrowseDelegateDefault='xdg-open'
32027CGMDecodeDelegateDefault='ralcgm'
32028CatDelegateDefault='cat'
32029DNGDecodeDelegateDefault='ufraw-batch'
32030GVCDecodeDelegateDefault='dot'
32031DVIDecodeDelegateDefault='dvips'
32032EchoDelegateDefault='echo'
32033EditorDelegateDefault='xterm'
32034FIGDecodeDelegateDefault='fig2dev'
32035ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32036DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32037MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32038GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032039HPGLDecodeDelegateDefault='hp2xx'
32040HTMLDecodeDelegateDefault='html2ps'
32041ILBMDecodeDelegateDefault='ilbmtoppm'
32042ILBMEncodeDelegateDefault='ppmtoilbm'
32043LPDelegateDefault='lp'
32044LPRDelegateDefault='lpr'
32045LZWDecodeDelegateDefault='uncompress'
32046LZWEncodeDelegateDefault='compress'
32047LaunchDelegateDefault='gimp'
32048MANDelegateDefault='groff'
32049MPEGDecodeDelegateDefault='ffmpeg'
32050MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032051MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032052MVDelegateDefault='mv'
32053PCLDelegateDefault='pcl6'
32054PGPDecodeDelegateDefault='pgpv'
32055POVDelegateDefault='povray'
32056if test "$native_win32_build" = 'yes'; then
32057 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032058elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032059 PSDelegateDefault='gsc'
32060else
32061 PSDelegateDefault='gs'
32062fi
32063RLEEncodeDelegateDefault='rawtorle'
32064RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032065RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032066SCANDecodeDelegateDefault='scanimage'
32067TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032068UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032069WMFDecodeDelegateDefault='wmf2eps'
32070WWWDecodeDelegateDefault='curl'
32071XPSDelegateDefault='gxps'
32072ZipDelegateDefault='gzip'
32073
32074# Search for delegates
32075# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32076set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032079if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032080 $as_echo_n "(cached) " >&6
32081else
32082 case $AutotraceDecodeDelegate in
32083 [\\/]* | ?:[\\/]*)
32084 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32085 ;;
32086 *)
32087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32088for as_dir in $PATH
32089do
32090 IFS=$as_save_IFS
32091 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32094 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096 break 2
32097 fi
32098done
cristy8b350f62009-11-15 23:12:43 +000032099 done
cristy3ed852e2009-09-05 21:47:34 +000032100IFS=$as_save_IFS
32101
32102 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32103 ;;
32104esac
32105fi
32106AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32107if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032109$as_echo "$AutotraceDecodeDelegate" >&6; }
32110else
cristy8b350f62009-11-15 23:12:43 +000032111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032112$as_echo "no" >&6; }
32113fi
32114
32115
cristy3ed852e2009-09-05 21:47:34 +000032116# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32117set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032120if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032121 $as_echo_n "(cached) " >&6
32122else
32123 case $BlenderDecodeDelegate in
32124 [\\/]* | ?:[\\/]*)
32125 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32126 ;;
32127 *)
32128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32129for as_dir in $PATH
32130do
32131 IFS=$as_save_IFS
32132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32135 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032137 break 2
32138 fi
32139done
cristy8b350f62009-11-15 23:12:43 +000032140 done
cristy3ed852e2009-09-05 21:47:34 +000032141IFS=$as_save_IFS
32142
32143 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32144 ;;
32145esac
32146fi
32147BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32148if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150$as_echo "$BlenderDecodeDelegate" >&6; }
32151else
cristy8b350f62009-11-15 23:12:43 +000032152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032153$as_echo "no" >&6; }
32154fi
32155
32156
32157# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32158set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032160$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032161if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032162 $as_echo_n "(cached) " >&6
32163else
32164 case $BZIPDelegate in
32165 [\\/]* | ?:[\\/]*)
32166 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32167 ;;
32168 *)
32169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32170for as_dir in $PATH
32171do
32172 IFS=$as_save_IFS
32173 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32176 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032178 break 2
32179 fi
32180done
cristy8b350f62009-11-15 23:12:43 +000032181 done
cristy3ed852e2009-09-05 21:47:34 +000032182IFS=$as_save_IFS
32183
32184 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32185 ;;
32186esac
32187fi
32188BZIPDelegate=$ac_cv_path_BZIPDelegate
32189if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191$as_echo "$BZIPDelegate" >&6; }
32192else
cristy8b350f62009-11-15 23:12:43 +000032193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032194$as_echo "no" >&6; }
32195fi
32196
32197
32198# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32199set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032201$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032202if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032203 $as_echo_n "(cached) " >&6
32204else
32205 case $BrowseDelegate in
32206 [\\/]* | ?:[\\/]*)
32207 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32208 ;;
32209 *)
32210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32211for as_dir in $PATH
32212do
32213 IFS=$as_save_IFS
32214 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32217 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032219 break 2
32220 fi
32221done
cristy8b350f62009-11-15 23:12:43 +000032222 done
cristy3ed852e2009-09-05 21:47:34 +000032223IFS=$as_save_IFS
32224
32225 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32226 ;;
32227esac
32228fi
32229BrowseDelegate=$ac_cv_path_BrowseDelegate
32230if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032232$as_echo "$BrowseDelegate" >&6; }
32233else
cristy8b350f62009-11-15 23:12:43 +000032234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032235$as_echo "no" >&6; }
32236fi
32237
32238
32239# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32240set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032242$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032243if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032244 $as_echo_n "(cached) " >&6
32245else
32246 case $CGMDecodeDelegate in
32247 [\\/]* | ?:[\\/]*)
32248 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32249 ;;
32250 *)
32251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32252for as_dir in $PATH
32253do
32254 IFS=$as_save_IFS
32255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32258 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032260 break 2
32261 fi
32262done
cristy8b350f62009-11-15 23:12:43 +000032263 done
cristy3ed852e2009-09-05 21:47:34 +000032264IFS=$as_save_IFS
32265
32266 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32267 ;;
32268esac
32269fi
32270CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32271if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032273$as_echo "$CGMDecodeDelegate" >&6; }
32274else
cristy8b350f62009-11-15 23:12:43 +000032275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032276$as_echo "no" >&6; }
32277fi
32278
32279
32280# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32281set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032283$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032284if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032285 $as_echo_n "(cached) " >&6
32286else
32287 case $CatDelegate in
32288 [\\/]* | ?:[\\/]*)
32289 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32290 ;;
32291 *)
32292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32293for as_dir in $PATH
32294do
32295 IFS=$as_save_IFS
32296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32299 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032301 break 2
32302 fi
32303done
cristy8b350f62009-11-15 23:12:43 +000032304 done
cristy3ed852e2009-09-05 21:47:34 +000032305IFS=$as_save_IFS
32306
32307 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32308 ;;
32309esac
32310fi
32311CatDelegate=$ac_cv_path_CatDelegate
32312if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032314$as_echo "$CatDelegate" >&6; }
32315else
cristy8b350f62009-11-15 23:12:43 +000032316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032317$as_echo "no" >&6; }
32318fi
32319
32320
32321# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32322set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032325if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032326 $as_echo_n "(cached) " >&6
32327else
32328 case $DNGDecodeDelegate in
32329 [\\/]* | ?:[\\/]*)
32330 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32331 ;;
32332 *)
32333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32334for as_dir in $PATH
32335do
32336 IFS=$as_save_IFS
32337 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32340 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032342 break 2
32343 fi
32344done
cristy8b350f62009-11-15 23:12:43 +000032345 done
cristy3ed852e2009-09-05 21:47:34 +000032346IFS=$as_save_IFS
32347
32348 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32349 ;;
32350esac
32351fi
32352DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32353if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032355$as_echo "$DNGDecodeDelegate" >&6; }
32356else
cristy8b350f62009-11-15 23:12:43 +000032357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032358$as_echo "no" >&6; }
32359fi
32360
32361
32362# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32363set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032366if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032367 $as_echo_n "(cached) " >&6
32368else
32369 case $GVCDecodeDelegate in
32370 [\\/]* | ?:[\\/]*)
32371 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32372 ;;
32373 *)
32374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32375for as_dir in $PATH
32376do
32377 IFS=$as_save_IFS
32378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32381 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032383 break 2
32384 fi
32385done
cristy8b350f62009-11-15 23:12:43 +000032386 done
cristy3ed852e2009-09-05 21:47:34 +000032387IFS=$as_save_IFS
32388
32389 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32390 ;;
32391esac
32392fi
32393GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32394if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032396$as_echo "$GVCDecodeDelegate" >&6; }
32397else
cristy8b350f62009-11-15 23:12:43 +000032398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032399$as_echo "no" >&6; }
32400fi
32401
32402
32403# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32404set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032407if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032408 $as_echo_n "(cached) " >&6
32409else
32410 case $DVIDecodeDelegate in
32411 [\\/]* | ?:[\\/]*)
32412 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32413 ;;
32414 *)
32415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32416for as_dir in $PATH
32417do
32418 IFS=$as_save_IFS
32419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32422 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032424 break 2
32425 fi
32426done
cristy8b350f62009-11-15 23:12:43 +000032427 done
cristy3ed852e2009-09-05 21:47:34 +000032428IFS=$as_save_IFS
32429
32430 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32431 ;;
32432esac
32433fi
32434DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32435if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032437$as_echo "$DVIDecodeDelegate" >&6; }
32438else
cristy8b350f62009-11-15 23:12:43 +000032439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032440$as_echo "no" >&6; }
32441fi
32442
32443
32444# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32445set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032447$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032448if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032449 $as_echo_n "(cached) " >&6
32450else
32451 case $EchoDelegate in
32452 [\\/]* | ?:[\\/]*)
32453 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32454 ;;
32455 *)
32456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32457for as_dir in $PATH
32458do
32459 IFS=$as_save_IFS
32460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32463 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032465 break 2
32466 fi
32467done
cristy8b350f62009-11-15 23:12:43 +000032468 done
cristy3ed852e2009-09-05 21:47:34 +000032469IFS=$as_save_IFS
32470
32471 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32472 ;;
32473esac
32474fi
32475EchoDelegate=$ac_cv_path_EchoDelegate
32476if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032478$as_echo "$EchoDelegate" >&6; }
32479else
cristy8b350f62009-11-15 23:12:43 +000032480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032481$as_echo "no" >&6; }
32482fi
32483
32484
32485# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32486set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032489if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032490 $as_echo_n "(cached) " >&6
32491else
32492 case $EditorDelegate in
32493 [\\/]* | ?:[\\/]*)
32494 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32495 ;;
32496 *)
32497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32498for as_dir in $PATH
32499do
32500 IFS=$as_save_IFS
32501 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32504 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032506 break 2
32507 fi
32508done
cristy8b350f62009-11-15 23:12:43 +000032509 done
cristy3ed852e2009-09-05 21:47:34 +000032510IFS=$as_save_IFS
32511
32512 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32513 ;;
32514esac
32515fi
32516EditorDelegate=$ac_cv_path_EditorDelegate
32517if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032519$as_echo "$EditorDelegate" >&6; }
32520else
cristy8b350f62009-11-15 23:12:43 +000032521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032522$as_echo "no" >&6; }
32523fi
32524
32525
32526# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32527set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032530if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032531 $as_echo_n "(cached) " >&6
32532else
32533 case $FIGDecodeDelegate in
32534 [\\/]* | ?:[\\/]*)
32535 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32536 ;;
32537 *)
32538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32539for as_dir in $PATH
32540do
32541 IFS=$as_save_IFS
32542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32545 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032547 break 2
32548 fi
32549done
cristy8b350f62009-11-15 23:12:43 +000032550 done
cristy3ed852e2009-09-05 21:47:34 +000032551IFS=$as_save_IFS
32552
32553 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32554 ;;
32555esac
32556fi
32557FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32558if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032560$as_echo "$FIGDecodeDelegate" >&6; }
32561else
cristy8b350f62009-11-15 23:12:43 +000032562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032563$as_echo "no" >&6; }
32564fi
32565
32566
32567# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32568set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032571if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032572 $as_echo_n "(cached) " >&6
32573else
32574 case $ConvertDelegate in
32575 [\\/]* | ?:[\\/]*)
32576 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32577 ;;
32578 *)
32579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32580for as_dir in $PATH
32581do
32582 IFS=$as_save_IFS
32583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32586 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032588 break 2
32589 fi
32590done
cristy8b350f62009-11-15 23:12:43 +000032591 done
cristy3ed852e2009-09-05 21:47:34 +000032592IFS=$as_save_IFS
32593
32594 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32595 ;;
32596esac
32597fi
32598ConvertDelegate=$ac_cv_path_ConvertDelegate
32599if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032601$as_echo "$ConvertDelegate" >&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# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32609set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032611$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032612if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032613 $as_echo_n "(cached) " >&6
32614else
32615 case $DisplayDelegate in
32616 [\\/]* | ?:[\\/]*)
32617 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32618 ;;
32619 *)
32620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32621for as_dir in $PATH
32622do
32623 IFS=$as_save_IFS
32624 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032625 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32627 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032629 break 2
32630 fi
32631done
cristy8b350f62009-11-15 23:12:43 +000032632 done
cristy3ed852e2009-09-05 21:47:34 +000032633IFS=$as_save_IFS
32634
32635 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32636 ;;
32637esac
32638fi
32639DisplayDelegate=$ac_cv_path_DisplayDelegate
32640if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032642$as_echo "$DisplayDelegate" >&6; }
32643else
cristy8b350f62009-11-15 23:12:43 +000032644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032645$as_echo "no" >&6; }
32646fi
32647
32648
32649# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32650set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032653if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032654 $as_echo_n "(cached) " >&6
32655else
32656 case $MogrifyDelegate in
32657 [\\/]* | ?:[\\/]*)
32658 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32659 ;;
32660 *)
32661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32662for as_dir in $PATH
32663do
32664 IFS=$as_save_IFS
32665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32668 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032670 break 2
32671 fi
32672done
cristy8b350f62009-11-15 23:12:43 +000032673 done
cristy3ed852e2009-09-05 21:47:34 +000032674IFS=$as_save_IFS
32675
32676 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32677 ;;
32678esac
32679fi
32680MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32681if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032683$as_echo "$MogrifyDelegate" >&6; }
32684else
cristy8b350f62009-11-15 23:12:43 +000032685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032686$as_echo "no" >&6; }
32687fi
32688
32689
32690# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32691set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032694if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032695 $as_echo_n "(cached) " >&6
32696else
32697 case $GnuplotDecodeDelegate in
32698 [\\/]* | ?:[\\/]*)
32699 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32700 ;;
32701 *)
32702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32703for as_dir in $PATH
32704do
32705 IFS=$as_save_IFS
32706 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032707 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32709 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032711 break 2
32712 fi
32713done
cristy8b350f62009-11-15 23:12:43 +000032714 done
cristy3ed852e2009-09-05 21:47:34 +000032715IFS=$as_save_IFS
32716
32717 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32718 ;;
32719esac
32720fi
32721GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32722if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032724$as_echo "$GnuplotDecodeDelegate" >&6; }
32725else
cristy8b350f62009-11-15 23:12:43 +000032726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032727$as_echo "no" >&6; }
32728fi
32729
32730
cristy3ed852e2009-09-05 21:47:34 +000032731# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32732set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032735if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032736 $as_echo_n "(cached) " >&6
32737else
32738 case $HPGLDecodeDelegate in
32739 [\\/]* | ?:[\\/]*)
32740 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32741 ;;
32742 *)
32743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32744for as_dir in $PATH
32745do
32746 IFS=$as_save_IFS
32747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32750 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032752 break 2
32753 fi
32754done
cristy8b350f62009-11-15 23:12:43 +000032755 done
cristy3ed852e2009-09-05 21:47:34 +000032756IFS=$as_save_IFS
32757
32758 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32759 ;;
32760esac
32761fi
32762HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32763if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032765$as_echo "$HPGLDecodeDelegate" >&6; }
32766else
cristy8b350f62009-11-15 23:12:43 +000032767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032768$as_echo "no" >&6; }
32769fi
32770
32771
32772# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32773set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032776if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032777 $as_echo_n "(cached) " >&6
32778else
32779 case $HTMLDecodeDelegate in
32780 [\\/]* | ?:[\\/]*)
32781 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32782 ;;
32783 *)
32784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32785for as_dir in $PATH
32786do
32787 IFS=$as_save_IFS
32788 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32791 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032793 break 2
32794 fi
32795done
cristy8b350f62009-11-15 23:12:43 +000032796 done
cristy3ed852e2009-09-05 21:47:34 +000032797IFS=$as_save_IFS
32798
32799 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32800 ;;
32801esac
32802fi
32803HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32804if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032806$as_echo "$HTMLDecodeDelegate" >&6; }
32807else
cristy8b350f62009-11-15 23:12:43 +000032808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032809$as_echo "no" >&6; }
32810fi
32811
32812
32813# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32814set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032817if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032818 $as_echo_n "(cached) " >&6
32819else
32820 case $ILBMDecodeDelegate in
32821 [\\/]* | ?:[\\/]*)
32822 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32823 ;;
32824 *)
32825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32826for as_dir in $PATH
32827do
32828 IFS=$as_save_IFS
32829 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32832 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032834 break 2
32835 fi
32836done
cristy8b350f62009-11-15 23:12:43 +000032837 done
cristy3ed852e2009-09-05 21:47:34 +000032838IFS=$as_save_IFS
32839
32840 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32841 ;;
32842esac
32843fi
32844ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32845if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032847$as_echo "$ILBMDecodeDelegate" >&6; }
32848else
cristy8b350f62009-11-15 23:12:43 +000032849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032850$as_echo "no" >&6; }
32851fi
32852
32853
32854# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32855set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032858if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032859 $as_echo_n "(cached) " >&6
32860else
32861 case $ILBMEncodeDelegate in
32862 [\\/]* | ?:[\\/]*)
32863 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32864 ;;
32865 *)
32866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32867for as_dir in $PATH
32868do
32869 IFS=$as_save_IFS
32870 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32873 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032875 break 2
32876 fi
32877done
cristy8b350f62009-11-15 23:12:43 +000032878 done
cristy3ed852e2009-09-05 21:47:34 +000032879IFS=$as_save_IFS
32880
32881 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32882 ;;
32883esac
32884fi
32885ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32886if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032888$as_echo "$ILBMEncodeDelegate" >&6; }
32889else
cristy8b350f62009-11-15 23:12:43 +000032890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032891$as_echo "no" >&6; }
32892fi
32893
32894
32895# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32896set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032899if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032900 $as_echo_n "(cached) " >&6
32901else
32902 case $LPDelegate in
32903 [\\/]* | ?:[\\/]*)
32904 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32905 ;;
32906 *)
32907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32908for as_dir in $PATH
32909do
32910 IFS=$as_save_IFS
32911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32914 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916 break 2
32917 fi
32918done
cristy8b350f62009-11-15 23:12:43 +000032919 done
cristy3ed852e2009-09-05 21:47:34 +000032920IFS=$as_save_IFS
32921
32922 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32923 ;;
32924esac
32925fi
32926LPDelegate=$ac_cv_path_LPDelegate
32927if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929$as_echo "$LPDelegate" >&6; }
32930else
cristy8b350f62009-11-15 23:12:43 +000032931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932$as_echo "no" >&6; }
32933fi
32934
32935
32936# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32937set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032940if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032941 $as_echo_n "(cached) " >&6
32942else
32943 case $LPRDelegate in
32944 [\\/]* | ?:[\\/]*)
32945 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32946 ;;
32947 *)
32948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32949for as_dir in $PATH
32950do
32951 IFS=$as_save_IFS
32952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32955 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957 break 2
32958 fi
32959done
cristy8b350f62009-11-15 23:12:43 +000032960 done
cristy3ed852e2009-09-05 21:47:34 +000032961IFS=$as_save_IFS
32962
32963 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32964 ;;
32965esac
32966fi
32967LPRDelegate=$ac_cv_path_LPRDelegate
32968if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970$as_echo "$LPRDelegate" >&6; }
32971else
cristy8b350f62009-11-15 23:12:43 +000032972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973$as_echo "no" >&6; }
32974fi
32975
32976
32977# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32978set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032981if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032982 $as_echo_n "(cached) " >&6
32983else
32984 case $LZWDecodeDelegate in
32985 [\\/]* | ?:[\\/]*)
32986 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32987 ;;
32988 *)
32989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990for as_dir in $PATH
32991do
32992 IFS=$as_save_IFS
32993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32996 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998 break 2
32999 fi
33000done
cristy8b350f62009-11-15 23:12:43 +000033001 done
cristy3ed852e2009-09-05 21:47:34 +000033002IFS=$as_save_IFS
33003
33004 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33005 ;;
33006esac
33007fi
33008LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33009if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo "$LZWDecodeDelegate" >&6; }
33012else
cristy8b350f62009-11-15 23:12:43 +000033013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014$as_echo "no" >&6; }
33015fi
33016
33017
33018# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33019set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033022if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033023 $as_echo_n "(cached) " >&6
33024else
33025 case $LZWEncodeDelegate in
33026 [\\/]* | ?:[\\/]*)
33027 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33028 ;;
33029 *)
33030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33031for as_dir in $PATH
33032do
33033 IFS=$as_save_IFS
33034 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33037 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039 break 2
33040 fi
33041done
cristy8b350f62009-11-15 23:12:43 +000033042 done
cristy3ed852e2009-09-05 21:47:34 +000033043IFS=$as_save_IFS
33044
33045 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33046 ;;
33047esac
33048fi
33049LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33050if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo "$LZWEncodeDelegate" >&6; }
33053else
cristy8b350f62009-11-15 23:12:43 +000033054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo "no" >&6; }
33056fi
33057
33058
33059# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33060set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033063if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033064 $as_echo_n "(cached) " >&6
33065else
33066 case $LaunchDelegate in
33067 [\\/]* | ?:[\\/]*)
33068 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33069 ;;
33070 *)
33071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33072for as_dir in $PATH
33073do
33074 IFS=$as_save_IFS
33075 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33078 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080 break 2
33081 fi
33082done
cristy8b350f62009-11-15 23:12:43 +000033083 done
cristy3ed852e2009-09-05 21:47:34 +000033084IFS=$as_save_IFS
33085
33086 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33087 ;;
33088esac
33089fi
33090LaunchDelegate=$ac_cv_path_LaunchDelegate
33091if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093$as_echo "$LaunchDelegate" >&6; }
33094else
cristy8b350f62009-11-15 23:12:43 +000033095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo "no" >&6; }
33097fi
33098
33099
33100# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33101set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033104if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033105 $as_echo_n "(cached) " >&6
33106else
33107 case $MANDelegate in
33108 [\\/]* | ?:[\\/]*)
33109 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33110 ;;
33111 *)
33112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33113for as_dir in $PATH
33114do
33115 IFS=$as_save_IFS
33116 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033117 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33119 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121 break 2
33122 fi
33123done
cristy8b350f62009-11-15 23:12:43 +000033124 done
cristy3ed852e2009-09-05 21:47:34 +000033125IFS=$as_save_IFS
33126
33127 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33128 ;;
33129esac
33130fi
33131MANDelegate=$ac_cv_path_MANDelegate
33132if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134$as_echo "$MANDelegate" >&6; }
33135else
cristy8b350f62009-11-15 23:12:43 +000033136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo "no" >&6; }
33138fi
33139
33140
33141# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33142set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033145if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033146 $as_echo_n "(cached) " >&6
33147else
33148 case $MPEGDecodeDelegate in
33149 [\\/]* | ?:[\\/]*)
33150 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33151 ;;
33152 *)
33153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33154for as_dir in $PATH
33155do
33156 IFS=$as_save_IFS
33157 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33160 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162 break 2
33163 fi
33164done
cristy8b350f62009-11-15 23:12:43 +000033165 done
cristy3ed852e2009-09-05 21:47:34 +000033166IFS=$as_save_IFS
33167
33168 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33169 ;;
33170esac
33171fi
33172MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33173if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175$as_echo "$MPEGDecodeDelegate" >&6; }
33176else
cristy8b350f62009-11-15 23:12:43 +000033177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo "no" >&6; }
33179fi
33180
33181
33182# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33183set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033186if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033187 $as_echo_n "(cached) " >&6
33188else
33189 case $MPEGEncodeDelegate in
33190 [\\/]* | ?:[\\/]*)
33191 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33192 ;;
33193 *)
33194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33195for as_dir in $PATH
33196do
33197 IFS=$as_save_IFS
33198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33201 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203 break 2
33204 fi
33205done
cristy8b350f62009-11-15 23:12:43 +000033206 done
cristy3ed852e2009-09-05 21:47:34 +000033207IFS=$as_save_IFS
33208
33209 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33210 ;;
33211esac
33212fi
33213MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33214if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo "$MPEGEncodeDelegate" >&6; }
33217else
cristy8b350f62009-11-15 23:12:43 +000033218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo "no" >&6; }
33220fi
33221
33222
cristy935c86e2010-06-05 23:50:07 +000033223# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33224set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033227if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033228 $as_echo_n "(cached) " >&6
33229else
33230 case $MrSIDDecodeDelegate in
33231 [\\/]* | ?:[\\/]*)
33232 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33233 ;;
33234 *)
33235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33236for as_dir in $PATH
33237do
33238 IFS=$as_save_IFS
33239 test -z "$as_dir" && as_dir=.
33240 for ac_exec_ext in '' $ac_executable_extensions; do
33241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33242 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33244 break 2
33245 fi
33246done
33247 done
33248IFS=$as_save_IFS
33249
33250 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33251 ;;
33252esac
33253fi
33254MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33255if test -n "$MrSIDDecodeDelegate"; then
33256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33257$as_echo "$MrSIDDecodeDelegate" >&6; }
33258else
33259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33260$as_echo "no" >&6; }
33261fi
33262
33263
cristy3ed852e2009-09-05 21:47:34 +000033264# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33265set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033268if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033269 $as_echo_n "(cached) " >&6
33270else
33271 case $MVDelegate in
33272 [\\/]* | ?:[\\/]*)
33273 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33274 ;;
33275 *)
33276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33277for as_dir in $PATH
33278do
33279 IFS=$as_save_IFS
33280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33283 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285 break 2
33286 fi
33287done
cristy8b350f62009-11-15 23:12:43 +000033288 done
cristy3ed852e2009-09-05 21:47:34 +000033289IFS=$as_save_IFS
33290
33291 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33292 ;;
33293esac
33294fi
33295MVDelegate=$ac_cv_path_MVDelegate
33296if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "$MVDelegate" >&6; }
33299else
cristy8b350f62009-11-15 23:12:43 +000033300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301$as_echo "no" >&6; }
33302fi
33303
33304
33305# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33306set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033309if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033310 $as_echo_n "(cached) " >&6
33311else
33312 case $PCLDelegate in
33313 [\\/]* | ?:[\\/]*)
33314 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33315 ;;
33316 *)
33317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33318for as_dir in $PATH
33319do
33320 IFS=$as_save_IFS
33321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33324 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326 break 2
33327 fi
33328done
cristy8b350f62009-11-15 23:12:43 +000033329 done
cristy3ed852e2009-09-05 21:47:34 +000033330IFS=$as_save_IFS
33331
33332 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33333 ;;
33334esac
33335fi
33336PCLDelegate=$ac_cv_path_PCLDelegate
33337if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "$PCLDelegate" >&6; }
33340else
cristy8b350f62009-11-15 23:12:43 +000033341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo "no" >&6; }
33343fi
33344
33345
33346# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33347set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033350if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033351 $as_echo_n "(cached) " >&6
33352else
33353 case $PGPDecodeDelegate in
33354 [\\/]* | ?:[\\/]*)
33355 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33356 ;;
33357 *)
33358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33359for as_dir in $PATH
33360do
33361 IFS=$as_save_IFS
33362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33365 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367 break 2
33368 fi
33369done
cristy8b350f62009-11-15 23:12:43 +000033370 done
cristy3ed852e2009-09-05 21:47:34 +000033371IFS=$as_save_IFS
33372
33373 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33374 ;;
33375esac
33376fi
33377PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33378if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo "$PGPDecodeDelegate" >&6; }
33381else
cristy8b350f62009-11-15 23:12:43 +000033382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383$as_echo "no" >&6; }
33384fi
33385
33386
33387# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33388set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033391if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033392 $as_echo_n "(cached) " >&6
33393else
33394 case $POVDelegate in
33395 [\\/]* | ?:[\\/]*)
33396 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33397 ;;
33398 *)
33399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33400for as_dir in $PATH
33401do
33402 IFS=$as_save_IFS
33403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33406 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408 break 2
33409 fi
33410done
cristy8b350f62009-11-15 23:12:43 +000033411 done
cristy3ed852e2009-09-05 21:47:34 +000033412IFS=$as_save_IFS
33413
33414 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33415 ;;
33416esac
33417fi
33418POVDelegate=$ac_cv_path_POVDelegate
33419if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "$POVDelegate" >&6; }
33422else
cristy8b350f62009-11-15 23:12:43 +000033423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo "no" >&6; }
33425fi
33426
33427
33428for ac_prog in gsx gsc "$PSDelegateDefault"
33429do
33430 # Extract the first word of "$ac_prog", so it can be a program name with args.
33431set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033434if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033435 $as_echo_n "(cached) " >&6
33436else
33437 case $PSDelegate in
33438 [\\/]* | ?:[\\/]*)
33439 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33440 ;;
33441 *)
33442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33443for as_dir in $PATH
33444do
33445 IFS=$as_save_IFS
33446 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33449 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033451 break 2
33452 fi
33453done
cristy8b350f62009-11-15 23:12:43 +000033454 done
cristy3ed852e2009-09-05 21:47:34 +000033455IFS=$as_save_IFS
33456
33457 ;;
33458esac
33459fi
33460PSDelegate=$ac_cv_path_PSDelegate
33461if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463$as_echo "$PSDelegate" >&6; }
33464else
cristy8b350f62009-11-15 23:12:43 +000033465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033466$as_echo "no" >&6; }
33467fi
33468
33469
33470 test -n "$PSDelegate" && break
33471done
33472test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33473
33474# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33475set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033478if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033479 $as_echo_n "(cached) " >&6
33480else
33481 case $RLEEncodeDelegate in
33482 [\\/]* | ?:[\\/]*)
33483 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33484 ;;
33485 *)
33486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33487for as_dir in $PATH
33488do
33489 IFS=$as_save_IFS
33490 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33493 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495 break 2
33496 fi
33497done
cristy8b350f62009-11-15 23:12:43 +000033498 done
cristy3ed852e2009-09-05 21:47:34 +000033499IFS=$as_save_IFS
33500
33501 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33502 ;;
33503esac
33504fi
33505RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33506if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033508$as_echo "$RLEEncodeDelegate" >&6; }
33509else
cristy8b350f62009-11-15 23:12:43 +000033510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033511$as_echo "no" >&6; }
33512fi
33513
33514
33515# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33516set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033519if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033520 $as_echo_n "(cached) " >&6
33521else
33522 case $RMDelegate in
33523 [\\/]* | ?:[\\/]*)
33524 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33525 ;;
33526 *)
33527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33528for as_dir in $PATH
33529do
33530 IFS=$as_save_IFS
33531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33534 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033536 break 2
33537 fi
33538done
cristy8b350f62009-11-15 23:12:43 +000033539 done
cristy3ed852e2009-09-05 21:47:34 +000033540IFS=$as_save_IFS
33541
33542 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33543 ;;
33544esac
33545fi
33546RMDelegate=$ac_cv_path_RMDelegate
33547if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033549$as_echo "$RMDelegate" >&6; }
33550else
cristy8b350f62009-11-15 23:12:43 +000033551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033552$as_echo "no" >&6; }
33553fi
33554
33555
cristy4689cf02010-02-17 21:15:45 +000033556# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33557set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33559$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033560if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033561 $as_echo_n "(cached) " >&6
33562else
33563 case $RSVGDecodeDelegate in
33564 [\\/]* | ?:[\\/]*)
33565 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33566 ;;
33567 *)
33568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33569for as_dir in $PATH
33570do
33571 IFS=$as_save_IFS
33572 test -z "$as_dir" && as_dir=.
33573 for ac_exec_ext in '' $ac_executable_extensions; do
33574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33575 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33577 break 2
33578 fi
33579done
33580 done
33581IFS=$as_save_IFS
33582
33583 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33584 ;;
33585esac
33586fi
33587RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33588if test -n "$RSVGDecodeDelegate"; then
33589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33590$as_echo "$RSVGDecodeDelegate" >&6; }
33591else
33592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33593$as_echo "no" >&6; }
33594fi
33595
33596
cristy3ed852e2009-09-05 21:47:34 +000033597# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33598set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033601if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033602 $as_echo_n "(cached) " >&6
33603else
33604 case $SCANDecodeDelegate in
33605 [\\/]* | ?:[\\/]*)
33606 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33607 ;;
33608 *)
33609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33610for as_dir in $PATH
33611do
33612 IFS=$as_save_IFS
33613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33616 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618 break 2
33619 fi
33620done
cristy8b350f62009-11-15 23:12:43 +000033621 done
cristy3ed852e2009-09-05 21:47:34 +000033622IFS=$as_save_IFS
33623
33624 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33625 ;;
33626esac
33627fi
33628SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33629if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033631$as_echo "$SCANDecodeDelegate" >&6; }
33632else
cristy8b350f62009-11-15 23:12:43 +000033633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033634$as_echo "no" >&6; }
33635fi
33636
33637
33638# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33639set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033642if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033643 $as_echo_n "(cached) " >&6
33644else
33645 case $TXTDelegate in
33646 [\\/]* | ?:[\\/]*)
33647 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33648 ;;
33649 *)
33650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33651for as_dir in $PATH
33652do
33653 IFS=$as_save_IFS
33654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33657 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659 break 2
33660 fi
33661done
cristy8b350f62009-11-15 23:12:43 +000033662 done
cristy3ed852e2009-09-05 21:47:34 +000033663IFS=$as_save_IFS
33664
33665 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33666 ;;
33667esac
33668fi
33669TXTDelegate=$ac_cv_path_TXTDelegate
33670if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672$as_echo "$TXTDelegate" >&6; }
33673else
cristy8b350f62009-11-15 23:12:43 +000033674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033675$as_echo "no" >&6; }
33676fi
33677
33678
cristy5ac9ac82010-07-29 13:24:24 +000033679# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33680set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033683if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033684 $as_echo_n "(cached) " >&6
33685else
33686 case $UniconvertorDelegate in
33687 [\\/]* | ?:[\\/]*)
33688 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33689 ;;
33690 *)
33691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33692for as_dir in $PATH
33693do
33694 IFS=$as_save_IFS
33695 test -z "$as_dir" && as_dir=.
33696 for ac_exec_ext in '' $ac_executable_extensions; do
33697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33698 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33700 break 2
33701 fi
33702done
33703 done
33704IFS=$as_save_IFS
33705
33706 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33707 ;;
33708esac
33709fi
33710UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33711if test -n "$UniconvertorDelegate"; then
33712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33713$as_echo "$UniconvertorDelegate" >&6; }
33714else
33715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33716$as_echo "no" >&6; }
33717fi
33718
33719
cristy3ed852e2009-09-05 21:47:34 +000033720# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33721set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033724if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033725 $as_echo_n "(cached) " >&6
33726else
33727 case $WMFDecodeDelegate in
33728 [\\/]* | ?:[\\/]*)
33729 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33730 ;;
33731 *)
33732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33733for as_dir in $PATH
33734do
33735 IFS=$as_save_IFS
33736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33739 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741 break 2
33742 fi
33743done
cristy8b350f62009-11-15 23:12:43 +000033744 done
cristy3ed852e2009-09-05 21:47:34 +000033745IFS=$as_save_IFS
33746
33747 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33748 ;;
33749esac
33750fi
33751WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33752if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033754$as_echo "$WMFDecodeDelegate" >&6; }
33755else
cristy8b350f62009-11-15 23:12:43 +000033756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033757$as_echo "no" >&6; }
33758fi
33759
33760
33761# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33762set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033765if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033766 $as_echo_n "(cached) " >&6
33767else
33768 case $WWWDecodeDelegate in
33769 [\\/]* | ?:[\\/]*)
33770 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33771 ;;
33772 *)
33773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33774for as_dir in $PATH
33775do
33776 IFS=$as_save_IFS
33777 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33780 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782 break 2
33783 fi
33784done
cristy8b350f62009-11-15 23:12:43 +000033785 done
cristy3ed852e2009-09-05 21:47:34 +000033786IFS=$as_save_IFS
33787
33788 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33789 ;;
33790esac
33791fi
33792WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33793if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033795$as_echo "$WWWDecodeDelegate" >&6; }
33796else
cristy8b350f62009-11-15 23:12:43 +000033797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033798$as_echo "no" >&6; }
33799fi
33800
33801
33802# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33803set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033806if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033807 $as_echo_n "(cached) " >&6
33808else
33809 case $XPSDelegate in
33810 [\\/]* | ?:[\\/]*)
33811 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33812 ;;
33813 *)
33814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33815for as_dir in $PATH
33816do
33817 IFS=$as_save_IFS
33818 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33821 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033823 break 2
33824 fi
33825done
cristy8b350f62009-11-15 23:12:43 +000033826 done
cristy3ed852e2009-09-05 21:47:34 +000033827IFS=$as_save_IFS
33828
33829 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33830 ;;
33831esac
33832fi
33833XPSDelegate=$ac_cv_path_XPSDelegate
33834if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836$as_echo "$XPSDelegate" >&6; }
33837else
cristy8b350f62009-11-15 23:12:43 +000033838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033839$as_echo "no" >&6; }
33840fi
33841
33842
33843# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33844set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033847if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033848 $as_echo_n "(cached) " >&6
33849else
33850 case $ZipDelegate in
33851 [\\/]* | ?:[\\/]*)
33852 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33853 ;;
33854 *)
33855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33856for as_dir in $PATH
33857do
33858 IFS=$as_save_IFS
33859 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33862 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864 break 2
33865 fi
33866done
cristy8b350f62009-11-15 23:12:43 +000033867 done
cristy3ed852e2009-09-05 21:47:34 +000033868IFS=$as_save_IFS
33869
33870 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33871 ;;
33872esac
33873fi
33874ZipDelegate=$ac_cv_path_ZipDelegate
33875if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877$as_echo "$ZipDelegate" >&6; }
33878else
cristy8b350f62009-11-15 23:12:43 +000033879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033880$as_echo "no" >&6; }
33881fi
33882
33883
33884
33885# Prefer lpr to lp; lp needs options tacked on.
33886if test "$LPRDelegate" != no; then
33887 PrintDelegate="$LPRDelegate"
33888else
33889 PrintDelegate="$LPDelegate -c -s"
33890fi
33891
33892
33893# Installed ImageMagick utiltity paths
33894ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33895DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33896MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33897
33898# Set delegate booleans
33899have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33900have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33901have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33902have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33903have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033904have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033905have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33906have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033907have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33908have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33909
33910#
33911# Test for font directories
33912#
33913type_include_files=''
33914
cristy430a7312010-01-21 20:44:04 +000033915# Dejavu fonts.
33916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33917$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33918dejavu_font_dir=''
33919if test "${with_dejavu_font_dir}" != 'default'; then
33920 dejavu_font_dir="${with_dejavu_font_dir}/"
33921else
33922 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33923 if test -f "${font_dir}DejaVuSerif.ttf"; then
33924 dejavu_font_dir="${font_dir}"
33925 break 1
33926 fi
33927 done
33928fi
33929if test "${dejavu_font_dir}x" != 'x'; then
33930 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033931 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33932$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033933else
cristy09b53e12011-10-14 12:47:22 +000033934 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33935$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033936fi
33937
33938
cristy3ed852e2009-09-05 21:47:34 +000033939# Windows
33940windows_font_dir=''
33941if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33942 windows_font_dir="${with_windows_font_dir}/"
33943fi
cristy430a7312010-01-21 20:44:04 +000033944if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033945 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33946 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33947 fi
33948 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33949 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33950 fi
33951 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33952 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33953 fi
33954fi
cristy430a7312010-01-21 20:44:04 +000033955if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033956 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33957fi
33958
33959
33960# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033962$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33963ghostscript_font_dir=''
33964if test "${with_gs_font_dir}" != 'default'; then
33965 ghostscript_font_dir="${with_gs_font_dir}/"
33966else
33967 if test "${native_win32_build}" = 'yes'; then
33968 # Native Windows Build
33969 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33970 if test -f "${font_dir}a010013l.pfb"; then
33971 ghostscript_font_dir="$font_dir"
33972 break 1
33973 fi
33974 done
33975 if test "${PSDelegate}" != 'gswin32c'; then
33976 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33977 fi
33978 else
33979 # Linux / Mac OS X / Unix Build
33980 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
33981 if test -f "${font_dir}a010013l.pfb"; then
33982 ghostscript_font_dir="${font_dir}"
33983 break 1
33984 fi
33985 done
33986 if test "${ghostscript_font_dir}x" = 'x'; then
33987 if test "$PSDelegate" != 'gs'; then
33988 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33989 fi
33990 fi
33991 fi
33992fi
33993if test "${ghostscript_font_dir}x" != 'x'; then
33994 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033995 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
33996$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000033997else
cristy09b53e12011-10-14 12:47:22 +000033998 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33999$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034000fi
34001
34002case "${build_os}" in
34003 mingw* )
34004 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34005 ;;
34006esac
34007
34008
34009
34010#
34011# Handle case where user doesn't want frozen paths
34012#
34013if test "$with_frozenpaths" != 'yes'; then
34014 # Re-set delegate definitions to default (no paths)
34015 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034016 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34017 BZIPDelegate="$BZIPDelegateDefault"
34018 BrowseDelegate="$BrowseDelegateDefault"
34019 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34020 CatDelegate="$CatDelegateDefault"
34021 ConvertDelegate="$ConvertDelegateDefault"
34022 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34023 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34024 EchoDelegate="$EchoDelegateDefault"
34025 EditorDelegate="$EditorDelegateDefault"
34026 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34027 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34028 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34029 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34030 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34031 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34032 LPDelegate="$LPDelegateDefault"
34033 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34034 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34035 LaunchDelegate="$LaunchDelegateDefault"
34036 MANDelegate="$MANDelegateDefault"
34037 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34038 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034039 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034040 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34041 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034042 PCLDelegate="$PCLDelegateDefault"
34043 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34044 POVDelegate="$POVDelegateDefault"
34045 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034046 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34047 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034048 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034049 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34050 ShowImageDelegate="$ShowImageDelegateDefault"
34051 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034052 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034053 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34054 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34055 XPSDelegate="$XPSDelegateDefault"
34056 ZipDelegate="$ZipDelegateDefault"
34057fi
34058
34059# Delegate substitutions
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102#
34103# RPM support.
34104#
34105RPM=''
34106for ac_prog in gnutar gtar tar
34107do
34108 # Extract the first word of "$ac_prog", so it can be a program name with args.
34109set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034112if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034113 $as_echo_n "(cached) " >&6
34114else
34115 if test -n "$TAR"; then
34116 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34117else
34118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34119for as_dir in $PATH
34120do
34121 IFS=$as_save_IFS
34122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34125 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034127 break 2
34128 fi
34129done
cristy8b350f62009-11-15 23:12:43 +000034130 done
cristy3ed852e2009-09-05 21:47:34 +000034131IFS=$as_save_IFS
34132
34133fi
34134fi
34135TAR=$ac_cv_prog_TAR
34136if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034138$as_echo "$TAR" >&6; }
34139else
cristy8b350f62009-11-15 23:12:43 +000034140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034141$as_echo "no" >&6; }
34142fi
34143
34144
34145 test -n "$TAR" && break
34146done
34147
34148for ac_prog in perl
34149do
34150 # Extract the first word of "$ac_prog", so it can be a program name with args.
34151set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034154if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034155 $as_echo_n "(cached) " >&6
34156else
34157 if test -n "$PERL"; then
34158 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34159else
34160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34161for as_dir in $PATH
34162do
34163 IFS=$as_save_IFS
34164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34167 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034169 break 2
34170 fi
34171done
cristy8b350f62009-11-15 23:12:43 +000034172 done
cristy3ed852e2009-09-05 21:47:34 +000034173IFS=$as_save_IFS
34174
34175fi
34176fi
34177PERL=$ac_cv_prog_PERL
34178if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034180$as_echo "$PERL" >&6; }
34181else
cristy8b350f62009-11-15 23:12:43 +000034182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo "no" >&6; }
34184fi
34185
34186
34187 test -n "$PERL" && break
34188done
34189
34190for ac_prog in rpmbuild rpm
34191do
34192 # Extract the first word of "$ac_prog", so it can be a program name with args.
34193set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034196if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034197 $as_echo_n "(cached) " >&6
34198else
34199 if test -n "$RPM"; then
34200 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34201else
34202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34203for as_dir in $PATH
34204do
34205 IFS=$as_save_IFS
34206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34209 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211 break 2
34212 fi
34213done
cristy8b350f62009-11-15 23:12:43 +000034214 done
cristy3ed852e2009-09-05 21:47:34 +000034215IFS=$as_save_IFS
34216
34217fi
34218fi
34219RPM=$ac_cv_prog_RPM
34220if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034222$as_echo "$RPM" >&6; }
34223else
cristy8b350f62009-11-15 23:12:43 +000034224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034225$as_echo "no" >&6; }
34226fi
34227
34228
34229 test -n "$RPM" && break
34230done
34231
34232
cristy73bd4a52010-10-05 11:24:23 +000034233ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34234
34235
34236AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34237
34238
34239AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34240
34241
34242AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34243
34244
34245 if test "x$RPM" != "x" ; then
34246 RPM_DELEGATE_TRUE=
34247 RPM_DELEGATE_FALSE='#'
34248else
34249 RPM_DELEGATE_TRUE='#'
34250 RPM_DELEGATE_FALSE=
34251fi
34252
cristy3ed852e2009-09-05 21:47:34 +000034253
34254#
34255# 7ZIP support (http://p7zip.sourceforge.net/)
34256#
34257P7ZIP=''
34258for ac_prog in 7za
34259do
34260 # Extract the first word of "$ac_prog", so it can be a program name with args.
34261set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034263$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034264if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034265 $as_echo_n "(cached) " >&6
34266else
34267 if test -n "$P7ZIP"; then
34268 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34269else
34270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34271for as_dir in $PATH
34272do
34273 IFS=$as_save_IFS
34274 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34277 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034279 break 2
34280 fi
34281done
cristy8b350f62009-11-15 23:12:43 +000034282 done
cristy3ed852e2009-09-05 21:47:34 +000034283IFS=$as_save_IFS
34284
34285fi
34286fi
34287P7ZIP=$ac_cv_prog_P7ZIP
34288if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo "$P7ZIP" >&6; }
34291else
cristy8b350f62009-11-15 23:12:43 +000034292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034293$as_echo "no" >&6; }
34294fi
34295
34296
34297 test -n "$P7ZIP" && break
34298done
34299
34300
cristy73bd4a52010-10-05 11:24:23 +000034301 if test "x$P7ZIP" != "x" ; then
34302 P7ZIP_DELEGATE_TRUE=
34303 P7ZIP_DELEGATE_FALSE='#'
34304else
34305 P7ZIP_DELEGATE_TRUE='#'
34306 P7ZIP_DELEGATE_FALSE=
34307fi
34308
cristy3ed852e2009-09-05 21:47:34 +000034309
34310#
34311# ZIP support (http://www.info-zip.org/Zip.html)
34312#
34313ZIP=''
34314for ac_prog in zip
34315do
34316 # Extract the first word of "$ac_prog", so it can be a program name with args.
34317set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034320if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034321 $as_echo_n "(cached) " >&6
34322else
34323 if test -n "$ZIP"; then
34324 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34325else
34326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34327for as_dir in $PATH
34328do
34329 IFS=$as_save_IFS
34330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34333 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034335 break 2
34336 fi
34337done
cristy8b350f62009-11-15 23:12:43 +000034338 done
cristy3ed852e2009-09-05 21:47:34 +000034339IFS=$as_save_IFS
34340
34341fi
34342fi
34343ZIP=$ac_cv_prog_ZIP
34344if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034346$as_echo "$ZIP" >&6; }
34347else
cristy8b350f62009-11-15 23:12:43 +000034348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034349$as_echo "no" >&6; }
34350fi
34351
34352
34353 test -n "$ZIP" && break
34354done
34355
34356
cristy73bd4a52010-10-05 11:24:23 +000034357 if test "x$ZIP" != "x" ; then
34358 ZIP_DELEGATE_TRUE=
34359 ZIP_DELEGATE_FALSE='#'
34360else
34361 ZIP_DELEGATE_TRUE='#'
34362 ZIP_DELEGATE_FALSE=
34363fi
34364
cristy3ed852e2009-09-05 21:47:34 +000034365
34366#
34367# GhostPCL related configuration.
34368#
34369PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034370PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034371PCLMonoDevice=pbmraw
34372if test -z "$PCLVersion"; then
34373 PCLVersion='unknown'
34374fi
34375if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034376 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34377$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034380 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34381$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034382 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034384$as_echo_n "checking for pcl color device... " >&6; }
34385 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34386 :
34387 else
34388 PCLColorDevice=ppmraw
34389 fi
cristy09b53e12011-10-14 12:47:22 +000034390 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34391$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034392
34393 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034395$as_echo_n "checking for pcl CMYK device... " >&6; }
34396 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34397 :
34398 else
34399 PCLCMYKDevice=$PCLColorDevice
34400 fi
cristy09b53e12011-10-14 12:47:22 +000034401 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34402$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034403
34404 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034406$as_echo_n "checking for pcl mono device... " >&6; }
34407 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34408 :
34409 else
34410 PCLMonoDevice=$PCLColorDevice
34411 fi
cristy09b53e12011-10-14 12:47:22 +000034412 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34413$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034414fi
34415
34416
34417
34418
34419
34420
34421#
34422# GhostXPS related configuration.
34423#
34424XPSColorDevice=ppmraw
34425XPSCMYKDevice=bmpsep8
34426XPSMonoDevice=pbmraw
34427if test -z "$XPSVersion"; then
34428 XPSVersion='unknown'
34429fi
34430if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034431 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34432$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034434$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034435 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34436$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034437 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034439$as_echo_n "checking for xps color device... " >&6; }
34440 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34441 :
34442 else
34443 XPSColorDevice=ppmraw
34444 fi
cristy09b53e12011-10-14 12:47:22 +000034445 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34446$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034447
34448 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034450$as_echo_n "checking for xps CMYK device... " >&6; }
34451 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34452 :
34453 else
34454 XPSCMYKDevice=$XPSColorDevice
34455 fi
cristy09b53e12011-10-14 12:47:22 +000034456 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34457$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034458
34459 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034461$as_echo_n "checking for xps mono device... " >&6; }
34462 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34463 :
34464 else
34465 XPSMonoDevice=$XPSColorDevice
34466 fi
cristy09b53e12011-10-14 12:47:22 +000034467 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34468$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034469fi
34470
34471
34472
34473
34474
34475
34476#
34477# Ghostscript related configuration.
34478#
cristya97426c2011-02-04 01:41:27 +000034479GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034480GSColorDevice=pnmraw
34481GSCMYKDevice=pam
34482GSMonoDevice=pbmraw
34483GSPDFDevice=pdfwrite
34484GSPSDevice=pswrite
34485GSEPSDevice=epswrite
34486GSVersion='unknown'
34487if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034488 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34489$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034491$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034492 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34493$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034495$as_echo_n "checking for Ghostscript version... " >&6; }
34496 if GSVersion=`$PSDelegate --version`; then
34497 :
34498 else
34499 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34500 fi
cristy09b53e12011-10-14 12:47:22 +000034501 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34502$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034503
34504 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506$as_echo_n "checking for gs alpha device... " >&6; }
34507 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34508 :
34509 else
34510 GSAlphaDevice=pnmraw
34511 fi
cristy09b53e12011-10-14 12:47:22 +000034512 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34513$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034514
34515 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034517$as_echo_n "checking for gs color device... " >&6; }
34518 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34519 :
34520 else
34521 GSColorDevice=pnmraw
34522 fi
cristy09b53e12011-10-14 12:47:22 +000034523 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34524$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034525
34526 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034528$as_echo_n "checking for gs CMYK device... " >&6; }
34529 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34530 :
34531 else
34532 GSCMYKDevice=bmpsep8
34533 fi
cristy09b53e12011-10-14 12:47:22 +000034534 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34535$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034536
34537 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034539$as_echo_n "checking for gs mono device... " >&6; }
34540 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34541 :
34542 else
34543 GSMonoDevice=$GSColorDevice
34544 fi
cristy09b53e12011-10-14 12:47:22 +000034545 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34546$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034547
34548 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034550$as_echo_n "checking for gs PDF writing device... " >&6; }
34551 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34552 :
34553 else
34554 GSPDFDevice=nodevice
34555 fi
cristy09b53e12011-10-14 12:47:22 +000034556 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34557$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034558
34559 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561$as_echo_n "checking for gs PS writing device... " >&6; }
34562 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34563 :
34564 else
34565 GSPSDevice=nodevice
34566 fi
cristy09b53e12011-10-14 12:47:22 +000034567 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34568$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034569
34570 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034572$as_echo_n "checking for gs EPS writing device... " >&6; }
34573 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34574 :
34575 else
34576 GSEPSDevice=nodevice
34577 fi
cristy09b53e12011-10-14 12:47:22 +000034578 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34579$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034580fi
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591#
34592# PerlMagick-related configuration
34593#
34594
34595# Look for PERL if PerlMagick requested
34596# If name/path of desired PERL interpreter is specified, look for that one first
34597have_perl='no'
34598if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034599 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34600$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034603 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34604$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034605 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034607$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034608if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034609 $as_echo_n "(cached) " >&6
34610else
34611 ac_cv_path_PERL="$with_perl"
34612fi
cristy8b350f62009-11-15 23:12:43 +000034613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034614$as_echo "$ac_cv_path_PERL" >&6; };
34615 PERL=$ac_cv_path_PERL
34616 have_perl="$ac_cv_path_PERL"
34617 else
34618 for ac_prog in perl perl5
34619do
34620 # Extract the first word of "$ac_prog", so it can be a program name with args.
34621set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034624if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034625 $as_echo_n "(cached) " >&6
34626else
34627 case $PERL in
34628 [\\/]* | ?:[\\/]*)
34629 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34630 ;;
34631 *)
34632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34633for as_dir in $PATH
34634do
34635 IFS=$as_save_IFS
34636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34639 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034641 break 2
34642 fi
34643done
cristy8b350f62009-11-15 23:12:43 +000034644 done
cristy3ed852e2009-09-05 21:47:34 +000034645IFS=$as_save_IFS
34646
34647 ;;
34648esac
34649fi
34650PERL=$ac_cv_path_PERL
34651if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034653$as_echo "$PERL" >&6; }
34654else
cristy8b350f62009-11-15 23:12:43 +000034655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo "no" >&6; }
34657fi
34658
34659
34660 test -n "$PERL" && break
34661done
34662 if test "$ac_cv_path_PERL"; then
34663 have_perl="$ac_cv_path_PERL"
34664 fi
34665 fi
34666fi
34667
cristy949301e2010-01-06 01:38:40 +000034668if test "$with_perl" != 'yes' ; then
34669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34670fi
34671
34672PERL_SUPPORTS_DESTDIR='no'
34673
cristy3ed852e2009-09-05 21:47:34 +000034674with_perl_static='no'
34675with_perl_dynamic='no'
34676if test "$have_perl" != 'no'; then
34677 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34678 with_perl_static='yes'
34679 fi
34680 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34681 with_perl_dynamic='yes'
34682 fi
34683 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034684
34685
34686
34687
34688 if test -n "$PERL"; then :
34689
34690 ax_perl_version="5.8.1"
34691
34692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34693$as_echo_n "checking for perl version... " >&6; }
34694
34695 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34696
34697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34698$as_echo "$perl_version" >&6; }
34699
34700 PERL_VERSION=$perl_version
34701
34702
34703
34704
34705
34706 # Used to indicate true or false condition
34707 ax_compare_version=false
34708
34709 # Convert the two version strings to be compared into a format that
34710 # allows a simple string comparison. The end result is that a version
34711 # string of the form 1.12.5-r617 will be converted to the form
34712 # 0001001200050617. In other words, each number is zero padded to four
34713 # digits, and non digits are removed.
34714
34715 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34716 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34717 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34718 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34719 -e 's/[^0-9]//g'`
34720
34721
34722 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34723 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34724 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34725 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34726 -e 's/[^0-9]//g'`
34727
34728
34729 ax_compare_version=`echo "x$ax_compare_version_A
34730x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34731
34732
34733
34734 if test "$ax_compare_version" = "true" ; then
34735
34736 :
34737 PERL_SUPPORTS_DESTDIR='yes'
34738
34739 else
34740 :
34741 PERL_SUPPORTS_DESTDIR='no'
34742
34743 fi
34744
34745
34746else
34747
34748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34749$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34750 PERL_SUPPORTS_DESTDIR='no'
34751
cristy3ed852e2009-09-05 21:47:34 +000034752fi
cristy73bd4a52010-10-05 11:24:23 +000034753
34754fi
34755 if test "$have_perl" != 'no'; then
34756 WITH_PERL_TRUE=
34757 WITH_PERL_FALSE='#'
34758else
34759 WITH_PERL_TRUE='#'
34760 WITH_PERL_FALSE=
34761fi
34762
34763 if test $with_perl_static = 'yes'; then
34764 WITH_PERL_STATIC_TRUE=
34765 WITH_PERL_STATIC_FALSE='#'
34766else
34767 WITH_PERL_STATIC_TRUE='#'
34768 WITH_PERL_STATIC_FALSE=
34769fi
34770
34771 if test $with_perl_dynamic = 'yes'; then
34772 WITH_PERL_DYNAMIC_TRUE=
34773 WITH_PERL_DYNAMIC_FALSE='#'
34774else
34775 WITH_PERL_DYNAMIC_TRUE='#'
34776 WITH_PERL_DYNAMIC_FALSE=
34777fi
34778
cristy3ed852e2009-09-05 21:47:34 +000034779
34780
34781# Determine path to pick up MagickCore library from for use with building PerlMagick
34782MAGICKCORE_PATH="${LIB_DIR}"
34783if test $with_perl_static = 'yes'; then
34784 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34785 libtool_objdir=$objdir
34786
34787 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034788 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034789fi
34790
34791
34792# Create a simple string containing format names for all delegate libraries
34793DELEGATES=''
34794if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34795if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34796if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34797if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34798if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34799if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34800if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34801if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34802if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34803if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34804if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34805if test "$have_jpeg" = 'yes'; then
34806 DELEGATES="$DELEGATES jpeg";
34807 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34808fi
34809if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034810if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034811if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34812if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034813if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034814if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34815if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34816if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34817if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34818if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34819if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34820if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34821if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34822if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34823
34824
34825
34826#
34827# Handle special compiler flags
34828#
34829
34830# Add '-p' if prof source profiling support enabled
34831if test "$enable_prof" = 'yes'; then
34832 CFLAGS="-p $CFLAGS"
34833 CXXFLAGS="-p $CXXFLAGS"
34834 LDFLAGS="-p $LDFLAGS"
34835fi
34836
34837# Add '-pg' if gprof source profiling support enabled
34838if test "$enable_gprof" = 'yes'; then
34839 CFLAGS="-pg $CFLAGS"
34840 CXXFLAGS="-pg $CXXFLAGS"
34841 LDFLAGS="-pg $LDFLAGS"
34842fi
34843
34844# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34845# This is a gcc-specific feature
34846if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034848$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034849if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034850 $as_echo_n "(cached) " >&6
34851else
34852 ac_check_lib_save_LIBS=$LIBS
34853LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034855/* end confdefs.h. */
34856
34857/* Override any GCC internal prototype to avoid an error.
34858 Use char because int might match the return type of a GCC
34859 builtin and then its argument prototype would still apply. */
34860#ifdef __cplusplus
34861extern "C"
34862#endif
34863char _gcov_init ();
34864int
34865main ()
34866{
34867return _gcov_init ();
34868 ;
34869 return 0;
34870}
34871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034873 ac_cv_lib_gcov__gcov_init=yes
34874else
cristy8b350f62009-11-15 23:12:43 +000034875 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034876fi
cristy8b350f62009-11-15 23:12:43 +000034877rm -f core conftest.err conftest.$ac_objext \
34878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034879LIBS=$ac_check_lib_save_LIBS
34880fi
cristy8b350f62009-11-15 23:12:43 +000034881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034882$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034883if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034884 cat >>confdefs.h <<_ACEOF
34885#define HAVE_LIBGCOV 1
34886_ACEOF
34887
34888 LIBS="-lgcov $LIBS"
34889
34890fi
34891
cristy8b350f62009-11-15 23:12:43 +000034892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034893$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034894if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034895 $as_echo_n "(cached) " >&6
34896else
34897 ac_check_lib_save_LIBS=$LIBS
34898LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034900/* end confdefs.h. */
34901
34902/* Override any GCC internal prototype to avoid an error.
34903 Use char because int might match the return type of a GCC
34904 builtin and then its argument prototype would still apply. */
34905#ifdef __cplusplus
34906extern "C"
34907#endif
34908char __gcov_init ();
34909int
34910main ()
34911{
34912return __gcov_init ();
34913 ;
34914 return 0;
34915}
34916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034918 ac_cv_lib_gcov___gcov_init=yes
34919else
cristy8b350f62009-11-15 23:12:43 +000034920 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034921fi
cristy8b350f62009-11-15 23:12:43 +000034922rm -f core conftest.err conftest.$ac_objext \
34923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034924LIBS=$ac_check_lib_save_LIBS
34925fi
cristy8b350f62009-11-15 23:12:43 +000034926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034927$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034928if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034929 cat >>confdefs.h <<_ACEOF
34930#define HAVE_LIBGCOV 1
34931_ACEOF
34932
34933 LIBS="-lgcov $LIBS"
34934
34935fi
34936
34937 case "$target_os" in
34938 darwin*)
34939 OSX_GCOV_LDFLAG="-Wl,-single_module"
34940 ;;
34941 *)
34942 OSX_GCOV_LDFLAG=""
34943 ;;
34944 esac
34945
34946 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34947 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34948 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34949fi
34950
34951#
34952# Build library dependency list for libMagickCore
34953#
34954
34955MAGICK_LIBLTDL='' # Libltdl for build
34956MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34957MAGICK_LTDLDEPS='' # extra libltdl dependencies
34958if test "$with_ltdl" != 'no'
34959then
34960 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34961 MAGICK_API_LIBLTDL='-lltdl'
34962 fi
34963 MAGICK_LIBLTDL=${LIBLTDL}
34964 MAGICK_LTDLDEPS=${LTDLDEPS}
34965fi
34966
34967
34968
34969if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034970 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 +000034971else
cristy41cbe8a2011-10-27 01:35:18 +000034972 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000034973fi
34974
34975
34976#
34977# Remove extraneous spaces from output variables (asthetic)
34978#
34979X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34980X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34981X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34982X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34983
34984CC=`echo $CC | sed -e 's/ */ /g'`
34985CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34986CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34987CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34988DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34989DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34990LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34991TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34992MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34993#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34994
34995# Pass only user-provided LIBS as "global" libraries
34996LIBS=$USER_LIBS
34997
34998#AC_SUBST(CPPFLAGS)
34999
35000#AC_SUBST(LDFLAGS)
35001#AC_SUBST(X_PRE_LIBS)
35002#AC_SUBST(X_LIBS)
35003#AC_SUBST(X_EXTRA_LIBS)
35004
35005MAGICK_CFLAGS=$CFLAGS
35006MAGICK_CXXFLAGS="$CXXFLAGS"
35007MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35008MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35009MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35010MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35011
35012
35013
35014
35015
35016
35017
35018
cristyfd9dcd42010-08-08 18:07:02 +000035019
cristy3ed852e2009-09-05 21:47:34 +000035020# Set configured scripts to executable.
35021ac_config_commands="$ac_config_commands default"
35022
35023ac_config_commands="$ac_config_commands MagickCore-config.in"
35024
cristy3ed852e2009-09-05 21:47:34 +000035025ac_config_commands="$ac_config_commands MagickWand-config.in"
35026
cristy3ed852e2009-09-05 21:47:34 +000035027ac_config_commands="$ac_config_commands Magick++-config.in"
35028
35029ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35030
35031
cristy09b53e12011-10-14 12:47:22 +000035032{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35033$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35034{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35035$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035036cat >confcache <<\_ACEOF
35037# This file is a shell script that caches the results of configure
35038# tests run on this system so they can be shared between configure
35039# scripts and configure runs, see configure's option --config-cache.
35040# It is not useful on other systems. If it contains results you don't
35041# want to keep, you may remove or edit it.
35042#
35043# config.status only pays attention to the cache file if you give it
35044# the --recheck option to rerun configure.
35045#
35046# `ac_cv_env_foo' variables (set or unset) will be overridden when
35047# loading this file, other *unset* `ac_cv_foo' will be assigned the
35048# following values.
35049
35050_ACEOF
35051
35052# The following way of writing the cache mishandles newlines in values,
35053# but we know of no workaround that is simple, portable, and efficient.
35054# So, we kill variables containing newlines.
35055# Ultrix sh set writes to stderr and can't be redirected directly,
35056# and sets the high bit in the cache file unless we assign to the vars.
35057(
35058 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35059 eval ac_val=\$$ac_var
35060 case $ac_val in #(
35061 *${as_nl}*)
35062 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35065 esac
35066 case $ac_var in #(
35067 _ | IFS | as_nl) ;; #(
35068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035069 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035070 esac ;;
35071 esac
35072 done
35073
35074 (set) 2>&1 |
35075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35076 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035077 # `set' does not quote correctly, so add quotes: double-quote
35078 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035079 sed -n \
35080 "s/'/'\\\\''/g;
35081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35082 ;; #(
35083 *)
35084 # `set' quotes correctly as required by POSIX, so do not add quotes.
35085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35086 ;;
35087 esac |
35088 sort
35089) |
35090 sed '
35091 /^ac_cv_env_/b end
35092 t clear
35093 :clear
35094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35095 t end
35096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35097 :end' >>confcache
35098if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35099 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035100 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035101 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035102$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035103 if test ! -f "$cache_file" || test -h "$cache_file"; then
35104 cat confcache >"$cache_file"
35105 else
35106 case $cache_file in #(
35107 */* | ?:*)
35108 mv -f confcache "$cache_file"$$ &&
35109 mv -f "$cache_file"$$ "$cache_file" ;; #(
35110 *)
35111 mv -f confcache "$cache_file" ;;
35112 esac
35113 fi
35114 fi
cristy3ed852e2009-09-05 21:47:34 +000035115 else
cristy8b350f62009-11-15 23:12:43 +000035116 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035117$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35118 fi
35119fi
35120rm -f confcache
35121
35122test "x$prefix" = xNONE && prefix=$ac_default_prefix
35123# Let make expand exec_prefix.
35124test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35125
35126DEFS=-DHAVE_CONFIG_H
35127
35128ac_libobjs=
35129ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035130U=
cristy3ed852e2009-09-05 21:47:34 +000035131for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35132 # 1. Remove the extension, and $U if already installed.
35133 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35134 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35135 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35136 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035137 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35138 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035139done
35140LIBOBJS=$ac_libobjs
35141
35142LTLIBOBJS=$ac_ltlibobjs
35143
35144
cristy73bd4a52010-10-05 11:24:23 +000035145 if test -n "$EXEEXT"; then
35146 am__EXEEXT_TRUE=
35147 am__EXEEXT_FALSE='#'
35148else
35149 am__EXEEXT_TRUE='#'
35150 am__EXEEXT_FALSE=
35151fi
cristy3ed852e2009-09-05 21:47:34 +000035152
cristy73bd4a52010-10-05 11:24:23 +000035153if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035154 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035155Usually this means the macro was only invoked conditionally." "$LINENO" 5
35156fi
35157if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035158 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035159Usually this means the macro was only invoked conditionally." "$LINENO" 5
35160fi
35161if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035162 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035163Usually this means the macro was only invoked conditionally." "$LINENO" 5
35164fi
35165if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035166 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035167Usually this means the macro was only invoked conditionally." "$LINENO" 5
35168fi
35169if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035170 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035171Usually this means the macro was only invoked conditionally." "$LINENO" 5
35172fi
35173if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035174 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035175Usually this means the macro was only invoked conditionally." "$LINENO" 5
35176fi
35177if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035178 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035179Usually this means the macro was only invoked conditionally." "$LINENO" 5
35180fi
35181if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035182 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035183Usually this means the macro was only invoked conditionally." "$LINENO" 5
35184fi
cristy73bd4a52010-10-05 11:24:23 +000035185if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035186 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035187Usually this means the macro was only invoked conditionally." "$LINENO" 5
35188fi
35189if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035190 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035191Usually this means the macro was only invoked conditionally." "$LINENO" 5
35192fi
35193LT_CONFIG_H=config/config.h
35194
35195 _ltdl_libobjs=
35196 _ltdl_ltlibobjs=
35197 if test -n "$_LT_LIBOBJS"; then
35198 # Remove the extension.
35199 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35200 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35201 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35202 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35203 done
35204 fi
35205 ltdl_LIBOBJS=$_ltdl_libobjs
35206
35207 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35208
35209
35210if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035211 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035212Usually this means the macro was only invoked conditionally." "$LINENO" 5
35213fi
35214if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035215 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035216Usually this means the macro was only invoked conditionally." "$LINENO" 5
35217fi
35218if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035219 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035220Usually this means the macro was only invoked conditionally." "$LINENO" 5
35221fi
35222if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035223 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035224Usually this means the macro was only invoked conditionally." "$LINENO" 5
35225fi
35226
35227if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035228 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035229Usually this means the macro was only invoked conditionally." "$LINENO" 5
35230fi
35231if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035232 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035233Usually this means the macro was only invoked conditionally." "$LINENO" 5
35234fi
35235if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035236 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035237Usually this means the macro was only invoked conditionally." "$LINENO" 5
35238fi
35239if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035240 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035241Usually this means the macro was only invoked conditionally." "$LINENO" 5
35242fi
35243if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035244 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035245Usually this means the macro was only invoked conditionally." "$LINENO" 5
35246fi
35247if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035248 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035249Usually this means the macro was only invoked conditionally." "$LINENO" 5
35250fi
35251if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035252 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035253Usually this means the macro was only invoked conditionally." "$LINENO" 5
35254fi
35255if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035256 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035257Usually this means the macro was only invoked conditionally." "$LINENO" 5
35258fi
35259if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035260 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035261Usually this means the macro was only invoked conditionally." "$LINENO" 5
35262fi
35263if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035264 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035265Usually this means the macro was only invoked conditionally." "$LINENO" 5
35266fi
35267if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035268 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035269Usually this means the macro was only invoked conditionally." "$LINENO" 5
35270fi
35271if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035272 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035273Usually this means the macro was only invoked conditionally." "$LINENO" 5
35274fi
35275if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035276 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035277Usually this means the macro was only invoked conditionally." "$LINENO" 5
35278fi
35279if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035280 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035281Usually this means the macro was only invoked conditionally." "$LINENO" 5
35282fi
35283if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035284 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035285Usually this means the macro was only invoked conditionally." "$LINENO" 5
35286fi
35287if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035288 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035289Usually this means the macro was only invoked conditionally." "$LINENO" 5
35290fi
35291if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035292 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035293Usually this means the macro was only invoked conditionally." "$LINENO" 5
35294fi
35295if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035296 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035297Usually this means the macro was only invoked conditionally." "$LINENO" 5
35298fi
35299if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035300 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035301Usually this means the macro was only invoked conditionally." "$LINENO" 5
35302fi
35303if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035304 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035305Usually this means the macro was only invoked conditionally." "$LINENO" 5
35306fi
cristyfbb0ef02010-12-19 02:32:11 +000035307if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35308 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35309Usually this means the macro was only invoked conditionally." "$LINENO" 5
35310fi
cristy73bd4a52010-10-05 11:24:23 +000035311if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035312 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035313Usually this means the macro was only invoked conditionally." "$LINENO" 5
35314fi
cristy41cbe8a2011-10-27 01:35:18 +000035315if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35316 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35317Usually this means the macro was only invoked conditionally." "$LINENO" 5
35318fi
35319if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35320 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35321Usually this means the macro was only invoked conditionally." "$LINENO" 5
35322fi
cristy73bd4a52010-10-05 11:24:23 +000035323if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035324 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035325Usually this means the macro was only invoked conditionally." "$LINENO" 5
35326fi
35327if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035328 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035329Usually this means the macro was only invoked conditionally." "$LINENO" 5
35330fi
35331if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035332 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035333Usually this means the macro was only invoked conditionally." "$LINENO" 5
35334fi
35335if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035336 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035337Usually this means the macro was only invoked conditionally." "$LINENO" 5
35338fi
cristyb1860752011-03-14 00:27:46 +000035339if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35340 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35341Usually this means the macro was only invoked conditionally." "$LINENO" 5
35342fi
cristy73bd4a52010-10-05 11:24:23 +000035343if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035344 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035345Usually this means the macro was only invoked conditionally." "$LINENO" 5
35346fi
35347if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035348 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035349Usually this means the macro was only invoked conditionally." "$LINENO" 5
35350fi
35351if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035352 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035353Usually this means the macro was only invoked conditionally." "$LINENO" 5
35354fi
35355if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035356 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035357Usually this means the macro was only invoked conditionally." "$LINENO" 5
35358fi
35359if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035360 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035361Usually this means the macro was only invoked conditionally." "$LINENO" 5
35362fi
35363if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035364 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035365Usually this means the macro was only invoked conditionally." "$LINENO" 5
35366fi
35367if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035368 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035369Usually this means the macro was only invoked conditionally." "$LINENO" 5
35370fi
35371if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035372 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035373Usually this means the macro was only invoked conditionally." "$LINENO" 5
35374fi
cristy3ed852e2009-09-05 21:47:34 +000035375
cristyda16f162011-02-19 23:52:17 +000035376: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035377ac_write_fail=0
35378ac_clean_files_save=$ac_clean_files
35379ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035380{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035381$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035382as_write_fail=0
35383cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035384#! $SHELL
35385# Generated by $as_me.
35386# Run this file to recreate the current configuration.
35387# Compiler output produced by configure, useful for debugging
35388# configure, is in config.log if it exists.
35389
35390debug=false
35391ac_cs_recheck=false
35392ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035393
cristy8b350f62009-11-15 23:12:43 +000035394SHELL=\${CONFIG_SHELL-$SHELL}
35395export SHELL
35396_ASEOF
35397cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35398## -------------------- ##
35399## M4sh Initialization. ##
35400## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035401
35402# Be more Bourne compatible
35403DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035404if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035405 emulate sh
35406 NULLCMD=:
35407 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35408 # is contrary to our usage. Disable this feature.
35409 alias -g '${1+"$@"}'='"$@"'
35410 setopt NO_GLOB_SUBST
35411else
cristy8b350f62009-11-15 23:12:43 +000035412 case `(set -o) 2>/dev/null` in #(
35413 *posix*) :
35414 set -o posix ;; #(
35415 *) :
35416 ;;
cristy3ed852e2009-09-05 21:47:34 +000035417esac
cristy3ed852e2009-09-05 21:47:34 +000035418fi
35419
35420
cristy3ed852e2009-09-05 21:47:34 +000035421as_nl='
35422'
35423export as_nl
35424# Printing a long string crashes Solaris 7 /usr/bin/printf.
35425as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35426as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035428# Prefer a ksh shell builtin over an external printf program on Solaris,
35429# but without wasting forks for bash or zsh.
35430if test -z "$BASH_VERSION$ZSH_VERSION" \
35431 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35432 as_echo='print -r --'
35433 as_echo_n='print -rn --'
35434elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035435 as_echo='printf %s\n'
35436 as_echo_n='printf %s'
35437else
35438 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35439 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35440 as_echo_n='/usr/ucb/echo -n'
35441 else
35442 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35443 as_echo_n_body='eval
35444 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035445 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035446 *"$as_nl"*)
35447 expr "X$arg" : "X\\(.*\\)$as_nl";
35448 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35449 esac;
35450 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35451 '
35452 export as_echo_n_body
35453 as_echo_n='sh -c $as_echo_n_body as_echo'
35454 fi
35455 export as_echo_body
35456 as_echo='sh -c $as_echo_body as_echo'
35457fi
35458
35459# The user is always right.
35460if test "${PATH_SEPARATOR+set}" != set; then
35461 PATH_SEPARATOR=:
35462 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35463 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35464 PATH_SEPARATOR=';'
35465 }
35466fi
35467
cristy3ed852e2009-09-05 21:47:34 +000035468
35469# IFS
35470# We need space, tab and new line, in precisely that order. Quoting is
35471# there to prevent editors from complaining about space-tab.
35472# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35473# splitting by setting IFS to empty value.)
35474IFS=" "" $as_nl"
35475
35476# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035477as_myself=
cristy8b350f62009-11-15 23:12:43 +000035478case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035479 *[\\/]* ) as_myself=$0 ;;
35480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35481for as_dir in $PATH
35482do
35483 IFS=$as_save_IFS
35484 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35486 done
cristy3ed852e2009-09-05 21:47:34 +000035487IFS=$as_save_IFS
35488
35489 ;;
35490esac
35491# We did not find ourselves, most probably we were run as `sh COMMAND'
35492# in which case we are not to be found in the path.
35493if test "x$as_myself" = x; then
35494 as_myself=$0
35495fi
35496if test ! -f "$as_myself"; then
35497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035498 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035499fi
35500
cristy8b350f62009-11-15 23:12:43 +000035501# Unset variables that we do not need and which cause bugs (e.g. in
35502# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35503# suppresses any "Segmentation fault" message there. '((' could
35504# trigger a bug in pdksh 5.2.14.
35505for as_var in BASH_ENV ENV MAIL MAILPATH
35506do eval test x\${$as_var+set} = xset \
35507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035508done
35509PS1='$ '
35510PS2='> '
35511PS4='+ '
35512
35513# NLS nuisances.
35514LC_ALL=C
35515export LC_ALL
35516LANGUAGE=C
35517export LANGUAGE
35518
cristy8b350f62009-11-15 23:12:43 +000035519# CDPATH.
35520(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35521
35522
cristy98dddb52010-11-04 00:30:15 +000035523# as_fn_error STATUS ERROR [LINENO LOG_FD]
35524# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035525# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35526# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035527# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035528as_fn_error ()
35529{
cristy98dddb52010-11-04 00:30:15 +000035530 as_status=$1; test $as_status -eq 0 && as_status=1
35531 if test "$4"; then
35532 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035534 fi
cristy98dddb52010-11-04 00:30:15 +000035535 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035536 as_fn_exit $as_status
35537} # as_fn_error
35538
35539
35540# as_fn_set_status STATUS
35541# -----------------------
35542# Set $? to STATUS, without forking.
35543as_fn_set_status ()
35544{
35545 return $1
35546} # as_fn_set_status
35547
35548# as_fn_exit STATUS
35549# -----------------
35550# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35551as_fn_exit ()
35552{
35553 set +e
35554 as_fn_set_status $1
35555 exit $1
35556} # as_fn_exit
35557
35558# as_fn_unset VAR
35559# ---------------
35560# Portably unset VAR.
35561as_fn_unset ()
35562{
35563 { eval $1=; unset $1;}
35564}
35565as_unset=as_fn_unset
35566# as_fn_append VAR VALUE
35567# ----------------------
35568# Append the text in VALUE to the end of the definition contained in VAR. Take
35569# advantage of any shell optimizations that allow amortized linear growth over
35570# repeated appends, instead of the typical quadratic growth present in naive
35571# implementations.
35572if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35573 eval 'as_fn_append ()
35574 {
35575 eval $1+=\$2
35576 }'
35577else
35578 as_fn_append ()
35579 {
35580 eval $1=\$$1\$2
35581 }
35582fi # as_fn_append
35583
35584# as_fn_arith ARG...
35585# ------------------
35586# Perform arithmetic evaluation on the ARGs, and store the result in the
35587# global $as_val. Take advantage of shells that can avoid forks. The arguments
35588# must be portable across $(()) and expr.
35589if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35590 eval 'as_fn_arith ()
35591 {
35592 as_val=$(( $* ))
35593 }'
35594else
35595 as_fn_arith ()
35596 {
35597 as_val=`expr "$@" || test $? -eq 1`
35598 }
35599fi # as_fn_arith
35600
35601
cristy3ed852e2009-09-05 21:47:34 +000035602if expr a : '\(a\)' >/dev/null 2>&1 &&
35603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35604 as_expr=expr
35605else
35606 as_expr=false
35607fi
35608
35609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35610 as_basename=basename
35611else
35612 as_basename=false
35613fi
35614
cristy8b350f62009-11-15 23:12:43 +000035615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35616 as_dirname=dirname
35617else
35618 as_dirname=false
35619fi
cristy3ed852e2009-09-05 21:47:34 +000035620
cristy3ed852e2009-09-05 21:47:34 +000035621as_me=`$as_basename -- "$0" ||
35622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35623 X"$0" : 'X\(//\)$' \| \
35624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35625$as_echo X/"$0" |
35626 sed '/^.*\/\([^/][^/]*\)\/*$/{
35627 s//\1/
35628 q
35629 }
35630 /^X\/\(\/\/\)$/{
35631 s//\1/
35632 q
35633 }
35634 /^X\/\(\/\).*/{
35635 s//\1/
35636 q
35637 }
35638 s/.*/./; q'`
35639
cristy8b350f62009-11-15 23:12:43 +000035640# Avoid depending upon Character Ranges.
35641as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35643as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35644as_cr_digits='0123456789'
35645as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035646
35647ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035648case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035649-n*)
cristy8b350f62009-11-15 23:12:43 +000035650 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035652 xy) ECHO_C='\c';;
35653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35654 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035655 esac;;
35656*)
35657 ECHO_N='-n';;
35658esac
cristy3ed852e2009-09-05 21:47:34 +000035659
35660rm -f conf$$ conf$$.exe conf$$.file
35661if test -d conf$$.dir; then
35662 rm -f conf$$.dir/conf$$.file
35663else
35664 rm -f conf$$.dir
35665 mkdir conf$$.dir 2>/dev/null
35666fi
35667if (echo >conf$$.file) 2>/dev/null; then
35668 if ln -s conf$$.file conf$$ 2>/dev/null; then
35669 as_ln_s='ln -s'
35670 # ... but there are two gotchas:
35671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35673 # In both cases, we have to default to `cp -p'.
35674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35675 as_ln_s='cp -p'
35676 elif ln conf$$.file conf$$ 2>/dev/null; then
35677 as_ln_s=ln
35678 else
35679 as_ln_s='cp -p'
35680 fi
35681else
35682 as_ln_s='cp -p'
35683fi
35684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35685rmdir conf$$.dir 2>/dev/null
35686
cristy8b350f62009-11-15 23:12:43 +000035687
35688# as_fn_mkdir_p
35689# -------------
35690# Create "$as_dir" as a directory, including parents if necessary.
35691as_fn_mkdir_p ()
35692{
35693
35694 case $as_dir in #(
35695 -*) as_dir=./$as_dir;;
35696 esac
35697 test -d "$as_dir" || eval $as_mkdir_p || {
35698 as_dirs=
35699 while :; do
35700 case $as_dir in #(
35701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35702 *) as_qdir=$as_dir;;
35703 esac
35704 as_dirs="'$as_qdir' $as_dirs"
35705 as_dir=`$as_dirname -- "$as_dir" ||
35706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35707 X"$as_dir" : 'X\(//\)[^/]' \| \
35708 X"$as_dir" : 'X\(//\)$' \| \
35709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35710$as_echo X"$as_dir" |
35711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35712 s//\1/
35713 q
35714 }
35715 /^X\(\/\/\)[^/].*/{
35716 s//\1/
35717 q
35718 }
35719 /^X\(\/\/\)$/{
35720 s//\1/
35721 q
35722 }
35723 /^X\(\/\).*/{
35724 s//\1/
35725 q
35726 }
35727 s/.*/./; q'`
35728 test -d "$as_dir" && break
35729 done
35730 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035731 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035732
35733
35734} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035735if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035736 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035737else
35738 test -d ./-p && rmdir ./-p
35739 as_mkdir_p=false
35740fi
35741
35742if test -x / >/dev/null 2>&1; then
35743 as_test_x='test -x'
35744else
35745 if ls -dL / >/dev/null 2>&1; then
35746 as_ls_L_option=L
35747 else
35748 as_ls_L_option=
35749 fi
35750 as_test_x='
35751 eval sh -c '\''
35752 if test -d "$1"; then
35753 test -d "$1/.";
35754 else
cristy8b350f62009-11-15 23:12:43 +000035755 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035756 -*)set "./$1";;
35757 esac;
cristy8b350f62009-11-15 23:12:43 +000035758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035759 ???[sx]*):;;*)false;;esac;fi
35760 '\'' sh
35761 '
35762fi
35763as_executable_p=$as_test_x
35764
35765# Sed expression to map a string onto a valid CPP name.
35766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35767
35768# Sed expression to map a string onto a valid variable name.
35769as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35770
35771
35772exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035773## ----------------------------------- ##
35774## Main body of $CONFIG_STATUS script. ##
35775## ----------------------------------- ##
35776_ASEOF
35777test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035778
cristy8b350f62009-11-15 23:12:43 +000035779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35780# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035781# report actual input values of CONFIG_FILES etc. instead of their
35782# values after options handling.
35783ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035784This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035785generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035786
35787 CONFIG_FILES = $CONFIG_FILES
35788 CONFIG_HEADERS = $CONFIG_HEADERS
35789 CONFIG_LINKS = $CONFIG_LINKS
35790 CONFIG_COMMANDS = $CONFIG_COMMANDS
35791 $ $0 $@
35792
35793on `(hostname || uname -n) 2>/dev/null | sed 1q`
35794"
35795
35796_ACEOF
35797
35798case $ac_config_files in *"
35799"*) set x $ac_config_files; shift; ac_config_files=$*;;
35800esac
35801
35802case $ac_config_headers in *"
35803"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35804esac
35805
35806
35807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35808# Files that config.status was made for.
35809config_files="$ac_config_files"
35810config_headers="$ac_config_headers"
35811config_commands="$ac_config_commands"
35812
35813_ACEOF
35814
35815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35816ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035817\`$as_me' instantiates files and other configuration actions
35818from templates according to the current configuration. Unless the files
35819and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035820
cristy8b350f62009-11-15 23:12:43 +000035821Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035822
35823 -h, --help print this help, then exit
35824 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035825 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035826 -q, --quiet, --silent
35827 do not print progress messages
35828 -d, --debug don't remove temporary files
35829 --recheck update $as_me by reconfiguring in the same conditions
35830 --file=FILE[:TEMPLATE]
35831 instantiate the configuration file FILE
35832 --header=FILE[:TEMPLATE]
35833 instantiate the configuration header FILE
35834
35835Configuration files:
35836$config_files
35837
35838Configuration headers:
35839$config_headers
35840
35841Configuration commands:
35842$config_commands
35843
cristy8b350f62009-11-15 23:12:43 +000035844Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035845
35846_ACEOF
35847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035848ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035849ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035850ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035851configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035852 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035853
cristy98dddb52010-11-04 00:30:15 +000035854Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035855This config.status script is free software; the Free Software Foundation
35856gives unlimited permission to copy, distribute and modify it."
35857
35858ac_pwd='$ac_pwd'
35859srcdir='$srcdir'
35860INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035861MKDIR_P='$MKDIR_P'
35862AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035863test -n "\$AWK" || AWK=awk
35864_ACEOF
35865
35866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35867# The default lists apply if the user does not specify any file.
35868ac_need_defaults=:
35869while test $# != 0
35870do
35871 case $1 in
cristyda16f162011-02-19 23:52:17 +000035872 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035873 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35874 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35875 ac_shift=:
35876 ;;
cristyda16f162011-02-19 23:52:17 +000035877 --*=)
35878 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35879 ac_optarg=
35880 ac_shift=:
35881 ;;
cristy3ed852e2009-09-05 21:47:34 +000035882 *)
35883 ac_option=$1
35884 ac_optarg=$2
35885 ac_shift=shift
35886 ;;
35887 esac
35888
35889 case $ac_option in
35890 # Handling of the options.
35891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35892 ac_cs_recheck=: ;;
35893 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35894 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035895 --config | --confi | --conf | --con | --co | --c )
35896 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035897 --debug | --debu | --deb | --de | --d | -d )
35898 debug=: ;;
35899 --file | --fil | --fi | --f )
35900 $ac_shift
35901 case $ac_optarg in
35902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035903 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035904 esac
cristy8b350f62009-11-15 23:12:43 +000035905 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035906 ac_need_defaults=false;;
35907 --header | --heade | --head | --hea )
35908 $ac_shift
35909 case $ac_optarg in
35910 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35911 esac
cristy8b350f62009-11-15 23:12:43 +000035912 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035913 ac_need_defaults=false;;
35914 --he | --h)
35915 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035916 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035917Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035918 --help | --hel | -h )
35919 $as_echo "$ac_cs_usage"; exit ;;
35920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35921 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35922 ac_cs_silent=: ;;
35923
35924 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035925 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035926Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035927
cristy8b350f62009-11-15 23:12:43 +000035928 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035929 ac_need_defaults=false ;;
35930
35931 esac
35932 shift
35933done
35934
35935ac_configure_extra_args=
35936
35937if $ac_cs_silent; then
35938 exec 6>/dev/null
35939 ac_configure_extra_args="$ac_configure_extra_args --silent"
35940fi
35941
35942_ACEOF
35943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35944if \$ac_cs_recheck; then
35945 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35946 shift
35947 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35948 CONFIG_SHELL='$SHELL'
35949 export CONFIG_SHELL
35950 exec "\$@"
35951fi
35952
35953_ACEOF
35954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35955exec 5>>config.log
35956{
35957 echo
35958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35959## Running $as_me. ##
35960_ASBOX
35961 $as_echo "$ac_log"
35962} >&5
35963
35964_ACEOF
35965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035966#
35967# INIT-COMMANDS
35968#
35969PACKAGE="$PACKAGE"
35970AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35971
35972
35973# The HP-UX ksh and POSIX shell print the target directory to stdout
35974# if CDPATH is set.
35975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35976
35977sed_quote_subst='$sed_quote_subst'
35978double_quote_subst='$double_quote_subst'
35979delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035980SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35981Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35982GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35983EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35984FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35985SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35986ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35987LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35988macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35989macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35990AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35991DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35992OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35993enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35994enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35995pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35996enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35997host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35998host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35999host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36000build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36001build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36002build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36003NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36004LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36005max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36006ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36007exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36008lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36009lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36010lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036011lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36012lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036013reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36014reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36015deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36016file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036017file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36018want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36019sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036020AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36021AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036022archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036023STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36024RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36025old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36026old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36027old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36028lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36029CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36030CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36031compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36032GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36033lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36034lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36035lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36036lt_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 +000036037nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36038lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036039objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36040MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36041lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036042lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036043lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036044lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36045lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36046need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036047MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036048DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36049NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36050LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36051OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36052OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36053libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36054shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36055extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36056archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36057enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36058export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36059whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36060compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36061old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36062old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36063archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36064archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36065module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36066module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36067with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36068allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36069no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36070hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36071hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36072hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36073hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36074hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36075hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36076hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36077hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36078inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36079link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036080always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36081export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36082exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36083include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36084prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036085postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036086file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36087variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36088need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36089need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36090version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36091runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36092shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36093shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36094libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36095library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36096soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36097install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36098postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36099postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36100finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36101finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36102hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36103sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36104sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36105hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36106enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36107enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36108enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36109old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36110striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36111compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36112predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36113postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36114predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36115postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36116compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36117LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36118reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36119reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36120old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36121compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36122GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36123lt_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 +000036124lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036125lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036126lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36127lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36128archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36129enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36130export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36131whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36132compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36133old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36134old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36135archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36136archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36137module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36138module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36139with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36140allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36141no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36142hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36143hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36144hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36145hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36146hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36147hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36148hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36149hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36150inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36151link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036152always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36153export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36154exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36155include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36156prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036157postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036158file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36159hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36160compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36161predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36162postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36163predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36164postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36165compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036166
36167LTCC='$LTCC'
36168LTCFLAGS='$LTCFLAGS'
36169compiler='$compiler_DEFAULT'
36170
cristy0c60a692010-11-04 01:09:47 +000036171# A function that is used when there is no print builtin or printf.
36172func_fallback_echo ()
36173{
36174 eval 'cat <<_LTECHO_EOF
36175\$1
36176_LTECHO_EOF'
36177}
36178
cristy73bd4a52010-10-05 11:24:23 +000036179# Quote evaled strings.
36180for var in SED \
36181GREP \
36182EGREP \
36183FGREP \
cristy0c60a692010-11-04 01:09:47 +000036184SHELL \
36185ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036186LD \
cristy0c60a692010-11-04 01:09:47 +000036187AS \
36188DLLTOOL \
36189OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000036190NM \
36191LN_S \
36192lt_SP2NL \
36193lt_NL2SP \
36194reload_flag \
36195deplibs_check_method \
36196file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036197file_magic_glob \
36198want_nocaseglob \
36199sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036200AR \
36201AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036202archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036203STRIP \
36204RANLIB \
36205CC \
36206CFLAGS \
36207compiler \
36208lt_cv_sys_global_symbol_pipe \
36209lt_cv_sys_global_symbol_to_cdecl \
36210lt_cv_sys_global_symbol_to_c_name_address \
36211lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036212nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036213lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036214lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036215lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036216lt_prog_compiler_static \
36217lt_cv_prog_compiler_c_o \
36218need_locks \
cristyda16f162011-02-19 23:52:17 +000036219MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036220DSYMUTIL \
36221NMEDIT \
36222LIPO \
36223OTOOL \
36224OTOOL64 \
36225shrext_cmds \
36226export_dynamic_flag_spec \
36227whole_archive_flag_spec \
36228compiler_needs_object \
36229with_gnu_ld \
36230allow_undefined_flag \
36231no_undefined_flag \
36232hardcode_libdir_flag_spec \
36233hardcode_libdir_flag_spec_ld \
36234hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036235exclude_expsyms \
36236include_expsyms \
36237file_list_spec \
36238variables_saved_for_relink \
36239libname_spec \
36240library_names_spec \
36241soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036242install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036243finish_eval \
36244old_striplib \
36245striplib \
36246compiler_lib_search_dirs \
36247predep_objects \
36248postdep_objects \
36249predeps \
36250postdeps \
36251compiler_lib_search_path \
36252LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036253reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036254compiler_CXX \
36255lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036256lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036257lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036258lt_prog_compiler_static_CXX \
36259lt_cv_prog_compiler_c_o_CXX \
36260export_dynamic_flag_spec_CXX \
36261whole_archive_flag_spec_CXX \
36262compiler_needs_object_CXX \
36263with_gnu_ld_CXX \
36264allow_undefined_flag_CXX \
36265no_undefined_flag_CXX \
36266hardcode_libdir_flag_spec_CXX \
36267hardcode_libdir_flag_spec_ld_CXX \
36268hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036269exclude_expsyms_CXX \
36270include_expsyms_CXX \
36271file_list_spec_CXX \
36272compiler_lib_search_dirs_CXX \
36273predep_objects_CXX \
36274postdep_objects_CXX \
36275predeps_CXX \
36276postdeps_CXX \
36277compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036278 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036279 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036280 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036281 ;;
36282 *)
36283 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36284 ;;
36285 esac
36286done
36287
36288# Double-quote double-evaled strings.
36289for var in reload_cmds \
36290old_postinstall_cmds \
36291old_postuninstall_cmds \
36292old_archive_cmds \
36293extract_expsyms_cmds \
36294old_archive_from_new_cmds \
36295old_archive_from_expsyms_cmds \
36296archive_cmds \
36297archive_expsym_cmds \
36298module_cmds \
36299module_expsym_cmds \
36300export_symbols_cmds \
36301prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036302postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036303postinstall_cmds \
36304postuninstall_cmds \
36305finish_cmds \
36306sys_lib_search_path_spec \
36307sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036308reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036309old_archive_cmds_CXX \
36310old_archive_from_new_cmds_CXX \
36311old_archive_from_expsyms_cmds_CXX \
36312archive_cmds_CXX \
36313archive_expsym_cmds_CXX \
36314module_cmds_CXX \
36315module_expsym_cmds_CXX \
36316export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036317prelink_cmds_CXX \
36318postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036319 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036320 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036321 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036322 ;;
36323 *)
36324 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36325 ;;
36326 esac
36327done
36328
cristy73bd4a52010-10-05 11:24:23 +000036329ac_aux_dir='$ac_aux_dir'
36330xsi_shell='$xsi_shell'
36331lt_shell_append='$lt_shell_append'
36332
36333# See if we are running on zsh, and set the options which allow our
36334# commands through without removal of \ escapes INIT.
36335if test -n "\${ZSH_VERSION+set}" ; then
36336 setopt NO_GLOB_SUBST
36337fi
36338
36339
36340 PACKAGE='$PACKAGE'
36341 VERSION='$VERSION'
36342 TIMESTAMP='$TIMESTAMP'
36343 RM='$RM'
36344 ofile='$ofile'
36345
36346
36347
36348
36349
36350
cristy3ed852e2009-09-05 21:47:34 +000036351_ACEOF
36352
36353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36354
36355# Handling of arguments.
36356for ac_config_target in $ac_config_targets
36357do
36358 case $ac_config_target in
36359 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036360 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036361 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36362 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36363 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36364 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36365 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036366 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036367 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36368 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36369 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36370 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36371 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036372 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036373 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36374 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036375 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36376 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36377 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036378 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36379 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36380 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36381 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36382 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36383 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36384 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36385 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36386 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36387 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36388 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36389 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36390 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36391 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36392 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36393 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36394 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036395 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36396 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036397 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36398 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036399 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36400 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036401 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036402 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36403 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36404
cristy98dddb52010-11-04 00:30:15 +000036405 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036406 esac
36407done
36408
36409
36410# If the user did not use the arguments to specify the items to instantiate,
36411# then the envvar interface is used. Set only those that are not.
36412# We use the long form for the default assignment because of an extremely
36413# bizarre bug on SunOS 4.1.3.
36414if $ac_need_defaults; then
36415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36418fi
36419
36420# Have a temporary directory for convenience. Make it in the build tree
36421# simply because there is no reason against having it here, and in addition,
36422# creating and moving files from /tmp can sometimes cause problems.
36423# Hook for its removal unless debugging.
36424# Note that there is a small window in which the directory will not be cleaned:
36425# after its creation but before its name has been assigned to `$tmp'.
36426$debug ||
36427{
cristyda16f162011-02-19 23:52:17 +000036428 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036429 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036430 : "${ac_tmp:=$tmp}"
36431 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036432' 0
cristy8b350f62009-11-15 23:12:43 +000036433 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036434}
36435# Create a (secure) tmp directory for tmp files.
36436
36437{
36438 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036439 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036440} ||
36441{
36442 tmp=./conf$$-$RANDOM
36443 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036444} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036445ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036446
36447# Set up the scripts for CONFIG_FILES section.
36448# No need to generate them if there are no CONFIG_FILES.
36449# This happens for instance with `./config.status config.h'.
36450if test -n "$CONFIG_FILES"; then
36451
36452
cristy8b350f62009-11-15 23:12:43 +000036453ac_cr=`echo X | tr X '\015'`
36454# On cygwin, bash can eat \r inside `` if the user requested igncr.
36455# But we know of no other shell where ac_cr would be empty at this
36456# point, so we can use a bashism as a fallback.
36457if test "x$ac_cr" = x; then
36458 eval ac_cr=\$\'\\r\'
36459fi
cristy3ed852e2009-09-05 21:47:34 +000036460ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36461if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036462 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036463else
36464 ac_cs_awk_cr=$ac_cr
36465fi
36466
cristyda16f162011-02-19 23:52:17 +000036467echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036468_ACEOF
36469
36470
36471{
36472 echo "cat >conf$$subs.awk <<_ACEOF" &&
36473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36474 echo "_ACEOF"
36475} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36477ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036478ac_delim='%!_!# '
36479for ac_last_try in false false false false false :; do
36480 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036482
36483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36484 if test $ac_delim_n = $ac_delim_num; then
36485 break
36486 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036488 else
36489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36490 fi
36491done
36492rm -f conf$$subs.sh
36493
36494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036495cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036496_ACEOF
36497sed -n '
36498h
36499s/^/S["/; s/!.*/"]=/
36500p
36501g
36502s/^[^!]*!//
36503:repl
36504t repl
36505s/'"$ac_delim"'$//
36506t delim
36507:nl
36508h
cristycd4c5312009-11-22 01:19:08 +000036509s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036510t more1
36511s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36512p
36513n
36514b repl
36515:more1
36516s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36517p
36518g
36519s/.\{148\}//
36520t nl
36521:delim
36522h
cristycd4c5312009-11-22 01:19:08 +000036523s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036524t more2
36525s/["\\]/\\&/g; s/^/"/; s/$/"/
36526p
36527b
36528:more2
36529s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36530p
36531g
36532s/.\{148\}//
36533t delim
36534' <conf$$subs.awk | sed '
36535/^[^""]/{
36536 N
36537 s/\n//
36538}
36539' >>$CONFIG_STATUS || ac_write_fail=1
36540rm -f conf$$subs.awk
36541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36542_ACAWK
cristyda16f162011-02-19 23:52:17 +000036543cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036544 for (key in S) S_is_set[key] = 1
36545 FS = ""
36546
36547}
36548{
36549 line = $ 0
36550 nfields = split(line, field, "@")
36551 substed = 0
36552 len = length(field[1])
36553 for (i = 2; i < nfields; i++) {
36554 key = field[i]
36555 keylen = length(key)
36556 if (S_is_set[key]) {
36557 value = S[key]
36558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36559 len += length(value) + length(field[++i])
36560 substed = 1
36561 } else
36562 len += 1 + keylen
36563 }
36564
36565 print line
36566}
36567
36568_ACAWK
36569_ACEOF
36570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36571if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36573else
36574 cat
cristyda16f162011-02-19 23:52:17 +000036575fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036576 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036577_ACEOF
36578
cristy98dddb52010-11-04 00:30:15 +000036579# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36580# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036581# trailing colons and then remove the whole line if VPATH becomes empty
36582# (actually we leave an empty line to preserve line numbers).
36583if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036584 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36585h
36586s///
36587s/^/:/
36588s/[ ]*$/:/
36589s/:\$(srcdir):/:/g
36590s/:\${srcdir}:/:/g
36591s/:@srcdir@:/:/g
36592s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036593s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036594x
36595s/\(=[ ]*\).*/\1/
36596G
36597s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036598s/^[^=]*=[ ]*$//
36599}'
36600fi
36601
36602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36603fi # test -n "$CONFIG_FILES"
36604
36605# Set up the scripts for CONFIG_HEADERS section.
36606# No need to generate them if there are no CONFIG_HEADERS.
36607# This happens for instance with `./config.status Makefile'.
36608if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036609cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036610BEGIN {
36611_ACEOF
36612
36613# Transform confdefs.h into an awk script `defines.awk', embedded as
36614# here-document in config.status, that substitutes the proper values into
36615# config.h.in to produce config.h.
36616
36617# Create a delimiter string that does not exist in confdefs.h, to ease
36618# handling of long lines.
36619ac_delim='%!_!# '
36620for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036621 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36622 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036623 break
36624 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036625 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036626 else
36627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36628 fi
36629done
36630
36631# For the awk script, D is an array of macro values keyed by name,
36632# likewise P contains macro parameters if any. Preserve backslash
36633# newline sequences.
36634
36635ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36636sed -n '
36637s/.\{148\}/&'"$ac_delim"'/g
36638t rset
36639:rset
36640s/^[ ]*#[ ]*define[ ][ ]*/ /
36641t def
36642d
36643:def
36644s/\\$//
36645t bsnl
36646s/["\\]/\\&/g
36647s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36648D["\1"]=" \3"/p
36649s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36650d
36651:bsnl
36652s/["\\]/\\&/g
36653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36654D["\1"]=" \3\\\\\\n"\\/p
36655t cont
36656s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36657t cont
36658d
36659:cont
36660n
36661s/.\{148\}/&'"$ac_delim"'/g
36662t clear
36663:clear
36664s/\\$//
36665t bsnlc
36666s/["\\]/\\&/g; s/^/"/; s/$/"/p
36667d
36668:bsnlc
36669s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36670b cont
36671' <confdefs.h | sed '
36672s/'"$ac_delim"'/"\\\
36673"/g' >>$CONFIG_STATUS || ac_write_fail=1
36674
36675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36676 for (key in D) D_is_set[key] = 1
36677 FS = ""
36678}
36679/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36680 line = \$ 0
36681 split(line, arg, " ")
36682 if (arg[1] == "#") {
36683 defundef = arg[2]
36684 mac1 = arg[3]
36685 } else {
36686 defundef = substr(arg[1], 2)
36687 mac1 = arg[2]
36688 }
36689 split(mac1, mac2, "(") #)
36690 macro = mac2[1]
36691 prefix = substr(line, 1, index(line, defundef) - 1)
36692 if (D_is_set[macro]) {
36693 # Preserve the white space surrounding the "#".
36694 print prefix "define", macro P[macro] D[macro]
36695 next
36696 } else {
36697 # Replace #undef with comments. This is necessary, for example,
36698 # in the case of _POSIX_SOURCE, which is predefined and required
36699 # on some systems where configure will not decide to define it.
36700 if (defundef == "undef") {
36701 print "/*", prefix defundef, macro, "*/"
36702 next
36703 }
36704 }
36705}
36706{ print }
36707_ACAWK
36708_ACEOF
36709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036710 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036711fi # test -n "$CONFIG_HEADERS"
36712
36713
36714eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36715shift
36716for ac_tag
36717do
36718 case $ac_tag in
36719 :[FHLC]) ac_mode=$ac_tag; continue;;
36720 esac
36721 case $ac_mode$ac_tag in
36722 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036723 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036724 :[FH]-) ac_tag=-:-;;
36725 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36726 esac
36727 ac_save_IFS=$IFS
36728 IFS=:
36729 set x $ac_tag
36730 IFS=$ac_save_IFS
36731 shift
36732 ac_file=$1
36733 shift
36734
36735 case $ac_mode in
36736 :L) ac_source=$1;;
36737 :[FH])
36738 ac_file_inputs=
36739 for ac_f
36740 do
36741 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036742 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036743 *) # Look for the file first in the build tree, then in the source tree
36744 # (if the path is not absolute). The absolute path cannot be DOS-style,
36745 # because $ac_f cannot contain `:'.
36746 test -f "$ac_f" ||
36747 case $ac_f in
36748 [\\/$]*) false;;
36749 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36750 esac ||
cristy98dddb52010-11-04 00:30:15 +000036751 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036752 esac
36753 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036754 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036755 done
36756
36757 # Let's still pretend it is `configure' which instantiates (i.e., don't
36758 # use $as_me), people would be surprised to read:
36759 # /* config.h. Generated by config.status. */
36760 configure_input='Generated from '`
36761 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36762 `' by configure.'
36763 if test x"$ac_file" != x-; then
36764 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036766$as_echo "$as_me: creating $ac_file" >&6;}
36767 fi
36768 # Neutralize special characters interpreted by sed in replacement strings.
36769 case $configure_input in #(
36770 *\&* | *\|* | *\\* )
36771 ac_sed_conf_input=`$as_echo "$configure_input" |
36772 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36773 *) ac_sed_conf_input=$configure_input;;
36774 esac
36775
36776 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036777 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036779 esac
36780 ;;
36781 esac
36782
36783 ac_dir=`$as_dirname -- "$ac_file" ||
36784$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36785 X"$ac_file" : 'X\(//\)[^/]' \| \
36786 X"$ac_file" : 'X\(//\)$' \| \
36787 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36788$as_echo X"$ac_file" |
36789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36790 s//\1/
36791 q
36792 }
36793 /^X\(\/\/\)[^/].*/{
36794 s//\1/
36795 q
36796 }
36797 /^X\(\/\/\)$/{
36798 s//\1/
36799 q
36800 }
36801 /^X\(\/\).*/{
36802 s//\1/
36803 q
36804 }
36805 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036806 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036807 ac_builddir=.
36808
36809case "$ac_dir" in
36810.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36811*)
36812 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36813 # A ".." for each directory in $ac_dir_suffix.
36814 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36815 case $ac_top_builddir_sub in
36816 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36817 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36818 esac ;;
36819esac
36820ac_abs_top_builddir=$ac_pwd
36821ac_abs_builddir=$ac_pwd$ac_dir_suffix
36822# for backward compatibility:
36823ac_top_builddir=$ac_top_build_prefix
36824
36825case $srcdir in
36826 .) # We are building in place.
36827 ac_srcdir=.
36828 ac_top_srcdir=$ac_top_builddir_sub
36829 ac_abs_top_srcdir=$ac_pwd ;;
36830 [\\/]* | ?:[\\/]* ) # Absolute name.
36831 ac_srcdir=$srcdir$ac_dir_suffix;
36832 ac_top_srcdir=$srcdir
36833 ac_abs_top_srcdir=$srcdir ;;
36834 *) # Relative name.
36835 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36836 ac_top_srcdir=$ac_top_build_prefix$srcdir
36837 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36838esac
36839ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36840
36841
36842 case $ac_mode in
36843 :F)
36844 #
36845 # CONFIG_FILE
36846 #
36847
36848 case $INSTALL in
36849 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36850 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36851 esac
cristy73bd4a52010-10-05 11:24:23 +000036852 ac_MKDIR_P=$MKDIR_P
36853 case $MKDIR_P in
36854 [\\/$]* | ?:[\\/]* ) ;;
36855 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36856 esac
cristy3ed852e2009-09-05 21:47:34 +000036857_ACEOF
36858
36859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36860# If the template does not know about datarootdir, expand it.
36861# FIXME: This hack should be removed a few years after 2.60.
36862ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036863ac_sed_dataroot='
36864/datarootdir/ {
36865 p
36866 q
36867}
36868/@datadir@/p
36869/@docdir@/p
36870/@infodir@/p
36871/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036872/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036873case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36874*datarootdir*) ac_datarootdir_seen=yes;;
36875*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036877$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36878_ACEOF
36879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36880 ac_datarootdir_hack='
36881 s&@datadir@&$datadir&g
36882 s&@docdir@&$docdir&g
36883 s&@infodir@&$infodir&g
36884 s&@localedir@&$localedir&g
36885 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036886 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036887esac
36888_ACEOF
36889
36890# Neutralize VPATH when `$srcdir' = `.'.
36891# Shell code in configure.ac might set extrasub.
36892# FIXME: do we really want to maintain this feature?
36893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36894ac_sed_extra="$ac_vpsub
36895$extrasub
36896_ACEOF
36897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36898:t
36899/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36900s|@configure_input@|$ac_sed_conf_input|;t t
36901s&@top_builddir@&$ac_top_builddir_sub&;t t
36902s&@top_build_prefix@&$ac_top_build_prefix&;t t
36903s&@srcdir@&$ac_srcdir&;t t
36904s&@abs_srcdir@&$ac_abs_srcdir&;t t
36905s&@top_srcdir@&$ac_top_srcdir&;t t
36906s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36907s&@builddir@&$ac_builddir&;t t
36908s&@abs_builddir@&$ac_abs_builddir&;t t
36909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36910s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036911s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036912$ac_datarootdir_hack
36913"
cristyda16f162011-02-19 23:52:17 +000036914eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36915 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036916
36917test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036918 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36920 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036922which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036923$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036924which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036925
cristyda16f162011-02-19 23:52:17 +000036926 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036927 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036928 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36929 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036930 esac \
cristy98dddb52010-11-04 00:30:15 +000036931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036932 ;;
36933 :H)
36934 #
36935 # CONFIG_HEADER
36936 #
36937 if test x"$ac_file" != x-; then
36938 {
36939 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036940 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36941 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036943 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036944 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036945$as_echo "$as_me: $ac_file is unchanged" >&6;}
36946 else
36947 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036948 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036950 fi
36951 else
36952 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036953 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036954 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036955 fi
cristy73bd4a52010-10-05 11:24:23 +000036956# Compute "$ac_file"'s index in $config_headers.
36957_am_arg="$ac_file"
36958_am_stamp_count=1
36959for _am_header in $config_headers :; do
36960 case $_am_header in
36961 $_am_arg | $_am_arg:* )
36962 break ;;
36963 * )
36964 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36965 esac
36966done
36967echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36968$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36969 X"$_am_arg" : 'X\(//\)[^/]' \| \
36970 X"$_am_arg" : 'X\(//\)$' \| \
36971 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36972$as_echo X"$_am_arg" |
36973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36974 s//\1/
36975 q
36976 }
36977 /^X\(\/\/\)[^/].*/{
36978 s//\1/
36979 q
36980 }
36981 /^X\(\/\/\)$/{
36982 s//\1/
36983 q
36984 }
36985 /^X\(\/\).*/{
36986 s//\1/
36987 q
36988 }
36989 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036990 ;;
36991
cristy8b350f62009-11-15 23:12:43 +000036992 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036993$as_echo "$as_me: executing $ac_file commands" >&6;}
36994 ;;
36995 esac
36996
36997
36998 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036999 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037000ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37001ac_prefix_conf_PKG=`echo MagickCore`
37002ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37003ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37004ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37005if test ".$ac_prefix_conf_INP" = "."; then
37006 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37007 case "$ac_file" in
37008 *.h) ac_prefix_conf_INP=$ac_file ;;
37009 *)
37010 esac
37011 test ".$ac_prefix_conf_INP" != "." && break
37012 done
37013fi
37014if test ".$ac_prefix_conf_INP" = "."; then
37015 case "$ac_prefix_conf_OUT" in
37016 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37017 ;;
37018 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37019 ;;
37020 *) ac_prefix_conf_INP=config.h
37021 ;;
37022 esac
37023fi
37024if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037025 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037026else
37027 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37028 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37029 fi fi
37030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37031$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37032 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037033 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37034 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37035 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37036 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37037 $as_echo "#endif/" >> conftest.prefix
37038 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37039 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37040 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037041 # now executing _script on _DEF input to create _OUT output file
37042 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37043 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37044 echo ' ' >>$tmp/pconfig.h
37045 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37046
37047 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37048 echo ' ' >>$tmp/pconfig.h
37049 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37050 echo "#endif" >>$tmp/pconfig.h
37051 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37052 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37053$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37054 else
37055 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37056$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37057 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37058 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37059 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37060$as_echo X"$ac_prefix_conf_OUT" |
37061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37062 s//\1/
37063 q
37064 }
37065 /^X\(\/\/\)[^/].*/{
37066 s//\1/
37067 q
37068 }
37069 /^X\(\/\/\)$/{
37070 s//\1/
37071 q
37072 }
37073 /^X\(\/\).*/{
37074 s//\1/
37075 q
37076 }
37077 s/.*/./; q'`
37078 as_dir="$ac_dir"; as_fn_mkdir_p
37079 rm -f "$ac_prefix_conf_OUT"
37080 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37081 fi
37082 cp conftest.prefix _configs.sed
37083 else
cristy98dddb52010-11-04 00:30:15 +000037084 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 +000037085 fi
37086 rm -f conftest.*
37087fi
37088 ;;
37089 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37090 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37091 # are listed without --file. Let's play safe and only enable the eval
37092 # if we detect the quoting.
37093 case $CONFIG_FILES in
37094 *\'*) eval set x "$CONFIG_FILES" ;;
37095 *) set x $CONFIG_FILES ;;
37096 esac
37097 shift
37098 for mf
37099 do
37100 # Strip MF so we end up with the name of the file.
37101 mf=`echo "$mf" | sed -e 's/:.*$//'`
37102 # Check whether this is an Automake generated Makefile or not.
37103 # We used to match only the files named `Makefile.in', but
37104 # some people rename them; so instead we look at the file content.
37105 # Grep'ing the first line is not enough: some people post-process
37106 # each Makefile.in and add a new line on top of each file to say so.
37107 # Grep'ing the whole file is not good either: AIX grep has a line
37108 # limit of 2048, but all sed's we know have understand at least 4000.
37109 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37110 dirpart=`$as_dirname -- "$mf" ||
37111$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37112 X"$mf" : 'X\(//\)[^/]' \| \
37113 X"$mf" : 'X\(//\)$' \| \
37114 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37115$as_echo X"$mf" |
37116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37117 s//\1/
37118 q
37119 }
37120 /^X\(\/\/\)[^/].*/{
37121 s//\1/
37122 q
37123 }
37124 /^X\(\/\/\)$/{
37125 s//\1/
37126 q
37127 }
37128 /^X\(\/\).*/{
37129 s//\1/
37130 q
37131 }
37132 s/.*/./; q'`
37133 else
37134 continue
37135 fi
37136 # Extract the definition of DEPDIR, am__include, and am__quote
37137 # from the Makefile without running `make'.
37138 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37139 test -z "$DEPDIR" && continue
37140 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37141 test -z "am__include" && continue
37142 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37143 # When using ansi2knr, U may be empty or an underscore; expand it
37144 U=`sed -n 's/^U = //p' < "$mf"`
37145 # Find all dependency output files, they are included files with
37146 # $(DEPDIR) in their names. We invoke sed twice because it is the
37147 # simplest approach to changing $(DEPDIR) to its actual value in the
37148 # expansion.
37149 for file in `sed -n "
37150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37152 # Make sure the directory exists.
37153 test -f "$dirpart/$file" && continue
37154 fdir=`$as_dirname -- "$file" ||
37155$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37156 X"$file" : 'X\(//\)[^/]' \| \
37157 X"$file" : 'X\(//\)$' \| \
37158 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37159$as_echo X"$file" |
37160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37161 s//\1/
37162 q
37163 }
37164 /^X\(\/\/\)[^/].*/{
37165 s//\1/
37166 q
37167 }
37168 /^X\(\/\/\)$/{
37169 s//\1/
37170 q
37171 }
37172 /^X\(\/\).*/{
37173 s//\1/
37174 q
37175 }
37176 s/.*/./; q'`
37177 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37178 # echo "creating $dirpart/$file"
37179 echo '# dummy' > "$dirpart/$file"
37180 done
37181 done
37182}
37183 ;;
37184 "libtool":C)
37185
37186 # See if we are running on zsh, and set the options which allow our
37187 # commands through without removal of \ escapes.
37188 if test -n "${ZSH_VERSION+set}" ; then
37189 setopt NO_GLOB_SUBST
37190 fi
37191
37192 cfgfile="${ofile}T"
37193 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37194 $RM "$cfgfile"
37195
37196 cat <<_LT_EOF >> "$cfgfile"
37197#! $SHELL
37198
37199# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37200# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37201# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37202# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37203#
37204# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000037205# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37206# Inc.
cristy73bd4a52010-10-05 11:24:23 +000037207# Written by Gordon Matzigkeit, 1996
37208#
37209# This file is part of GNU Libtool.
37210#
37211# GNU Libtool is free software; you can redistribute it and/or
37212# modify it under the terms of the GNU General Public License as
37213# published by the Free Software Foundation; either version 2 of
37214# the License, or (at your option) any later version.
37215#
37216# As a special exception to the GNU General Public License,
37217# if you distribute this file as part of a program or library that
37218# is built using GNU Libtool, you may include this file under the
37219# same distribution terms that you use for the rest of that program.
37220#
37221# GNU Libtool is distributed in the hope that it will be useful,
37222# but WITHOUT ANY WARRANTY; without even the implied warranty of
37223# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37224# GNU General Public License for more details.
37225#
37226# You should have received a copy of the GNU General Public License
37227# along with GNU Libtool; see the file COPYING. If not, a copy
37228# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37229# obtained by writing to the Free Software Foundation, Inc.,
37230# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37231
37232
37233# The names of the tagged configurations supported by this script.
37234available_tags="CXX "
37235
37236# ### BEGIN LIBTOOL CONFIG
37237
37238# A sed program that does not truncate output.
37239SED=$lt_SED
37240
37241# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37242Xsed="\$SED -e 1s/^X//"
37243
37244# A grep program that handles long lines.
37245GREP=$lt_GREP
37246
37247# An ERE matcher.
37248EGREP=$lt_EGREP
37249
37250# A literal string matcher.
37251FGREP=$lt_FGREP
37252
cristy0c60a692010-11-04 01:09:47 +000037253# Shell to use when invoking shell scripts.
37254SHELL=$lt_SHELL
37255
37256# An echo program that protects backslashes.
37257ECHO=$lt_ECHO
37258
cristy73bd4a52010-10-05 11:24:23 +000037259# Which release of libtool.m4 was used?
37260macro_version=$macro_version
37261macro_revision=$macro_revision
37262
37263# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037264AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037265
37266# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037267DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037268
37269# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037270OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037271
37272# Whether or not to build shared libraries.
37273build_libtool_libs=$enable_shared
37274
37275# Whether or not to build static libraries.
37276build_old_libs=$enable_static
37277
37278# What type of objects to build.
37279pic_mode=$pic_mode
37280
37281# Whether or not to optimize for fast installation.
37282fast_install=$enable_fast_install
37283
37284# The host system.
37285host_alias=$host_alias
37286host=$host
37287host_os=$host_os
37288
37289# The build system.
37290build_alias=$build_alias
37291build=$build
37292build_os=$build_os
37293
37294# A BSD- or MS-compatible name lister.
37295NM=$lt_NM
37296
37297# Whether we need soft or hard links.
37298LN_S=$lt_LN_S
37299
37300# What is the maximum length of a command?
37301max_cmd_len=$max_cmd_len
37302
37303# Object file suffix (normally "o").
37304objext=$ac_objext
37305
37306# Executable file suffix (normally "").
37307exeext=$exeext
37308
37309# whether the shell understands "unset".
37310lt_unset=$lt_unset
37311
37312# turn spaces into newlines.
37313SP2NL=$lt_lt_SP2NL
37314
37315# turn newlines into spaces.
37316NL2SP=$lt_lt_NL2SP
37317
cristyda16f162011-02-19 23:52:17 +000037318# convert \$build file names to \$host format.
37319to_host_file_cmd=$lt_cv_to_host_file_cmd
37320
37321# convert \$build files to toolchain format.
37322to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37323
cristy73bd4a52010-10-05 11:24:23 +000037324# Method to check whether dependent libraries are shared objects.
37325deplibs_check_method=$lt_deplibs_check_method
37326
cristyda16f162011-02-19 23:52:17 +000037327# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037328file_magic_cmd=$lt_file_magic_cmd
37329
cristyda16f162011-02-19 23:52:17 +000037330# How to find potential files when deplibs_check_method = "file_magic".
37331file_magic_glob=$lt_file_magic_glob
37332
37333# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37334want_nocaseglob=$lt_want_nocaseglob
37335
37336# Command to associate shared and link libraries.
37337sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37338
cristy73bd4a52010-10-05 11:24:23 +000037339# The archiver.
37340AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037341
37342# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037343AR_FLAGS=$lt_AR_FLAGS
37344
cristyda16f162011-02-19 23:52:17 +000037345# How to feed a file listing to the archiver.
37346archiver_list_spec=$lt_archiver_list_spec
37347
cristy73bd4a52010-10-05 11:24:23 +000037348# A symbol stripping program.
37349STRIP=$lt_STRIP
37350
37351# Commands used to install an old-style archive.
37352RANLIB=$lt_RANLIB
37353old_postinstall_cmds=$lt_old_postinstall_cmds
37354old_postuninstall_cmds=$lt_old_postuninstall_cmds
37355
cristy0c60a692010-11-04 01:09:47 +000037356# Whether to use a lock for old archive extraction.
37357lock_old_archive_extraction=$lock_old_archive_extraction
37358
cristy73bd4a52010-10-05 11:24:23 +000037359# A C compiler.
37360LTCC=$lt_CC
37361
37362# LTCC compiler flags.
37363LTCFLAGS=$lt_CFLAGS
37364
37365# Take the output of nm and produce a listing of raw symbols and C names.
37366global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37367
37368# Transform the output of nm in a proper C declaration.
37369global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37370
37371# Transform the output of nm in a C name address pair.
37372global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37373
37374# Transform the output of nm in a C name address pair when lib prefix is needed.
37375global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37376
cristyda16f162011-02-19 23:52:17 +000037377# Specify filename containing input files for \$NM.
37378nm_file_list_spec=$lt_nm_file_list_spec
37379
37380# The root where to search for dependent libraries,and in which our libraries should be installed.
37381lt_sysroot=$lt_sysroot
37382
cristy73bd4a52010-10-05 11:24:23 +000037383# The name of the directory that contains temporary libtool files.
37384objdir=$objdir
37385
cristy73bd4a52010-10-05 11:24:23 +000037386# Used to examine libraries when file_magic_cmd begins with "file".
37387MAGIC_CMD=$MAGIC_CMD
37388
37389# Must we lock files when doing compilation?
37390need_locks=$lt_need_locks
37391
cristyda16f162011-02-19 23:52:17 +000037392# Manifest tool.
37393MANIFEST_TOOL=$lt_MANIFEST_TOOL
37394
cristy73bd4a52010-10-05 11:24:23 +000037395# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37396DSYMUTIL=$lt_DSYMUTIL
37397
37398# Tool to change global to local symbols on Mac OS X.
37399NMEDIT=$lt_NMEDIT
37400
37401# Tool to manipulate fat objects and archives on Mac OS X.
37402LIPO=$lt_LIPO
37403
37404# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37405OTOOL=$lt_OTOOL
37406
37407# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37408OTOOL64=$lt_OTOOL64
37409
37410# Old archive suffix (normally "a").
37411libext=$libext
37412
37413# Shared library suffix (normally ".so").
37414shrext_cmds=$lt_shrext_cmds
37415
37416# The commands to extract the exported symbol list from a shared archive.
37417extract_expsyms_cmds=$lt_extract_expsyms_cmds
37418
37419# Variables whose values should be saved in libtool wrapper scripts and
37420# restored at link time.
37421variables_saved_for_relink=$lt_variables_saved_for_relink
37422
37423# Do we need the "lib" prefix for modules?
37424need_lib_prefix=$need_lib_prefix
37425
37426# Do we need a version for libraries?
37427need_version=$need_version
37428
37429# Library versioning type.
37430version_type=$version_type
37431
37432# Shared library runtime path variable.
37433runpath_var=$runpath_var
37434
37435# Shared library path variable.
37436shlibpath_var=$shlibpath_var
37437
37438# Is shlibpath searched before the hard-coded library search path?
37439shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37440
37441# Format of library name prefix.
37442libname_spec=$lt_libname_spec
37443
37444# List of archive names. First name is the real one, the rest are links.
37445# The last name is the one that the linker finds with -lNAME
37446library_names_spec=$lt_library_names_spec
37447
37448# The coded name of the library, if different from the real name.
37449soname_spec=$lt_soname_spec
37450
cristy0c60a692010-11-04 01:09:47 +000037451# Permission mode override for installation of shared libraries.
37452install_override_mode=$lt_install_override_mode
37453
cristy73bd4a52010-10-05 11:24:23 +000037454# Command to use after installation of a shared archive.
37455postinstall_cmds=$lt_postinstall_cmds
37456
37457# Command to use after uninstallation of a shared archive.
37458postuninstall_cmds=$lt_postuninstall_cmds
37459
37460# Commands used to finish a libtool library installation in a directory.
37461finish_cmds=$lt_finish_cmds
37462
37463# As "finish_cmds", except a single script fragment to be evaled but
37464# not shown.
37465finish_eval=$lt_finish_eval
37466
37467# Whether we should hardcode library paths into libraries.
37468hardcode_into_libs=$hardcode_into_libs
37469
37470# Compile-time system search path for libraries.
37471sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37472
37473# Run-time system search path for libraries.
37474sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37475
37476# Whether dlopen is supported.
37477dlopen_support=$enable_dlopen
37478
37479# Whether dlopen of programs is supported.
37480dlopen_self=$enable_dlopen_self
37481
37482# Whether dlopen of statically linked programs is supported.
37483dlopen_self_static=$enable_dlopen_self_static
37484
37485# Commands to strip libraries.
37486old_striplib=$lt_old_striplib
37487striplib=$lt_striplib
37488
37489
37490# The linker used to build libraries.
37491LD=$lt_LD
37492
cristy0c60a692010-11-04 01:09:47 +000037493# How to create reloadable object files.
37494reload_flag=$lt_reload_flag
37495reload_cmds=$lt_reload_cmds
37496
cristy73bd4a52010-10-05 11:24:23 +000037497# Commands used to build an old-style archive.
37498old_archive_cmds=$lt_old_archive_cmds
37499
37500# A language specific compiler.
37501CC=$lt_compiler
37502
37503# Is the compiler the GNU compiler?
37504with_gcc=$GCC
37505
37506# Compiler flag to turn off builtin functions.
37507no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37508
cristy73bd4a52010-10-05 11:24:23 +000037509# Additional compiler flags for building library objects.
37510pic_flag=$lt_lt_prog_compiler_pic
37511
cristyda16f162011-02-19 23:52:17 +000037512# How to pass a linker flag through the compiler.
37513wl=$lt_lt_prog_compiler_wl
37514
cristy73bd4a52010-10-05 11:24:23 +000037515# Compiler flag to prevent dynamic linking.
37516link_static_flag=$lt_lt_prog_compiler_static
37517
37518# Does compiler simultaneously support -c and -o options?
37519compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37520
37521# Whether or not to add -lc for building shared libraries.
37522build_libtool_need_lc=$archive_cmds_need_lc
37523
37524# Whether or not to disallow shared libs when runtime libs are static.
37525allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37526
37527# Compiler flag to allow reflexive dlopens.
37528export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37529
37530# Compiler flag to generate shared objects directly from archives.
37531whole_archive_flag_spec=$lt_whole_archive_flag_spec
37532
37533# Whether the compiler copes with passing no objects directly.
37534compiler_needs_object=$lt_compiler_needs_object
37535
37536# Create an old-style archive from a shared archive.
37537old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37538
37539# Create a temporary old-style archive to link instead of a shared archive.
37540old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37541
37542# Commands used to build a shared archive.
37543archive_cmds=$lt_archive_cmds
37544archive_expsym_cmds=$lt_archive_expsym_cmds
37545
37546# Commands used to build a loadable module if different from building
37547# a shared archive.
37548module_cmds=$lt_module_cmds
37549module_expsym_cmds=$lt_module_expsym_cmds
37550
37551# Whether we are building with GNU ld or not.
37552with_gnu_ld=$lt_with_gnu_ld
37553
37554# Flag that allows shared libraries with undefined symbols to be built.
37555allow_undefined_flag=$lt_allow_undefined_flag
37556
37557# Flag that enforces no undefined symbols.
37558no_undefined_flag=$lt_no_undefined_flag
37559
37560# Flag to hardcode \$libdir into a binary during linking.
37561# This must work even if \$libdir does not exist
37562hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37563
37564# If ld is used when linking, flag to hardcode \$libdir into a binary
37565# during linking. This must work even if \$libdir does not exist.
37566hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37567
37568# Whether we need a single "-rpath" flag with a separated argument.
37569hardcode_libdir_separator=$lt_hardcode_libdir_separator
37570
37571# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37572# DIR into the resulting binary.
37573hardcode_direct=$hardcode_direct
37574
37575# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37576# DIR into the resulting binary and the resulting library dependency is
37577# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37578# library is relocated.
37579hardcode_direct_absolute=$hardcode_direct_absolute
37580
37581# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37582# into the resulting binary.
37583hardcode_minus_L=$hardcode_minus_L
37584
37585# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37586# into the resulting binary.
37587hardcode_shlibpath_var=$hardcode_shlibpath_var
37588
37589# Set to "yes" if building a shared library automatically hardcodes DIR
37590# into the library and all subsequent libraries and executables linked
37591# against it.
37592hardcode_automatic=$hardcode_automatic
37593
37594# Set to yes if linker adds runtime paths of dependent libraries
37595# to runtime path list.
37596inherit_rpath=$inherit_rpath
37597
37598# Whether libtool must link a program against all its dependency libraries.
37599link_all_deplibs=$link_all_deplibs
37600
cristy73bd4a52010-10-05 11:24:23 +000037601# Set to "yes" if exported symbols are required.
37602always_export_symbols=$always_export_symbols
37603
37604# The commands to list exported symbols.
37605export_symbols_cmds=$lt_export_symbols_cmds
37606
37607# Symbols that should not be listed in the preloaded symbols.
37608exclude_expsyms=$lt_exclude_expsyms
37609
37610# Symbols that must always be exported.
37611include_expsyms=$lt_include_expsyms
37612
37613# Commands necessary for linking programs (against libraries) with templates.
37614prelink_cmds=$lt_prelink_cmds
37615
cristyda16f162011-02-19 23:52:17 +000037616# Commands necessary for finishing linking programs.
37617postlink_cmds=$lt_postlink_cmds
37618
cristy73bd4a52010-10-05 11:24:23 +000037619# Specify filename containing input files.
37620file_list_spec=$lt_file_list_spec
37621
37622# How to hardcode a shared library path into an executable.
37623hardcode_action=$hardcode_action
37624
37625# The directories searched by this compiler when creating a shared library.
37626compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37627
37628# Dependencies to place before and after the objects being linked to
37629# create a shared library.
37630predep_objects=$lt_predep_objects
37631postdep_objects=$lt_postdep_objects
37632predeps=$lt_predeps
37633postdeps=$lt_postdeps
37634
37635# The library search path used internally by the compiler when linking
37636# a shared library.
37637compiler_lib_search_path=$lt_compiler_lib_search_path
37638
37639# ### END LIBTOOL CONFIG
37640
37641_LT_EOF
37642
37643 case $host_os in
37644 aix3*)
37645 cat <<\_LT_EOF >> "$cfgfile"
37646# AIX sometimes has problems with the GCC collect2 program. For some
37647# reason, if we set the COLLECT_NAMES environment variable, the problems
37648# vanish in a puff of smoke.
37649if test "X${COLLECT_NAMES+set}" != Xset; then
37650 COLLECT_NAMES=
37651 export COLLECT_NAMES
37652fi
37653_LT_EOF
37654 ;;
37655 esac
37656
37657
37658ltmain="$ac_aux_dir/ltmain.sh"
37659
37660
37661 # We use sed instead of cat because bash on DJGPP gets confused if
37662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37663 # text mode, it properly converts lines to CR/LF. This bash problem
37664 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037665 sed '$q' "$ltmain" >> "$cfgfile" \
37666 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037667
cristyda16f162011-02-19 23:52:17 +000037668 if test x"$xsi_shell" = xyes; then
37669 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37670func_dirname ()\
37671{\
37672\ case ${1} in\
37673\ */*) func_dirname_result="${1%/*}${2}" ;;\
37674\ * ) func_dirname_result="${3}" ;;\
37675\ esac\
37676} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37677 && mv -f "$cfgfile.tmp" "$cfgfile" \
37678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37679test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037680
37681
cristyda16f162011-02-19 23:52:17 +000037682 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37683func_basename ()\
37684{\
37685\ func_basename_result="${1##*/}"\
37686} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37687 && mv -f "$cfgfile.tmp" "$cfgfile" \
37688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37689test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037690
37691
cristyda16f162011-02-19 23:52:17 +000037692 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37693func_dirname_and_basename ()\
37694{\
37695\ case ${1} in\
37696\ */*) func_dirname_result="${1%/*}${2}" ;;\
37697\ * ) func_dirname_result="${3}" ;;\
37698\ esac\
37699\ func_basename_result="${1##*/}"\
37700} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37701 && mv -f "$cfgfile.tmp" "$cfgfile" \
37702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37703test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037704
cristyda16f162011-02-19 23:52:17 +000037705
37706 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37707func_stripname ()\
37708{\
37709\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37710\ # positional parameters, so assign one to ordinary parameter first.\
37711\ func_stripname_result=${3}\
37712\ func_stripname_result=${func_stripname_result#"${1}"}\
37713\ func_stripname_result=${func_stripname_result%"${2}"}\
37714} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37715 && mv -f "$cfgfile.tmp" "$cfgfile" \
37716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37717test 0 -eq $? || _lt_function_replace_fail=:
37718
37719
37720 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37721func_split_long_opt ()\
37722{\
37723\ func_split_long_opt_name=${1%%=*}\
37724\ func_split_long_opt_arg=${1#*=}\
37725} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37726 && mv -f "$cfgfile.tmp" "$cfgfile" \
37727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37728test 0 -eq $? || _lt_function_replace_fail=:
37729
37730
37731 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37732func_split_short_opt ()\
37733{\
37734\ func_split_short_opt_arg=${1#??}\
37735\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37736} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37737 && mv -f "$cfgfile.tmp" "$cfgfile" \
37738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37739test 0 -eq $? || _lt_function_replace_fail=:
37740
37741
37742 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37743func_lo2o ()\
37744{\
37745\ case ${1} in\
37746\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37747\ *) func_lo2o_result=${1} ;;\
37748\ esac\
37749} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37750 && mv -f "$cfgfile.tmp" "$cfgfile" \
37751 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37752test 0 -eq $? || _lt_function_replace_fail=:
37753
37754
37755 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37756func_xform ()\
37757{\
37758 func_xform_result=${1%.*}.lo\
37759} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37760 && mv -f "$cfgfile.tmp" "$cfgfile" \
37761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37762test 0 -eq $? || _lt_function_replace_fail=:
37763
37764
37765 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37766func_arith ()\
37767{\
37768 func_arith_result=$(( $* ))\
37769} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37770 && mv -f "$cfgfile.tmp" "$cfgfile" \
37771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37772test 0 -eq $? || _lt_function_replace_fail=:
37773
37774
37775 sed -e '/^func_len ()$/,/^} # func_len /c\
37776func_len ()\
37777{\
37778 func_len_result=${#1}\
37779} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37780 && mv -f "$cfgfile.tmp" "$cfgfile" \
37781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37782test 0 -eq $? || _lt_function_replace_fail=:
37783
37784fi
37785
37786if test x"$lt_shell_append" = xyes; then
37787 sed -e '/^func_append ()$/,/^} # func_append /c\
37788func_append ()\
37789{\
37790 eval "${1}+=\\${2}"\
37791} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37792 && mv -f "$cfgfile.tmp" "$cfgfile" \
37793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37794test 0 -eq $? || _lt_function_replace_fail=:
37795
37796
37797 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37798func_append_quoted ()\
37799{\
37800\ func_quote_for_eval "${2}"\
37801\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37802} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37803 && mv -f "$cfgfile.tmp" "$cfgfile" \
37804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37805test 0 -eq $? || _lt_function_replace_fail=:
37806
37807
37808 # Save a `func_append' function call where possible by direct use of '+='
37809 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37810 && mv -f "$cfgfile.tmp" "$cfgfile" \
37811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37812 test 0 -eq $? || _lt_function_replace_fail=:
37813else
37814 # Save a `func_append' function call even when '+=' is not available
37815 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37816 && mv -f "$cfgfile.tmp" "$cfgfile" \
37817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37818 test 0 -eq $? || _lt_function_replace_fail=:
37819fi
37820
37821if test x"$_lt_function_replace_fail" = x":"; then
37822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37823$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37824fi
37825
37826
37827 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037828 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37829 chmod +x "$ofile"
37830
37831
37832 cat <<_LT_EOF >> "$ofile"
37833
37834# ### BEGIN LIBTOOL TAG CONFIG: CXX
37835
37836# The linker used to build libraries.
37837LD=$lt_LD_CXX
37838
cristy0c60a692010-11-04 01:09:47 +000037839# How to create reloadable object files.
37840reload_flag=$lt_reload_flag_CXX
37841reload_cmds=$lt_reload_cmds_CXX
37842
cristy73bd4a52010-10-05 11:24:23 +000037843# Commands used to build an old-style archive.
37844old_archive_cmds=$lt_old_archive_cmds_CXX
37845
37846# A language specific compiler.
37847CC=$lt_compiler_CXX
37848
37849# Is the compiler the GNU compiler?
37850with_gcc=$GCC_CXX
37851
37852# Compiler flag to turn off builtin functions.
37853no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37854
cristy73bd4a52010-10-05 11:24:23 +000037855# Additional compiler flags for building library objects.
37856pic_flag=$lt_lt_prog_compiler_pic_CXX
37857
cristyda16f162011-02-19 23:52:17 +000037858# How to pass a linker flag through the compiler.
37859wl=$lt_lt_prog_compiler_wl_CXX
37860
cristy73bd4a52010-10-05 11:24:23 +000037861# Compiler flag to prevent dynamic linking.
37862link_static_flag=$lt_lt_prog_compiler_static_CXX
37863
37864# Does compiler simultaneously support -c and -o options?
37865compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37866
37867# Whether or not to add -lc for building shared libraries.
37868build_libtool_need_lc=$archive_cmds_need_lc_CXX
37869
37870# Whether or not to disallow shared libs when runtime libs are static.
37871allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37872
37873# Compiler flag to allow reflexive dlopens.
37874export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37875
37876# Compiler flag to generate shared objects directly from archives.
37877whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37878
37879# Whether the compiler copes with passing no objects directly.
37880compiler_needs_object=$lt_compiler_needs_object_CXX
37881
37882# Create an old-style archive from a shared archive.
37883old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37884
37885# Create a temporary old-style archive to link instead of a shared archive.
37886old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37887
37888# Commands used to build a shared archive.
37889archive_cmds=$lt_archive_cmds_CXX
37890archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37891
37892# Commands used to build a loadable module if different from building
37893# a shared archive.
37894module_cmds=$lt_module_cmds_CXX
37895module_expsym_cmds=$lt_module_expsym_cmds_CXX
37896
37897# Whether we are building with GNU ld or not.
37898with_gnu_ld=$lt_with_gnu_ld_CXX
37899
37900# Flag that allows shared libraries with undefined symbols to be built.
37901allow_undefined_flag=$lt_allow_undefined_flag_CXX
37902
37903# Flag that enforces no undefined symbols.
37904no_undefined_flag=$lt_no_undefined_flag_CXX
37905
37906# Flag to hardcode \$libdir into a binary during linking.
37907# This must work even if \$libdir does not exist
37908hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37909
37910# If ld is used when linking, flag to hardcode \$libdir into a binary
37911# during linking. This must work even if \$libdir does not exist.
37912hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37913
37914# Whether we need a single "-rpath" flag with a separated argument.
37915hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37916
37917# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37918# DIR into the resulting binary.
37919hardcode_direct=$hardcode_direct_CXX
37920
37921# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37922# DIR into the resulting binary and the resulting library dependency is
37923# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37924# library is relocated.
37925hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37926
37927# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37928# into the resulting binary.
37929hardcode_minus_L=$hardcode_minus_L_CXX
37930
37931# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37932# into the resulting binary.
37933hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37934
37935# Set to "yes" if building a shared library automatically hardcodes DIR
37936# into the library and all subsequent libraries and executables linked
37937# against it.
37938hardcode_automatic=$hardcode_automatic_CXX
37939
37940# Set to yes if linker adds runtime paths of dependent libraries
37941# to runtime path list.
37942inherit_rpath=$inherit_rpath_CXX
37943
37944# Whether libtool must link a program against all its dependency libraries.
37945link_all_deplibs=$link_all_deplibs_CXX
37946
cristy73bd4a52010-10-05 11:24:23 +000037947# Set to "yes" if exported symbols are required.
37948always_export_symbols=$always_export_symbols_CXX
37949
37950# The commands to list exported symbols.
37951export_symbols_cmds=$lt_export_symbols_cmds_CXX
37952
37953# Symbols that should not be listed in the preloaded symbols.
37954exclude_expsyms=$lt_exclude_expsyms_CXX
37955
37956# Symbols that must always be exported.
37957include_expsyms=$lt_include_expsyms_CXX
37958
37959# Commands necessary for linking programs (against libraries) with templates.
37960prelink_cmds=$lt_prelink_cmds_CXX
37961
cristyda16f162011-02-19 23:52:17 +000037962# Commands necessary for finishing linking programs.
37963postlink_cmds=$lt_postlink_cmds_CXX
37964
cristy73bd4a52010-10-05 11:24:23 +000037965# Specify filename containing input files.
37966file_list_spec=$lt_file_list_spec_CXX
37967
37968# How to hardcode a shared library path into an executable.
37969hardcode_action=$hardcode_action_CXX
37970
37971# The directories searched by this compiler when creating a shared library.
37972compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37973
37974# Dependencies to place before and after the objects being linked to
37975# create a shared library.
37976predep_objects=$lt_predep_objects_CXX
37977postdep_objects=$lt_postdep_objects_CXX
37978predeps=$lt_predeps_CXX
37979postdeps=$lt_postdeps_CXX
37980
37981# The library search path used internally by the compiler when linking
37982# a shared library.
37983compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37984
37985# ### END LIBTOOL TAG CONFIG: CXX
37986_LT_EOF
37987
37988 ;;
cristy4c08aed2011-07-01 19:47:50 +000037989 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037990 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037991 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37992 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37993
37994 esac
37995done # for ac_tag
37996
37997
cristy8b350f62009-11-15 23:12:43 +000037998as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037999_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038000ac_clean_files=$ac_clean_files_save
38001
38002test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038003 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038004
38005
38006# configure is writing to config.log, and then calls config.status.
38007# config.status does its own redirection, appending to config.log.
38008# Unfortunately, on DOS this fails, as config.log is still kept open
38009# by configure, so config.status won't be able to write to it; its
38010# output is simply discarded. So we exec the FD to /dev/null,
38011# effectively closing config.log, so it can be properly (re)opened and
38012# appended to by config.status. When coming back to configure, we
38013# need to make the FD available again.
38014if test "$no_create" != yes; then
38015 ac_cs_success=:
38016 ac_config_status_args=
38017 test "$silent" = yes &&
38018 ac_config_status_args="$ac_config_status_args --quiet"
38019 exec 5>/dev/null
38020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38021 exec 5>>config.log
38022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38023 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038024 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038025fi
38026if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038028$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38029fi
38030
38031
38032rm -f magick-version
38033
cristy430a7312010-01-21 20:44:04 +000038034result_dejavu_font_dir='none'
38035if test "${dejavu_font_dir}x" != 'x'; then
38036 result_dejavu_font_dir=$dejavu_font_dir
38037fi
38038
cristy3ed852e2009-09-05 21:47:34 +000038039result_ghostscript_font_dir='none'
38040if test "${ghostscript_font_dir}x" != 'x'; then
38041 result_ghostscript_font_dir=$ghostscript_font_dir
38042fi
38043
38044result_windows_font_dir='none'
38045if test "${windows_font_dir}x" != 'x'; then
38046 result_windows_font_dir=${windows_font_dir}
38047fi
38048
cristy09b53e12011-10-14 12:47:22 +000038049{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038050ImageMagick is configured as follows. Please verify that this configuration
38051matches your expectations.
38052
38053Host system type: $host
38054Build system type: $build
38055
38056 Option Value
38057-------------------------------------------------------------------------------
38058Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38059Static libraries --enable-static=$enable_static $libtool_build_static_libs
38060Module support --with-modules=$with_modules $with_modules
38061GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38062Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38063High Dynamic Range Imagery
38064 --enable-hdri=$enable_hdri $enable_hdri
38065
38066Delegate Configuration:
38067BZLIB --with-bzlib=$with_bzlib $have_bzlib
38068Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038069Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038070DJVU --with-djvu=$with_djvu $have_djvu
38071DPS --with-dps=$with_dps $have_dps
38072FFTW --with-fftw=$with_fftw $have_fftw
38073FlashPIX --with-fpx=$with_fpx $have_fpx
38074FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38075FreeType --with-freetype=$with_freetype $have_freetype
38076GhostPCL None $PCLDelegate ($PCLVersion)
38077GhostXPS None $XPSDelegate ($XPSVersion)
38078Ghostscript None $PSDelegate ($GSVersion)
38079Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38080Ghostscript lib --with-gslib=$with_gslib $have_gslib
38081Graphviz --with-gvc=$with_gvc $have_gvc
38082JBIG --with-jbig=$with_jbig $have_jbig
38083JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38084JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038085LCMS v1 --with-lcms=$with_lcms $have_lcms
38086LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038087LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038088LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038089Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38090OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038091PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038092PERL --with-perl=$with_perl $have_perl
38093PNG --with-png=$with_png $have_png
38094RSVG --with-rsvg=$with_rsvg $have_rsvg
38095TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038096WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038097Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38098WMF --with-wmf=$with_wmf $have_wmf
38099X11 --with-x=$with_x $have_x
38100XML --with-xml=$with_xml $have_xml
38101ZLIB --with-zlib=$with_zlib $have_zlib
38102
38103X11 Configuration:
38104 X_CFLAGS = $X_CFLAGS
38105 X_PRE_LIBS = $X_PRE_LIBS
38106 X_LIBS = $X_LIBS
38107 X_EXTRA_LIBS = $X_EXTRA_LIBS
38108
38109Options used to compile and link:
38110 PREFIX = $PREFIX_DIR
38111 EXEC-PREFIX = $EXEC_PREFIX_DIR
38112 VERSION = $PACKAGE_VERSION
38113 CC = $CC
38114 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038115 CPPFLAGS = $MAGICK_CPPFLAGS
38116 PCFLAGS = $MAGICK_PCFLAGS
38117 DEFS = $DEFS
38118 LDFLAGS = $LDFLAGS
38119 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38120 LIBS = $MAGICK_LIBS
38121 CXX = $CXX
38122 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038123 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038124" >&5
cristy09b53e12011-10-14 12:47:22 +000038125$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038126ImageMagick is configured as follows. Please verify that this configuration
38127matches your expectations.
38128
38129Host system type: $host
38130Build system type: $build
38131
38132 Option Value
38133-------------------------------------------------------------------------------
38134Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38135Static libraries --enable-static=$enable_static $libtool_build_static_libs
38136Module support --with-modules=$with_modules $with_modules
38137GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38138Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38139High Dynamic Range Imagery
38140 --enable-hdri=$enable_hdri $enable_hdri
38141
38142Delegate Configuration:
38143BZLIB --with-bzlib=$with_bzlib $have_bzlib
38144Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038145Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038146DJVU --with-djvu=$with_djvu $have_djvu
38147DPS --with-dps=$with_dps $have_dps
38148FFTW --with-fftw=$with_fftw $have_fftw
38149FlashPIX --with-fpx=$with_fpx $have_fpx
38150FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38151FreeType --with-freetype=$with_freetype $have_freetype
38152GhostPCL None $PCLDelegate ($PCLVersion)
38153GhostXPS None $XPSDelegate ($XPSVersion)
38154Ghostscript None $PSDelegate ($GSVersion)
38155Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38156Ghostscript lib --with-gslib=$with_gslib $have_gslib
38157Graphviz --with-gvc=$with_gvc $have_gvc
38158JBIG --with-jbig=$with_jbig $have_jbig
38159JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38160JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038161LCMS v1 --with-lcms=$with_lcms $have_lcms
38162LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038163LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038164LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038165Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38166OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038167PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038168PERL --with-perl=$with_perl $have_perl
38169PNG --with-png=$with_png $have_png
38170RSVG --with-rsvg=$with_rsvg $have_rsvg
38171TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038172WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038173Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38174WMF --with-wmf=$with_wmf $have_wmf
38175X11 --with-x=$with_x $have_x
38176XML --with-xml=$with_xml $have_xml
38177ZLIB --with-zlib=$with_zlib $have_zlib
38178
38179X11 Configuration:
38180 X_CFLAGS = $X_CFLAGS
38181 X_PRE_LIBS = $X_PRE_LIBS
38182 X_LIBS = $X_LIBS
38183 X_EXTRA_LIBS = $X_EXTRA_LIBS
38184
38185Options used to compile and link:
38186 PREFIX = $PREFIX_DIR
38187 EXEC-PREFIX = $EXEC_PREFIX_DIR
38188 VERSION = $PACKAGE_VERSION
38189 CC = $CC
38190 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038191 CPPFLAGS = $MAGICK_CPPFLAGS
38192 PCFLAGS = $MAGICK_PCFLAGS
38193 DEFS = $DEFS
38194 LDFLAGS = $LDFLAGS
38195 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38196 LIBS = $MAGICK_LIBS
38197 CXX = $CXX
38198 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038199 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038200" >&6;}