blob: 882fb022e4daf124ef4f30a2874def2997881a33 [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
cristy2a11bef2011-10-28 18:33:11 +0000731INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000732PERLMAINCC
733XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000734XML_DELEGATE_FALSE
735XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000736xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000737WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000738WMF_DELEGATE_FALSE
739WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000740WEBP_LIBS
741WEBP_DELEGATE_FALSE
742WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000743TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000744TIFF_DELEGATE_FALSE
745TIFF_DELEGATE_TRUE
746CAIRO_DELEGATE_FALSE
747CAIRO_DELEGATE_TRUE
748RSVG_DELEGATE_FALSE
749RSVG_DELEGATE_TRUE
750CAIRO_SVG_LIBS
751CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000752RSVG_LIBS
753RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000754PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755PNG_DELEGATE_FALSE
756PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000757PANGOFT2_DELEGATE_FALSE
758PANGOFT2_DELEGATE_TRUE
759PANGO_DELEGATE_FALSE
760PANGO_DELEGATE_TRUE
761PANGO_LIBS
762PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000763OPENEXR_DELEGATE_FALSE
764OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765OPENEXR_LIBS
766OPENEXR_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000767LZMA_LIBS
cristyfbb0ef02010-12-19 02:32:11 +0000768LZMA_DELEGATE_FALSE
769LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000770LQR_DELEGATE_FALSE
771LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000772LQR_LIBS
773LQR_CFLAGS
774LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775LCMS_DELEGATE_FALSE
776LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778JP2_DELEGATE_FALSE
779JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JPEG_DELEGATE_FALSE
782JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784JBIG_DELEGATE_FALSE
785JBIG_DELEGATE_TRUE
786GVC_DELEGATE_FALSE
787GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000788GVC_LIBS
789GVC_CFLAGS
790GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000791GS_DELEGATE_FALSE
792GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794FREETYPE_DELEGATE_FALSE
795FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000796freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000797FONTCONFIG_DELEGATE_FALSE
798FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799FONTCONFIG_LIBS
800FONTCONFIG_CFLAGS
801FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802FPX_DELEGATE_FALSE
803FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805FFTW_DELEGATE_FALSE
806FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808DJVU_DELEGATE_FALSE
809DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811DPS_DELEGATE_FALSE
812DPS_DELEGATE_TRUE
813AUTOTRACE_DELEGATE_FALSE
814AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815AUTOTRACE_LIBS
816AUTOTRACE_CFLAGS
817LIB_DL
818ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000819ZLIB_DELEGATE_FALSE
820ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821XEXT_LIBS
822X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000823X11_DELEGATE_FALSE
824X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000825X_EXTRA_LIBS
826X_LIBS
827X_PRE_LIBS
828X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000829XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000830BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831BZLIB_DELEGATE_FALSE
832BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833CCMALLOCDelegate
834UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000835HasUMEM_FALSE
836HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837THREAD_LIBS
838GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000839WITH_MAGICK_PLUS_PLUS_FALSE
840WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000841OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000842MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000843POW_LIB
844LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000845UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000846UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000847UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000848UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000849UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000850UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000851INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000852INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000853UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000854UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000855INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000856INT32_T
857UINT16_T
858INT16_T
859UINT8_T
860INT8_T
861LIBRARY_EXTRA_CPPFLAGS
862MODULE_EXTRA_CPPFLAGS
863LIBSTDCLDFLAGS
864PERL_MAKE_OPTIONS
865QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000866MAINT
867MAINTAINER_MODE_FALSE
868MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000869MAGICK_HDRI
870DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000871WITH_LTDL_FALSE
872WITH_LTDL_TRUE
873WITH_MODULES_FALSE
874WITH_MODULES_TRUE
875WITH_SHARED_LIBS_FALSE
876WITH_SHARED_LIBS_TRUE
877LTDLOPEN
878LT_CONFIG_H
879CONVENIENCE_LTDL_FALSE
880CONVENIENCE_LTDL_TRUE
881INSTALL_LTDL_FALSE
882INSTALL_LTDL_TRUE
883ARGZ_H
884sys_symbol_underscore
885LIBADD_DL
886LT_DLPREOPEN
887LIBADD_DLD_LINK
888LIBADD_SHL_LOAD
889LIBADD_DLOPEN
890LT_DLLOADERS
891INCLTDL
892LTDLINCL
893LTDLDEPS
894LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000895LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000896CXXCPP
897OTOOL64
898OTOOL
899LIPO
900NMEDIT
901DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000902MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000903RANLIB
cristyda16f162011-02-19 23:52:17 +0000904ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000905AR
906NM
907ac_ct_DUMPBIN
908DUMPBIN
909LIBTOOL
910OBJDUMP
911DLLTOOL
912AS
cristy3ed852e2009-09-05 21:47:34 +0000913LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000914CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000915CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000916OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000917PTHREAD_CFLAGS
918PTHREAD_LIBS
919PTHREAD_CC
920ax_pthread_config
cristy7def36a2011-10-28 19:04:41 +0000921SHAREDIR_ARCH
cristyac9041a2011-10-28 16:52:32 +0000922INCLUDEDIR_ARCH
cristy3ed852e2009-09-05 21:47:34 +0000923WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000924USING_CL_FALSE
925USING_CL_TRUE
926CYGWIN_BUILD_FALSE
927CYGWIN_BUILD_TRUE
928WIN32_NATIVE_BUILD_FALSE
929WIN32_NATIVE_BUILD_TRUE
930WINGDI32_DELEGATE_FALSE
931WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000932GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000933PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000934LN_S
cristy3ed852e2009-09-05 21:47:34 +0000935LD
cristy73bd4a52010-10-05 11:24:23 +0000936FGREP
937SED
938am__fastdepCXX_FALSE
939am__fastdepCXX_TRUE
940CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000941ac_ct_CXX
942CXXFLAGS
943CXX
cristya0b81c32010-01-22 02:54:33 +0000944EGREP
945GREP
946CPP
cristy73bd4a52010-10-05 11:24:23 +0000947am__fastdepCC_FALSE
948am__fastdepCC_TRUE
949CCDEPMODE
950AMDEPBACKSLASH
951AMDEP_FALSE
952AMDEP_TRUE
953am__quote
954am__include
955DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000956OBJEXT
957EXEEXT
958ac_ct_CC
959CPPFLAGS
960LDFLAGS
961CFLAGS
962CC
963DIRSEP
964MAGICK_FILTER_MODULE_PATH
965MAGICK_CONFIGURE_BUILD_PATH
966MAGICK_CONFIGURE_SRC_PATH
967MAGICK_CODER_MODULE_PATH
968MAN_DIR
969INFO_DIR
970PERSISTINCLUDE_DIR
971INCLUDE_DIR
972LIB_DIR
973LOCALSTATE_DIR
974SHAREDSTATE_DIR
975SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000976DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000977DATA_DIR
978LIBEXEC_DIR
979SBIN_DIR
980BIN_DIR
981EXEC_PREFIX_DIR
982PREFIX_DIR
983CONFIG_STATUS_DEPENDENCIES
984MAGICK_LIB_VERSION_NUMBER
985MAGICK_LIB_VERSION_TEXT
986MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000987AM_BACKSLASH
988AM_DEFAULT_VERBOSITY
989am__untar
990am__tar
991AMTAR
992am__leading_dot
993SET_MAKE
994AWK
995mkdir_p
996MKDIR_P
997INSTALL_STRIP_PROGRAM
998STRIP
999install_sh
1000MAKEINFO
1001AUTOHEADER
1002AUTOMAKE
1003AUTOCONF
1004ACLOCAL
1005VERSION
1006PACKAGE
1007CYGPATH_W
1008am__isrc
1009INSTALL_DATA
1010INSTALL_SCRIPT
1011INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001012PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001013PACKAGE_RELEASE_DATE
1014PACKAGE_LIB_VERSION_NUMBER
1015PACKAGE_LIB_VERSION
1016PACKAGE_CHANGE_DATE
1017PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001018PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001019MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001020MAGICK_LIBRARY_VERSION_INFO
1021MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001022MAGICK_LIBRARY_AGE
1023MAGICK_LIBRARY_REVISION
1024MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001025MAGICK_TARGET_OS
1026MAGICK_TARGET_VENDOR
1027MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001028target_os
1029target_vendor
1030target_cpu
1031target
1032host_os
1033host_vendor
1034host_cpu
1035host
1036build_os
1037build_vendor
1038build_cpu
1039build
1040CONFIGURE_ARGS
1041DISTCHECK_CONFIG_FLAGS
1042target_alias
1043host_alias
1044build_alias
1045LIBS
1046ECHO_T
1047ECHO_N
1048ECHO_C
1049DEFS
1050mandir
1051localedir
1052libdir
1053psdir
1054pdfdir
1055dvidir
1056htmldir
1057infodir
1058docdir
1059oldincludedir
1060includedir
1061localstatedir
1062sharedstatedir
1063sysconfdir
1064datadir
1065datarootdir
1066libexecdir
1067sbindir
1068bindir
1069program_transform_name
1070prefix
1071exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001072PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001073PACKAGE_BUGREPORT
1074PACKAGE_STRING
1075PACKAGE_VERSION
1076PACKAGE_TARNAME
1077PACKAGE_NAME
1078PATH_SEPARATOR
1079SHELL'
1080ac_subst_files=''
1081ac_user_opts='
1082enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001083enable_silent_rules
1084enable_dependency_tracking
1085with_gnu_ld
1086with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001087enable_bounds_checking
1088enable_osx_universal_binary
cristy0151ae12011-10-28 16:32:29 +00001089with_includedir_arch
cristy7def36a2011-10-28 19:04:41 +00001090with_sharedir_arch
cristy3ed852e2009-09-05 21:47:34 +00001091with_threads
1092enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001093enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001094enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001095enable_shared
1096enable_static
1097with_pic
1098enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001099with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001100enable_libtool_lock
1101with_included_ltdl
1102with_ltdl_include
1103with_ltdl_lib
1104enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001105with_modules
1106enable_delegate_build
1107enable_deprecated
1108enable_installed
1109enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001110enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001111enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001112enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001113enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001114enable_ccmalloc
1115enable_efence
1116enable_prof
1117enable_gprof
1118enable_gcov
1119with_method_prefix
1120with_quantum_depth
1121with_cache
1122with_frozenpaths
1123with_magick_plus_plus
1124with_perl
1125with_perl_options
1126with_umem
1127with_libstdc
1128with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001129with_x
cristy3ed852e2009-09-05 21:47:34 +00001130with_zlib
1131with_autotrace
1132with_dps
1133with_djvu
cristy430a7312010-01-21 20:44:04 +00001134with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001135with_fftw
1136with_fpx
1137with_fontconfig
1138with_freetype
1139with_gslib
1140with_fontpath
1141with_gs_font_dir
1142with_gvc
1143with_jbig
1144with_jpeg
1145with_jp2
1146with_lcms
cristy71203402010-06-18 13:12:03 +00001147with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001148with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001149with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001150with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001151with_pango
cristy3ed852e2009-09-05 21:47:34 +00001152with_png
1153with_rsvg
1154with_tiff
cristyb1860752011-03-14 00:27:46 +00001155with_webp
cristy3ed852e2009-09-05 21:47:34 +00001156with_windows_font_dir
1157with_wmf
1158with_xml
1159'
1160 ac_precious_vars='build_alias
1161host_alias
1162target_alias
1163CC
1164CFLAGS
1165LDFLAGS
1166LIBS
1167CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001168CPP
cristy3ed852e2009-09-05 21:47:34 +00001169CXX
1170CXXFLAGS
1171CCC
cristy73bd4a52010-10-05 11:24:23 +00001172PKG_CONFIG
1173CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001174XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001175AUTOTRACE_CFLAGS
1176AUTOTRACE_LIBS
1177FONTCONFIG_CFLAGS
1178FONTCONFIG_LIBS
1179GVC_CFLAGS
1180GVC_LIBS
1181LQR_CFLAGS
1182LQR_LIBS
1183OPENEXR_CFLAGS
1184OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001185PANGO_CFLAGS
1186PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001187RSVG_CFLAGS
1188RSVG_LIBS
1189CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001190CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001191
1192
1193# Initialize some variables set by options.
1194ac_init_help=
1195ac_init_version=false
1196ac_unrecognized_opts=
1197ac_unrecognized_sep=
1198# The variables have the same names as the options, with
1199# dashes changed to underlines.
1200cache_file=/dev/null
1201exec_prefix=NONE
1202no_create=
1203no_recursion=
1204prefix=NONE
1205program_prefix=NONE
1206program_suffix=NONE
1207program_transform_name=s,x,x,
1208silent=
1209site=
1210srcdir=
1211verbose=
1212x_includes=NONE
1213x_libraries=NONE
1214
1215# Installation directory options.
1216# These are left unexpanded so users can "make install exec_prefix=/foo"
1217# and all the variables that are supposed to be based on exec_prefix
1218# by default will actually change.
1219# Use braces instead of parens because sh, perl, etc. also accept them.
1220# (The list follows the same order as the GNU Coding Standards.)
1221bindir='${exec_prefix}/bin'
1222sbindir='${exec_prefix}/sbin'
1223libexecdir='${exec_prefix}/libexec'
1224datarootdir='${prefix}/share'
1225datadir='${datarootdir}'
1226sysconfdir='${prefix}/etc'
1227sharedstatedir='${prefix}/com'
1228localstatedir='${prefix}/var'
1229includedir='${prefix}/include'
1230oldincludedir='/usr/include'
1231docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1232infodir='${datarootdir}/info'
1233htmldir='${docdir}'
1234dvidir='${docdir}'
1235pdfdir='${docdir}'
1236psdir='${docdir}'
1237libdir='${exec_prefix}/lib'
1238localedir='${datarootdir}/locale'
1239mandir='${datarootdir}/man'
1240
1241ac_prev=
1242ac_dashdash=
1243for ac_option
1244do
1245 # If the previous option needs an argument, assign it.
1246 if test -n "$ac_prev"; then
1247 eval $ac_prev=\$ac_option
1248 ac_prev=
1249 continue
1250 fi
1251
1252 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001253 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1254 *=) ac_optarg= ;;
1255 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001256 esac
1257
1258 # Accept the important Cygnus configure options, so we can diagnose typos.
1259
1260 case $ac_dashdash$ac_option in
1261 --)
1262 ac_dashdash=yes ;;
1263
1264 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1265 ac_prev=bindir ;;
1266 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1267 bindir=$ac_optarg ;;
1268
1269 -build | --build | --buil | --bui | --bu)
1270 ac_prev=build_alias ;;
1271 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1272 build_alias=$ac_optarg ;;
1273
1274 -cache-file | --cache-file | --cache-fil | --cache-fi \
1275 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1276 ac_prev=cache_file ;;
1277 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1278 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1279 cache_file=$ac_optarg ;;
1280
1281 --config-cache | -C)
1282 cache_file=config.cache ;;
1283
1284 -datadir | --datadir | --datadi | --datad)
1285 ac_prev=datadir ;;
1286 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1287 datadir=$ac_optarg ;;
1288
1289 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1290 | --dataroo | --dataro | --datar)
1291 ac_prev=datarootdir ;;
1292 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1293 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1294 datarootdir=$ac_optarg ;;
1295
1296 -disable-* | --disable-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001300 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1304 *"
1305"enable_$ac_useropt"
1306"*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval enable_$ac_useropt=no ;;
1311
1312 -docdir | --docdir | --docdi | --doc | --do)
1313 ac_prev=docdir ;;
1314 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1315 docdir=$ac_optarg ;;
1316
1317 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1318 ac_prev=dvidir ;;
1319 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1320 dvidir=$ac_optarg ;;
1321
1322 -enable-* | --enable-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001326 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331"enable_$ac_useropt"
1332"*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval enable_$ac_useropt=\$ac_optarg ;;
1337
1338 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1339 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1340 | --exec | --exe | --ex)
1341 ac_prev=exec_prefix ;;
1342 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1343 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1344 | --exec=* | --exe=* | --ex=*)
1345 exec_prefix=$ac_optarg ;;
1346
1347 -gas | --gas | --ga | --g)
1348 # Obsolete; use --with-gas.
1349 with_gas=yes ;;
1350
1351 -help | --help | --hel | --he | -h)
1352 ac_init_help=long ;;
1353 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1354 ac_init_help=recursive ;;
1355 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1356 ac_init_help=short ;;
1357
1358 -host | --host | --hos | --ho)
1359 ac_prev=host_alias ;;
1360 -host=* | --host=* | --hos=* | --ho=*)
1361 host_alias=$ac_optarg ;;
1362
1363 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1364 ac_prev=htmldir ;;
1365 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1366 | --ht=*)
1367 htmldir=$ac_optarg ;;
1368
1369 -includedir | --includedir | --includedi | --included | --include \
1370 | --includ | --inclu | --incl | --inc)
1371 ac_prev=includedir ;;
1372 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1373 | --includ=* | --inclu=* | --incl=* | --inc=*)
1374 includedir=$ac_optarg ;;
1375
1376 -infodir | --infodir | --infodi | --infod | --info | --inf)
1377 ac_prev=infodir ;;
1378 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1379 infodir=$ac_optarg ;;
1380
1381 -libdir | --libdir | --libdi | --libd)
1382 ac_prev=libdir ;;
1383 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1384 libdir=$ac_optarg ;;
1385
1386 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1387 | --libexe | --libex | --libe)
1388 ac_prev=libexecdir ;;
1389 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1390 | --libexe=* | --libex=* | --libe=*)
1391 libexecdir=$ac_optarg ;;
1392
1393 -localedir | --localedir | --localedi | --localed | --locale)
1394 ac_prev=localedir ;;
1395 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1396 localedir=$ac_optarg ;;
1397
1398 -localstatedir | --localstatedir | --localstatedi | --localstated \
1399 | --localstate | --localstat | --localsta | --localst | --locals)
1400 ac_prev=localstatedir ;;
1401 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1402 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1403 localstatedir=$ac_optarg ;;
1404
1405 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1406 ac_prev=mandir ;;
1407 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1408 mandir=$ac_optarg ;;
1409
1410 -nfp | --nfp | --nf)
1411 # Obsolete; use --without-fp.
1412 with_fp=no ;;
1413
1414 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1415 | --no-cr | --no-c | -n)
1416 no_create=yes ;;
1417
1418 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1419 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1420 no_recursion=yes ;;
1421
1422 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1423 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1424 | --oldin | --oldi | --old | --ol | --o)
1425 ac_prev=oldincludedir ;;
1426 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1427 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1428 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1429 oldincludedir=$ac_optarg ;;
1430
1431 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1432 ac_prev=prefix ;;
1433 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1434 prefix=$ac_optarg ;;
1435
1436 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1437 | --program-pre | --program-pr | --program-p)
1438 ac_prev=program_prefix ;;
1439 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1440 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1441 program_prefix=$ac_optarg ;;
1442
1443 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1444 | --program-suf | --program-su | --program-s)
1445 ac_prev=program_suffix ;;
1446 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1447 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1448 program_suffix=$ac_optarg ;;
1449
1450 -program-transform-name | --program-transform-name \
1451 | --program-transform-nam | --program-transform-na \
1452 | --program-transform-n | --program-transform- \
1453 | --program-transform | --program-transfor \
1454 | --program-transfo | --program-transf \
1455 | --program-trans | --program-tran \
1456 | --progr-tra | --program-tr | --program-t)
1457 ac_prev=program_transform_name ;;
1458 -program-transform-name=* | --program-transform-name=* \
1459 | --program-transform-nam=* | --program-transform-na=* \
1460 | --program-transform-n=* | --program-transform-=* \
1461 | --program-transform=* | --program-transfor=* \
1462 | --program-transfo=* | --program-transf=* \
1463 | --program-trans=* | --program-tran=* \
1464 | --progr-tra=* | --program-tr=* | --program-t=*)
1465 program_transform_name=$ac_optarg ;;
1466
1467 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1468 ac_prev=pdfdir ;;
1469 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1470 pdfdir=$ac_optarg ;;
1471
1472 -psdir | --psdir | --psdi | --psd | --ps)
1473 ac_prev=psdir ;;
1474 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1475 psdir=$ac_optarg ;;
1476
1477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1478 | -silent | --silent | --silen | --sile | --sil)
1479 silent=yes ;;
1480
1481 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1482 ac_prev=sbindir ;;
1483 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1484 | --sbi=* | --sb=*)
1485 sbindir=$ac_optarg ;;
1486
1487 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1488 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1489 | --sharedst | --shareds | --shared | --share | --shar \
1490 | --sha | --sh)
1491 ac_prev=sharedstatedir ;;
1492 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1493 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1494 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1495 | --sha=* | --sh=*)
1496 sharedstatedir=$ac_optarg ;;
1497
1498 -site | --site | --sit)
1499 ac_prev=site ;;
1500 -site=* | --site=* | --sit=*)
1501 site=$ac_optarg ;;
1502
1503 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1504 ac_prev=srcdir ;;
1505 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1506 srcdir=$ac_optarg ;;
1507
1508 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1509 | --syscon | --sysco | --sysc | --sys | --sy)
1510 ac_prev=sysconfdir ;;
1511 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1512 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1513 sysconfdir=$ac_optarg ;;
1514
1515 -target | --target | --targe | --targ | --tar | --ta | --t)
1516 ac_prev=target_alias ;;
1517 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1518 target_alias=$ac_optarg ;;
1519
1520 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1521 verbose=yes ;;
1522
1523 -version | --version | --versio | --versi | --vers | -V)
1524 ac_init_version=: ;;
1525
1526 -with-* | --with-*)
1527 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1528 # Reject names that are not valid shell variable names.
1529 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001530 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001531 ac_useropt_orig=$ac_useropt
1532 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1533 case $ac_user_opts in
1534 *"
1535"with_$ac_useropt"
1536"*) ;;
1537 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1538 ac_unrecognized_sep=', ';;
1539 esac
1540 eval with_$ac_useropt=\$ac_optarg ;;
1541
1542 -without-* | --without-*)
1543 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1544 # Reject names that are not valid shell variable names.
1545 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001546 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001547 ac_useropt_orig=$ac_useropt
1548 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1549 case $ac_user_opts in
1550 *"
1551"with_$ac_useropt"
1552"*) ;;
1553 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1554 ac_unrecognized_sep=', ';;
1555 esac
1556 eval with_$ac_useropt=no ;;
1557
1558 --x)
1559 # Obsolete; use --with-x.
1560 with_x=yes ;;
1561
1562 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1563 | --x-incl | --x-inc | --x-in | --x-i)
1564 ac_prev=x_includes ;;
1565 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1566 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1567 x_includes=$ac_optarg ;;
1568
1569 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1570 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1571 ac_prev=x_libraries ;;
1572 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1573 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1574 x_libraries=$ac_optarg ;;
1575
cristy98dddb52010-11-04 00:30:15 +00001576 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1577Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001578 ;;
1579
1580 *=*)
1581 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1582 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001583 case $ac_envvar in #(
1584 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001585 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001586 esac
cristy3ed852e2009-09-05 21:47:34 +00001587 eval $ac_envvar=\$ac_optarg
1588 export $ac_envvar ;;
1589
1590 *)
1591 # FIXME: should be removed in autoconf 3.0.
1592 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1593 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1594 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001595 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001596 ;;
1597
1598 esac
1599done
1600
1601if test -n "$ac_prev"; then
1602 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001603 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001604fi
1605
1606if test -n "$ac_unrecognized_opts"; then
1607 case $enable_option_checking in
1608 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001609 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001610 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1611 esac
1612fi
1613
1614# Check all directory arguments for consistency.
1615for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1616 datadir sysconfdir sharedstatedir localstatedir includedir \
1617 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1618 libdir localedir mandir
1619do
1620 eval ac_val=\$$ac_var
1621 # Remove trailing slashes.
1622 case $ac_val in
1623 */ )
1624 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1625 eval $ac_var=\$ac_val;;
1626 esac
1627 # Be sure to have absolute directory names.
1628 case $ac_val in
1629 [\\/$]* | ?:[\\/]* ) continue;;
1630 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1631 esac
cristy98dddb52010-11-04 00:30:15 +00001632 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001633done
1634
1635# There might be people who depend on the old broken behavior: `$host'
1636# used to hold the argument of --host etc.
1637# FIXME: To remove some day.
1638build=$build_alias
1639host=$host_alias
1640target=$target_alias
1641
1642# FIXME: To remove some day.
1643if test "x$host_alias" != x; then
1644 if test "x$build_alias" = x; then
1645 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001646 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1647 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001648 elif test "x$build_alias" != "x$host_alias"; then
1649 cross_compiling=yes
1650 fi
1651fi
1652
1653ac_tool_prefix=
1654test -n "$host_alias" && ac_tool_prefix=$host_alias-
1655
1656test "$silent" = yes && exec 6>/dev/null
1657
1658
1659ac_pwd=`pwd` && test -n "$ac_pwd" &&
1660ac_ls_di=`ls -di .` &&
1661ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001662 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001663test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001664 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001665
1666
1667# Find the source files, if location was not specified.
1668if test -z "$srcdir"; then
1669 ac_srcdir_defaulted=yes
1670 # Try the directory containing this script, then the parent directory.
1671 ac_confdir=`$as_dirname -- "$as_myself" ||
1672$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1673 X"$as_myself" : 'X\(//\)[^/]' \| \
1674 X"$as_myself" : 'X\(//\)$' \| \
1675 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1676$as_echo X"$as_myself" |
1677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1678 s//\1/
1679 q
1680 }
1681 /^X\(\/\/\)[^/].*/{
1682 s//\1/
1683 q
1684 }
1685 /^X\(\/\/\)$/{
1686 s//\1/
1687 q
1688 }
1689 /^X\(\/\).*/{
1690 s//\1/
1691 q
1692 }
1693 s/.*/./; q'`
1694 srcdir=$ac_confdir
1695 if test ! -r "$srcdir/$ac_unique_file"; then
1696 srcdir=..
1697 fi
1698else
1699 ac_srcdir_defaulted=no
1700fi
1701if test ! -r "$srcdir/$ac_unique_file"; then
1702 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001703 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001704fi
1705ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1706ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001707 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001708 pwd)`
1709# When building in place, set srcdir=.
1710if test "$ac_abs_confdir" = "$ac_pwd"; then
1711 srcdir=.
1712fi
1713# Remove unnecessary trailing slashes from srcdir.
1714# Double slashes in file names in object file debugging info
1715# mess up M-x gdb in Emacs.
1716case $srcdir in
1717*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1718esac
1719for ac_var in $ac_precious_vars; do
1720 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1721 eval ac_env_${ac_var}_value=\$${ac_var}
1722 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1723 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1724done
1725
1726#
1727# Report the --help message.
1728#
1729if test "$ac_init_help" = "long"; then
1730 # Omit some internal or obsolete options to make the list less imposing.
1731 # This message is too long to be a string in the A/UX 3.1 sh.
1732 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001733\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001734
1735Usage: $0 [OPTION]... [VAR=VALUE]...
1736
1737To assign environment variables (e.g., CC, CFLAGS...), specify them as
1738VAR=VALUE. See below for descriptions of some of the useful variables.
1739
1740Defaults for the options are specified in brackets.
1741
1742Configuration:
1743 -h, --help display this help and exit
1744 --help=short display options specific to this package
1745 --help=recursive display the short help of all the included packages
1746 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001747 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001748 --cache-file=FILE cache test results in FILE [disabled]
1749 -C, --config-cache alias for \`--cache-file=config.cache'
1750 -n, --no-create do not create output files
1751 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1752
1753Installation directories:
1754 --prefix=PREFIX install architecture-independent files in PREFIX
1755 [$ac_default_prefix]
1756 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1757 [PREFIX]
1758
1759By default, \`make install' will install all the files in
1760\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1761an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1762for instance \`--prefix=\$HOME'.
1763
1764For better control, use the options below.
1765
1766Fine tuning of the installation directories:
1767 --bindir=DIR user executables [EPREFIX/bin]
1768 --sbindir=DIR system admin executables [EPREFIX/sbin]
1769 --libexecdir=DIR program executables [EPREFIX/libexec]
1770 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1771 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1772 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1773 --libdir=DIR object code libraries [EPREFIX/lib]
1774 --includedir=DIR C header files [PREFIX/include]
1775 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1776 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1777 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1778 --infodir=DIR info documentation [DATAROOTDIR/info]
1779 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1780 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001781 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001782 --htmldir=DIR html documentation [DOCDIR]
1783 --dvidir=DIR dvi documentation [DOCDIR]
1784 --pdfdir=DIR pdf documentation [DOCDIR]
1785 --psdir=DIR ps documentation [DOCDIR]
1786_ACEOF
1787
1788 cat <<\_ACEOF
1789
cristy73bd4a52010-10-05 11:24:23 +00001790Program names:
1791 --program-prefix=PREFIX prepend PREFIX to installed program names
1792 --program-suffix=SUFFIX append SUFFIX to installed program names
1793 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1794
cristy3ed852e2009-09-05 21:47:34 +00001795X features:
1796 --x-includes=DIR X include files are in DIR
1797 --x-libraries=DIR X library files are in DIR
1798
1799System types:
1800 --build=BUILD configure for building on BUILD [guessed]
1801 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1802 --target=TARGET configure for building compilers for TARGET [HOST]
1803_ACEOF
1804fi
1805
1806if test -n "$ac_init_help"; then
1807 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001808 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001809 esac
1810 cat <<\_ACEOF
1811
1812Optional Features:
1813 --disable-option-checking ignore unrecognized --enable/--with options
1814 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1815 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001816 --enable-silent-rules less verbose build output (undo: `make V=1')
1817 --disable-silent-rules verbose build output (undo: `make V=0')
1818 --disable-dependency-tracking speeds up one-time build
1819 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001820 --bounds-checking enable run-time bounds-checking
1821 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001822 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001823 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001824 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001825 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001826 --enable-shared[=PKGS] build shared libraries [default=yes]
1827 --enable-static[=PKGS] build static libraries [default=yes]
1828 --enable-fast-install[=PKGS]
1829 optimize for fast installation [default=yes]
1830 --disable-libtool-lock avoid locking (might break parallel builds)
1831 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001832 --enable-delegate-build look for delegate libraries in build directory
1833 --disable-deprecated exclude deprecated methods in MagickCore and
1834 MagickWand API's
1835 --disable-installed Formally install ImageMagick under PREFIX
1836 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001837 --enable-zero-configuration
1838 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001839 zero-configuration ImageMagick
1840 --enable-hdri accurately represent the wide range of intensity
1841 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001842 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001843 --enable-maintainer-mode enable make rules and dependencies not useful
1844 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001845 --enable-ccmalloc enable 'ccmalloc' memory debug support
1846 --enable-efence enable 'efence' memory debug support
1847 --enable-prof enable 'prof' profiling support
1848 --enable-gprof enable 'gprof' profiling support
1849 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001850 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001851
1852Optional Packages:
1853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001855 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1856 --with-dmalloc use dmalloc, as in
1857 http://www.dmalloc.com/dmalloc.tar.gz
cristy0151ae12011-10-28 16:32:29 +00001858 --includedir-arch=DIR ARCH specific include directory
cristy7def36a2011-10-28 19:04:41 +00001859 --sharedir-arch=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001860 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001861 --with-pic try to use only PIC/non-PIC objects [default=use
1862 both]
cristyda16f162011-02-19 23:52:17 +00001863 --with-sysroot=DIR Search for dependent libraries within DIR
1864 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001865 --with-included-ltdl use the GNU ltdl sources included here
1866 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1867 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001868 --with-modules enable building dynamically loadable modules
1869 --with-method-prefix=PREFIX
1870 prefix MagickCore API methods
1871 --with-quantum-depth=DEPTH
1872 number of bits in a pixel quantum (default 16)
1873 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1874 memory)
1875 --with-frozenpaths freeze delegate paths
1876 --without-magick-plus-plus
1877 disable build/install of Magick++
1878 --with-perl enable build/install of PerlMagick
1879 --with-perl-options=OPTIONS
1880 options to pass on command-line when generating
1881 PerlMagick's build file
1882 --with-umem enable umem memory allocation library support
1883 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1884 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001885 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001886 --without-zlib disable ZLIB support
1887 --with-autotrace enable autotrace support
1888 --without-dps disable Display Postscript support
1889 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001890 --with-dejavu-font-dir=DIR
1891 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001892 --without-fftw disable FFTW support
1893 --without-fpx disable FlashPIX support
1894 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001895 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-gslib enable Ghostscript library support
1897 --with-fontpath=DIR prepend to default font search path
1898 --with-gs-font-dir=DIR Ghostscript font directory
1899 --without-gvc disable GVC support
1900 --without-jbig disable JBIG support
1901 --without-jpeg disable JPEG support
1902 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001903 --without-lcms disable lcms (v1.1X) support
1904 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001905 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001906 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001908 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001909 --without-png disable PNG support
1910 --without-rsvg disable RSVG support
1911 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001912 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001913 --with-windows-font-dir=DIR
1914 directory containing MS-Windows fonts
1915 --without-wmf disable WMF support
1916 --without-xml disable XML support
1917
1918Some influential environment variables:
1919 CC C compiler command
1920 CFLAGS C compiler flags
1921 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1922 nonstandard directory <lib dir>
1923 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001924 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001925 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001926 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001927 CXX C++ compiler command
1928 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001929 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001930 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001931 XMKMF Path to xmkmf, Makefile generator for X Window System
1932 AUTOTRACE_CFLAGS
1933 C compiler flags for AUTOTRACE, overriding pkg-config
1934 AUTOTRACE_LIBS
1935 linker flags for AUTOTRACE, overriding pkg-config
1936 FONTCONFIG_CFLAGS
1937 C compiler flags for FONTCONFIG, overriding pkg-config
1938 FONTCONFIG_LIBS
1939 linker flags for FONTCONFIG, overriding pkg-config
1940 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1941 GVC_LIBS linker flags for GVC, overriding pkg-config
1942 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1943 LQR_LIBS linker flags for LQR, overriding pkg-config
1944 OPENEXR_CFLAGS
1945 C compiler flags for OPENEXR, overriding pkg-config
1946 OPENEXR_LIBS
1947 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001948 PANGO_CFLAGS
1949 C compiler flags for PANGO, overriding pkg-config
1950 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001951 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1952 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1953 CAIRO_SVG_CFLAGS
1954 C compiler flags for CAIRO_SVG, overriding pkg-config
1955 CAIRO_SVG_LIBS
1956 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001957
1958Use these variables to override the choices made by `configure' or to help
1959it to find libraries and programs with nonstandard names/locations.
1960
1961Report bugs to <http://www.imagemagick.org>.
1962_ACEOF
1963ac_status=$?
1964fi
1965
1966if test "$ac_init_help" = "recursive"; then
1967 # If there are subdirs, report their specific --help.
1968 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1969 test -d "$ac_dir" ||
1970 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1971 continue
1972 ac_builddir=.
1973
1974case "$ac_dir" in
1975.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1976*)
1977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1978 # A ".." for each directory in $ac_dir_suffix.
1979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1980 case $ac_top_builddir_sub in
1981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1983 esac ;;
1984esac
1985ac_abs_top_builddir=$ac_pwd
1986ac_abs_builddir=$ac_pwd$ac_dir_suffix
1987# for backward compatibility:
1988ac_top_builddir=$ac_top_build_prefix
1989
1990case $srcdir in
1991 .) # We are building in place.
1992 ac_srcdir=.
1993 ac_top_srcdir=$ac_top_builddir_sub
1994 ac_abs_top_srcdir=$ac_pwd ;;
1995 [\\/]* | ?:[\\/]* ) # Absolute name.
1996 ac_srcdir=$srcdir$ac_dir_suffix;
1997 ac_top_srcdir=$srcdir
1998 ac_abs_top_srcdir=$srcdir ;;
1999 *) # Relative name.
2000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2001 ac_top_srcdir=$ac_top_build_prefix$srcdir
2002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2003esac
2004ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2005
2006 cd "$ac_dir" || { ac_status=$?; continue; }
2007 # Check for guested configure.
2008 if test -f "$ac_srcdir/configure.gnu"; then
2009 echo &&
2010 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2011 elif test -f "$ac_srcdir/configure"; then
2012 echo &&
2013 $SHELL "$ac_srcdir/configure" --help=recursive
2014 else
2015 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2016 fi || ac_status=$?
2017 cd "$ac_pwd" || { ac_status=$?; break; }
2018 done
2019fi
2020
2021test -n "$ac_init_help" && exit $ac_status
2022if $ac_init_version; then
2023 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002024ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002025generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002026
cristy98dddb52010-11-04 00:30:15 +00002027Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002028This configure script is free software; the Free Software Foundation
2029gives unlimited permission to copy, distribute and modify it.
2030_ACEOF
2031 exit
2032fi
cristy8b350f62009-11-15 23:12:43 +00002033
2034## ------------------------ ##
2035## Autoconf initialization. ##
2036## ------------------------ ##
2037
2038# ac_fn_c_try_compile LINENO
2039# --------------------------
2040# Try to compile conftest.$ac_ext, and return whether this succeeded.
2041ac_fn_c_try_compile ()
2042{
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 rm -f conftest.$ac_objext
2045 if { { ac_try="$ac_compile"
2046case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049esac
2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051$as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_compile") 2>conftest.err
2053 ac_status=$?
2054 if test -s conftest.err; then
2055 grep -v '^ *+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2058 fi
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && {
2061 test -z "$ac_c_werror_flag" ||
2062 test ! -s conftest.err
2063 } && test -s conftest.$ac_objext; then :
2064 ac_retval=0
2065else
2066 $as_echo "$as_me: failed program was:" >&5
2067sed 's/^/| /' conftest.$ac_ext >&5
2068
2069 ac_retval=1
2070fi
cristyda16f162011-02-19 23:52:17 +00002071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002072 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002073
2074} # ac_fn_c_try_compile
2075
cristy95646052009-11-28 23:05:30 +00002076# ac_fn_c_try_cpp LINENO
2077# ----------------------
2078# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2079ac_fn_c_try_cpp ()
2080{
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 if { { ac_try="$ac_cpp conftest.$ac_ext"
2083case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086esac
2087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088$as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2095 fi
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002097 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 }; then :
2101 ac_retval=0
2102else
2103 $as_echo "$as_me: failed program was:" >&5
2104sed 's/^/| /' conftest.$ac_ext >&5
2105
2106 ac_retval=1
2107fi
cristyda16f162011-02-19 23:52:17 +00002108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002109 as_fn_set_status $ac_retval
2110
2111} # ac_fn_c_try_cpp
2112
cristy8b350f62009-11-15 23:12:43 +00002113# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2114# -------------------------------------------------------
2115# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2116# the include files in INCLUDES and setting the cache variable VAR
2117# accordingly.
2118ac_fn_c_check_header_mongrel ()
2119{
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002121 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002124if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002125 $as_echo_n "(cached) " >&6
2126fi
2127eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129$as_echo "$ac_res" >&6; }
2130else
2131 # Is the header compilable?
2132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2133$as_echo_n "checking $2 usability... " >&6; }
2134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136$4
2137#include <$2>
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_header_compiler=yes
2141else
2142 ac_header_compiler=no
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2146$as_echo "$ac_header_compiler" >&6; }
2147
2148# Is the header present?
2149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2150$as_echo_n "checking $2 presence... " >&6; }
2151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h. */
2153#include <$2>
2154_ACEOF
2155if ac_fn_c_try_cpp "$LINENO"; then :
2156 ac_header_preproc=yes
2157else
2158 ac_header_preproc=no
2159fi
cristyda16f162011-02-19 23:52:17 +00002160rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2162$as_echo "$ac_header_preproc" >&6; }
2163
2164# So? What about this header?
2165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2166 yes:no: )
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2168$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2171 ;;
2172 no:yes:* )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2174$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2176$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2178$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2180$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2182$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002183( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002184## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002185## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002186 ) | sed "s/^/$as_me: WARNING: /" >&2
2187 ;;
2188esac
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002191if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002192 $as_echo_n "(cached) " >&6
2193else
2194 eval "$3=\$ac_header_compiler"
2195fi
2196eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198$as_echo "$ac_res" >&6; }
2199fi
cristyda16f162011-02-19 23:52:17 +00002200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002201
2202} # ac_fn_c_check_header_mongrel
2203
2204# ac_fn_c_try_run LINENO
2205# ----------------------
2206# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2207# that executables *can* be run.
2208ac_fn_c_try_run ()
2209{
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 if { { ac_try="$ac_link"
2212case "(($ac_try" in
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2215esac
2216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217$as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_link") 2>&5
2219 ac_status=$?
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2222 { { case "(($ac_try" in
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2225esac
2226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227$as_echo "$ac_try_echo"; } >&5
2228 (eval "$ac_try") 2>&5
2229 ac_status=$?
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; }; }; then :
2232 ac_retval=0
2233else
2234 $as_echo "$as_me: program exited with status $ac_status" >&5
2235 $as_echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238 ac_retval=$ac_status
2239fi
2240 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002242 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002243
2244} # ac_fn_c_try_run
2245
2246# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2247# -------------------------------------------------------
2248# Tests whether HEADER exists and can be compiled using the include files in
2249# INCLUDES, setting the cache variable VAR accordingly.
2250ac_fn_c_check_header_compile ()
2251{
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002255if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002256 $as_echo_n "(cached) " >&6
2257else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h. */
2260$4
2261#include <$2>
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264 eval "$3=yes"
2265else
2266 eval "$3=no"
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269fi
2270eval ac_res=\$$3
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002273 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002274
2275} # ac_fn_c_check_header_compile
2276
cristya0b81c32010-01-22 02:54:33 +00002277# ac_fn_cxx_try_compile LINENO
2278# ----------------------------
2279# Try to compile conftest.$ac_ext, and return whether this succeeded.
2280ac_fn_cxx_try_compile ()
2281{
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 rm -f conftest.$ac_objext
2284 if { { ac_try="$ac_compile"
2285case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288esac
2289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290$as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_compile") 2>conftest.err
2292 ac_status=$?
2293 if test -s conftest.err; then
2294 grep -v '^ *+' conftest.err >conftest.er1
2295 cat conftest.er1 >&5
2296 mv -f conftest.er1 conftest.err
2297 fi
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } && {
2300 test -z "$ac_cxx_werror_flag" ||
2301 test ! -s conftest.err
2302 } && test -s conftest.$ac_objext; then :
2303 ac_retval=0
2304else
2305 $as_echo "$as_me: failed program was:" >&5
2306sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 ac_retval=1
2309fi
cristyda16f162011-02-19 23:52:17 +00002310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002311 as_fn_set_status $ac_retval
2312
2313} # ac_fn_cxx_try_compile
2314
cristy8b350f62009-11-15 23:12:43 +00002315# ac_fn_c_try_link LINENO
2316# -----------------------
2317# Try to link conftest.$ac_ext, and return whether this succeeded.
2318ac_fn_c_try_link ()
2319{
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 rm -f conftest.$ac_objext conftest$ac_exeext
2322 if { { ac_try="$ac_link"
2323case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2326esac
2327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328$as_echo "$ac_try_echo"; } >&5
2329 (eval "$ac_link") 2>conftest.err
2330 ac_status=$?
2331 if test -s conftest.err; then
2332 grep -v '^ *+' conftest.err >conftest.er1
2333 cat conftest.er1 >&5
2334 mv -f conftest.er1 conftest.err
2335 fi
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; } && {
2338 test -z "$ac_c_werror_flag" ||
2339 test ! -s conftest.err
2340 } && test -s conftest$ac_exeext && {
2341 test "$cross_compiling" = yes ||
2342 $as_test_x conftest$ac_exeext
2343 }; then :
2344 ac_retval=0
2345else
2346 $as_echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_retval=1
2350fi
2351 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2352 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2353 # interfere with the next link command; also delete a directory that is
2354 # left behind by Apple's compiler. We do this before executing the actions.
2355 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002357 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002358
2359} # ac_fn_c_try_link
2360
cristy73bd4a52010-10-05 11:24:23 +00002361# ac_fn_c_check_func LINENO FUNC VAR
2362# ----------------------------------
2363# Tests whether FUNC exists, setting the cache variable VAR accordingly
2364ac_fn_c_check_func ()
2365{
2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002369if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002370 $as_echo_n "(cached) " >&6
2371else
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373/* end confdefs.h. */
2374/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2376#define $2 innocuous_$2
2377
2378/* System header to define __stub macros and hopefully few prototypes,
2379 which can conflict with char $2 (); below.
2380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2381 <limits.h> exists even on freestanding compilers. */
2382
2383#ifdef __STDC__
2384# include <limits.h>
2385#else
2386# include <assert.h>
2387#endif
2388
2389#undef $2
2390
2391/* Override any GCC internal prototype to avoid an error.
2392 Use char because int might match the return type of a GCC
2393 builtin and then its argument prototype would still apply. */
2394#ifdef __cplusplus
2395extern "C"
2396#endif
2397char $2 ();
2398/* The GNU C library defines this for functions which it implements
2399 to always fail with ENOSYS. Some functions are actually named
2400 something starting with __ and the normal name is an alias. */
2401#if defined __stub_$2 || defined __stub___$2
2402choke me
2403#endif
2404
2405int
2406main ()
2407{
2408return $2 ();
2409 ;
2410 return 0;
2411}
2412_ACEOF
2413if ac_fn_c_try_link "$LINENO"; then :
2414 eval "$3=yes"
2415else
2416 eval "$3=no"
2417fi
2418rm -f core conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420fi
2421eval ac_res=\$$3
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2423$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002424 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002425
2426} # ac_fn_c_check_func
2427
2428# ac_fn_cxx_try_cpp LINENO
2429# ------------------------
2430# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2431ac_fn_cxx_try_cpp ()
2432{
2433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434 if { { ac_try="$ac_cpp conftest.$ac_ext"
2435case "(($ac_try" in
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2438esac
2439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2440$as_echo "$ac_try_echo"; } >&5
2441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2442 ac_status=$?
2443 if test -s conftest.err; then
2444 grep -v '^ *+' conftest.err >conftest.er1
2445 cat conftest.er1 >&5
2446 mv -f conftest.er1 conftest.err
2447 fi
2448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002449 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002450 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2451 test ! -s conftest.err
2452 }; then :
2453 ac_retval=0
2454else
2455 $as_echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
2457
2458 ac_retval=1
2459fi
cristyda16f162011-02-19 23:52:17 +00002460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002461 as_fn_set_status $ac_retval
2462
2463} # ac_fn_cxx_try_cpp
2464
2465# ac_fn_cxx_try_link LINENO
2466# -------------------------
2467# Try to link conftest.$ac_ext, and return whether this succeeded.
2468ac_fn_cxx_try_link ()
2469{
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 rm -f conftest.$ac_objext conftest$ac_exeext
2472 if { { ac_try="$ac_link"
2473case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476esac
2477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2478$as_echo "$ac_try_echo"; } >&5
2479 (eval "$ac_link") 2>conftest.err
2480 ac_status=$?
2481 if test -s conftest.err; then
2482 grep -v '^ *+' conftest.err >conftest.er1
2483 cat conftest.er1 >&5
2484 mv -f conftest.er1 conftest.err
2485 fi
2486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487 test $ac_status = 0; } && {
2488 test -z "$ac_cxx_werror_flag" ||
2489 test ! -s conftest.err
2490 } && test -s conftest$ac_exeext && {
2491 test "$cross_compiling" = yes ||
2492 $as_test_x conftest$ac_exeext
2493 }; then :
2494 ac_retval=0
2495else
2496 $as_echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_retval=1
2500fi
2501 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2502 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2503 # interfere with the next link command; also delete a directory that is
2504 # left behind by Apple's compiler. We do this before executing the actions.
2505 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002507 as_fn_set_status $ac_retval
2508
2509} # ac_fn_cxx_try_link
2510
cristy98dddb52010-11-04 00:30:15 +00002511# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2512# ---------------------------------------------
2513# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2514# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002515ac_fn_c_check_decl ()
2516{
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002518 as_decl_name=`echo $2|sed 's/ *(.*//'`
2519 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2521$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002522if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002523 $as_echo_n "(cached) " >&6
2524else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526/* end confdefs.h. */
2527$4
2528int
2529main ()
2530{
cristy98dddb52010-11-04 00:30:15 +00002531#ifndef $as_decl_name
2532#ifdef __cplusplus
2533 (void) $as_decl_use;
2534#else
2535 (void) $as_decl_name;
2536#endif
cristy73bd4a52010-10-05 11:24:23 +00002537#endif
2538
2539 ;
2540 return 0;
2541}
2542_ACEOF
2543if ac_fn_c_try_compile "$LINENO"; then :
2544 eval "$3=yes"
2545else
2546 eval "$3=no"
2547fi
2548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549fi
2550eval ac_res=\$$3
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002554
2555} # ac_fn_c_check_decl
2556
cristy8b350f62009-11-15 23:12:43 +00002557# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2558# -------------------------------------------
2559# Tests whether TYPE exists after having included INCLUDES, setting cache
2560# variable VAR accordingly.
2561ac_fn_c_check_type ()
2562{
2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2565$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002566if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002567 $as_echo_n "(cached) " >&6
2568else
2569 eval "$3=no"
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571/* end confdefs.h. */
2572$4
2573int
2574main ()
2575{
2576if (sizeof ($2))
2577 return 0;
2578 ;
2579 return 0;
2580}
2581_ACEOF
2582if ac_fn_c_try_compile "$LINENO"; then :
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585$4
2586int
2587main ()
2588{
2589if (sizeof (($2)))
2590 return 0;
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595if ac_fn_c_try_compile "$LINENO"; then :
2596
2597else
2598 eval "$3=yes"
2599fi
2600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601fi
2602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603fi
2604eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002608
2609} # ac_fn_c_check_type
2610
cristy92703d82010-04-26 00:18:18 +00002611# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2612# ----------------------------------------------------
2613# Tries to find if the field MEMBER exists in type AGGR, after including
2614# INCLUDES, setting cache variable VAR accordingly.
2615ac_fn_c_check_member ()
2616{
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2619$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002620if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002621 $as_echo_n "(cached) " >&6
2622else
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624/* end confdefs.h. */
2625$5
2626int
2627main ()
2628{
2629static $2 ac_aggr;
2630if (ac_aggr.$3)
2631return 0;
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636if ac_fn_c_try_compile "$LINENO"; then :
2637 eval "$4=yes"
2638else
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640/* end confdefs.h. */
2641$5
2642int
2643main ()
2644{
2645static $2 ac_aggr;
2646if (sizeof ac_aggr.$3)
2647return 0;
2648 ;
2649 return 0;
2650}
2651_ACEOF
2652if ac_fn_c_try_compile "$LINENO"; then :
2653 eval "$4=yes"
2654else
2655 eval "$4=no"
2656fi
2657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658fi
2659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660fi
2661eval ac_res=\$$4
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002665
2666} # ac_fn_c_check_member
2667
cristy501c8042011-05-26 17:46:28 +00002668# ac_fn_c_find_intX_t LINENO BITS VAR
2669# -----------------------------------
2670# Finds a signed integer type with width BITS, setting cache variable VAR
2671# accordingly.
2672ac_fn_c_find_intX_t ()
2673{
2674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2676$as_echo_n "checking for int$2_t... " >&6; }
2677if eval \${$3+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679else
2680 eval "$3=no"
2681 # Order is important - never check a type that is potentially smaller
2682 # than half of the expected target width.
2683 for ac_type in int$2_t 'int' 'long int' \
2684 'long long int' 'short int' 'signed char'; do
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686/* end confdefs.h. */
2687$ac_includes_default
2688 enum { N = $2 / 2 - 1 };
2689int
2690main ()
2691{
2692static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2693test_array [0] = 0
2694
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699if ac_fn_c_try_compile "$LINENO"; then :
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701/* end confdefs.h. */
2702$ac_includes_default
2703 enum { N = $2 / 2 - 1 };
2704int
2705main ()
2706{
2707static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2708 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2709test_array [0] = 0
2710
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715if ac_fn_c_try_compile "$LINENO"; then :
2716
2717else
2718 case $ac_type in #(
2719 int$2_t) :
2720 eval "$3=yes" ;; #(
2721 *) :
2722 eval "$3=\$ac_type" ;;
2723esac
2724fi
2725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726fi
2727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 if eval test \"x\$"$3"\" = x"no"; then :
2729
2730else
2731 break
2732fi
2733 done
2734fi
2735eval ac_res=\$$3
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737$as_echo "$ac_res" >&6; }
2738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2739
2740} # ac_fn_c_find_intX_t
2741
2742# ac_fn_c_find_uintX_t LINENO BITS VAR
2743# ------------------------------------
2744# Finds an unsigned integer type with width BITS, setting cache variable VAR
2745# accordingly.
2746ac_fn_c_find_uintX_t ()
2747{
2748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2750$as_echo_n "checking for uint$2_t... " >&6; }
2751if eval \${$3+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753else
2754 eval "$3=no"
2755 # Order is important - never check a type that is potentially smaller
2756 # than half of the expected target width.
2757 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2758 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760/* end confdefs.h. */
2761$ac_includes_default
2762int
2763main ()
2764{
2765static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2766test_array [0] = 0
2767
2768 ;
2769 return 0;
2770}
2771_ACEOF
2772if ac_fn_c_try_compile "$LINENO"; then :
2773 case $ac_type in #(
2774 uint$2_t) :
2775 eval "$3=yes" ;; #(
2776 *) :
2777 eval "$3=\$ac_type" ;;
2778esac
2779fi
2780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 if eval test \"x\$"$3"\" = x"no"; then :
2782
2783else
2784 break
2785fi
2786 done
2787fi
2788eval ac_res=\$$3
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2790$as_echo "$ac_res" >&6; }
2791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2792
2793} # ac_fn_c_find_uintX_t
2794
cristy8b350f62009-11-15 23:12:43 +00002795# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2796# --------------------------------------------
2797# Tries to find the compile-time value of EXPR in a program that includes
2798# INCLUDES, setting VAR accordingly. Returns whether the value could be
2799# computed
2800ac_fn_c_compute_int ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 if test "$cross_compiling" = yes; then
2804 # Depending upon the size, compute the lo and hi bounds.
2805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806/* end confdefs.h. */
2807$4
2808int
2809main ()
2810{
2811static int test_array [1 - 2 * !(($2) >= 0)];
2812test_array [0] = 0
2813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818if ac_fn_c_try_compile "$LINENO"; then :
2819 ac_lo=0 ac_mid=0
2820 while :; do
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822/* end confdefs.h. */
2823$4
2824int
2825main ()
2826{
2827static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2828test_array [0] = 0
2829
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834if ac_fn_c_try_compile "$LINENO"; then :
2835 ac_hi=$ac_mid; break
2836else
2837 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2838 if test $ac_lo -le $ac_mid; then
2839 ac_lo= ac_hi=
2840 break
2841 fi
2842 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2843fi
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 done
2846else
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848/* end confdefs.h. */
2849$4
2850int
2851main ()
2852{
2853static int test_array [1 - 2 * !(($2) < 0)];
2854test_array [0] = 0
2855
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860if ac_fn_c_try_compile "$LINENO"; then :
2861 ac_hi=-1 ac_mid=-1
2862 while :; do
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h. */
2865$4
2866int
2867main ()
2868{
2869static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2870test_array [0] = 0
2871
2872 ;
2873 return 0;
2874}
2875_ACEOF
2876if ac_fn_c_try_compile "$LINENO"; then :
2877 ac_lo=$ac_mid; break
2878else
2879 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2880 if test $ac_mid -le $ac_hi; then
2881 ac_lo= ac_hi=
2882 break
2883 fi
2884 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2885fi
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 done
2888else
2889 ac_lo= ac_hi=
2890fi
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892fi
2893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894# Binary search between lo and hi bounds.
2895while test "x$ac_lo" != "x$ac_hi"; do
2896 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898/* end confdefs.h. */
2899$4
2900int
2901main ()
2902{
2903static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2904test_array [0] = 0
2905
2906 ;
2907 return 0;
2908}
2909_ACEOF
2910if ac_fn_c_try_compile "$LINENO"; then :
2911 ac_hi=$ac_mid
2912else
2913 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2914fi
2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916done
2917case $ac_lo in #((
2918?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2919'') ac_retval=1 ;;
2920esac
2921 else
2922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2923/* end confdefs.h. */
2924$4
2925static long int longval () { return $2; }
2926static unsigned long int ulongval () { return $2; }
2927#include <stdio.h>
2928#include <stdlib.h>
2929int
2930main ()
2931{
2932
2933 FILE *f = fopen ("conftest.val", "w");
2934 if (! f)
2935 return 1;
2936 if (($2) < 0)
2937 {
2938 long int i = longval ();
2939 if (i != ($2))
2940 return 1;
2941 fprintf (f, "%ld", i);
2942 }
2943 else
2944 {
2945 unsigned long int i = ulongval ();
2946 if (i != ($2))
2947 return 1;
2948 fprintf (f, "%lu", i);
2949 }
2950 /* Do not output a trailing newline, as this causes \r\n confusion
2951 on some platforms. */
2952 return ferror (f) || fclose (f) != 0;
2953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958if ac_fn_c_try_run "$LINENO"; then :
2959 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2960else
2961 ac_retval=1
2962fi
2963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2964 conftest.$ac_objext conftest.beam conftest.$ac_ext
2965rm -f conftest.val
2966
2967 fi
cristyda16f162011-02-19 23:52:17 +00002968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002969 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002970
2971} # ac_fn_c_compute_int
2972
2973# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2974# ---------------------------------------------------------
2975# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2976# the include files in INCLUDES and setting the cache variable VAR
2977# accordingly.
2978ac_fn_cxx_check_header_mongrel ()
2979{
2980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002981 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2983$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002984if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002985 $as_echo_n "(cached) " >&6
2986fi
2987eval ac_res=\$$3
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2989$as_echo "$ac_res" >&6; }
2990else
2991 # Is the header compilable?
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2993$as_echo_n "checking $2 usability... " >&6; }
2994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995/* end confdefs.h. */
2996$4
2997#include <$2>
2998_ACEOF
2999if ac_fn_cxx_try_compile "$LINENO"; then :
3000 ac_header_compiler=yes
3001else
3002 ac_header_compiler=no
3003fi
3004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3006$as_echo "$ac_header_compiler" >&6; }
3007
3008# Is the header present?
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3010$as_echo_n "checking $2 presence... " >&6; }
3011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012/* end confdefs.h. */
3013#include <$2>
3014_ACEOF
3015if ac_fn_cxx_try_cpp "$LINENO"; then :
3016 ac_header_preproc=yes
3017else
3018 ac_header_preproc=no
3019fi
cristyda16f162011-02-19 23:52:17 +00003020rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3022$as_echo "$ac_header_preproc" >&6; }
3023
3024# So? What about this header?
3025case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3026 yes:no: )
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3028$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3030$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3031 ;;
3032 no:yes:* )
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3034$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3036$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3038$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3040$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3042$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003043( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003044## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003045## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003046 ) | sed "s/^/$as_me: WARNING: /" >&2
3047 ;;
3048esac
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3050$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003051if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003052 $as_echo_n "(cached) " >&6
3053else
3054 eval "$3=\$ac_header_compiler"
3055fi
3056eval ac_res=\$$3
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3058$as_echo "$ac_res" >&6; }
3059fi
cristyda16f162011-02-19 23:52:17 +00003060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003061
3062} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003063cat >config.log <<_ACEOF
3064This file contains any messages produced by compilers while
3065running configure, to aid debugging if configure makes a mistake.
3066
cristy29eb34e2011-10-16 00:46:08 +00003067It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003068generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003069
3070 $ $0 $@
3071
3072_ACEOF
3073exec 5>>config.log
3074{
3075cat <<_ASUNAME
3076## --------- ##
3077## Platform. ##
3078## --------- ##
3079
3080hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3081uname -m = `(uname -m) 2>/dev/null || echo unknown`
3082uname -r = `(uname -r) 2>/dev/null || echo unknown`
3083uname -s = `(uname -s) 2>/dev/null || echo unknown`
3084uname -v = `(uname -v) 2>/dev/null || echo unknown`
3085
3086/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3087/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3088
3089/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3090/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3091/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3092/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3093/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3094/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3095/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3096
3097_ASUNAME
3098
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003104 $as_echo "PATH: $as_dir"
3105 done
cristy3ed852e2009-09-05 21:47:34 +00003106IFS=$as_save_IFS
3107
3108} >&5
3109
3110cat >&5 <<_ACEOF
3111
3112
3113## ----------- ##
3114## Core tests. ##
3115## ----------- ##
3116
3117_ACEOF
3118
3119
3120# Keep a trace of the command line.
3121# Strip out --no-create and --no-recursion so they do not pile up.
3122# Strip out --silent because we don't want to record it for future runs.
3123# Also quote any args containing shell meta-characters.
3124# Make two passes to allow for proper duplicate-argument suppression.
3125ac_configure_args=
3126ac_configure_args0=
3127ac_configure_args1=
3128ac_must_keep_next=false
3129for ac_pass in 1 2
3130do
3131 for ac_arg
3132 do
3133 case $ac_arg in
3134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3136 | -silent | --silent | --silen | --sile | --sil)
3137 continue ;;
3138 *\'*)
3139 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3140 esac
3141 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003142 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003143 2)
cristy8b350f62009-11-15 23:12:43 +00003144 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003145 if test $ac_must_keep_next = true; then
3146 ac_must_keep_next=false # Got value, back to normal.
3147 else
3148 case $ac_arg in
3149 *=* | --config-cache | -C | -disable-* | --disable-* \
3150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3152 | -with-* | --with-* | -without-* | --without-* | --x)
3153 case "$ac_configure_args0 " in
3154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3155 esac
3156 ;;
3157 -* ) ac_must_keep_next=true ;;
3158 esac
3159 fi
cristy8b350f62009-11-15 23:12:43 +00003160 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003161 ;;
3162 esac
3163 done
3164done
cristy8b350f62009-11-15 23:12:43 +00003165{ ac_configure_args0=; unset ac_configure_args0;}
3166{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003167
3168# When interrupted or exit'd, cleanup temporary files, and complete
3169# config.log. We remove comments because anyway the quotes in there
3170# would cause problems or look ugly.
3171# WARNING: Use '\'' to represent an apostrophe within the trap.
3172# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3173trap 'exit_status=$?
3174 # Save into config.log some information that might help in debugging.
3175 {
3176 echo
3177
cristy98dddb52010-11-04 00:30:15 +00003178 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003179## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003180## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003181 echo
3182 # The following way of writing the cache mishandles newlines in values,
3183(
3184 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3185 eval ac_val=\$$ac_var
3186 case $ac_val in #(
3187 *${as_nl}*)
3188 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003189 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003190$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3191 esac
3192 case $ac_var in #(
3193 _ | IFS | as_nl) ;; #(
3194 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003195 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003196 esac ;;
3197 esac
3198 done
3199 (set) 2>&1 |
3200 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3201 *${as_nl}ac_space=\ *)
3202 sed -n \
3203 "s/'\''/'\''\\\\'\'''\''/g;
3204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3205 ;; #(
3206 *)
3207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3208 ;;
3209 esac |
3210 sort
3211)
3212 echo
3213
cristy98dddb52010-11-04 00:30:15 +00003214 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003215## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003216## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003217 echo
3218 for ac_var in $ac_subst_vars
3219 do
3220 eval ac_val=\$$ac_var
3221 case $ac_val in
3222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3223 esac
3224 $as_echo "$ac_var='\''$ac_val'\''"
3225 done | sort
3226 echo
3227
3228 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003229 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003230## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003231## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003232 echo
3233 for ac_var in $ac_subst_files
3234 do
3235 eval ac_val=\$$ac_var
3236 case $ac_val in
3237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3238 esac
3239 $as_echo "$ac_var='\''$ac_val'\''"
3240 done | sort
3241 echo
3242 fi
3243
3244 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003245 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003246## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003247## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003248 echo
3249 cat confdefs.h
3250 echo
3251 fi
3252 test "$ac_signal" != 0 &&
3253 $as_echo "$as_me: caught signal $ac_signal"
3254 $as_echo "$as_me: exit $exit_status"
3255 } >&5
3256 rm -f core *.core core.conftest.* &&
3257 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3258 exit $exit_status
3259' 0
3260for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003261 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003262done
3263ac_signal=0
3264
3265# confdefs.h avoids OS command line length limits that DEFS can exceed.
3266rm -f -r conftest* confdefs.h
3267
cristy8b350f62009-11-15 23:12:43 +00003268$as_echo "/* confdefs.h */" > confdefs.h
3269
cristy3ed852e2009-09-05 21:47:34 +00003270# Predefined preprocessor variables.
3271
3272cat >>confdefs.h <<_ACEOF
3273#define PACKAGE_NAME "$PACKAGE_NAME"
3274_ACEOF
3275
cristy3ed852e2009-09-05 21:47:34 +00003276cat >>confdefs.h <<_ACEOF
3277#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3278_ACEOF
3279
cristy3ed852e2009-09-05 21:47:34 +00003280cat >>confdefs.h <<_ACEOF
3281#define PACKAGE_VERSION "$PACKAGE_VERSION"
3282_ACEOF
3283
cristy3ed852e2009-09-05 21:47:34 +00003284cat >>confdefs.h <<_ACEOF
3285#define PACKAGE_STRING "$PACKAGE_STRING"
3286_ACEOF
3287
cristy3ed852e2009-09-05 21:47:34 +00003288cat >>confdefs.h <<_ACEOF
3289#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3290_ACEOF
3291
cristy8b350f62009-11-15 23:12:43 +00003292cat >>confdefs.h <<_ACEOF
3293#define PACKAGE_URL "$PACKAGE_URL"
3294_ACEOF
3295
cristy3ed852e2009-09-05 21:47:34 +00003296
3297# Let the site file select an alternate cache file if it wants to.
3298# Prefer an explicitly selected file to automatically selected ones.
3299ac_site_file1=NONE
3300ac_site_file2=NONE
3301if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003302 # We do not want a PATH search for config.site.
3303 case $CONFIG_SITE in #((
3304 -*) ac_site_file1=./$CONFIG_SITE;;
3305 */*) ac_site_file1=$CONFIG_SITE;;
3306 *) ac_site_file1=./$CONFIG_SITE;;
3307 esac
cristy3ed852e2009-09-05 21:47:34 +00003308elif test "x$prefix" != xNONE; then
3309 ac_site_file1=$prefix/share/config.site
3310 ac_site_file2=$prefix/etc/config.site
3311else
3312 ac_site_file1=$ac_default_prefix/share/config.site
3313 ac_site_file2=$ac_default_prefix/etc/config.site
3314fi
3315for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3316do
3317 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003318 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003320$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3321 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003322 . "$ac_site_file" \
3323 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325as_fn_error $? "failed to load site script $ac_site_file
3326See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003327 fi
3328done
3329
3330if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003331 # Some versions of bash will fail to source /dev/null (special files
3332 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3333 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003335$as_echo "$as_me: loading cache $cache_file" >&6;}
3336 case $cache_file in
3337 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3338 *) . "./$cache_file";;
3339 esac
3340 fi
3341else
cristy8b350f62009-11-15 23:12:43 +00003342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003343$as_echo "$as_me: creating cache $cache_file" >&6;}
3344 >$cache_file
3345fi
3346
cristycd4c5312009-11-22 01:19:08 +00003347as_fn_append ac_header_list " stdlib.h"
3348as_fn_append ac_header_list " unistd.h"
3349as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003350# Check that the precious variables saved in the cache have kept the same
3351# value.
3352ac_cache_corrupted=false
3353for ac_var in $ac_precious_vars; do
3354 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3355 eval ac_new_set=\$ac_env_${ac_var}_set
3356 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3357 eval ac_new_val=\$ac_env_${ac_var}_value
3358 case $ac_old_set,$ac_new_set in
3359 set,)
cristy8b350f62009-11-15 23:12:43 +00003360 { $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 +00003361$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3362 ac_cache_corrupted=: ;;
3363 ,set)
cristy8b350f62009-11-15 23:12:43 +00003364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003365$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3366 ac_cache_corrupted=: ;;
3367 ,);;
3368 *)
3369 if test "x$ac_old_val" != "x$ac_new_val"; then
3370 # differences in whitespace do not lead to failure.
3371 ac_old_val_w=`echo x $ac_old_val`
3372 ac_new_val_w=`echo x $ac_new_val`
3373 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003375$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3376 ac_cache_corrupted=:
3377 else
cristy8b350f62009-11-15 23:12:43 +00003378 { $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 +00003379$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3380 eval $ac_var=\$ac_old_val
3381 fi
cristy8b350f62009-11-15 23:12:43 +00003382 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3386 fi;;
3387 esac
3388 # Pass precious variables to config.status.
3389 if test "$ac_new_set" = set; then
3390 case $ac_new_val in
3391 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3392 *) ac_arg=$ac_var=$ac_new_val ;;
3393 esac
3394 case " $ac_configure_args " in
3395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003396 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003397 esac
3398 fi
3399done
3400if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003404$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003405 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003406fi
cristy8b350f62009-11-15 23:12:43 +00003407## -------------------- ##
3408## Main body of script. ##
3409## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003410
3411ac_ext=c
3412ac_cpp='$CPP $CPPFLAGS'
3413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416
3417
3418
3419ac_aux_dir=
3420for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003421 if test -f "$ac_dir/install-sh"; then
3422 ac_aux_dir=$ac_dir
3423 ac_install_sh="$ac_aux_dir/install-sh -c"
3424 break
3425 elif test -f "$ac_dir/install.sh"; then
3426 ac_aux_dir=$ac_dir
3427 ac_install_sh="$ac_aux_dir/install.sh -c"
3428 break
3429 elif test -f "$ac_dir/shtool"; then
3430 ac_aux_dir=$ac_dir
3431 ac_install_sh="$ac_aux_dir/shtool install -c"
3432 break
3433 fi
cristy3ed852e2009-09-05 21:47:34 +00003434done
3435if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003436 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003437fi
3438
3439# These three variables are undocumented and unsupported,
3440# and are intended to be withdrawn in a future Autoconf release.
3441# They can cause serious problems if a builder's source tree is in a directory
3442# whose full name contains unusual characters.
3443ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3444ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3445ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3446
3447
3448
3449
3450ac_config_headers="$ac_config_headers config/config.h"
3451
cristy24fc1fe2010-10-23 21:13:01 +00003452
cristy4c08aed2011-07-01 19:47:50 +00003453ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003454
cristy4c08aed2011-07-01 19:47:50 +00003455ac_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 +00003456
3457
3458#
3459# Save initial user-tunable values
3460#
3461USER_LIBS=$LIBS
3462for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3463 eval isset=\${$var+set}
3464 if test "$isset" = 'set'; then
3465 eval val=$`echo $var`
3466 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3467 fi
3468done
3469
3470
3471CONFIGURE_ARGS="$0 ${ac_configure_args}"
3472
3473
3474# Source file containing package/library versioning information.
3475. ${srcdir}/version.sh
3476
cristy15a88782010-01-31 23:24:49 +00003477echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003478# Make sure we can run config.sub.
3479$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003480 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003481
cristy8b350f62009-11-15 23:12:43 +00003482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003483$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003484if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003485 $as_echo_n "(cached) " >&6
3486else
3487 ac_build_alias=$build_alias
3488test "x$ac_build_alias" = x &&
3489 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3490test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003491 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003492ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003494
3495fi
cristy8b350f62009-11-15 23:12:43 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003497$as_echo "$ac_cv_build" >&6; }
3498case $ac_cv_build in
3499*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003500*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003501esac
3502build=$ac_cv_build
3503ac_save_IFS=$IFS; IFS='-'
3504set x $ac_cv_build
3505shift
3506build_cpu=$1
3507build_vendor=$2
3508shift; shift
3509# Remember, the first character of IFS is used to create $*,
3510# except with old shells:
3511build_os=$*
3512IFS=$ac_save_IFS
3513case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3514
3515
cristy8b350f62009-11-15 23:12:43 +00003516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003517$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003518if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003519 $as_echo_n "(cached) " >&6
3520else
3521 if test "x$host_alias" = x; then
3522 ac_cv_host=$ac_cv_build
3523else
3524 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003525 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003526fi
3527
3528fi
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo "$ac_cv_host" >&6; }
3531case $ac_cv_host in
3532*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003533*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003534esac
3535host=$ac_cv_host
3536ac_save_IFS=$IFS; IFS='-'
3537set x $ac_cv_host
3538shift
3539host_cpu=$1
3540host_vendor=$2
3541shift; shift
3542# Remember, the first character of IFS is used to create $*,
3543# except with old shells:
3544host_os=$*
3545IFS=$ac_save_IFS
3546case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3547
3548
cristy8b350f62009-11-15 23:12:43 +00003549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003550$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003551if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003552 $as_echo_n "(cached) " >&6
3553else
3554 if test "x$target_alias" = x; then
3555 ac_cv_target=$ac_cv_host
3556else
3557 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003559fi
3560
3561fi
cristy8b350f62009-11-15 23:12:43 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003563$as_echo "$ac_cv_target" >&6; }
3564case $ac_cv_target in
3565*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003566*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003567esac
3568target=$ac_cv_target
3569ac_save_IFS=$IFS; IFS='-'
3570set x $ac_cv_target
3571shift
3572target_cpu=$1
3573target_vendor=$2
3574shift; shift
3575# Remember, the first character of IFS is used to create $*,
3576# except with old shells:
3577target_os=$*
3578IFS=$ac_save_IFS
3579case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3580
3581
3582# The aliases save the names the user supplied, while $host etc.
3583# will get canonicalized.
3584test -n "$target_alias" &&
3585 test "$program_prefix$program_suffix$program_transform_name" = \
3586 NONENONEs,x,x, &&
3587 program_prefix=${target_alias}-
3588
cristy837d6dc2010-02-27 01:16:57 +00003589
3590
3591
cristy19615b82011-04-13 20:02:01 +00003592MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003593
3594
cristy19615b82011-04-13 20:02:01 +00003595MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003596
3597
cristy19615b82011-04-13 20:02:01 +00003598MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003599
3600
cristy3ed852e2009-09-05 21:47:34 +00003601# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003602MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3603
3604MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3605
cristy0151ae12011-10-28 16:32:29 +00003606MAGICK_SVN_REVISION=5778
cristyd694ca32011-03-27 21:42:54 +00003607
3608
cristy3ed852e2009-09-05 21:47:34 +00003609
3610
3611# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3613$as_echo_n "checking whether build environment is sane... " >&6; }
3614# Just in case
3615sleep 1
3616echo timestamp > conftest.file
3617# Reject unsafe characters in $srcdir or the absolute working directory
3618# name. Accept space and tab only in the latter.
3619am_lf='
3620'
3621case `pwd` in
3622 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003623 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003624esac
3625case $srcdir in
3626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003627 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003628esac
cristy3ed852e2009-09-05 21:47:34 +00003629
cristy73bd4a52010-10-05 11:24:23 +00003630# Do `set' in a subshell so we don't clobber the current shell's
3631# arguments. Must try -L first in case configure is actually a
3632# symlink; some systems play weird games with the mod time of symlinks
3633# (eg FreeBSD returns the mod time of the symlink's containing
3634# directory).
3635if (
3636 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3637 if test "$*" = "X"; then
3638 # -L didn't work.
3639 set X `ls -t "$srcdir/configure" conftest.file`
3640 fi
3641 rm -f conftest.file
3642 if test "$*" != "X $srcdir/configure conftest.file" \
3643 && test "$*" != "X conftest.file $srcdir/configure"; then
3644
3645 # If neither matched, then we have a broken ls. This can happen
3646 # if, for instance, CONFIG_SHELL is bash and it inherits a
3647 # broken ls alias from the environment. This has actually
3648 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003649 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003650alias in your environment" "$LINENO" 5
3651 fi
3652
3653 test "$2" = conftest.file
3654 )
3655then
3656 # Ok.
3657 :
3658else
cristy98dddb52010-11-04 00:30:15 +00003659 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003660Check your system clock" "$LINENO" 5
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3663$as_echo "yes" >&6; }
3664
3665am__api_version='1.11'
3666
3667# Find a good install program. We prefer a C program (faster),
3668# so one script is as good as another. But avoid the broken or
3669# incompatible versions:
3670# SysV /etc/install, /usr/sbin/install
3671# SunOS /usr/etc/install
3672# IRIX /sbin/install
3673# AIX /bin/install
3674# AmigaOS /C/install, which installs bootblocks on floppy discs
3675# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3676# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3677# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3678# OS/2's system install, which has a completely different semantic
3679# ./install, which can be erroneously created by make from ./install.sh.
3680# Reject install programs that cannot install multiple files.
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3682$as_echo_n "checking for a BSD-compatible install... " >&6; }
3683if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003684if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003685 $as_echo_n "(cached) " >&6
3686else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688for as_dir in $PATH
3689do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 # Account for people who put trailing slashes in PATH elements.
3693case $as_dir/ in #((
3694 ./ | .// | /[cC]/* | \
3695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3696 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3697 /usr/ucb/* ) ;;
3698 *)
3699 # OSF1 and SCO ODT 3.0 have their own names for install.
3700 # Don't use installbsd from OSF since it installs stuff as root
3701 # by default.
3702 for ac_prog in ginstall scoinst install; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3705 if test $ac_prog = install &&
3706 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3707 # AIX install. It has an incompatible calling convention.
3708 :
3709 elif test $ac_prog = install &&
3710 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3711 # program-specific install script used by HP pwplus--don't use.
3712 :
3713 else
3714 rm -rf conftest.one conftest.two conftest.dir
3715 echo one > conftest.one
3716 echo two > conftest.two
3717 mkdir conftest.dir
3718 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3719 test -s conftest.one && test -s conftest.two &&
3720 test -s conftest.dir/conftest.one &&
3721 test -s conftest.dir/conftest.two
3722 then
3723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3724 break 3
3725 fi
3726 fi
3727 fi
3728 done
3729 done
3730 ;;
3731esac
3732
3733 done
3734IFS=$as_save_IFS
3735
3736rm -rf conftest.one conftest.two conftest.dir
3737
3738fi
3739 if test "${ac_cv_path_install+set}" = set; then
3740 INSTALL=$ac_cv_path_install
3741 else
3742 # As a last resort, use the slow shell script. Don't cache a
3743 # value for INSTALL within a source directory, because that will
3744 # break other packages using the cache if that directory is
3745 # removed, or if the value is a relative name.
3746 INSTALL=$ac_install_sh
3747 fi
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3750$as_echo "$INSTALL" >&6; }
3751
3752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3753# It thinks the first close brace ends the variable substitution.
3754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3755
3756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3757
3758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3759
3760test "$program_prefix" != NONE &&
3761 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3762# Use a double $ so make ignores it.
3763test "$program_suffix" != NONE &&
3764 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3765# Double any \ or $.
3766# By default was `s,x,x', remove it if useless.
3767ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3768program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3769
3770# expand $ac_aux_dir to an absolute path
3771am_aux_dir=`cd $ac_aux_dir && pwd`
3772
3773if test x"${MISSING+set}" != xset; then
3774 case $am_aux_dir in
3775 *\ * | *\ *)
3776 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3777 *)
3778 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3779 esac
3780fi
3781# Use eval to expand $SHELL
3782if eval "$MISSING --run true"; then
3783 am_missing_run="$MISSING --run "
3784else
3785 am_missing_run=
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3787$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3788fi
3789
3790if test x"${install_sh}" != xset; then
3791 case $am_aux_dir in
3792 *\ * | *\ *)
3793 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3794 *)
3795 install_sh="\${SHELL} $am_aux_dir/install-sh"
3796 esac
3797fi
3798
3799# Installed binaries are usually stripped using `strip' when the user
3800# run `make install-strip'. However `strip' might not be the right
3801# tool to use in cross-compilation environments, therefore Automake
3802# will honor the `STRIP' environment variable to overrule this program.
3803if test "$cross_compiling" != no; then
3804 if test -n "$ac_tool_prefix"; then
3805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3806set dummy ${ac_tool_prefix}strip; ac_word=$2
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003809if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003810 $as_echo_n "(cached) " >&6
3811else
3812 if test -n "$STRIP"; then
3813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3814else
3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816for as_dir in $PATH
3817do
3818 IFS=$as_save_IFS
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826done
3827 done
3828IFS=$as_save_IFS
3829
3830fi
3831fi
3832STRIP=$ac_cv_prog_STRIP
3833if test -n "$STRIP"; then
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3835$as_echo "$STRIP" >&6; }
3836else
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838$as_echo "no" >&6; }
3839fi
3840
3841
3842fi
3843if test -z "$ac_cv_prog_STRIP"; then
3844 ac_ct_STRIP=$STRIP
3845 # Extract the first word of "strip", so it can be a program name with args.
3846set dummy strip; ac_word=$2
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003849if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003850 $as_echo_n "(cached) " >&6
3851else
3852 if test -n "$ac_ct_STRIP"; then
3853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3854else
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_prog_ac_ct_STRIP="strip"
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866done
3867 done
3868IFS=$as_save_IFS
3869
3870fi
3871fi
3872ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3873if test -n "$ac_ct_STRIP"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3875$as_echo "$ac_ct_STRIP" >&6; }
3876else
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878$as_echo "no" >&6; }
3879fi
3880
3881 if test "x$ac_ct_STRIP" = x; then
3882 STRIP=":"
3883 else
3884 case $cross_compiling:$ac_tool_warned in
3885yes:)
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3888ac_tool_warned=yes ;;
3889esac
3890 STRIP=$ac_ct_STRIP
3891 fi
3892else
3893 STRIP="$ac_cv_prog_STRIP"
3894fi
3895
3896fi
3897INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3898
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3900$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3901if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003902 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003903 $as_echo_n "(cached) " >&6
3904else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_prog in mkdir gmkdir; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3913 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3914 'mkdir (GNU coreutils) '* | \
3915 'mkdir (coreutils) '* | \
3916 'mkdir (fileutils) '4.1*)
3917 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3918 break 3;;
3919 esac
3920 done
3921 done
3922 done
3923IFS=$as_save_IFS
3924
3925fi
3926
3927 test -d ./--version && rmdir ./--version
3928 if test "${ac_cv_path_mkdir+set}" = set; then
3929 MKDIR_P="$ac_cv_path_mkdir -p"
3930 else
3931 # As a last resort, use the slow shell script. Don't cache a
3932 # value for MKDIR_P within a source directory, because that will
3933 # break other packages using the cache if that directory is
3934 # removed, or if the value is a relative name.
3935 MKDIR_P="$ac_install_sh -d"
3936 fi
3937fi
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3939$as_echo "$MKDIR_P" >&6; }
3940
3941mkdir_p="$MKDIR_P"
3942case $mkdir_p in
3943 [\\/$]* | ?:[\\/]*) ;;
3944 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3945esac
3946
3947for ac_prog in gawk mawk nawk awk
3948do
3949 # Extract the first word of "$ac_prog", so it can be a program name with args.
3950set dummy $ac_prog; ac_word=$2
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003953if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003954 $as_echo_n "(cached) " >&6
3955else
3956 if test -n "$AWK"; then
3957 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_AWK="$ac_prog"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971 done
3972IFS=$as_save_IFS
3973
3974fi
3975fi
3976AWK=$ac_cv_prog_AWK
3977if test -n "$AWK"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3979$as_echo "$AWK" >&6; }
3980else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982$as_echo "no" >&6; }
3983fi
3984
3985
3986 test -n "$AWK" && break
3987done
3988
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3990$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3991set x ${MAKE-make}
3992ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003993if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003994 $as_echo_n "(cached) " >&6
3995else
3996 cat >conftest.make <<\_ACEOF
3997SHELL = /bin/sh
3998all:
3999 @echo '@@@%%%=$(MAKE)=@@@%%%'
4000_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004001# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004002case `${MAKE-make} -f conftest.make 2>/dev/null` in
4003 *@@@%%%=?*=@@@%%%*)
4004 eval ac_cv_prog_make_${ac_make}_set=yes;;
4005 *)
4006 eval ac_cv_prog_make_${ac_make}_set=no;;
4007esac
4008rm -f conftest.make
4009fi
4010if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012$as_echo "yes" >&6; }
4013 SET_MAKE=
4014else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016$as_echo "no" >&6; }
4017 SET_MAKE="MAKE=${MAKE-make}"
4018fi
4019
4020rm -rf .tst 2>/dev/null
4021mkdir .tst 2>/dev/null
4022if test -d .tst; then
4023 am__leading_dot=.
4024else
4025 am__leading_dot=_
4026fi
4027rmdir .tst 2>/dev/null
4028
cristya448bd22011-10-14 12:38:13 +00004029# Check whether --enable-silent-rules was given.
4030if test "${enable_silent_rules+set}" = set; then :
4031 enableval=$enable_silent_rules;
4032fi
4033
4034case $enable_silent_rules in
4035yes) AM_DEFAULT_VERBOSITY=0;;
4036no) AM_DEFAULT_VERBOSITY=1;;
4037*) AM_DEFAULT_VERBOSITY=1;;
4038esac
4039AM_BACKSLASH='\'
4040
cristy73bd4a52010-10-05 11:24:23 +00004041if test "`cd $srcdir && pwd`" != "`pwd`"; then
4042 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4043 # is not polluted with repeated "-I."
4044 am__isrc=' -I$(srcdir)'
4045 # test to see if srcdir already configured
4046 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004047 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004048 fi
4049fi
4050
4051# test whether we have cygpath
4052if test -z "$CYGPATH_W"; then
4053 if (cygpath --version) >/dev/null 2>/dev/null; then
4054 CYGPATH_W='cygpath -w'
4055 else
4056 CYGPATH_W=echo
4057 fi
4058fi
4059
4060
4061# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004062 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004063 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004064
4065
cristya448bd22011-10-14 12:38:13 +00004066cat >>confdefs.h <<_ACEOF
4067#define PACKAGE "$PACKAGE"
4068_ACEOF
4069
4070
4071cat >>confdefs.h <<_ACEOF
4072#define VERSION "$VERSION"
4073_ACEOF
4074
cristy73bd4a52010-10-05 11:24:23 +00004075# Some tools Automake needs.
4076
4077ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4078
4079
4080AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4081
4082
4083AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4084
4085
4086AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4087
4088
4089MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4090
4091# We need awk for the "check" target. The system "awk" is bad on
4092# some platforms.
4093# Always define AMTAR for backward compatibility.
4094
4095AMTAR=${AMTAR-"${am_missing_run}tar"}
4096
4097am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4098
4099
4100
4101
4102
cristy3ed852e2009-09-05 21:47:34 +00004103
4104# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004105# Check whether --enable-silent-rules was given.
4106if test "${enable_silent_rules+set}" = set; then :
4107 enableval=$enable_silent_rules;
4108fi
4109
4110case $enable_silent_rules in
4111yes) AM_DEFAULT_VERBOSITY=0;;
4112no) AM_DEFAULT_VERBOSITY=1;;
4113*) AM_DEFAULT_VERBOSITY=0;;
4114esac
4115AM_BACKSLASH='\'
4116
cristy3ed852e2009-09-05 21:47:34 +00004117
4118MAGICK_LIB_VERSION="0x"
4119if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4120 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4121fi
4122MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4123if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4124 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4125fi
4126MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4127if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4128 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4129fi
4130MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4131
4132
4133# Definition used to define MagickLibVersionText in version.h
4134MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4135
4136
4137# Definition used to define MagickLibVersionNumber in version.h
4138MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4139
4140
4141# Regenerate config.status if ChangeLog or version.sh is updated.
4142CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4143
4144
4145PERLMAINCC=$CC
4146
4147MAGICK_CFLAGS=''
4148MAGICK_CPPFLAGS=$CPPFLAGS_USER
4149MAGICK_PCFLAGS=$CPPFLAGS_USER
4150MAGICK_LDFLAGS=''
4151MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004152MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004153
4154#
4155# Evaluate shell variable equivalents to Makefile directory variables
4156#
4157if test "x$prefix" = xNONE; then
4158 prefix=$ac_default_prefix
4159fi
4160# Let make expand exec_prefix.
4161if test "x$exec_prefix" = xNONE; then
4162 exec_prefix='${prefix}'
4163fi
4164
4165#
4166eval "eval PREFIX_DIR=${prefix}"
4167
4168eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4169
4170eval "eval BIN_DIR=$bindir"
4171
4172eval "eval SBIN_DIR=$sbindir"
4173
4174eval "eval LIBEXEC_DIR=$libexecdir"
4175
4176eval "eval DATA_DIR=$datadir"
4177
cristyd55889c2011-03-27 00:50:24 +00004178eval "eval DOC_DIR=$docdir"
4179
cristy3ed852e2009-09-05 21:47:34 +00004180eval "eval SYSCONF_DIR=$sysconfdir"
4181
4182eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4183
4184eval "eval LOCALSTATE_DIR=$localstatedir"
4185
4186eval "eval LIB_DIR=$libdir"
4187
4188eval "eval INCLUDE_DIR=$includedir"
4189
4190eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4191
4192eval "eval INFO_DIR=$infodir"
4193
4194eval "eval MAN_DIR=$mandir"
4195
4196
4197# Get full paths to source and build directories
4198srcdirfull="`cd $srcdir && pwd`"
4199builddir="`pwd`"
4200
4201#
4202# Compute variables useful for running uninstalled software.
4203#
4204MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4205MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4206MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4207MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4208DIRSEP=':'
4209case "${build_os}" in
4210 mingw* )
4211 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4212 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4213 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4214 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4215 DIRSEP=';'
4216 ;;
4217esac
4218case "${host_os}" in
4219 mingw* )
4220 DIRSEP=';'
4221 ;;
4222esac
4223
4224
4225
4226
4227
4228
cristya0b81c32010-01-22 02:54:33 +00004229
4230#
4231# Enable OS features.
4232#
cristy73bd4a52010-10-05 11:24:23 +00004233DEPDIR="${am__leading_dot}deps"
4234
4235ac_config_commands="$ac_config_commands depfiles"
4236
4237
4238am_make=${MAKE-make}
4239cat > confinc << 'END'
4240am__doit:
4241 @echo this is the am__doit target
4242.PHONY: am__doit
4243END
4244# If we don't find an include directive, just comment out the code.
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4246$as_echo_n "checking for style of include used by $am_make... " >&6; }
4247am__include="#"
4248am__quote=
4249_am_result=none
4250# First try GNU make style include.
4251echo "include confinc" > confmf
4252# Ignore all kinds of additional output from `make'.
4253case `$am_make -s -f confmf 2> /dev/null` in #(
4254*the\ am__doit\ target*)
4255 am__include=include
4256 am__quote=
4257 _am_result=GNU
4258 ;;
4259esac
4260# Now try BSD make style include.
4261if test "$am__include" = "#"; then
4262 echo '.include "confinc"' > confmf
4263 case `$am_make -s -f confmf 2> /dev/null` in #(
4264 *the\ am__doit\ target*)
4265 am__include=.include
4266 am__quote="\""
4267 _am_result=BSD
4268 ;;
4269 esac
4270fi
4271
4272
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4274$as_echo "$_am_result" >&6; }
4275rm -f confinc confmf
4276
4277# Check whether --enable-dependency-tracking was given.
4278if test "${enable_dependency_tracking+set}" = set; then :
4279 enableval=$enable_dependency_tracking;
4280fi
4281
4282if test "x$enable_dependency_tracking" != xno; then
4283 am_depcomp="$ac_aux_dir/depcomp"
4284 AMDEPBACKSLASH='\'
4285fi
4286 if test "x$enable_dependency_tracking" != xno; then
4287 AMDEP_TRUE=
4288 AMDEP_FALSE='#'
4289else
4290 AMDEP_TRUE='#'
4291 AMDEP_FALSE=
4292fi
4293
4294
cristy3ed852e2009-09-05 21:47:34 +00004295ac_ext=c
4296ac_cpp='$CPP $CPPFLAGS'
4297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300if test -n "$ac_tool_prefix"; then
4301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4302set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004305if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004306 $as_echo_n "(cached) " >&6
4307else
4308 if test -n "$CC"; then
4309 ac_cv_prog_CC="$CC" # Let the user override the test.
4310else
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004320 break 2
4321 fi
4322done
cristy8b350f62009-11-15 23:12:43 +00004323 done
cristy3ed852e2009-09-05 21:47:34 +00004324IFS=$as_save_IFS
4325
4326fi
4327fi
4328CC=$ac_cv_prog_CC
4329if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004331$as_echo "$CC" >&6; }
4332else
cristy8b350f62009-11-15 23:12:43 +00004333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004334$as_echo "no" >&6; }
4335fi
4336
4337
4338fi
4339if test -z "$ac_cv_prog_CC"; then
4340 ac_ct_CC=$CC
4341 # Extract the first word of "gcc", so it can be a program name with args.
4342set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004344$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004345if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004346 $as_echo_n "(cached) " >&6
4347else
4348 if test -n "$ac_ct_CC"; then
4349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4350else
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004360 break 2
4361 fi
4362done
cristy8b350f62009-11-15 23:12:43 +00004363 done
cristy3ed852e2009-09-05 21:47:34 +00004364IFS=$as_save_IFS
4365
4366fi
4367fi
4368ac_ct_CC=$ac_cv_prog_ac_ct_CC
4369if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004371$as_echo "$ac_ct_CC" >&6; }
4372else
cristy8b350f62009-11-15 23:12:43 +00004373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004374$as_echo "no" >&6; }
4375fi
4376
4377 if test "x$ac_ct_CC" = x; then
4378 CC=""
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381yes:)
cristy8b350f62009-11-15 23:12:43 +00004382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384ac_tool_warned=yes ;;
4385esac
4386 CC=$ac_ct_CC
4387 fi
4388else
4389 CC="$ac_cv_prog_CC"
4390fi
4391
4392if test -z "$CC"; then
4393 if test -n "$ac_tool_prefix"; then
4394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4395set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004397$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004398if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004399 $as_echo_n "(cached) " >&6
4400else
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4403else
4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004413 break 2
4414 fi
4415done
cristy8b350f62009-11-15 23:12:43 +00004416 done
cristy3ed852e2009-09-05 21:47:34 +00004417IFS=$as_save_IFS
4418
4419fi
4420fi
4421CC=$ac_cv_prog_CC
4422if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004424$as_echo "$CC" >&6; }
4425else
cristy8b350f62009-11-15 23:12:43 +00004426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004427$as_echo "no" >&6; }
4428fi
4429
4430
4431 fi
4432fi
4433if test -z "$CC"; then
4434 # Extract the first word of "cc", so it can be a program name with args.
4435set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004438if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004439 $as_echo_n "(cached) " >&6
4440else
4441 if test -n "$CC"; then
4442 ac_cv_prog_CC="$CC" # Let the user override the test.
4443else
4444 ac_prog_rejected=no
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4453 ac_prog_rejected=yes
4454 continue
4455 fi
4456 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004458 break 2
4459 fi
4460done
cristy8b350f62009-11-15 23:12:43 +00004461 done
cristy3ed852e2009-09-05 21:47:34 +00004462IFS=$as_save_IFS
4463
4464if test $ac_prog_rejected = yes; then
4465 # We found a bogon in the path, so make sure we never use it.
4466 set dummy $ac_cv_prog_CC
4467 shift
4468 if test $# != 0; then
4469 # We chose a different compiler from the bogus one.
4470 # However, it has the same basename, so the bogon will be chosen
4471 # first if we set CC to just the basename; use the full file name.
4472 shift
4473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4474 fi
4475fi
4476fi
4477fi
4478CC=$ac_cv_prog_CC
4479if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004481$as_echo "$CC" >&6; }
4482else
cristy8b350f62009-11-15 23:12:43 +00004483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004484$as_echo "no" >&6; }
4485fi
4486
4487
4488fi
4489if test -z "$CC"; then
4490 if test -n "$ac_tool_prefix"; then
4491 for ac_prog in cl.exe
4492 do
4493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004497if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004498 $as_echo_n "(cached) " >&6
4499else
4500 if test -n "$CC"; then
4501 ac_cv_prog_CC="$CC" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004508 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004512 break 2
4513 fi
4514done
cristy8b350f62009-11-15 23:12:43 +00004515 done
cristy3ed852e2009-09-05 21:47:34 +00004516IFS=$as_save_IFS
4517
4518fi
4519fi
4520CC=$ac_cv_prog_CC
4521if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "$CC" >&6; }
4524else
cristy8b350f62009-11-15 23:12:43 +00004525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526$as_echo "no" >&6; }
4527fi
4528
4529
4530 test -n "$CC" && break
4531 done
4532fi
4533if test -z "$CC"; then
4534 ac_ct_CC=$CC
4535 for ac_prog in cl.exe
4536do
4537 # Extract the first word of "$ac_prog", so it can be a program name with args.
4538set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004541if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004542 $as_echo_n "(cached) " >&6
4543else
4544 if test -n "$ac_ct_CC"; then
4545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556 break 2
4557 fi
4558done
cristy8b350f62009-11-15 23:12:43 +00004559 done
cristy3ed852e2009-09-05 21:47:34 +00004560IFS=$as_save_IFS
4561
4562fi
4563fi
4564ac_ct_CC=$ac_cv_prog_ac_ct_CC
4565if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567$as_echo "$ac_ct_CC" >&6; }
4568else
cristy8b350f62009-11-15 23:12:43 +00004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004570$as_echo "no" >&6; }
4571fi
4572
4573
4574 test -n "$ac_ct_CC" && break
4575done
4576
4577 if test "x$ac_ct_CC" = x; then
4578 CC=""
4579 else
4580 case $cross_compiling:$ac_tool_warned in
4581yes:)
cristy8b350f62009-11-15 23:12:43 +00004582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4584ac_tool_warned=yes ;;
4585esac
4586 CC=$ac_ct_CC
4587 fi
4588fi
4589
4590fi
4591
4592
cristy8b350f62009-11-15 23:12:43 +00004593test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004595as_fn_error $? "no acceptable C compiler found in \$PATH
4596See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004597
4598# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004599$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004600set X $ac_compile
4601ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004602for ac_option in --version -v -V -qversion; do
4603 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004604case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607esac
cristy8b350f62009-11-15 23:12:43 +00004608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4609$as_echo "$ac_try_echo"; } >&5
4610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004611 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004612 if test -s conftest.err; then
4613 sed '10a\
4614... rest of stderr output deleted ...
4615 10q' conftest.err >conftest.er1
4616 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004617 fi
cristycd4c5312009-11-22 01:19:08 +00004618 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620 test $ac_status = 0; }
4621done
cristy3ed852e2009-09-05 21:47:34 +00004622
cristy8b350f62009-11-15 23:12:43 +00004623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004624/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004625
cristy3ed852e2009-09-05 21:47:34 +00004626int
4627main ()
4628{
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004635ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004636# Try to create an executable without -o first, disregard a.out.
4637# It will help us diagnose broken compilers, and finding out an intuition
4638# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4640$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004641ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4642
4643# The possible output files:
4644ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4645
4646ac_rmfiles=
4647for ac_file in $ac_files
4648do
4649 case $ac_file in
4650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4651 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4652 esac
4653done
4654rm -f $ac_rmfiles
4655
cristy8b350f62009-11-15 23:12:43 +00004656if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004657case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660esac
cristy8b350f62009-11-15 23:12:43 +00004661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004663 (eval "$ac_link_default") 2>&5
4664 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4666 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004667 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4668# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4669# in a Makefile. We should not override ac_cv_exeext if it was cached,
4670# so that the user can short-circuit this test for compilers unknown to
4671# Autoconf.
4672for ac_file in $ac_files ''
4673do
4674 test -f "$ac_file" || continue
4675 case $ac_file in
4676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4677 ;;
4678 [ab].out )
4679 # We found the default executable, but exeext='' is most
4680 # certainly right.
4681 break;;
4682 *.* )
cristy8b350f62009-11-15 23:12:43 +00004683 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004684 then :; else
4685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4686 fi
4687 # We set ac_cv_exeext here because the later test for it is not
4688 # safe: cross compilers may not add the suffix if given an `-o'
4689 # argument, so we may need to know it at that point already.
4690 # Even if this section looks crufty: it has the advantage of
4691 # actually working.
4692 break;;
4693 * )
4694 break;;
4695 esac
4696done
4697test "$ac_cv_exeext" = no && ac_cv_exeext=
4698
4699else
4700 ac_file=''
4701fi
cristy8b350f62009-11-15 23:12:43 +00004702if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704$as_echo "no" >&6; }
4705$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706sed 's/^/| /' conftest.$ac_ext >&5
4707
cristy8b350f62009-11-15 23:12:43 +00004708{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004710as_fn_error 77 "C compiler cannot create executables
4711See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004712else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4714$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004715fi
cristycd4c5312009-11-22 01:19:08 +00004716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4717$as_echo_n "checking for C compiler default output file name... " >&6; }
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4719$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004720ac_exeext=$ac_cv_exeext
4721
cristycd4c5312009-11-22 01:19:08 +00004722rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004723ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004726if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004727case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730esac
cristy8b350f62009-11-15 23:12:43 +00004731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004733 (eval "$ac_link") 2>&5
4734 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004737 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4738# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4739# work properly (i.e., refer to `conftest.exe'), while it won't with
4740# `rm'.
4741for ac_file in conftest.exe conftest conftest.*; do
4742 test -f "$ac_file" || continue
4743 case $ac_file in
4744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4745 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4746 break;;
4747 * ) break;;
4748 esac
4749done
4750else
cristy8b350f62009-11-15 23:12:43 +00004751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004753as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4754See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004755fi
cristycd4c5312009-11-22 01:19:08 +00004756rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004758$as_echo "$ac_cv_exeext" >&6; }
4759
4760rm -f conftest.$ac_ext
4761EXEEXT=$ac_cv_exeext
4762ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
4765#include <stdio.h>
4766int
4767main ()
4768{
4769FILE *f = fopen ("conftest.out", "w");
4770 return ferror (f) || fclose (f) != 0;
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776ac_clean_files="$ac_clean_files conftest.out"
4777# Check that the compiler produces executables we can run. If not, either
4778# the compiler is broken, or we cross compile.
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4780$as_echo_n "checking whether we are cross compiling... " >&6; }
4781if test "$cross_compiling" != yes; then
4782 { { ac_try="$ac_link"
4783case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786esac
4787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4788$as_echo "$ac_try_echo"; } >&5
4789 (eval "$ac_link") 2>&5
4790 ac_status=$?
4791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4792 test $ac_status = 0; }
4793 if { ac_try='./conftest$ac_cv_exeext'
4794 { { case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797esac
4798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4799$as_echo "$ac_try_echo"; } >&5
4800 (eval "$ac_try") 2>&5
4801 ac_status=$?
4802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4803 test $ac_status = 0; }; }; then
4804 cross_compiling=no
4805 else
4806 if test "$cross_compiling" = maybe; then
4807 cross_compiling=yes
4808 else
4809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004811as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004812If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004813See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004814 fi
4815 fi
4816fi
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4818$as_echo "$cross_compiling" >&6; }
4819
4820rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4821ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004824if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004825 $as_echo_n "(cached) " >&6
4826else
cristy8b350f62009-11-15 23:12:43 +00004827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004828/* end confdefs.h. */
4829
4830int
4831main ()
4832{
4833
4834 ;
4835 return 0;
4836}
4837_ACEOF
4838rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004839if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
cristy8b350f62009-11-15 23:12:43 +00004844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4845$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004846 (eval "$ac_compile") 2>&5
4847 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4849 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004850 for ac_file in conftest.o conftest.obj conftest.*; do
4851 test -f "$ac_file" || continue;
4852 case $ac_file in
4853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4855 break;;
4856 esac
4857done
4858else
4859 $as_echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
cristy8b350f62009-11-15 23:12:43 +00004862{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004864as_fn_error $? "cannot compute suffix of object files: cannot compile
4865See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004866fi
cristy3ed852e2009-09-05 21:47:34 +00004867rm -f conftest.$ac_cv_objext conftest.$ac_ext
4868fi
cristy8b350f62009-11-15 23:12:43 +00004869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$ac_cv_objext" >&6; }
4871OBJEXT=$ac_cv_objext
4872ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004874$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004875if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004876 $as_echo_n "(cached) " >&6
4877else
cristy8b350f62009-11-15 23:12:43 +00004878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004879/* end confdefs.h. */
4880
4881int
4882main ()
4883{
4884#ifndef __GNUC__
4885 choke me
4886#endif
4887
4888 ;
4889 return 0;
4890}
4891_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004892if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004893 ac_compiler_gnu=yes
4894else
cristy8b350f62009-11-15 23:12:43 +00004895 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004896fi
cristy3ed852e2009-09-05 21:47:34 +00004897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898ac_cv_c_compiler_gnu=$ac_compiler_gnu
4899
4900fi
cristy8b350f62009-11-15 23:12:43 +00004901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004902$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4903if test $ac_compiler_gnu = yes; then
4904 GCC=yes
4905else
4906 GCC=
4907fi
4908ac_test_CFLAGS=${CFLAGS+set}
4909ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004911$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004912if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004913 $as_echo_n "(cached) " >&6
4914else
4915 ac_save_c_werror_flag=$ac_c_werror_flag
4916 ac_c_werror_flag=yes
4917 ac_cv_prog_cc_g=no
4918 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004920/* end confdefs.h. */
4921
4922int
4923main ()
4924{
4925
4926 ;
4927 return 0;
4928}
4929_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004930if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004931 ac_cv_prog_cc_g=yes
4932else
cristy8b350f62009-11-15 23:12:43 +00004933 CFLAGS=""
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004935/* end confdefs.h. */
4936
4937int
4938main ()
4939{
4940
4941 ;
4942 return 0;
4943}
4944_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004945if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004946
cristy8b350f62009-11-15 23:12:43 +00004947else
4948 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004949 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004951/* end confdefs.h. */
4952
4953int
4954main ()
4955{
4956
4957 ;
4958 return 0;
4959}
4960_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004961if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004962 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004963fi
cristy3ed852e2009-09-05 21:47:34 +00004964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965fi
cristy3ed852e2009-09-05 21:47:34 +00004966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967fi
cristy3ed852e2009-09-05 21:47:34 +00004968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 ac_c_werror_flag=$ac_save_c_werror_flag
4970fi
cristy8b350f62009-11-15 23:12:43 +00004971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004972$as_echo "$ac_cv_prog_cc_g" >&6; }
4973if test "$ac_test_CFLAGS" = set; then
4974 CFLAGS=$ac_save_CFLAGS
4975elif test $ac_cv_prog_cc_g = yes; then
4976 if test "$GCC" = yes; then
4977 CFLAGS="-g -O2"
4978 else
4979 CFLAGS="-g"
4980 fi
4981else
4982 if test "$GCC" = yes; then
4983 CFLAGS="-O2"
4984 else
4985 CFLAGS=
4986 fi
4987fi
cristy8b350f62009-11-15 23:12:43 +00004988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004989$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004990if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004991 $as_echo_n "(cached) " >&6
4992else
4993 ac_cv_prog_cc_c89=no
4994ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004996/* end confdefs.h. */
4997#include <stdarg.h>
4998#include <stdio.h>
4999#include <sys/types.h>
5000#include <sys/stat.h>
5001/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5002struct buf { int x; };
5003FILE * (*rcsopen) (struct buf *, struct stat *, int);
5004static char *e (p, i)
5005 char **p;
5006 int i;
5007{
5008 return p[i];
5009}
5010static char *f (char * (*g) (char **, int), char **p, ...)
5011{
5012 char *s;
5013 va_list v;
5014 va_start (v,p);
5015 s = g (p, va_arg (v,int));
5016 va_end (v);
5017 return s;
5018}
5019
5020/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5021 function prototypes and stuff, but not '\xHH' hex character constants.
5022 These don't provoke an error unfortunately, instead are silently treated
5023 as 'x'. The following induces an error, until -std is added to get
5024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5025 array size at least. It's necessary to write '\x00'==0 to get something
5026 that's true only with -std. */
5027int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5028
5029/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5030 inside strings and character constants. */
5031#define FOO(x) 'x'
5032int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5033
5034int test (int i, double x);
5035struct s1 {int (*f) (int a);};
5036struct s2 {int (*f) (double a);};
5037int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5038int argc;
5039char **argv;
5040int
5041main ()
5042{
5043return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5044 ;
5045 return 0;
5046}
5047_ACEOF
5048for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5050do
5051 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005052 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005053 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005054fi
cristy3ed852e2009-09-05 21:47:34 +00005055rm -f core conftest.err conftest.$ac_objext
5056 test "x$ac_cv_prog_cc_c89" != "xno" && break
5057done
5058rm -f conftest.$ac_ext
5059CC=$ac_save_CC
5060
5061fi
5062# AC_CACHE_VAL
5063case "x$ac_cv_prog_cc_c89" in
5064 x)
cristy8b350f62009-11-15 23:12:43 +00005065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005066$as_echo "none needed" >&6; } ;;
5067 xno)
cristy8b350f62009-11-15 23:12:43 +00005068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005069$as_echo "unsupported" >&6; } ;;
5070 *)
5071 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005073$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5074esac
cristy8b350f62009-11-15 23:12:43 +00005075if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005076
cristy8b350f62009-11-15 23:12:43 +00005077fi
cristy3ed852e2009-09-05 21:47:34 +00005078
5079ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005084
cristy73bd4a52010-10-05 11:24:23 +00005085depcc="$CC" am_compiler_list=
5086
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5088$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005089if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005090 $as_echo_n "(cached) " >&6
5091else
5092 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5093 # We make a subdir and do the tests there. Otherwise we can end up
5094 # making bogus files that we don't know about and never remove. For
5095 # instance it was reported that on HP-UX the gcc test will end up
5096 # making a dummy file named `D' -- because `-MD' means `put the output
5097 # in D'.
5098 mkdir conftest.dir
5099 # Copy depcomp to subdir because otherwise we won't find it if we're
5100 # using a relative directory.
5101 cp "$am_depcomp" conftest.dir
5102 cd conftest.dir
5103 # We will build objects and dependencies in a subdirectory because
5104 # it helps to detect inapplicable dependency modes. For instance
5105 # both Tru64's cc and ICC support -MD to output dependencies as a
5106 # side effect of compilation, but ICC will put the dependencies in
5107 # the current directory while Tru64 will put them in the object
5108 # directory.
5109 mkdir sub
5110
5111 am_cv_CC_dependencies_compiler_type=none
5112 if test "$am_compiler_list" = ""; then
5113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5114 fi
5115 am__universal=false
5116 case " $depcc " in #(
5117 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5118 esac
5119
5120 for depmode in $am_compiler_list; do
5121 # Setup a source with many dependencies, because some compilers
5122 # like to wrap large dependency lists on column 80 (with \), and
5123 # we should not choose a depcomp mode which is confused by this.
5124 #
5125 # We need to recreate these files for each test, as the compiler may
5126 # overwrite some of them when testing with obscure command lines.
5127 # This happens at least with the AIX C compiler.
5128 : > sub/conftest.c
5129 for i in 1 2 3 4 5 6; do
5130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5132 # Solaris 8's {/usr,}/bin/sh.
5133 touch sub/conftst$i.h
5134 done
5135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5136
5137 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5138 # mode. It turns out that the SunPro C++ compiler does not properly
5139 # handle `-M -o', and we need to detect this. Also, some Intel
5140 # versions had trouble with output in subdirs
5141 am__obj=sub/conftest.${OBJEXT-o}
5142 am__minus_obj="-o $am__obj"
5143 case $depmode in
5144 gcc)
5145 # This depmode causes a compiler race in universal mode.
5146 test "$am__universal" = false || continue
5147 ;;
5148 nosideeffect)
5149 # after this tag, mechanisms are not by side-effect, so they'll
5150 # only be used when explicitly requested
5151 if test "x$enable_dependency_tracking" = xyes; then
5152 continue
5153 else
5154 break
5155 fi
5156 ;;
5157 msvisualcpp | msvcmsys)
5158 # This compiler won't grok `-c -o', but also, the minuso test has
5159 # not run yet. These depmodes are late enough in the game, and
5160 # so weak that their functioning should not be impacted.
5161 am__obj=conftest.${OBJEXT-o}
5162 am__minus_obj=
5163 ;;
5164 none) break ;;
5165 esac
5166 if depmode=$depmode \
5167 source=sub/conftest.c object=$am__obj \
5168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5170 >/dev/null 2>conftest.err &&
5171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5175 # icc doesn't choke on unknown options, it will just issue warnings
5176 # or remarks (even with -Werror). So we grep stderr for any message
5177 # that says an option was ignored or not supported.
5178 # When given -MP, icc 7.0 and 7.1 complain thusly:
5179 # icc: Command line warning: ignoring option '-M'; no argument required
5180 # The diagnosis changed in icc 8.0:
5181 # icc: Command line remark: option '-MP' not supported
5182 if (grep 'ignoring option' conftest.err ||
5183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5184 am_cv_CC_dependencies_compiler_type=$depmode
5185 break
5186 fi
5187 fi
5188 done
5189
5190 cd ..
5191 rm -rf conftest.dir
5192else
5193 am_cv_CC_dependencies_compiler_type=none
5194fi
5195
5196fi
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5198$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5199CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5200
5201 if
5202 test "x$enable_dependency_tracking" != xno \
5203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5204 am__fastdepCC_TRUE=
5205 am__fastdepCC_FALSE='#'
5206else
5207 am__fastdepCC_TRUE='#'
5208 am__fastdepCC_FALSE=
5209fi
5210
5211
cristy3ed852e2009-09-05 21:47:34 +00005212
cristya0b81c32010-01-22 02:54:33 +00005213ac_ext=c
5214ac_cpp='$CPP $CPPFLAGS'
5215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5219$as_echo_n "checking how to run the C preprocessor... " >&6; }
5220# On Suns, sometimes $CPP names a directory.
5221if test -n "$CPP" && test -d "$CPP"; then
5222 CPP=
5223fi
5224if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005225 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005226 $as_echo_n "(cached) " >&6
5227else
5228 # Double quotes because CPP needs to be expanded
5229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5230 do
5231 ac_preproc_ok=false
5232for ac_c_preproc_warn_flag in '' yes
5233do
5234 # Use a header file that comes with gcc, so configuring glibc
5235 # with a fresh cross-compiler works.
5236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5237 # <limits.h> exists even on freestanding compilers.
5238 # On the NeXT, cc -E runs the code through the compiler's parser,
5239 # not just through cpp. "Syntax error" is here to catch this case.
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h. */
5242#ifdef __STDC__
5243# include <limits.h>
5244#else
5245# include <assert.h>
5246#endif
5247 Syntax error
5248_ACEOF
5249if ac_fn_c_try_cpp "$LINENO"; then :
5250
5251else
5252 # Broken: fails on valid input.
5253continue
5254fi
cristyda16f162011-02-19 23:52:17 +00005255rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005256
5257 # OK, works on sane cases. Now check whether nonexistent headers
5258 # can be detected and how.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h. */
5261#include <ac_nonexistent.h>
5262_ACEOF
5263if ac_fn_c_try_cpp "$LINENO"; then :
5264 # Broken: success on invalid input.
5265continue
5266else
5267 # Passes both tests.
5268ac_preproc_ok=:
5269break
5270fi
cristyda16f162011-02-19 23:52:17 +00005271rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005272
5273done
5274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005275rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005276if $ac_preproc_ok; then :
5277 break
5278fi
5279
5280 done
5281 ac_cv_prog_CPP=$CPP
5282
5283fi
5284 CPP=$ac_cv_prog_CPP
5285else
5286 ac_cv_prog_CPP=$CPP
5287fi
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5289$as_echo "$CPP" >&6; }
5290ac_preproc_ok=false
5291for ac_c_preproc_warn_flag in '' yes
5292do
5293 # Use a header file that comes with gcc, so configuring glibc
5294 # with a fresh cross-compiler works.
5295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5296 # <limits.h> exists even on freestanding compilers.
5297 # On the NeXT, cc -E runs the code through the compiler's parser,
5298 # not just through cpp. "Syntax error" is here to catch this case.
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h. */
5301#ifdef __STDC__
5302# include <limits.h>
5303#else
5304# include <assert.h>
5305#endif
5306 Syntax error
5307_ACEOF
5308if ac_fn_c_try_cpp "$LINENO"; then :
5309
5310else
5311 # Broken: fails on valid input.
5312continue
5313fi
cristyda16f162011-02-19 23:52:17 +00005314rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005315
5316 # OK, works on sane cases. Now check whether nonexistent headers
5317 # can be detected and how.
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319/* end confdefs.h. */
5320#include <ac_nonexistent.h>
5321_ACEOF
5322if ac_fn_c_try_cpp "$LINENO"; then :
5323 # Broken: success on invalid input.
5324continue
5325else
5326 # Passes both tests.
5327ac_preproc_ok=:
5328break
5329fi
cristyda16f162011-02-19 23:52:17 +00005330rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005331
5332done
5333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005334rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005335if $ac_preproc_ok; then :
5336
5337else
5338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005340as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5341See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005342fi
5343
5344ac_ext=c
5345ac_cpp='$CPP $CPPFLAGS'
5346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348ac_compiler_gnu=$ac_cv_c_compiler_gnu
5349
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5352$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005353if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005354 $as_echo_n "(cached) " >&6
5355else
5356 if test -z "$GREP"; then
5357 ac_path_GREP_found=false
5358 # Loop through the user's path and test for each of PROGNAME-LIST
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_prog in grep ggrep; do
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5367 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5368# Check for GNU ac_path_GREP and select it if it is found.
5369 # Check for GNU $ac_path_GREP
5370case `"$ac_path_GREP" --version 2>&1` in
5371*GNU*)
5372 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5373*)
5374 ac_count=0
5375 $as_echo_n 0123456789 >"conftest.in"
5376 while :
5377 do
5378 cat "conftest.in" "conftest.in" >"conftest.tmp"
5379 mv "conftest.tmp" "conftest.in"
5380 cp "conftest.in" "conftest.nl"
5381 $as_echo 'GREP' >> "conftest.nl"
5382 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5384 as_fn_arith $ac_count + 1 && ac_count=$as_val
5385 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5386 # Best one so far, save it but keep looking for a better one
5387 ac_cv_path_GREP="$ac_path_GREP"
5388 ac_path_GREP_max=$ac_count
5389 fi
5390 # 10*(2^10) chars as input seems more than enough
5391 test $ac_count -gt 10 && break
5392 done
5393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5394esac
5395
5396 $ac_path_GREP_found && break 3
5397 done
5398 done
5399 done
5400IFS=$as_save_IFS
5401 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005402 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005403 fi
5404else
5405 ac_cv_path_GREP=$GREP
5406fi
5407
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5410$as_echo "$ac_cv_path_GREP" >&6; }
5411 GREP="$ac_cv_path_GREP"
5412
5413
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5415$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005416if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005417 $as_echo_n "(cached) " >&6
5418else
5419 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5420 then ac_cv_path_EGREP="$GREP -E"
5421 else
5422 if test -z "$EGREP"; then
5423 ac_path_EGREP_found=false
5424 # Loop through the user's path and test for each of PROGNAME-LIST
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5427do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_prog in egrep; do
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5433 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5434# Check for GNU ac_path_EGREP and select it if it is found.
5435 # Check for GNU $ac_path_EGREP
5436case `"$ac_path_EGREP" --version 2>&1` in
5437*GNU*)
5438 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5439*)
5440 ac_count=0
5441 $as_echo_n 0123456789 >"conftest.in"
5442 while :
5443 do
5444 cat "conftest.in" "conftest.in" >"conftest.tmp"
5445 mv "conftest.tmp" "conftest.in"
5446 cp "conftest.in" "conftest.nl"
5447 $as_echo 'EGREP' >> "conftest.nl"
5448 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5450 as_fn_arith $ac_count + 1 && ac_count=$as_val
5451 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5452 # Best one so far, save it but keep looking for a better one
5453 ac_cv_path_EGREP="$ac_path_EGREP"
5454 ac_path_EGREP_max=$ac_count
5455 fi
5456 # 10*(2^10) chars as input seems more than enough
5457 test $ac_count -gt 10 && break
5458 done
5459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5460esac
5461
5462 $ac_path_EGREP_found && break 3
5463 done
5464 done
5465 done
5466IFS=$as_save_IFS
5467 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005468 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005469 fi
5470else
5471 ac_cv_path_EGREP=$EGREP
5472fi
5473
5474 fi
5475fi
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5477$as_echo "$ac_cv_path_EGREP" >&6; }
5478 EGREP="$ac_cv_path_EGREP"
5479
5480
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5482$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005483if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005484 $as_echo_n "(cached) " >&6
5485else
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h. */
5488#include <stdlib.h>
5489#include <stdarg.h>
5490#include <string.h>
5491#include <float.h>
5492
5493int
5494main ()
5495{
5496
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501if ac_fn_c_try_compile "$LINENO"; then :
5502 ac_cv_header_stdc=yes
5503else
5504 ac_cv_header_stdc=no
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507
5508if test $ac_cv_header_stdc = yes; then
5509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511/* end confdefs.h. */
5512#include <string.h>
5513
5514_ACEOF
5515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "memchr" >/dev/null 2>&1; then :
5517
5518else
5519 ac_cv_header_stdc=no
5520fi
5521rm -f conftest*
5522
5523fi
5524
5525if test $ac_cv_header_stdc = yes; then
5526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h. */
5529#include <stdlib.h>
5530
5531_ACEOF
5532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 $EGREP "free" >/dev/null 2>&1; then :
5534
5535else
5536 ac_cv_header_stdc=no
5537fi
5538rm -f conftest*
5539
5540fi
5541
5542if test $ac_cv_header_stdc = yes; then
5543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5544 if test "$cross_compiling" = yes; then :
5545 :
5546else
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h. */
5549#include <ctype.h>
5550#include <stdlib.h>
5551#if ((' ' & 0x0FF) == 0x020)
5552# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5553# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5554#else
5555# define ISLOWER(c) \
5556 (('a' <= (c) && (c) <= 'i') \
5557 || ('j' <= (c) && (c) <= 'r') \
5558 || ('s' <= (c) && (c) <= 'z'))
5559# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5560#endif
5561
5562#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5563int
5564main ()
5565{
5566 int i;
5567 for (i = 0; i < 256; i++)
5568 if (XOR (islower (i), ISLOWER (i))
5569 || toupper (i) != TOUPPER (i))
5570 return 2;
5571 return 0;
5572}
5573_ACEOF
5574if ac_fn_c_try_run "$LINENO"; then :
5575
5576else
5577 ac_cv_header_stdc=no
5578fi
5579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5580 conftest.$ac_objext conftest.beam conftest.$ac_ext
5581fi
5582
5583fi
5584fi
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5586$as_echo "$ac_cv_header_stdc" >&6; }
5587if test $ac_cv_header_stdc = yes; then
5588
5589$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5590
5591fi
5592
5593# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5594for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5595 inttypes.h stdint.h unistd.h
5596do :
5597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5598ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5599"
cristy98dddb52010-11-04 00:30:15 +00005600if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005601 cat >>confdefs.h <<_ACEOF
5602#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5603_ACEOF
5604
5605fi
5606
5607done
5608
5609
5610
5611 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 +00005612if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005613 MINIX=yes
5614else
5615 MINIX=
5616fi
5617
5618
5619 if test "$MINIX" = yes; then
5620
5621$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5622
5623
5624$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5625
5626
5627$as_echo "#define _MINIX 1" >>confdefs.h
5628
5629 fi
5630
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5633$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005634if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005635 $as_echo_n "(cached) " >&6
5636else
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h. */
5639
5640# define __EXTENSIONS__ 1
5641 $ac_includes_default
5642int
5643main ()
5644{
5645
5646 ;
5647 return 0;
5648}
5649_ACEOF
5650if ac_fn_c_try_compile "$LINENO"; then :
5651 ac_cv_safe_to_define___extensions__=yes
5652else
5653 ac_cv_safe_to_define___extensions__=no
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656fi
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5658$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5659 test $ac_cv_safe_to_define___extensions__ = yes &&
5660 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5661
5662 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5663
5664 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5665
5666 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5667
5668 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5669
5670
5671
5672# Check for programs
5673ac_ext=c
5674ac_cpp='$CPP $CPPFLAGS'
5675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677ac_compiler_gnu=$ac_cv_c_compiler_gnu
5678if test -n "$ac_tool_prefix"; then
5679 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5680set dummy ${ac_tool_prefix}gcc; ac_word=$2
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005683if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005684 $as_echo_n "(cached) " >&6
5685else
5686 if test -n "$CC"; then
5687 ac_cv_prog_CC="$CC" # Let the user override the test.
5688else
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700done
5701 done
5702IFS=$as_save_IFS
5703
5704fi
5705fi
5706CC=$ac_cv_prog_CC
5707if test -n "$CC"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5709$as_echo "$CC" >&6; }
5710else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
5713fi
5714
5715
5716fi
5717if test -z "$ac_cv_prog_CC"; then
5718 ac_ct_CC=$CC
5719 # Extract the first word of "gcc", so it can be a program name with args.
5720set dummy gcc; ac_word=$2
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005723if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005724 $as_echo_n "(cached) " >&6
5725else
5726 if test -n "$ac_ct_CC"; then
5727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_ac_ct_CC="gcc"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740done
5741 done
5742IFS=$as_save_IFS
5743
5744fi
5745fi
5746ac_ct_CC=$ac_cv_prog_ac_ct_CC
5747if test -n "$ac_ct_CC"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5749$as_echo "$ac_ct_CC" >&6; }
5750else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
5753fi
5754
5755 if test "x$ac_ct_CC" = x; then
5756 CC=""
5757 else
5758 case $cross_compiling:$ac_tool_warned in
5759yes:)
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5762ac_tool_warned=yes ;;
5763esac
5764 CC=$ac_ct_CC
5765 fi
5766else
5767 CC="$ac_cv_prog_CC"
5768fi
5769
5770if test -z "$CC"; then
5771 if test -n "$ac_tool_prefix"; then
5772 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5773set dummy ${ac_tool_prefix}cc; ac_word=$2
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005776if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005777 $as_echo_n "(cached) " >&6
5778else
5779 if test -n "$CC"; then
5780 ac_cv_prog_CC="$CC" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_CC="${ac_tool_prefix}cc"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793done
5794 done
5795IFS=$as_save_IFS
5796
5797fi
5798fi
5799CC=$ac_cv_prog_CC
5800if test -n "$CC"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5802$as_echo "$CC" >&6; }
5803else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805$as_echo "no" >&6; }
5806fi
5807
5808
5809 fi
5810fi
5811if test -z "$CC"; then
5812 # Extract the first word of "cc", so it can be a program name with args.
5813set dummy cc; ac_word=$2
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005816if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005817 $as_echo_n "(cached) " >&6
5818else
5819 if test -n "$CC"; then
5820 ac_cv_prog_CC="$CC" # Let the user override the test.
5821else
5822 ac_prog_rejected=no
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5831 ac_prog_rejected=yes
5832 continue
5833 fi
5834 ac_cv_prog_CC="cc"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838done
5839 done
5840IFS=$as_save_IFS
5841
5842if test $ac_prog_rejected = yes; then
5843 # We found a bogon in the path, so make sure we never use it.
5844 set dummy $ac_cv_prog_CC
5845 shift
5846 if test $# != 0; then
5847 # We chose a different compiler from the bogus one.
5848 # However, it has the same basename, so the bogon will be chosen
5849 # first if we set CC to just the basename; use the full file name.
5850 shift
5851 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5852 fi
5853fi
5854fi
5855fi
5856CC=$ac_cv_prog_CC
5857if test -n "$CC"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5859$as_echo "$CC" >&6; }
5860else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862$as_echo "no" >&6; }
5863fi
5864
5865
5866fi
5867if test -z "$CC"; then
5868 if test -n "$ac_tool_prefix"; then
5869 for ac_prog in cl.exe
5870 do
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005875if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005876 $as_echo_n "(cached) " >&6
5877else
5878 if test -n "$CC"; then
5879 ac_cv_prog_CC="$CC" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893 done
5894IFS=$as_save_IFS
5895
5896fi
5897fi
5898CC=$ac_cv_prog_CC
5899if test -n "$CC"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5901$as_echo "$CC" >&6; }
5902else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
5905fi
5906
5907
5908 test -n "$CC" && break
5909 done
5910fi
5911if test -z "$CC"; then
5912 ac_ct_CC=$CC
5913 for ac_prog in cl.exe
5914do
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916set dummy $ac_prog; ac_word=$2
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005919if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005920 $as_echo_n "(cached) " >&6
5921else
5922 if test -n "$ac_ct_CC"; then
5923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_ac_ct_CC="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937 done
5938IFS=$as_save_IFS
5939
5940fi
5941fi
5942ac_ct_CC=$ac_cv_prog_ac_ct_CC
5943if test -n "$ac_ct_CC"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5945$as_echo "$ac_ct_CC" >&6; }
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950
5951
5952 test -n "$ac_ct_CC" && break
5953done
5954
5955 if test "x$ac_ct_CC" = x; then
5956 CC=""
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959yes:)
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962ac_tool_warned=yes ;;
5963esac
5964 CC=$ac_ct_CC
5965 fi
5966fi
5967
5968fi
5969
5970
5971test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005973as_fn_error $? "no acceptable C compiler found in \$PATH
5974See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005975
5976# Provide some information about the compiler.
5977$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5978set X $ac_compile
5979ac_compiler=$2
5980for ac_option in --version -v -V -qversion; do
5981 { { ac_try="$ac_compiler $ac_option >&5"
5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5987$as_echo "$ac_try_echo"; } >&5
5988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5989 ac_status=$?
5990 if test -s conftest.err; then
5991 sed '10a\
5992... rest of stderr output deleted ...
5993 10q' conftest.err >conftest.er1
5994 cat conftest.er1 >&5
5995 fi
5996 rm -f conftest.er1 conftest.err
5997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998 test $ac_status = 0; }
5999done
6000
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6002$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006003if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006004 $as_echo_n "(cached) " >&6
6005else
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h. */
6008
6009int
6010main ()
6011{
6012#ifndef __GNUC__
6013 choke me
6014#endif
6015
6016 ;
6017 return 0;
6018}
6019_ACEOF
6020if ac_fn_c_try_compile "$LINENO"; then :
6021 ac_compiler_gnu=yes
6022else
6023 ac_compiler_gnu=no
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026ac_cv_c_compiler_gnu=$ac_compiler_gnu
6027
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6030$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6031if test $ac_compiler_gnu = yes; then
6032 GCC=yes
6033else
6034 GCC=
6035fi
6036ac_test_CFLAGS=${CFLAGS+set}
6037ac_save_CFLAGS=$CFLAGS
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6039$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006040if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006041 $as_echo_n "(cached) " >&6
6042else
6043 ac_save_c_werror_flag=$ac_c_werror_flag
6044 ac_c_werror_flag=yes
6045 ac_cv_prog_cc_g=no
6046 CFLAGS="-g"
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h. */
6049
6050int
6051main ()
6052{
6053
6054 ;
6055 return 0;
6056}
6057_ACEOF
6058if ac_fn_c_try_compile "$LINENO"; then :
6059 ac_cv_prog_cc_g=yes
6060else
6061 CFLAGS=""
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h. */
6064
6065int
6066main ()
6067{
6068
6069 ;
6070 return 0;
6071}
6072_ACEOF
6073if ac_fn_c_try_compile "$LINENO"; then :
6074
6075else
6076 ac_c_werror_flag=$ac_save_c_werror_flag
6077 CFLAGS="-g"
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h. */
6080
6081int
6082main ()
6083{
6084
6085 ;
6086 return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_compile "$LINENO"; then :
6090 ac_cv_prog_cc_g=yes
6091fi
6092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093fi
6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 ac_c_werror_flag=$ac_save_c_werror_flag
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6100$as_echo "$ac_cv_prog_cc_g" >&6; }
6101if test "$ac_test_CFLAGS" = set; then
6102 CFLAGS=$ac_save_CFLAGS
6103elif test $ac_cv_prog_cc_g = yes; then
6104 if test "$GCC" = yes; then
6105 CFLAGS="-g -O2"
6106 else
6107 CFLAGS="-g"
6108 fi
6109else
6110 if test "$GCC" = yes; then
6111 CFLAGS="-O2"
6112 else
6113 CFLAGS=
6114 fi
6115fi
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6117$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006118if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006119 $as_echo_n "(cached) " >&6
6120else
6121 ac_cv_prog_cc_c89=no
6122ac_save_CC=$CC
6123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124/* end confdefs.h. */
6125#include <stdarg.h>
6126#include <stdio.h>
6127#include <sys/types.h>
6128#include <sys/stat.h>
6129/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6130struct buf { int x; };
6131FILE * (*rcsopen) (struct buf *, struct stat *, int);
6132static char *e (p, i)
6133 char **p;
6134 int i;
6135{
6136 return p[i];
6137}
6138static char *f (char * (*g) (char **, int), char **p, ...)
6139{
6140 char *s;
6141 va_list v;
6142 va_start (v,p);
6143 s = g (p, va_arg (v,int));
6144 va_end (v);
6145 return s;
6146}
6147
6148/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6149 function prototypes and stuff, but not '\xHH' hex character constants.
6150 These don't provoke an error unfortunately, instead are silently treated
6151 as 'x'. The following induces an error, until -std is added to get
6152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6153 array size at least. It's necessary to write '\x00'==0 to get something
6154 that's true only with -std. */
6155int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6156
6157/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6158 inside strings and character constants. */
6159#define FOO(x) 'x'
6160int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6161
6162int test (int i, double x);
6163struct s1 {int (*f) (int a);};
6164struct s2 {int (*f) (double a);};
6165int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6166int argc;
6167char **argv;
6168int
6169main ()
6170{
6171return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6172 ;
6173 return 0;
6174}
6175_ACEOF
6176for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6178do
6179 CC="$ac_save_CC $ac_arg"
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 ac_cv_prog_cc_c89=$ac_arg
6182fi
6183rm -f core conftest.err conftest.$ac_objext
6184 test "x$ac_cv_prog_cc_c89" != "xno" && break
6185done
6186rm -f conftest.$ac_ext
6187CC=$ac_save_CC
6188
6189fi
6190# AC_CACHE_VAL
6191case "x$ac_cv_prog_cc_c89" in
6192 x)
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6194$as_echo "none needed" >&6; } ;;
6195 xno)
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6197$as_echo "unsupported" >&6; } ;;
6198 *)
6199 CC="$CC $ac_cv_prog_cc_c89"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6201$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6202esac
6203if test "x$ac_cv_prog_cc_c89" != xno; then :
6204
6205fi
6206
6207ac_ext=c
6208ac_cpp='$CPP $CPPFLAGS'
6209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212
cristy73bd4a52010-10-05 11:24:23 +00006213depcc="$CC" am_compiler_list=
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6216$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006217if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006218 $as_echo_n "(cached) " >&6
6219else
6220 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6221 # We make a subdir and do the tests there. Otherwise we can end up
6222 # making bogus files that we don't know about and never remove. For
6223 # instance it was reported that on HP-UX the gcc test will end up
6224 # making a dummy file named `D' -- because `-MD' means `put the output
6225 # in D'.
6226 mkdir conftest.dir
6227 # Copy depcomp to subdir because otherwise we won't find it if we're
6228 # using a relative directory.
6229 cp "$am_depcomp" conftest.dir
6230 cd conftest.dir
6231 # We will build objects and dependencies in a subdirectory because
6232 # it helps to detect inapplicable dependency modes. For instance
6233 # both Tru64's cc and ICC support -MD to output dependencies as a
6234 # side effect of compilation, but ICC will put the dependencies in
6235 # the current directory while Tru64 will put them in the object
6236 # directory.
6237 mkdir sub
6238
6239 am_cv_CC_dependencies_compiler_type=none
6240 if test "$am_compiler_list" = ""; then
6241 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6242 fi
6243 am__universal=false
6244 case " $depcc " in #(
6245 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6246 esac
6247
6248 for depmode in $am_compiler_list; do
6249 # Setup a source with many dependencies, because some compilers
6250 # like to wrap large dependency lists on column 80 (with \), and
6251 # we should not choose a depcomp mode which is confused by this.
6252 #
6253 # We need to recreate these files for each test, as the compiler may
6254 # overwrite some of them when testing with obscure command lines.
6255 # This happens at least with the AIX C compiler.
6256 : > sub/conftest.c
6257 for i in 1 2 3 4 5 6; do
6258 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6259 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6260 # Solaris 8's {/usr,}/bin/sh.
6261 touch sub/conftst$i.h
6262 done
6263 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6264
6265 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6266 # mode. It turns out that the SunPro C++ compiler does not properly
6267 # handle `-M -o', and we need to detect this. Also, some Intel
6268 # versions had trouble with output in subdirs
6269 am__obj=sub/conftest.${OBJEXT-o}
6270 am__minus_obj="-o $am__obj"
6271 case $depmode in
6272 gcc)
6273 # This depmode causes a compiler race in universal mode.
6274 test "$am__universal" = false || continue
6275 ;;
6276 nosideeffect)
6277 # after this tag, mechanisms are not by side-effect, so they'll
6278 # only be used when explicitly requested
6279 if test "x$enable_dependency_tracking" = xyes; then
6280 continue
6281 else
6282 break
6283 fi
6284 ;;
6285 msvisualcpp | msvcmsys)
6286 # This compiler won't grok `-c -o', but also, the minuso test has
6287 # not run yet. These depmodes are late enough in the game, and
6288 # so weak that their functioning should not be impacted.
6289 am__obj=conftest.${OBJEXT-o}
6290 am__minus_obj=
6291 ;;
6292 none) break ;;
6293 esac
6294 if depmode=$depmode \
6295 source=sub/conftest.c object=$am__obj \
6296 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6297 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6298 >/dev/null 2>conftest.err &&
6299 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6300 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6301 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6302 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6303 # icc doesn't choke on unknown options, it will just issue warnings
6304 # or remarks (even with -Werror). So we grep stderr for any message
6305 # that says an option was ignored or not supported.
6306 # When given -MP, icc 7.0 and 7.1 complain thusly:
6307 # icc: Command line warning: ignoring option '-M'; no argument required
6308 # The diagnosis changed in icc 8.0:
6309 # icc: Command line remark: option '-MP' not supported
6310 if (grep 'ignoring option' conftest.err ||
6311 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6312 am_cv_CC_dependencies_compiler_type=$depmode
6313 break
6314 fi
6315 fi
6316 done
6317
6318 cd ..
6319 rm -rf conftest.dir
6320else
6321 am_cv_CC_dependencies_compiler_type=none
6322fi
6323
6324fi
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6326$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6327CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6328
6329 if
6330 test "x$enable_dependency_tracking" != xno \
6331 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6332 am__fastdepCC_TRUE=
6333 am__fastdepCC_FALSE='#'
6334else
6335 am__fastdepCC_TRUE='#'
6336 am__fastdepCC_FALSE=
6337fi
6338
6339
cristy95646052009-11-28 23:05:30 +00006340ac_ext=cpp
6341ac_cpp='$CXXCPP $CPPFLAGS'
6342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6345if test -z "$CXX"; then
6346 if test -n "$CCC"; then
6347 CXX=$CCC
6348 else
6349 if test -n "$ac_tool_prefix"; then
6350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6351 do
6352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6353set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006356if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006357 $as_echo_n "(cached) " >&6
6358else
6359 if test -n "$CXX"; then
6360 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6361else
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373done
6374 done
6375IFS=$as_save_IFS
6376
6377fi
6378fi
6379CXX=$ac_cv_prog_CXX
6380if test -n "$CXX"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6382$as_echo "$CXX" >&6; }
6383else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385$as_echo "no" >&6; }
6386fi
6387
6388
6389 test -n "$CXX" && break
6390 done
6391fi
6392if test -z "$CXX"; then
6393 ac_ct_CXX=$CXX
6394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6395do
6396 # Extract the first word of "$ac_prog", so it can be a program name with args.
6397set dummy $ac_prog; ac_word=$2
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006400if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006401 $as_echo_n "(cached) " >&6
6402else
6403 if test -n "$ac_ct_CXX"; then
6404 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_ac_ct_CXX="$ac_prog"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417done
6418 done
6419IFS=$as_save_IFS
6420
6421fi
6422fi
6423ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6424if test -n "$ac_ct_CXX"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6426$as_echo "$ac_ct_CXX" >&6; }
6427else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432
6433 test -n "$ac_ct_CXX" && break
6434done
6435
6436 if test "x$ac_ct_CXX" = x; then
6437 CXX="g++"
6438 else
6439 case $cross_compiling:$ac_tool_warned in
6440yes:)
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6443ac_tool_warned=yes ;;
6444esac
6445 CXX=$ac_ct_CXX
6446 fi
6447fi
6448
6449 fi
6450fi
6451# Provide some information about the compiler.
6452$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6453set X $ac_compile
6454ac_compiler=$2
6455for ac_option in --version -v -V -qversion; do
6456 { { ac_try="$ac_compiler $ac_option >&5"
6457case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460esac
6461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6462$as_echo "$ac_try_echo"; } >&5
6463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6464 ac_status=$?
6465 if test -s conftest.err; then
6466 sed '10a\
6467... rest of stderr output deleted ...
6468 10q' conftest.err >conftest.er1
6469 cat conftest.er1 >&5
6470 fi
6471 rm -f conftest.er1 conftest.err
6472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473 test $ac_status = 0; }
6474done
6475
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6477$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006478if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006479 $as_echo_n "(cached) " >&6
6480else
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h. */
6483
6484int
6485main ()
6486{
6487#ifndef __GNUC__
6488 choke me
6489#endif
6490
6491 ;
6492 return 0;
6493}
6494_ACEOF
6495if ac_fn_cxx_try_compile "$LINENO"; then :
6496 ac_compiler_gnu=yes
6497else
6498 ac_compiler_gnu=no
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6502
6503fi
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6505$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6506if test $ac_compiler_gnu = yes; then
6507 GXX=yes
6508else
6509 GXX=
6510fi
6511ac_test_CXXFLAGS=${CXXFLAGS+set}
6512ac_save_CXXFLAGS=$CXXFLAGS
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6514$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006515if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006516 $as_echo_n "(cached) " >&6
6517else
6518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6519 ac_cxx_werror_flag=yes
6520 ac_cv_prog_cxx_g=no
6521 CXXFLAGS="-g"
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h. */
6524
6525int
6526main ()
6527{
6528
6529 ;
6530 return 0;
6531}
6532_ACEOF
6533if ac_fn_cxx_try_compile "$LINENO"; then :
6534 ac_cv_prog_cxx_g=yes
6535else
6536 CXXFLAGS=""
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h. */
6539
6540int
6541main ()
6542{
6543
6544 ;
6545 return 0;
6546}
6547_ACEOF
6548if ac_fn_cxx_try_compile "$LINENO"; then :
6549
6550else
6551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6552 CXXFLAGS="-g"
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h. */
6555
6556int
6557main ()
6558{
6559
6560 ;
6561 return 0;
6562}
6563_ACEOF
6564if ac_fn_cxx_try_compile "$LINENO"; then :
6565 ac_cv_prog_cxx_g=yes
6566fi
6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568fi
6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570fi
6571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6575$as_echo "$ac_cv_prog_cxx_g" >&6; }
6576if test "$ac_test_CXXFLAGS" = set; then
6577 CXXFLAGS=$ac_save_CXXFLAGS
6578elif test $ac_cv_prog_cxx_g = yes; then
6579 if test "$GXX" = yes; then
6580 CXXFLAGS="-g -O2"
6581 else
6582 CXXFLAGS="-g"
6583 fi
6584else
6585 if test "$GXX" = yes; then
6586 CXXFLAGS="-O2"
6587 else
6588 CXXFLAGS=
6589 fi
6590fi
6591ac_ext=c
6592ac_cpp='$CPP $CPPFLAGS'
6593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595ac_compiler_gnu=$ac_cv_c_compiler_gnu
6596
cristy73bd4a52010-10-05 11:24:23 +00006597depcc="$CXX" am_compiler_list=
6598
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6600$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006601if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006602 $as_echo_n "(cached) " >&6
6603else
6604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6605 # We make a subdir and do the tests there. Otherwise we can end up
6606 # making bogus files that we don't know about and never remove. For
6607 # instance it was reported that on HP-UX the gcc test will end up
6608 # making a dummy file named `D' -- because `-MD' means `put the output
6609 # in D'.
6610 mkdir conftest.dir
6611 # Copy depcomp to subdir because otherwise we won't find it if we're
6612 # using a relative directory.
6613 cp "$am_depcomp" conftest.dir
6614 cd conftest.dir
6615 # We will build objects and dependencies in a subdirectory because
6616 # it helps to detect inapplicable dependency modes. For instance
6617 # both Tru64's cc and ICC support -MD to output dependencies as a
6618 # side effect of compilation, but ICC will put the dependencies in
6619 # the current directory while Tru64 will put them in the object
6620 # directory.
6621 mkdir sub
6622
6623 am_cv_CXX_dependencies_compiler_type=none
6624 if test "$am_compiler_list" = ""; then
6625 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6626 fi
6627 am__universal=false
6628 case " $depcc " in #(
6629 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6630 esac
6631
6632 for depmode in $am_compiler_list; do
6633 # Setup a source with many dependencies, because some compilers
6634 # like to wrap large dependency lists on column 80 (with \), and
6635 # we should not choose a depcomp mode which is confused by this.
6636 #
6637 # We need to recreate these files for each test, as the compiler may
6638 # overwrite some of them when testing with obscure command lines.
6639 # This happens at least with the AIX C compiler.
6640 : > sub/conftest.c
6641 for i in 1 2 3 4 5 6; do
6642 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6643 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6644 # Solaris 8's {/usr,}/bin/sh.
6645 touch sub/conftst$i.h
6646 done
6647 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6648
6649 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6650 # mode. It turns out that the SunPro C++ compiler does not properly
6651 # handle `-M -o', and we need to detect this. Also, some Intel
6652 # versions had trouble with output in subdirs
6653 am__obj=sub/conftest.${OBJEXT-o}
6654 am__minus_obj="-o $am__obj"
6655 case $depmode in
6656 gcc)
6657 # This depmode causes a compiler race in universal mode.
6658 test "$am__universal" = false || continue
6659 ;;
6660 nosideeffect)
6661 # after this tag, mechanisms are not by side-effect, so they'll
6662 # only be used when explicitly requested
6663 if test "x$enable_dependency_tracking" = xyes; then
6664 continue
6665 else
6666 break
6667 fi
6668 ;;
6669 msvisualcpp | msvcmsys)
6670 # This compiler won't grok `-c -o', but also, the minuso test has
6671 # not run yet. These depmodes are late enough in the game, and
6672 # so weak that their functioning should not be impacted.
6673 am__obj=conftest.${OBJEXT-o}
6674 am__minus_obj=
6675 ;;
6676 none) break ;;
6677 esac
6678 if depmode=$depmode \
6679 source=sub/conftest.c object=$am__obj \
6680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6681 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6682 >/dev/null 2>conftest.err &&
6683 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6684 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6685 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6686 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6687 # icc doesn't choke on unknown options, it will just issue warnings
6688 # or remarks (even with -Werror). So we grep stderr for any message
6689 # that says an option was ignored or not supported.
6690 # When given -MP, icc 7.0 and 7.1 complain thusly:
6691 # icc: Command line warning: ignoring option '-M'; no argument required
6692 # The diagnosis changed in icc 8.0:
6693 # icc: Command line remark: option '-MP' not supported
6694 if (grep 'ignoring option' conftest.err ||
6695 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6696 am_cv_CXX_dependencies_compiler_type=$depmode
6697 break
6698 fi
6699 fi
6700 done
6701
6702 cd ..
6703 rm -rf conftest.dir
6704else
6705 am_cv_CXX_dependencies_compiler_type=none
6706fi
6707
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6710$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6711CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6712
6713 if
6714 test "x$enable_dependency_tracking" != xno \
6715 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6716 am__fastdepCXX_TRUE=
6717 am__fastdepCXX_FALSE='#'
6718else
6719 am__fastdepCXX_TRUE='#'
6720 am__fastdepCXX_FALSE=
6721fi
6722
6723
cristy8b350f62009-11-15 23:12:43 +00006724 case $ac_cv_prog_cc_stdc in #(
6725 no) :
6726 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6727 *) :
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006729$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006730if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006731 $as_echo_n "(cached) " >&6
6732else
6733 ac_cv_prog_cc_c99=no
6734ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006736/* end confdefs.h. */
6737#include <stdarg.h>
6738#include <stdbool.h>
6739#include <stdlib.h>
6740#include <wchar.h>
6741#include <stdio.h>
6742
6743// Check varargs macros. These examples are taken from C99 6.10.3.5.
6744#define debug(...) fprintf (stderr, __VA_ARGS__)
6745#define showlist(...) puts (#__VA_ARGS__)
6746#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6747static void
6748test_varargs_macros (void)
6749{
6750 int x = 1234;
6751 int y = 5678;
6752 debug ("Flag");
6753 debug ("X = %d\n", x);
6754 showlist (The first, second, and third items.);
6755 report (x>y, "x is %d but y is %d", x, y);
6756}
6757
6758// Check long long types.
6759#define BIG64 18446744073709551615ull
6760#define BIG32 4294967295ul
6761#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6762#if !BIG_OK
6763 your preprocessor is broken;
6764#endif
6765#if BIG_OK
6766#else
6767 your preprocessor is broken;
6768#endif
6769static long long int bignum = -9223372036854775807LL;
6770static unsigned long long int ubignum = BIG64;
6771
6772struct incomplete_array
6773{
6774 int datasize;
6775 double data[];
6776};
6777
6778struct named_init {
6779 int number;
6780 const wchar_t *name;
6781 double average;
6782};
6783
6784typedef const char *ccp;
6785
6786static inline int
6787test_restrict (ccp restrict text)
6788{
6789 // See if C++-style comments work.
6790 // Iterate through items via the restricted pointer.
6791 // Also check for declarations in for loops.
6792 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6793 continue;
6794 return 0;
6795}
6796
6797// Check varargs and va_copy.
6798static void
6799test_varargs (const char *format, ...)
6800{
6801 va_list args;
6802 va_start (args, format);
6803 va_list args_copy;
6804 va_copy (args_copy, args);
6805
6806 const char *str;
6807 int number;
6808 float fnumber;
6809
6810 while (*format)
6811 {
6812 switch (*format++)
6813 {
6814 case 's': // string
6815 str = va_arg (args_copy, const char *);
6816 break;
6817 case 'd': // int
6818 number = va_arg (args_copy, int);
6819 break;
6820 case 'f': // float
6821 fnumber = va_arg (args_copy, double);
6822 break;
6823 default:
6824 break;
6825 }
6826 }
6827 va_end (args_copy);
6828 va_end (args);
6829}
6830
6831int
6832main ()
6833{
6834
6835 // Check bool.
6836 _Bool success = false;
6837
6838 // Check restrict.
6839 if (test_restrict ("String literal") == 0)
6840 success = true;
6841 char *restrict newvar = "Another string";
6842
6843 // Check varargs.
6844 test_varargs ("s, d' f .", "string", 65, 34.234);
6845 test_varargs_macros ();
6846
6847 // Check flexible array members.
6848 struct incomplete_array *ia =
6849 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6850 ia->datasize = 10;
6851 for (int i = 0; i < ia->datasize; ++i)
6852 ia->data[i] = i * 1.234;
6853
6854 // Check named initializers.
6855 struct named_init ni = {
6856 .number = 34,
6857 .name = L"Test wide string",
6858 .average = 543.34343,
6859 };
6860
6861 ni.number = 58;
6862
6863 int dynamic_array[ni.number];
6864 dynamic_array[ni.number - 1] = 543;
6865
6866 // work around unused variable warnings
6867 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6868 || dynamic_array[ni.number - 1] != 543);
6869
6870 ;
6871 return 0;
6872}
6873_ACEOF
6874for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6875do
6876 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006877 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006878 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006879fi
cristy3ed852e2009-09-05 21:47:34 +00006880rm -f core conftest.err conftest.$ac_objext
6881 test "x$ac_cv_prog_cc_c99" != "xno" && break
6882done
6883rm -f conftest.$ac_ext
6884CC=$ac_save_CC
6885
6886fi
6887# AC_CACHE_VAL
6888case "x$ac_cv_prog_cc_c99" in
6889 x)
cristy8b350f62009-11-15 23:12:43 +00006890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006891$as_echo "none needed" >&6; } ;;
6892 xno)
cristy8b350f62009-11-15 23:12:43 +00006893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006894$as_echo "unsupported" >&6; } ;;
6895 *)
6896 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006898$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6899esac
cristy8b350f62009-11-15 23:12:43 +00006900if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006901 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6902else
cristy8b350f62009-11-15 23:12:43 +00006903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006904$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006905if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006906 $as_echo_n "(cached) " >&6
6907else
6908 ac_cv_prog_cc_c89=no
6909ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006911/* end confdefs.h. */
6912#include <stdarg.h>
6913#include <stdio.h>
6914#include <sys/types.h>
6915#include <sys/stat.h>
6916/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6917struct buf { int x; };
6918FILE * (*rcsopen) (struct buf *, struct stat *, int);
6919static char *e (p, i)
6920 char **p;
6921 int i;
6922{
6923 return p[i];
6924}
6925static char *f (char * (*g) (char **, int), char **p, ...)
6926{
6927 char *s;
6928 va_list v;
6929 va_start (v,p);
6930 s = g (p, va_arg (v,int));
6931 va_end (v);
6932 return s;
6933}
6934
6935/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6936 function prototypes and stuff, but not '\xHH' hex character constants.
6937 These don't provoke an error unfortunately, instead are silently treated
6938 as 'x'. The following induces an error, until -std is added to get
6939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6940 array size at least. It's necessary to write '\x00'==0 to get something
6941 that's true only with -std. */
6942int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6943
6944/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6945 inside strings and character constants. */
6946#define FOO(x) 'x'
6947int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6948
6949int test (int i, double x);
6950struct s1 {int (*f) (int a);};
6951struct s2 {int (*f) (double a);};
6952int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6953int argc;
6954char **argv;
6955int
6956main ()
6957{
6958return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6959 ;
6960 return 0;
6961}
6962_ACEOF
6963for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6965do
6966 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006967 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006968 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006969fi
cristy3ed852e2009-09-05 21:47:34 +00006970rm -f core conftest.err conftest.$ac_objext
6971 test "x$ac_cv_prog_cc_c89" != "xno" && break
6972done
6973rm -f conftest.$ac_ext
6974CC=$ac_save_CC
6975
6976fi
6977# AC_CACHE_VAL
6978case "x$ac_cv_prog_cc_c89" in
6979 x)
cristy8b350f62009-11-15 23:12:43 +00006980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006981$as_echo "none needed" >&6; } ;;
6982 xno)
cristy8b350f62009-11-15 23:12:43 +00006983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006984$as_echo "unsupported" >&6; } ;;
6985 *)
6986 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006988$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6989esac
cristy8b350f62009-11-15 23:12:43 +00006990if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006991 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6992else
6993 ac_cv_prog_cc_stdc=no
6994fi
6995
cristy3ed852e2009-09-05 21:47:34 +00006996fi
cristy3ed852e2009-09-05 21:47:34 +00006997 ;;
6998esac
cristy8b350f62009-11-15 23:12:43 +00006999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007000$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007001 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007002 $as_echo_n "(cached) " >&6
7003fi
7004
cristy8b350f62009-11-15 23:12:43 +00007005 case $ac_cv_prog_cc_stdc in #(
7006 no) :
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7008$as_echo "unsupported" >&6; } ;; #(
7009 '') :
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7011$as_echo "none needed" >&6; } ;; #(
7012 *) :
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007014$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7015esac
7016
cristy3ed852e2009-09-05 21:47:34 +00007017ac_ext=c
7018ac_cpp='$CPP $CPPFLAGS'
7019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7021ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007023$as_echo_n "checking how to run the C preprocessor... " >&6; }
7024# On Suns, sometimes $CPP names a directory.
7025if test -n "$CPP" && test -d "$CPP"; then
7026 CPP=
7027fi
7028if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007029 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007030 $as_echo_n "(cached) " >&6
7031else
7032 # Double quotes because CPP needs to be expanded
7033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7034 do
7035 ac_preproc_ok=false
7036for ac_c_preproc_warn_flag in '' yes
7037do
7038 # Use a header file that comes with gcc, so configuring glibc
7039 # with a fresh cross-compiler works.
7040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7041 # <limits.h> exists even on freestanding compilers.
7042 # On the NeXT, cc -E runs the code through the compiler's parser,
7043 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007045/* end confdefs.h. */
7046#ifdef __STDC__
7047# include <limits.h>
7048#else
7049# include <assert.h>
7050#endif
7051 Syntax error
7052_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007053if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007054
cristy8b350f62009-11-15 23:12:43 +00007055else
cristy3ed852e2009-09-05 21:47:34 +00007056 # Broken: fails on valid input.
7057continue
7058fi
cristyda16f162011-02-19 23:52:17 +00007059rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007060
7061 # OK, works on sane cases. Now check whether nonexistent headers
7062 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007064/* end confdefs.h. */
7065#include <ac_nonexistent.h>
7066_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007067if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007068 # Broken: success on invalid input.
7069continue
7070else
cristy3ed852e2009-09-05 21:47:34 +00007071 # Passes both tests.
7072ac_preproc_ok=:
7073break
7074fi
cristyda16f162011-02-19 23:52:17 +00007075rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007076
7077done
7078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007079rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007080if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007081 break
7082fi
7083
7084 done
7085 ac_cv_prog_CPP=$CPP
7086
7087fi
7088 CPP=$ac_cv_prog_CPP
7089else
7090 ac_cv_prog_CPP=$CPP
7091fi
cristy8b350f62009-11-15 23:12:43 +00007092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "$CPP" >&6; }
7094ac_preproc_ok=false
7095for ac_c_preproc_warn_flag in '' yes
7096do
7097 # Use a header file that comes with gcc, so configuring glibc
7098 # with a fresh cross-compiler works.
7099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7100 # <limits.h> exists even on freestanding compilers.
7101 # On the NeXT, cc -E runs the code through the compiler's parser,
7102 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007104/* end confdefs.h. */
7105#ifdef __STDC__
7106# include <limits.h>
7107#else
7108# include <assert.h>
7109#endif
7110 Syntax error
7111_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007112if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007113
cristy8b350f62009-11-15 23:12:43 +00007114else
cristy3ed852e2009-09-05 21:47:34 +00007115 # Broken: fails on valid input.
7116continue
7117fi
cristyda16f162011-02-19 23:52:17 +00007118rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007119
7120 # OK, works on sane cases. Now check whether nonexistent headers
7121 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007123/* end confdefs.h. */
7124#include <ac_nonexistent.h>
7125_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007126if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007127 # Broken: success on invalid input.
7128continue
7129else
cristy3ed852e2009-09-05 21:47:34 +00007130 # Passes both tests.
7131ac_preproc_ok=:
7132break
7133fi
cristyda16f162011-02-19 23:52:17 +00007134rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007135
7136done
7137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007138rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007139if $ac_preproc_ok; then :
7140
cristy3ed852e2009-09-05 21:47:34 +00007141else
cristy8b350f62009-11-15 23:12:43 +00007142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007144as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7145See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007146fi
7147
7148ac_ext=c
7149ac_cpp='$CPP $CPPFLAGS'
7150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153
cristy73bd4a52010-10-05 11:24:23 +00007154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7155$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007156if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007157 $as_echo_n "(cached) " >&6
7158else
7159 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7160 for ac_i in 1 2 3 4 5 6 7; do
7161 ac_script="$ac_script$as_nl$ac_script"
7162 done
7163 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7164 { ac_script=; unset ac_script;}
7165 if test -z "$SED"; then
7166 ac_path_SED_found=false
7167 # Loop through the user's path and test for each of PROGNAME-LIST
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_prog in sed gsed; do
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7176 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7177# Check for GNU ac_path_SED and select it if it is found.
7178 # Check for GNU $ac_path_SED
7179case `"$ac_path_SED" --version 2>&1` in
7180*GNU*)
7181 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7182*)
7183 ac_count=0
7184 $as_echo_n 0123456789 >"conftest.in"
7185 while :
7186 do
7187 cat "conftest.in" "conftest.in" >"conftest.tmp"
7188 mv "conftest.tmp" "conftest.in"
7189 cp "conftest.in" "conftest.nl"
7190 $as_echo '' >> "conftest.nl"
7191 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7193 as_fn_arith $ac_count + 1 && ac_count=$as_val
7194 if test $ac_count -gt ${ac_path_SED_max-0}; then
7195 # Best one so far, save it but keep looking for a better one
7196 ac_cv_path_SED="$ac_path_SED"
7197 ac_path_SED_max=$ac_count
7198 fi
7199 # 10*(2^10) chars as input seems more than enough
7200 test $ac_count -gt 10 && break
7201 done
7202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7203esac
7204
7205 $ac_path_SED_found && break 3
7206 done
7207 done
7208 done
7209IFS=$as_save_IFS
7210 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007211 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007212 fi
7213else
7214 ac_cv_path_SED=$SED
7215fi
7216
7217fi
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7219$as_echo "$ac_cv_path_SED" >&6; }
7220 SED="$ac_cv_path_SED"
7221 rm -f conftest.sed
7222
7223test -z "$SED" && SED=sed
7224Xsed="$SED -e 1s/^X//"
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7237$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007238if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007239 $as_echo_n "(cached) " >&6
7240else
7241 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7242 then ac_cv_path_FGREP="$GREP -F"
7243 else
7244 if test -z "$FGREP"; then
7245 ac_path_FGREP_found=false
7246 # Loop through the user's path and test for each of PROGNAME-LIST
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_prog in fgrep; do
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7255 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7256# Check for GNU ac_path_FGREP and select it if it is found.
7257 # Check for GNU $ac_path_FGREP
7258case `"$ac_path_FGREP" --version 2>&1` in
7259*GNU*)
7260 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7261*)
7262 ac_count=0
7263 $as_echo_n 0123456789 >"conftest.in"
7264 while :
7265 do
7266 cat "conftest.in" "conftest.in" >"conftest.tmp"
7267 mv "conftest.tmp" "conftest.in"
7268 cp "conftest.in" "conftest.nl"
7269 $as_echo 'FGREP' >> "conftest.nl"
7270 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7272 as_fn_arith $ac_count + 1 && ac_count=$as_val
7273 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7274 # Best one so far, save it but keep looking for a better one
7275 ac_cv_path_FGREP="$ac_path_FGREP"
7276 ac_path_FGREP_max=$ac_count
7277 fi
7278 # 10*(2^10) chars as input seems more than enough
7279 test $ac_count -gt 10 && break
7280 done
7281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7282esac
7283
7284 $ac_path_FGREP_found && break 3
7285 done
7286 done
7287 done
7288IFS=$as_save_IFS
7289 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007290 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007291 fi
7292else
7293 ac_cv_path_FGREP=$FGREP
7294fi
7295
7296 fi
7297fi
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7299$as_echo "$ac_cv_path_FGREP" >&6; }
7300 FGREP="$ac_cv_path_FGREP"
7301
7302
7303test -z "$GREP" && GREP=grep
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
cristy0c60a692010-11-04 01:09:47 +00007321ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7322ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7323ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7324
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7326$as_echo_n "checking how to print strings... " >&6; }
7327# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007328if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007329 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7330 ECHO='print -r --'
7331elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7332 ECHO='printf %s\n'
7333else
7334 # Use this function as a fallback that always works.
7335 func_fallback_echo ()
7336 {
7337 eval 'cat <<_LTECHO_EOF
7338$1
7339_LTECHO_EOF'
7340 }
7341 ECHO='func_fallback_echo'
7342fi
7343
7344# func_echo_all arg...
7345# Invoke $ECHO with all args, space-separated.
7346func_echo_all ()
7347{
7348 $ECHO ""
7349}
7350
7351case "$ECHO" in
7352 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7353$as_echo "printf" >&6; } ;;
7354 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7355$as_echo "print -r" >&6; } ;;
7356 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7357$as_echo "cat" >&6; } ;;
7358esac
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
cristy73bd4a52010-10-05 11:24:23 +00007373
7374
7375# Check whether --with-gnu-ld was given.
7376if test "${with_gnu_ld+set}" = set; then :
7377 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7378else
7379 with_gnu_ld=no
7380fi
7381
7382ac_prog=ld
7383if test "$GCC" = yes; then
7384 # Check if gcc -print-prog-name=ld gives a path.
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7386$as_echo_n "checking for ld used by $CC... " >&6; }
7387 case $host in
7388 *-*-mingw*)
7389 # gcc leaves a trailing carriage return which upsets mingw
7390 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7391 *)
7392 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7393 esac
7394 case $ac_prog in
7395 # Accept absolute paths.
7396 [\\/]* | ?:[\\/]*)
7397 re_direlt='/[^/][^/]*/\.\./'
7398 # Canonicalize the pathname of ld
7399 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7400 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7401 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7402 done
7403 test -z "$LD" && LD="$ac_prog"
7404 ;;
7405 "")
7406 # If it fails, then pretend we aren't using GCC.
7407 ac_prog=ld
7408 ;;
7409 *)
7410 # If it is relative, then search for the first ld in PATH.
7411 with_gnu_ld=unknown
7412 ;;
7413 esac
7414elif test "$with_gnu_ld" = yes; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7416$as_echo_n "checking for GNU ld... " >&6; }
7417else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7419$as_echo_n "checking for non-GNU ld... " >&6; }
7420fi
cristyda16f162011-02-19 23:52:17 +00007421if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007422 $as_echo_n "(cached) " >&6
7423else
7424 if test -z "$LD"; then
7425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7426 for ac_dir in $PATH; do
7427 IFS="$lt_save_ifs"
7428 test -z "$ac_dir" && ac_dir=.
7429 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7430 lt_cv_path_LD="$ac_dir/$ac_prog"
7431 # Check to see if the program is GNU ld. I'd rather use --version,
7432 # but apparently some variants of GNU ld only accept -v.
7433 # Break only if it was the GNU/non-GNU ld that we prefer.
7434 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7435 *GNU* | *'with BFD'*)
7436 test "$with_gnu_ld" != no && break
7437 ;;
7438 *)
7439 test "$with_gnu_ld" != yes && break
7440 ;;
7441 esac
7442 fi
7443 done
7444 IFS="$lt_save_ifs"
7445else
7446 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7447fi
7448fi
7449
7450LD="$lt_cv_path_LD"
7451if test -n "$LD"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7453$as_echo "$LD" >&6; }
7454else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456$as_echo "no" >&6; }
7457fi
cristy98dddb52010-11-04 00:30:15 +00007458test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7460$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007461if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007462 $as_echo_n "(cached) " >&6
7463else
7464 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7465case `$LD -v 2>&1 </dev/null` in
7466*GNU* | *'with BFD'*)
7467 lt_cv_prog_gnu_ld=yes
7468 ;;
7469*)
7470 lt_cv_prog_gnu_ld=no
7471 ;;
7472esac
7473fi
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7475$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7476with_gnu_ld=$lt_cv_prog_gnu_ld
7477
7478
7479
7480
7481
7482
7483
7484
7485
cristy3ed852e2009-09-05 21:47:34 +00007486
cristy837d6dc2010-02-27 01:16:57 +00007487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7488$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007489if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007490 $as_echo_n "(cached) " >&6
7491else
7492 ac_cv_prog_cc_c99=no
7493ac_save_CC=$CC
7494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h. */
7496#include <stdarg.h>
7497#include <stdbool.h>
7498#include <stdlib.h>
7499#include <wchar.h>
7500#include <stdio.h>
7501
7502// Check varargs macros. These examples are taken from C99 6.10.3.5.
7503#define debug(...) fprintf (stderr, __VA_ARGS__)
7504#define showlist(...) puts (#__VA_ARGS__)
7505#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7506static void
7507test_varargs_macros (void)
7508{
7509 int x = 1234;
7510 int y = 5678;
7511 debug ("Flag");
7512 debug ("X = %d\n", x);
7513 showlist (The first, second, and third items.);
7514 report (x>y, "x is %d but y is %d", x, y);
7515}
7516
7517// Check long long types.
7518#define BIG64 18446744073709551615ull
7519#define BIG32 4294967295ul
7520#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7521#if !BIG_OK
7522 your preprocessor is broken;
7523#endif
7524#if BIG_OK
7525#else
7526 your preprocessor is broken;
7527#endif
7528static long long int bignum = -9223372036854775807LL;
7529static unsigned long long int ubignum = BIG64;
7530
7531struct incomplete_array
7532{
7533 int datasize;
7534 double data[];
7535};
7536
7537struct named_init {
7538 int number;
7539 const wchar_t *name;
7540 double average;
7541};
7542
7543typedef const char *ccp;
7544
7545static inline int
7546test_restrict (ccp restrict text)
7547{
7548 // See if C++-style comments work.
7549 // Iterate through items via the restricted pointer.
7550 // Also check for declarations in for loops.
7551 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7552 continue;
7553 return 0;
7554}
7555
7556// Check varargs and va_copy.
7557static void
7558test_varargs (const char *format, ...)
7559{
7560 va_list args;
7561 va_start (args, format);
7562 va_list args_copy;
7563 va_copy (args_copy, args);
7564
7565 const char *str;
7566 int number;
7567 float fnumber;
7568
7569 while (*format)
7570 {
7571 switch (*format++)
7572 {
7573 case 's': // string
7574 str = va_arg (args_copy, const char *);
7575 break;
7576 case 'd': // int
7577 number = va_arg (args_copy, int);
7578 break;
7579 case 'f': // float
7580 fnumber = va_arg (args_copy, double);
7581 break;
7582 default:
7583 break;
7584 }
7585 }
7586 va_end (args_copy);
7587 va_end (args);
7588}
7589
7590int
7591main ()
7592{
7593
7594 // Check bool.
7595 _Bool success = false;
7596
7597 // Check restrict.
7598 if (test_restrict ("String literal") == 0)
7599 success = true;
7600 char *restrict newvar = "Another string";
7601
7602 // Check varargs.
7603 test_varargs ("s, d' f .", "string", 65, 34.234);
7604 test_varargs_macros ();
7605
7606 // Check flexible array members.
7607 struct incomplete_array *ia =
7608 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7609 ia->datasize = 10;
7610 for (int i = 0; i < ia->datasize; ++i)
7611 ia->data[i] = i * 1.234;
7612
7613 // Check named initializers.
7614 struct named_init ni = {
7615 .number = 34,
7616 .name = L"Test wide string",
7617 .average = 543.34343,
7618 };
7619
7620 ni.number = 58;
7621
7622 int dynamic_array[ni.number];
7623 dynamic_array[ni.number - 1] = 543;
7624
7625 // work around unused variable warnings
7626 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7627 || dynamic_array[ni.number - 1] != 543);
7628
7629 ;
7630 return 0;
7631}
7632_ACEOF
7633for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7634do
7635 CC="$ac_save_CC $ac_arg"
7636 if ac_fn_c_try_compile "$LINENO"; then :
7637 ac_cv_prog_cc_c99=$ac_arg
7638fi
7639rm -f core conftest.err conftest.$ac_objext
7640 test "x$ac_cv_prog_cc_c99" != "xno" && break
7641done
7642rm -f conftest.$ac_ext
7643CC=$ac_save_CC
7644
7645fi
7646# AC_CACHE_VAL
7647case "x$ac_cv_prog_cc_c99" in
7648 x)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7650$as_echo "none needed" >&6; } ;;
7651 xno)
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7653$as_echo "unsupported" >&6; } ;;
7654 *)
7655 CC="$CC $ac_cv_prog_cc_c99"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7657$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7658esac
7659if test "x$ac_cv_prog_cc_c99" != xno; then :
7660
7661fi
7662
7663
cristy73bd4a52010-10-05 11:24:23 +00007664if test "x$CC" != xcc; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7666$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7667else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7669$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7670fi
7671set dummy $CC; ac_cc=`$as_echo "$2" |
7672 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007673if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007674 $as_echo_n "(cached) " >&6
7675else
cristy73bd4a52010-10-05 11:24:23 +00007676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h. */
7678
7679int
7680main ()
7681{
7682
7683 ;
7684 return 0;
7685}
7686_ACEOF
7687# Make sure it works both with $CC and with simple cc.
7688# We do the test twice because some compilers refuse to overwrite an
7689# existing .o file with -o, though they will create one.
7690ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7691rm -f conftest2.*
7692if { { case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695esac
7696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7697$as_echo "$ac_try_echo"; } >&5
7698 (eval "$ac_try") 2>&5
7699 ac_status=$?
7700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701 test $ac_status = 0; } &&
7702 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705esac
7706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7707$as_echo "$ac_try_echo"; } >&5
7708 (eval "$ac_try") 2>&5
7709 ac_status=$?
7710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711 test $ac_status = 0; };
7712then
7713 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7714 if test "x$CC" != xcc; then
7715 # Test first that cc exists at all.
7716 if { ac_try='cc -c conftest.$ac_ext >&5'
7717 { { case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720esac
7721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7722$as_echo "$ac_try_echo"; } >&5
7723 (eval "$ac_try") 2>&5
7724 ac_status=$?
7725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; }; }; then
7727 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7728 rm -f conftest2.*
7729 if { { case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732esac
7733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7734$as_echo "$ac_try_echo"; } >&5
7735 (eval "$ac_try") 2>&5
7736 ac_status=$?
7737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7738 test $ac_status = 0; } &&
7739 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742esac
7743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7744$as_echo "$ac_try_echo"; } >&5
7745 (eval "$ac_try") 2>&5
7746 ac_status=$?
7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; };
7749 then
7750 # cc works too.
7751 :
7752 else
7753 # cc exists but doesn't like -o.
7754 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7755 fi
7756 fi
7757 fi
7758else
7759 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7760fi
7761rm -f core conftest*
7762
7763fi
7764if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7766$as_echo "yes" >&6; }
7767else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769$as_echo "no" >&6; }
7770
7771$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7772
7773fi
7774
7775# FIXME: we rely on the cache variable name because
7776# there is no other way.
7777set dummy $CC
7778am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7779eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7780if test "$am_t" != yes; then
7781 # Losing compiler, so override with the script.
7782 # FIXME: It is wrong to rewrite CC.
7783 # But if we don't then we get into trouble of one sort or another.
7784 # A longer-term fix would be to have automake use am__CC in this case,
7785 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7786 CC="$am_aux_dir/compile $CC"
7787fi
7788
7789
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7791$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007792if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007793 $as_echo_n "(cached) " >&6
7794else
7795 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007796 ac_ext=c
7797ac_cpp='$CPP $CPPFLAGS'
7798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801
7802 ac_save_CFLAGS="$CFLAGS"
7803for 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" #
7804do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h. */
7807
7808int
7809main ()
7810{
cristy24fc1fe2010-10-23 21:13:01 +00007811
cristy73bd4a52010-10-05 11:24:23 +00007812 ;
7813 return 0;
7814}
7815_ACEOF
7816if ac_fn_c_try_compile "$LINENO"; then :
7817 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7818fi
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820done
7821 CFLAGS="$ac_save_CFLAGS"
7822 ac_ext=c
7823ac_cpp='$CPP $CPPFLAGS'
7824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827
7828
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7831$as_echo "$ac_cv_cflags_warn_all" >&6; }
7832case ".$ac_cv_cflags_warn_all" in
7833 .ok|.ok,*) ;;
7834 .|.no|.no,*)
7835 ;;
7836 *)
7837 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7838 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7839 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7840 ac_status=$?
7841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842 test $ac_status = 0; }
7843 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7844 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7845 ac_status=$?
7846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847 test $ac_status = 0; }
7848 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7849 fi
7850 ;;
nicolas6237c462010-10-05 06:11:49 +00007851esac
cristy3ed852e2009-09-05 21:47:34 +00007852
cristya0b81c32010-01-22 02:54:33 +00007853
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7855$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7856set x ${MAKE-make}
7857ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007858if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007859 $as_echo_n "(cached) " >&6
7860else
7861 cat >conftest.make <<\_ACEOF
7862SHELL = /bin/sh
7863all:
7864 @echo '@@@%%%=$(MAKE)=@@@%%%'
7865_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007866# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007867case `${MAKE-make} -f conftest.make 2>/dev/null` in
7868 *@@@%%%=?*=@@@%%%*)
7869 eval ac_cv_prog_make_${ac_make}_set=yes;;
7870 *)
7871 eval ac_cv_prog_make_${ac_make}_set=no;;
7872esac
7873rm -f conftest.make
7874fi
7875if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7877$as_echo "yes" >&6; }
7878 SET_MAKE=
7879else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882 SET_MAKE="MAKE=${MAKE-make}"
7883fi
7884
cristy8b350f62009-11-15 23:12:43 +00007885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007886$as_echo_n "checking whether ln -s works... " >&6; }
7887LN_S=$as_ln_s
7888if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007890$as_echo "yes" >&6; }
7891else
cristy8b350f62009-11-15 23:12:43 +00007892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007893$as_echo "no, using $LN_S" >&6; }
7894fi
7895
cristy73bd4a52010-10-05 11:24:23 +00007896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7897$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7898
7899# Check whether --with-dmalloc was given.
7900if test "${with_dmalloc+set}" = set; then :
7901 withval=$with_dmalloc; if test "$withval" = yes; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7903$as_echo "yes" >&6; }
7904
7905$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7906
7907 LIBS="$LIBS -ldmalloc"
7908 LDFLAGS="$LDFLAGS -g"
7909else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911$as_echo "no" >&6; }
7912fi
7913else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915$as_echo "no" >&6; }
7916fi
7917
7918
7919
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7921$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007922if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007923 $as_echo_n "(cached) " >&6
7924else
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h. */
7927#include <stdlib.h>
7928 static void foo(void) __attribute__ ((unused));
7929 static void
7930 foo(void) {
7931 exit(1);
7932 }
7933
7934int
7935main ()
7936{
7937
7938 ;
7939 return 0;
7940}
7941_ACEOF
7942if ac_fn_c_try_compile "$LINENO"; then :
7943 ax_cv___attribute__=yes
7944else
7945 ax_cv___attribute__=no
7946
7947fi
7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949
7950fi
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7952$as_echo "$ax_cv___attribute__" >&6; }
7953 if test "$ax_cv___attribute__" = "yes"; then
7954
7955$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7956
7957 fi
7958
7959
7960
7961if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7962 if test -n "$ac_tool_prefix"; then
7963 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7964set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007967if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007968 $as_echo_n "(cached) " >&6
7969else
7970 case $PKG_CONFIG in
7971 [\\/]* | ?:[\\/]*)
7972 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7973 ;;
7974 *)
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976for as_dir in $PATH
7977do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986done
7987 done
7988IFS=$as_save_IFS
7989
7990 ;;
7991esac
7992fi
7993PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7994if test -n "$PKG_CONFIG"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7996$as_echo "$PKG_CONFIG" >&6; }
7997else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999$as_echo "no" >&6; }
8000fi
8001
8002
8003fi
8004if test -z "$ac_cv_path_PKG_CONFIG"; then
8005 ac_pt_PKG_CONFIG=$PKG_CONFIG
8006 # Extract the first word of "pkg-config", so it can be a program name with args.
8007set dummy pkg-config; ac_word=$2
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008010if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008011 $as_echo_n "(cached) " >&6
8012else
8013 case $ac_pt_PKG_CONFIG in
8014 [\\/]* | ?:[\\/]*)
8015 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8016 ;;
8017 *)
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029done
8030 done
8031IFS=$as_save_IFS
8032
8033 ;;
8034esac
8035fi
8036ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8037if test -n "$ac_pt_PKG_CONFIG"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8039$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8040else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043fi
8044
8045 if test "x$ac_pt_PKG_CONFIG" = x; then
8046 PKG_CONFIG=""
8047 else
8048 case $cross_compiling:$ac_tool_warned in
8049yes:)
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8052ac_tool_warned=yes ;;
8053esac
8054 PKG_CONFIG=$ac_pt_PKG_CONFIG
8055 fi
8056else
8057 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8058fi
8059
8060fi
8061if test -n "$PKG_CONFIG"; then
8062 _pkg_min_version=0.9.0
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8064$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8065 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8067$as_echo "yes" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071 PKG_CONFIG=""
8072 fi
8073
8074fi
cristy3ed852e2009-09-05 21:47:34 +00008075
8076#
cristy3ed852e2009-09-05 21:47:34 +00008077# Enable run-time checking.
8078#
8079# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008080if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008081 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8082else
8083 enable_bounds_checking='no'
8084fi
8085
8086
8087if test "$enable_bounds_checking" = yes; then
8088
cristy8b350f62009-11-15 23:12:43 +00008089$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008090
8091fi
8092
8093#
8094# Tests for Windows
8095#
8096
8097
cristy73bd4a52010-10-05 11:24:23 +00008098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8099$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008100if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008101 $as_echo_n "(cached) " >&6
8102else
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104/* end confdefs.h. */
8105
8106int
8107main ()
8108{
8109#ifndef _MSC_VER
8110 choke me
8111#endif
8112
8113 ;
8114 return 0;
8115}
8116_ACEOF
8117if ac_fn_c_try_compile "$LINENO"; then :
8118 ax_compiler_ms=yes
8119else
8120 ax_compiler_ms=no
8121fi
8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123ax_cv_c_compiler_ms=$ax_compiler_ms
8124
8125fi
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8127$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008128
8129GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008130native_win32_build='no'
8131cygwin_build='no'
8132case "${host_os}" in
8133 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008134 cygwin_build='yes'
8135 GDI32_LIBS='-lgdi32'
8136 ;;
8137 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008138 native_win32_build='yes'
8139 GDI32_LIBS='-lgdi32'
8140 ;;
8141esac
8142if test "${GDI32_LIBS}x" != 'x'; then
8143
cristy8b350f62009-11-15 23:12:43 +00008144$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008145
8146fi
8147
cristy73bd4a52010-10-05 11:24:23 +00008148 if test "${GDI32_LIBS}x" != 'x' ; then
8149 WINGDI32_DELEGATE_TRUE=
8150 WINGDI32_DELEGATE_FALSE='#'
8151else
8152 WINGDI32_DELEGATE_TRUE='#'
8153 WINGDI32_DELEGATE_FALSE=
8154fi
8155
8156 if test "${native_win32_build}" = 'yes' ; then
8157 WIN32_NATIVE_BUILD_TRUE=
8158 WIN32_NATIVE_BUILD_FALSE='#'
8159else
8160 WIN32_NATIVE_BUILD_TRUE='#'
8161 WIN32_NATIVE_BUILD_FALSE=
8162fi
8163
8164 if test "${cygwin_build}" = 'yes' ; then
8165 CYGWIN_BUILD_TRUE=
8166 CYGWIN_BUILD_FALSE='#'
8167else
8168 CYGWIN_BUILD_TRUE='#'
8169 CYGWIN_BUILD_FALSE=
8170fi
8171
8172 if test "x${CC}" = 'xcl.exe' ; then
8173 USING_CL_TRUE=
8174 USING_CL_FALSE='#'
8175else
8176 USING_CL_TRUE='#'
8177 USING_CL_FALSE=
8178fi
8179
cristy3ed852e2009-09-05 21:47:34 +00008180
8181WinPathScript="${srcdirfull}/winpath.sh"
8182
8183
8184#
8185# Compiler flags tweaks
8186#
8187if test "${GCC}" != "yes"; then
8188 case "${host}" in
8189 *-*-hpux* )
8190 # aCC: HP ANSI C++ B3910B A.03.34
8191 CFLAGS="${CFLAGS} -Wp,-H30000"
8192 if test -n "${CXXFLAGS}"; then
8193 CXXFLAGS='-AA'
8194 else
8195 CXXFLAGS="${CXXFLAGS} -AA"
8196 fi
8197 ;;
8198 *-dec-osf5.* )
8199 # Compaq alphaev68-dec-osf5.1 compiler
8200 if test -n "${CXXFLAGS}"; then
8201 CXXFLAGS='-std strict_ansi -noimplicit_include'
8202 else
8203 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8204 fi
8205 esac
8206fi
8207
8208# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008210$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008211if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008212 $as_echo_n "(cached) " >&6
8213else
8214
8215im_cv_ld_lazyload='none'
8216case "${host}" in
8217 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8218 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8219 im_cv_ld_lazyload='-Wl,-zlazyload'
8220 fi
8221 ;;
8222esac
8223
8224fi
cristy8b350f62009-11-15 23:12:43 +00008225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008226$as_echo "$im_cv_ld_lazyload" >&6; }
8227if test "${im_cv_ld_lazyload}" != 'none' ; then
8228 if test -z "${LDFLAGS}" ; then
8229 LDFLAGS="${im_cv_ld_lazyload}"
8230 else
8231 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8232 fi
8233fi
8234
8235case "$host" in
8236*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008237 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008238if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008239 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8240else
8241 build_osxuniversal=no
8242fi
8243
8244
8245 if test "${build_osxuniversal}" != no ; then
8246 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008247 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008248Please re-run configure with these options:
8249 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008250 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008251 fi
8252 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8253 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8254 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8255 fi
8256 ;;
8257esac
8258
cristy0151ae12011-10-28 16:32:29 +00008259#
8260# ARCH specific include directory
8261#
8262
8263# Check whether --with-includedir-arch was given.
8264if test "${with_includedir_arch+set}" = set; then :
8265 withval=$with_includedir_arch; includedir_arch=$withval
8266else
8267 includedir_arch=$INCLUDE_DIR
8268fi
8269
8270
cristy2a11bef2011-10-28 18:33:11 +00008271eval "eval INCLUDEDIR_ARCH=$includedir_arch"
cristyac9041a2011-10-28 16:52:32 +00008272
cristy0151ae12011-10-28 16:32:29 +00008273
8274#
8275# ARCH specific configuration directory
8276#
8277
cristy7def36a2011-10-28 19:04:41 +00008278# Check whether --with-sharedir-arch was given.
8279if test "${with_sharedir_arch+set}" = set; then :
8280 withval=$with_sharedir_arch; sharedir_arch=$withval
cristy0151ae12011-10-28 16:32:29 +00008281else
cristy7def36a2011-10-28 19:04:41 +00008282 sharedir_arch="${LIB_DIR}/${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristy0151ae12011-10-28 16:32:29 +00008283fi
8284
8285
cristy7def36a2011-10-28 19:04:41 +00008286eval "eval SHAREDIR_ARCH=$sharedir_arch"
8287SHAREDIR_ARCH="$sharedir_arch"
cristyac9041a2011-10-28 16:52:32 +00008288
cristy0151ae12011-10-28 16:32:29 +00008289
8290#
cristy3ed852e2009-09-05 21:47:34 +00008291# Enable support for threads
8292
8293# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008294if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008295 withval=$with_threads; with_threads=$withval
8296else
8297 with_threads='yes'
8298fi
8299
8300
8301have_threads=no
8302if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008303
8304
cristy73bd4a52010-10-05 11:24:23 +00008305ac_ext=c
8306ac_cpp='$CPP $CPPFLAGS'
8307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8309ac_compiler_gnu=$ac_cv_c_compiler_gnu
8310
8311ax_pthread_ok=no
8312
8313# We used to check for pthread.h first, but this fails if pthread.h
8314# requires special compiler flags (e.g. on True64 or Sequent).
8315# It gets checked for in the link test anyway.
8316
8317# First of all, check if the user has set any of the PTHREAD_LIBS,
8318# etcetera environment variables, and if threads linking works using
8319# them:
8320if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8321 save_CFLAGS="$CFLAGS"
8322 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8323 save_LIBS="$LIBS"
8324 LIBS="$PTHREAD_LIBS $LIBS"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8326$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h. */
8329
8330/* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8333#ifdef __cplusplus
8334extern "C"
8335#endif
8336char pthread_join ();
8337int
8338main ()
8339{
8340return pthread_join ();
8341 ;
8342 return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_link "$LINENO"; then :
8346 ax_pthread_ok=yes
8347fi
8348rm -f core conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8351$as_echo "$ax_pthread_ok" >&6; }
8352 if test x"$ax_pthread_ok" = xno; then
8353 PTHREAD_LIBS=""
8354 PTHREAD_CFLAGS=""
8355 fi
8356 LIBS="$save_LIBS"
8357 CFLAGS="$save_CFLAGS"
8358fi
8359
8360# We must check for the threads library under a number of different
8361# names; the ordering is very important because some systems
8362# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8363# libraries is broken (non-POSIX).
8364
8365# Create a list of thread flags to try. Items starting with a "-" are
8366# C compiler flags, and other items are library names, except for "none"
8367# which indicates that we try without any flags at all, and "pthread-config"
8368# which is a program returning the flags for the Pth emulation library.
8369
8370ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8371
8372# The ordering *is* (sometimes) important. Some notes on the
8373# individual items follow:
8374
8375# pthreads: AIX (must check this before -lpthread)
8376# none: in case threads are in libc; should be tried before -Kthread and
8377# other compiler flags to prevent continual compiler warnings
8378# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8379# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8380# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8381# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8382# -pthreads: Solaris/gcc
8383# -mthreads: Mingw32/gcc, Lynx/gcc
8384# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8385# doesn't hurt to check since this sometimes defines pthreads too;
8386# also defines -D_REENTRANT)
8387# ... -mt is also the pthreads flag for HP/aCC
8388# pthread: Linux, etcetera
8389# --thread-safe: KAI C++
8390# pthread-config: use pthread-config program (for GNU Pth library)
8391
8392case "${host_cpu}-${host_os}" in
8393 *solaris*)
8394
8395 # On Solaris (at least, for some versions), libc contains stubbed
8396 # (non-functional) versions of the pthreads routines, so link-based
8397 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8398 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8399 # a function called by this macro, so we could check for that, but
8400 # who knows whether they'll stub that too in a future libc.) So,
8401 # we'll just look for -pthreads and -lpthread first:
8402
8403 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8404 ;;
8405
cristya316db12011-10-24 00:49:45 +00008406 *-darwin*)
8407 ax_pthread_flags="-pthread $ax_pthread_flags"
8408 ;;
cristy73bd4a52010-10-05 11:24:23 +00008409esac
8410
8411if test x"$ax_pthread_ok" = xno; then
8412for flag in $ax_pthread_flags; do
8413
8414 case $flag in
8415 none)
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8417$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8418 ;;
8419
8420 -*)
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8422$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8423 PTHREAD_CFLAGS="$flag"
8424 ;;
8425
cristya316db12011-10-24 00:49:45 +00008426 pthread-config)
8427 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008428set dummy pthread-config; ac_word=$2
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008431if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008432 $as_echo_n "(cached) " >&6
8433else
8434 if test -n "$ax_pthread_config"; then
8435 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8436else
8437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438for as_dir in $PATH
8439do
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_ax_pthread_config="yes"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8447 fi
8448done
8449 done
8450IFS=$as_save_IFS
8451
8452 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8453fi
8454fi
8455ax_pthread_config=$ac_cv_prog_ax_pthread_config
8456if test -n "$ax_pthread_config"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8458$as_echo "$ax_pthread_config" >&6; }
8459else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461$as_echo "no" >&6; }
8462fi
8463
8464
cristya316db12011-10-24 00:49:45 +00008465 if test x"$ax_pthread_config" = xno; then continue; fi
8466 PTHREAD_CFLAGS="`pthread-config --cflags`"
8467 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8468 ;;
cristy73bd4a52010-10-05 11:24:23 +00008469
8470 *)
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8472$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8473 PTHREAD_LIBS="-l$flag"
8474 ;;
8475 esac
8476
8477 save_LIBS="$LIBS"
8478 save_CFLAGS="$CFLAGS"
8479 LIBS="$PTHREAD_LIBS $LIBS"
8480 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8481
8482 # Check for various functions. We must include pthread.h,
8483 # since some functions may be macros. (On the Sequent, we
8484 # need a special flag -Kthread to make this header compile.)
8485 # We check for pthread_join because it is in -lpthread on IRIX
8486 # while pthread_create is in libc. We check for pthread_attr_init
8487 # due to DEC craziness with -lpthreads. We check for
8488 # pthread_cleanup_push because it is one of the few pthread
8489 # functions on Solaris that doesn't have a non-functional libc stub.
8490 # We try pthread_create on general principles.
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h. */
8493#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008494 static void routine(void *a) { a = 0; }
8495 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008496int
8497main ()
8498{
8499pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008500 pthread_create(&th, 0, start_routine, 0);
8501 pthread_join(th, 0);
8502 pthread_attr_init(&attr);
8503 pthread_cleanup_push(routine, 0);
8504 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008505 ;
8506 return 0;
8507}
8508_ACEOF
8509if ac_fn_c_try_link "$LINENO"; then :
8510 ax_pthread_ok=yes
8511fi
8512rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514
8515 LIBS="$save_LIBS"
8516 CFLAGS="$save_CFLAGS"
8517
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8519$as_echo "$ax_pthread_ok" >&6; }
8520 if test "x$ax_pthread_ok" = xyes; then
8521 break;
8522 fi
8523
8524 PTHREAD_LIBS=""
8525 PTHREAD_CFLAGS=""
8526done
8527fi
8528
8529# Various other checks:
8530if test "x$ax_pthread_ok" = xyes; then
8531 save_LIBS="$LIBS"
8532 LIBS="$PTHREAD_LIBS $LIBS"
8533 save_CFLAGS="$CFLAGS"
8534 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8535
8536 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008538$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008539 attr_name=unknown
8540 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008542/* end confdefs.h. */
8543#include <pthread.h>
8544int
8545main ()
8546{
cristya316db12011-10-24 00:49:45 +00008547int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008548 ;
8549 return 0;
8550}
8551_ACEOF
8552if ac_fn_c_try_link "$LINENO"; then :
8553 attr_name=$attr; break
8554fi
8555rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008557 done
cristy73bd4a52010-10-05 11:24:23 +00008558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8559$as_echo "$attr_name" >&6; }
8560 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8561
8562cat >>confdefs.h <<_ACEOF
8563#define PTHREAD_CREATE_JOINABLE $attr_name
8564_ACEOF
8565
8566 fi
8567
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8569$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8570 flag=no
8571 case "${host_cpu}-${host_os}" in
8572 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8573 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8574 esac
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8576$as_echo "${flag}" >&6; }
8577 if test "x$flag" != xno; then
8578 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8579 fi
8580
cristya316db12011-10-24 00:49:45 +00008581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8582$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8583if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585else
8586
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588/* end confdefs.h. */
8589
8590 #include <pthread.h>
8591int
8592main ()
8593{
8594int i = PTHREAD_PRIO_INHERIT;
8595 ;
8596 return 0;
8597}
8598_ACEOF
8599if ac_fn_c_try_link "$LINENO"; then :
8600 ax_cv_PTHREAD_PRIO_INHERIT=yes
8601else
8602 ax_cv_PTHREAD_PRIO_INHERIT=no
8603fi
8604rm -f core conftest.err conftest.$ac_objext \
8605 conftest$ac_exeext conftest.$ac_ext
8606
8607fi
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8609$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8610 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8611
8612$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8613
8614fi
8615
cristy73bd4a52010-10-05 11:24:23 +00008616 LIBS="$save_LIBS"
8617 CFLAGS="$save_CFLAGS"
8618
8619 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008620 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008621 for ac_prog in xlc_r cc_r
8622do
8623 # Extract the first word of "$ac_prog", so it can be a program name with args.
8624set dummy $ac_prog; ac_word=$2
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008627if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008628 $as_echo_n "(cached) " >&6
8629else
8630 if test -n "$PTHREAD_CC"; then
8631 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8632else
8633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634for as_dir in $PATH
8635do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_prog_PTHREAD_CC="$ac_prog"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644done
8645 done
8646IFS=$as_save_IFS
8647
8648fi
8649fi
8650PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8651if test -n "$PTHREAD_CC"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8653$as_echo "$PTHREAD_CC" >&6; }
8654else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656$as_echo "no" >&6; }
8657fi
8658
8659
8660 test -n "$PTHREAD_CC" && break
8661done
8662test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8663
8664 else
8665 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008666 fi
cristy73bd4a52010-10-05 11:24:23 +00008667else
8668 PTHREAD_CC="$CC"
8669fi
8670
8671
8672
8673
8674
8675# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8676if test x"$ax_pthread_ok" = xyes; then
8677
8678$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8679
8680 :
8681else
8682 ax_pthread_ok=no
8683
8684fi
8685ac_ext=c
8686ac_cpp='$CPP $CPPFLAGS'
8687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689ac_compiler_gnu=$ac_cv_c_compiler_gnu
8690
8691
cristy7acf8fb2010-09-23 19:58:53 +00008692 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008693 have_threads=yes
8694 DEF_THREAD="$PTHREAD_CFLAGS"
8695 CFLAGS="$CFLAGS $DEF_THREAD"
8696 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8697 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008698 { $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 +00008699$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8700 CC="$PTHREAD_CC"
8701 fi
cristy55bf91c2010-09-24 00:29:41 +00008702
8703$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8704
cristy3ed852e2009-09-05 21:47:34 +00008705 fi
8706fi
8707
8708# Enable support for OpenMP
8709if test "$have_threads" != 'yes'; then
8710 ac_cv_prog_c_openmp=unsupported
8711fi
8712
8713 OPENMP_CFLAGS=
8714 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008715if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008716 enableval=$enable_openmp;
8717fi
8718
8719 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008721$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008722if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008723 $as_echo_n "(cached) " >&6
8724else
cristy8b350f62009-11-15 23:12:43 +00008725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008727
8728#ifndef _OPENMP
8729 choke me
8730#endif
8731#include <omp.h>
8732int main () { return omp_get_num_threads (); }
8733
8734_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008736 ac_cv_prog_c_openmp='none needed'
8737else
cristy8b350f62009-11-15 23:12:43 +00008738 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008739 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8740 ac_save_CFLAGS=$CFLAGS
8741 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008744
8745#ifndef _OPENMP
8746 choke me
8747#endif
8748#include <omp.h>
8749int main () { return omp_get_num_threads (); }
8750
8751_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008753 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008754fi
cristy8b350f62009-11-15 23:12:43 +00008755rm -f core conftest.err conftest.$ac_objext \
8756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008757 CFLAGS=$ac_save_CFLAGS
8758 if test "$ac_cv_prog_c_openmp" != unsupported; then
8759 break
8760 fi
8761 done
8762fi
cristy8b350f62009-11-15 23:12:43 +00008763rm -f core conftest.err conftest.$ac_objext \
8764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008765fi
cristy8b350f62009-11-15 23:12:43 +00008766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008767$as_echo "$ac_cv_prog_c_openmp" >&6; }
8768 case $ac_cv_prog_c_openmp in #(
8769 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008770 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008771 *)
cristy8b350f62009-11-15 23:12:43 +00008772 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008773 esac
8774 fi
8775
8776
8777CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8778MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8779
cristy391f1ce2010-09-09 17:23:28 +00008780if test "$enable_openmp" != no; then
8781 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8782 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8783 fi
8784fi
cristy3ed852e2009-09-05 21:47:34 +00008785
cristy736173a2009-09-20 21:18:22 +00008786# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008787
8788
cristy73bd4a52010-10-05 11:24:23 +00008789ac_ext=c
8790ac_cpp='$CPP $CPPFLAGS'
8791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8793ac_compiler_gnu=$ac_cv_c_compiler_gnu
8794
8795ax_pthread_ok=no
8796
8797# We used to check for pthread.h first, but this fails if pthread.h
8798# requires special compiler flags (e.g. on True64 or Sequent).
8799# It gets checked for in the link test anyway.
8800
8801# First of all, check if the user has set any of the PTHREAD_LIBS,
8802# etcetera environment variables, and if threads linking works using
8803# them:
8804if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8805 save_CFLAGS="$CFLAGS"
8806 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8807 save_LIBS="$LIBS"
8808 LIBS="$PTHREAD_LIBS $LIBS"
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8810$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812/* end confdefs.h. */
8813
8814/* Override any GCC internal prototype to avoid an error.
8815 Use char because int might match the return type of a GCC
8816 builtin and then its argument prototype would still apply. */
8817#ifdef __cplusplus
8818extern "C"
8819#endif
8820char pthread_join ();
8821int
8822main ()
8823{
8824return pthread_join ();
8825 ;
8826 return 0;
8827}
8828_ACEOF
8829if ac_fn_c_try_link "$LINENO"; then :
8830 ax_pthread_ok=yes
8831fi
8832rm -f core conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8835$as_echo "$ax_pthread_ok" >&6; }
8836 if test x"$ax_pthread_ok" = xno; then
8837 PTHREAD_LIBS=""
8838 PTHREAD_CFLAGS=""
8839 fi
8840 LIBS="$save_LIBS"
8841 CFLAGS="$save_CFLAGS"
8842fi
8843
8844# We must check for the threads library under a number of different
8845# names; the ordering is very important because some systems
8846# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8847# libraries is broken (non-POSIX).
8848
8849# Create a list of thread flags to try. Items starting with a "-" are
8850# C compiler flags, and other items are library names, except for "none"
8851# which indicates that we try without any flags at all, and "pthread-config"
8852# which is a program returning the flags for the Pth emulation library.
8853
8854ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8855
8856# The ordering *is* (sometimes) important. Some notes on the
8857# individual items follow:
8858
8859# pthreads: AIX (must check this before -lpthread)
8860# none: in case threads are in libc; should be tried before -Kthread and
8861# other compiler flags to prevent continual compiler warnings
8862# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8863# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8864# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8865# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8866# -pthreads: Solaris/gcc
8867# -mthreads: Mingw32/gcc, Lynx/gcc
8868# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8869# doesn't hurt to check since this sometimes defines pthreads too;
8870# also defines -D_REENTRANT)
8871# ... -mt is also the pthreads flag for HP/aCC
8872# pthread: Linux, etcetera
8873# --thread-safe: KAI C++
8874# pthread-config: use pthread-config program (for GNU Pth library)
8875
8876case "${host_cpu}-${host_os}" in
8877 *solaris*)
8878
8879 # On Solaris (at least, for some versions), libc contains stubbed
8880 # (non-functional) versions of the pthreads routines, so link-based
8881 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8882 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8883 # a function called by this macro, so we could check for that, but
8884 # who knows whether they'll stub that too in a future libc.) So,
8885 # we'll just look for -pthreads and -lpthread first:
8886
8887 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8888 ;;
8889
cristya316db12011-10-24 00:49:45 +00008890 *-darwin*)
8891 ax_pthread_flags="-pthread $ax_pthread_flags"
8892 ;;
cristy73bd4a52010-10-05 11:24:23 +00008893esac
8894
8895if test x"$ax_pthread_ok" = xno; then
8896for flag in $ax_pthread_flags; do
8897
8898 case $flag in
8899 none)
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8901$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8902 ;;
8903
8904 -*)
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8906$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8907 PTHREAD_CFLAGS="$flag"
8908 ;;
8909
cristya316db12011-10-24 00:49:45 +00008910 pthread-config)
8911 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008912set dummy pthread-config; ac_word=$2
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008915if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008916 $as_echo_n "(cached) " >&6
8917else
8918 if test -n "$ax_pthread_config"; then
8919 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8920else
8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922for as_dir in $PATH
8923do
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_prog_ax_pthread_config="yes"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8931 fi
8932done
8933 done
8934IFS=$as_save_IFS
8935
8936 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8937fi
8938fi
8939ax_pthread_config=$ac_cv_prog_ax_pthread_config
8940if test -n "$ax_pthread_config"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8942$as_echo "$ax_pthread_config" >&6; }
8943else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945$as_echo "no" >&6; }
8946fi
8947
8948
cristya316db12011-10-24 00:49:45 +00008949 if test x"$ax_pthread_config" = xno; then continue; fi
8950 PTHREAD_CFLAGS="`pthread-config --cflags`"
8951 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8952 ;;
cristy73bd4a52010-10-05 11:24:23 +00008953
8954 *)
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8956$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8957 PTHREAD_LIBS="-l$flag"
8958 ;;
8959 esac
8960
8961 save_LIBS="$LIBS"
8962 save_CFLAGS="$CFLAGS"
8963 LIBS="$PTHREAD_LIBS $LIBS"
8964 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8965
8966 # Check for various functions. We must include pthread.h,
8967 # since some functions may be macros. (On the Sequent, we
8968 # need a special flag -Kthread to make this header compile.)
8969 # We check for pthread_join because it is in -lpthread on IRIX
8970 # while pthread_create is in libc. We check for pthread_attr_init
8971 # due to DEC craziness with -lpthreads. We check for
8972 # pthread_cleanup_push because it is one of the few pthread
8973 # functions on Solaris that doesn't have a non-functional libc stub.
8974 # We try pthread_create on general principles.
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h. */
8977#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008978 static void routine(void *a) { a = 0; }
8979 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008980int
8981main ()
8982{
8983pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008984 pthread_create(&th, 0, start_routine, 0);
8985 pthread_join(th, 0);
8986 pthread_attr_init(&attr);
8987 pthread_cleanup_push(routine, 0);
8988 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008989 ;
8990 return 0;
8991}
8992_ACEOF
8993if ac_fn_c_try_link "$LINENO"; then :
8994 ax_pthread_ok=yes
8995fi
8996rm -f core conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998
8999 LIBS="$save_LIBS"
9000 CFLAGS="$save_CFLAGS"
9001
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9003$as_echo "$ax_pthread_ok" >&6; }
9004 if test "x$ax_pthread_ok" = xyes; then
9005 break;
9006 fi
9007
9008 PTHREAD_LIBS=""
9009 PTHREAD_CFLAGS=""
9010done
9011fi
9012
9013# Various other checks:
9014if test "x$ax_pthread_ok" = xyes; then
9015 save_LIBS="$LIBS"
9016 LIBS="$PTHREAD_LIBS $LIBS"
9017 save_CFLAGS="$CFLAGS"
9018 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9019
9020 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009022$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009023 attr_name=unknown
9024 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009026/* end confdefs.h. */
9027#include <pthread.h>
9028int
9029main ()
9030{
cristya316db12011-10-24 00:49:45 +00009031int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009032 ;
9033 return 0;
9034}
9035_ACEOF
9036if ac_fn_c_try_link "$LINENO"; then :
9037 attr_name=$attr; break
9038fi
9039rm -f core conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009041 done
cristy73bd4a52010-10-05 11:24:23 +00009042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9043$as_echo "$attr_name" >&6; }
9044 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9045
9046cat >>confdefs.h <<_ACEOF
9047#define PTHREAD_CREATE_JOINABLE $attr_name
9048_ACEOF
9049
9050 fi
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9053$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9054 flag=no
9055 case "${host_cpu}-${host_os}" in
9056 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9057 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9058 esac
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9060$as_echo "${flag}" >&6; }
9061 if test "x$flag" != xno; then
9062 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9063 fi
9064
cristya316db12011-10-24 00:49:45 +00009065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9066$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9067if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069else
9070
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072/* end confdefs.h. */
9073
9074 #include <pthread.h>
9075int
9076main ()
9077{
9078int i = PTHREAD_PRIO_INHERIT;
9079 ;
9080 return 0;
9081}
9082_ACEOF
9083if ac_fn_c_try_link "$LINENO"; then :
9084 ax_cv_PTHREAD_PRIO_INHERIT=yes
9085else
9086 ax_cv_PTHREAD_PRIO_INHERIT=no
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9093$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9094 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9095
9096$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9097
9098fi
9099
cristy73bd4a52010-10-05 11:24:23 +00009100 LIBS="$save_LIBS"
9101 CFLAGS="$save_CFLAGS"
9102
9103 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009104 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009105 for ac_prog in xlc_r cc_r
9106do
9107 # Extract the first word of "$ac_prog", so it can be a program name with args.
9108set dummy $ac_prog; ac_word=$2
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009111if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009112 $as_echo_n "(cached) " >&6
9113else
9114 if test -n "$PTHREAD_CC"; then
9115 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9116else
9117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118for as_dir in $PATH
9119do
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124 ac_cv_prog_PTHREAD_CC="$ac_prog"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9127 fi
9128done
9129 done
9130IFS=$as_save_IFS
9131
9132fi
9133fi
9134PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9135if test -n "$PTHREAD_CC"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9137$as_echo "$PTHREAD_CC" >&6; }
9138else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140$as_echo "no" >&6; }
9141fi
9142
9143
9144 test -n "$PTHREAD_CC" && break
9145done
9146test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9147
9148 else
9149 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009150 fi
cristy73bd4a52010-10-05 11:24:23 +00009151else
9152 PTHREAD_CC="$CC"
9153fi
9154
9155
9156
9157
9158
9159# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9160if test x"$ax_pthread_ok" = xyes; then
9161
9162$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9163
9164 :
9165else
9166 ax_pthread_ok=no
9167
9168fi
9169ac_ext=c
9170ac_cpp='$CPP $CPPFLAGS'
9171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9173ac_compiler_gnu=$ac_cv_c_compiler_gnu
9174
9175
9176
9177# Check whether --enable-opencl was given.
9178if test "${enable_opencl+set}" = set; then :
9179 enableval=$enable_opencl; disable_opencl=$enableval
9180else
9181 disable_opencl='yes'
9182fi
9183
9184
9185if test "$disable_opencl" = 'yes'; then
9186 ac_ext=c
9187ac_cpp='$CPP $CPPFLAGS'
9188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190ac_compiler_gnu=$ac_cv_c_compiler_gnu
9191
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9193$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009194if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009195 $as_echo_n "(cached) " >&6
9196else
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h. */
9199
9200int
9201main ()
9202{
9203#ifndef _MSC_VER
9204 choke me
9205#endif
9206
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211if ac_fn_c_try_compile "$LINENO"; then :
9212 ax_compiler_ms=yes
9213else
9214 ax_compiler_ms=no
9215fi
9216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217ax_cv_c_compiler_ms=$ax_compiler_ms
9218
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9221$as_echo "$ax_cv_c_compiler_ms" >&6; }
9222 if test X$ax_compiler_ms = Xno; then :
9223 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9224fi
9225
9226 ax_save_CPPFLAGS=$CPPFLAGS
9227 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9228 for ac_header in CL/cl.h OpenCL/cl.h
9229do :
9230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9231ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009232if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009233 cat >>confdefs.h <<_ACEOF
9234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9235_ACEOF
9236
9237fi
9238
9239done
9240
9241 CPPFLAGS=$ax_save_CPPFLAGS
9242
9243 for ac_header in windows.h
9244do :
9245 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009246if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009247 cat >>confdefs.h <<_ACEOF
9248#define HAVE_WINDOWS_H 1
9249_ACEOF
9250
9251fi
9252
9253done
9254
9255
9256
9257
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9259$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009260if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009261 $as_echo_n "(cached) " >&6
9262else
9263 ax_cv_check_cl_libcl=no
9264 case $host_cpu in
9265 x86_64) ax_check_cl_libdir=lib64 ;;
9266 *) ax_check_cl_libdir=lib ;;
9267 esac
9268 ax_save_CPPFLAGS=$CPPFLAGS
9269 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9270 ax_save_LIBS=$LIBS
9271 LIBS=""
9272 ax_check_libs="-lOpenCL -lCL -lclparser"
9273 for ax_lib in $ax_check_libs; do
9274 if test X$ax_compiler_ms = Xyes; then :
9275 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9276else
9277 ax_try_lib=$ax_lib
9278fi
9279 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h. */
9282
9283 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9284 # include <windows.h>
9285 # endif
9286 # ifdef HAVE_CL_CL_H
9287 # include <CL/cl.h>
9288 # elif defined(HAVE_OPENCL_CL_H)
9289 # include <OpenCL/cl.h>
9290 # else
9291 # error no CL.h
9292 # endif
9293int
9294main ()
9295{
9296clCreateContextFromType(0,0,0,0,0)
9297 ;
9298 return 0;
9299}
9300_ACEOF
9301if ac_fn_c_try_link "$LINENO"; then :
9302 ax_cv_check_cl_libcl=$ax_try_lib; break
9303else
9304 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"
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h. */
9307
9308 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9309 # include <windows.h>
9310 # endif
9311 # ifdef HAVE_CL_CL_H
9312 # include <CL/cl.h>
9313 # elif defined(HAVE_OPENCL_CL_H)
9314 # include <OpenCL/cl.h>
9315 # else
9316 # error no CL.h
9317 # endif
9318int
9319main ()
9320{
9321clCreateContextFromType(0,0,0,0,0)
9322 ;
9323 return 0;
9324}
9325_ACEOF
9326if ac_fn_c_try_link "$LINENO"; then :
9327 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9328else
cristy78c5a0c2010-12-04 20:00:59 +00009329 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 +00009330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h. */
9332
9333 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9334 # include <windows.h>
9335 # endif
9336 # ifdef HAVE_CL_CL_H
9337 # include <CL/cl.h>
9338 # elif defined(HAVE_OPENCL_CL_H)
9339 # include <OpenCL/cl.h>
9340 # else
9341 # error no CL.h
9342 # endif
9343int
9344main ()
9345{
9346clCreateContextFromType(0,0,0,0,0)
9347 ;
9348 return 0;
9349}
9350_ACEOF
9351if ac_fn_c_try_link "$LINENO"; then :
9352 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9353fi
9354rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356fi
9357rm -f core conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 done
9363
9364 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009365 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h. */
9368
9369 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9370 # include <windows.h>
9371 # endif
9372 # ifdef HAVE_CL_CL_H
9373 # include <CL/cl.h>
9374 # elif defined(HAVE_OPENCL_CL_H)
9375 # include <OpenCL/cl.h>
9376 # else
9377 # error no CL.h
9378 # endif
9379int
9380main ()
9381{
9382clCreateContextFromType(0,0,0,0,0)
9383 ;
9384 return 0;
9385}
9386_ACEOF
9387if ac_fn_c_try_link "$LINENO"; then :
9388 ax_cv_check_cl_libcl=$LIBS
9389fi
9390rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392fi
9393
9394 LIBS=$ax_save_LIBS
9395 CPPFLAGS=$ax_save_CPPFLAGS
9396fi
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9398$as_echo "$ax_cv_check_cl_libcl" >&6; }
9399
9400 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9401 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9402else
9403 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9404$as_echo "#define _OPENCL 1" >>confdefs.h
9405
9406fi
9407 ac_ext=c
9408ac_cpp='$CPP $CPPFLAGS'
9409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9411ac_compiler_gnu=$ac_cv_c_compiler_gnu
9412
9413fi
9414
9415
9416
9417
cristyc7083c12009-10-14 03:16:55 +00009418CFLAGS="$CL_CFLAGS $CFLAGS"
9419LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009420
cristy391f1ce2010-09-09 17:23:28 +00009421if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009422 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009423 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9424 fi
cristyfd9dcd42010-08-08 18:07:02 +00009425fi
cristy2e8b51d2009-10-17 18:26:15 +00009426
cristy3ed852e2009-09-05 21:47:34 +00009427########
9428#
9429# Check for large file support
9430#
9431########
9432# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009433if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009434 enableval=$enable_largefile;
9435fi
9436
9437if test "$enable_largefile" != no; then
9438
cristy8b350f62009-11-15 23:12:43 +00009439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009440$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009441if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009442 $as_echo_n "(cached) " >&6
9443else
9444 ac_cv_sys_largefile_CC=no
9445 if test "$GCC" != yes; then
9446 ac_save_CC=$CC
9447 while :; do
9448 # IRIX 6.2 and later do not support large files by default,
9449 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009451/* end confdefs.h. */
9452#include <sys/types.h>
9453 /* Check that off_t can represent 2**63 - 1 correctly.
9454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9455 since some C++ compilers masquerading as C compilers
9456 incorrectly reject 9223372036854775807. */
9457#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9459 && LARGE_OFF_T % 2147483647 == 1)
9460 ? 1 : -1];
9461int
9462main ()
9463{
9464
9465 ;
9466 return 0;
9467}
9468_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009469 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009470 break
cristy3ed852e2009-09-05 21:47:34 +00009471fi
cristy3ed852e2009-09-05 21:47:34 +00009472rm -f core conftest.err conftest.$ac_objext
9473 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009474 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009475 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009476fi
cristy3ed852e2009-09-05 21:47:34 +00009477rm -f core conftest.err conftest.$ac_objext
9478 break
9479 done
9480 CC=$ac_save_CC
9481 rm -f conftest.$ac_ext
9482 fi
9483fi
cristy8b350f62009-11-15 23:12:43 +00009484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009485$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9486 if test "$ac_cv_sys_largefile_CC" != no; then
9487 CC=$CC$ac_cv_sys_largefile_CC
9488 fi
9489
cristy8b350f62009-11-15 23:12:43 +00009490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009491$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009492if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009493 $as_echo_n "(cached) " >&6
9494else
9495 while :; do
cristy8b350f62009-11-15 23:12:43 +00009496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009497/* end confdefs.h. */
9498#include <sys/types.h>
9499 /* Check that off_t can represent 2**63 - 1 correctly.
9500 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9501 since some C++ compilers masquerading as C compilers
9502 incorrectly reject 9223372036854775807. */
9503#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9504 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9505 && LARGE_OFF_T % 2147483647 == 1)
9506 ? 1 : -1];
9507int
9508main ()
9509{
9510
9511 ;
9512 return 0;
9513}
9514_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009515if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009516 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009517fi
cristy3ed852e2009-09-05 21:47:34 +00009518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009520/* end confdefs.h. */
9521#define _FILE_OFFSET_BITS 64
9522#include <sys/types.h>
9523 /* Check that off_t can represent 2**63 - 1 correctly.
9524 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9525 since some C++ compilers masquerading as C compilers
9526 incorrectly reject 9223372036854775807. */
9527#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9529 && LARGE_OFF_T % 2147483647 == 1)
9530 ? 1 : -1];
9531int
9532main ()
9533{
9534
9535 ;
9536 return 0;
9537}
9538_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009539if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009540 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009541fi
cristy3ed852e2009-09-05 21:47:34 +00009542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 ac_cv_sys_file_offset_bits=unknown
9544 break
9545done
9546fi
cristy8b350f62009-11-15 23:12:43 +00009547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009548$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9549case $ac_cv_sys_file_offset_bits in #(
9550 no | unknown) ;;
9551 *)
9552cat >>confdefs.h <<_ACEOF
9553#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9554_ACEOF
9555;;
9556esac
9557rm -rf conftest*
9558 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009560$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009561if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009562 $as_echo_n "(cached) " >&6
9563else
9564 while :; do
cristy8b350f62009-11-15 23:12:43 +00009565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009566/* end confdefs.h. */
9567#include <sys/types.h>
9568 /* Check that off_t can represent 2**63 - 1 correctly.
9569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9570 since some C++ compilers masquerading as C compilers
9571 incorrectly reject 9223372036854775807. */
9572#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9574 && LARGE_OFF_T % 2147483647 == 1)
9575 ? 1 : -1];
9576int
9577main ()
9578{
9579
9580 ;
9581 return 0;
9582}
9583_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009584if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009585 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009586fi
cristy3ed852e2009-09-05 21:47:34 +00009587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009589/* end confdefs.h. */
9590#define _LARGE_FILES 1
9591#include <sys/types.h>
9592 /* Check that off_t can represent 2**63 - 1 correctly.
9593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9594 since some C++ compilers masquerading as C compilers
9595 incorrectly reject 9223372036854775807. */
9596#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9598 && LARGE_OFF_T % 2147483647 == 1)
9599 ? 1 : -1];
9600int
9601main ()
9602{
9603
9604 ;
9605 return 0;
9606}
9607_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009608if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009609 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009610fi
cristy3ed852e2009-09-05 21:47:34 +00009611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 ac_cv_sys_large_files=unknown
9613 break
9614done
9615fi
cristy8b350f62009-11-15 23:12:43 +00009616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009617$as_echo "$ac_cv_sys_large_files" >&6; }
9618case $ac_cv_sys_large_files in #(
9619 no | unknown) ;;
9620 *)
9621cat >>confdefs.h <<_ACEOF
9622#define _LARGE_FILES $ac_cv_sys_large_files
9623_ACEOF
9624;;
9625esac
9626rm -rf conftest*
9627 fi
9628fi
9629
cristy8b350f62009-11-15 23:12:43 +00009630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009631$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009632if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009633 $as_echo_n "(cached) " >&6
9634else
9635 while :; do
cristy8b350f62009-11-15 23:12:43 +00009636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009637/* end confdefs.h. */
9638#include <sys/types.h> /* for off_t */
9639 #include <stdio.h>
9640int
9641main ()
9642{
9643int (*fp) (FILE *, off_t, int) = fseeko;
9644 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9645 ;
9646 return 0;
9647}
9648_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009649if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009650 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009651fi
cristy8b350f62009-11-15 23:12:43 +00009652rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009655/* end confdefs.h. */
9656#define _LARGEFILE_SOURCE 1
9657#include <sys/types.h> /* for off_t */
9658 #include <stdio.h>
9659int
9660main ()
9661{
9662int (*fp) (FILE *, off_t, int) = fseeko;
9663 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9664 ;
9665 return 0;
9666}
9667_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009669 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009670fi
cristy8b350f62009-11-15 23:12:43 +00009671rm -f core conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009673 ac_cv_sys_largefile_source=unknown
9674 break
9675done
9676fi
cristy8b350f62009-11-15 23:12:43 +00009677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009678$as_echo "$ac_cv_sys_largefile_source" >&6; }
9679case $ac_cv_sys_largefile_source in #(
9680 no | unknown) ;;
9681 *)
9682cat >>confdefs.h <<_ACEOF
9683#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9684_ACEOF
9685;;
9686esac
9687rm -rf conftest*
9688
9689# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9690# in glibc 2.1.3, but that breaks too many other things.
9691# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9692if test $ac_cv_sys_largefile_source != unknown; then
9693
cristy8b350f62009-11-15 23:12:43 +00009694$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009695
9696fi
9697
9698LFS_CPPFLAGS=''
9699if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009700 case $ac_cv_sys_file_offset_bits in
9701 no)
9702 # nothing to do here as the host supports LFS fine
9703 ;;
9704 unknown)
cristy8b350f62009-11-15 23:12:43 +00009705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009706$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009707 if test "$cross_compiling" = yes; then :
9708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009710as_fn_error $? "cannot run test program while cross compiling
9711See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009712else
cristy8b350f62009-11-15 23:12:43 +00009713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009715#include <unistd.h>
9716 main () {
9717 exit(!(sizeof(off_t) == 8));
9718 }
cristyda16f162011-02-19 23:52:17 +00009719int
9720main ()
9721{
9722
9723 ;
9724 return 0;
9725}
cristy3ed852e2009-09-05 21:47:34 +00009726_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009727if ac_fn_c_try_run "$LINENO"; then :
9728 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009729
cristy09b53e12011-10-14 12:47:22 +00009730 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9731$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009732else
cristy09b53e12011-10-14 12:47:22 +00009733 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9734$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009735fi
cristy8b350f62009-11-15 23:12:43 +00009736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9737 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009738fi
9739
cristyc1e0cc12011-09-21 16:41:16 +00009740 ;;
9741 *)
9742 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9743 ;;
9744 esac
cristy3ed852e2009-09-05 21:47:34 +00009745 if test "$ac_cv_sys_large_files" != 'no'; then
9746 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9747 fi
9748 if test "$ac_cv_sys_largefile_source" != 'no'; then
9749 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9750 fi
9751fi
9752
9753
cristy3ed852e2009-09-05 21:47:34 +00009754# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009755enable_dlopen=yes
9756
9757
9758
9759case `pwd` in
9760 *\ * | *\ *)
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9762$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9763esac
9764
9765
9766
cristyda16f162011-02-19 23:52:17 +00009767macro_version='2.4'
9768macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782ltmain="$ac_aux_dir/ltmain.sh"
9783
cristy0c60a692010-11-04 01:09:47 +00009784# Backslashify metacharacters that are still active within
9785# double-quoted strings.
9786sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9787
9788# Same as above, but do not quote variable references.
9789double_quote_subst='s/\(["`\\]\)/\\\1/g'
9790
9791# Sed substitution to delay expansion of an escaped shell variable in a
9792# double_quote_subst'ed string.
9793delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9794
9795# Sed substitution to delay expansion of an escaped single quote.
9796delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9797
9798# Sed substitution to avoid accidental globbing in evaled expressions
9799no_glob_subst='s/\*/\\\*/g'
9800
cristy73bd4a52010-10-05 11:24:23 +00009801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9802$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009803if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009804 $as_echo_n "(cached) " >&6
9805else
9806 if test -n "$NM"; then
9807 # Let the user override the test.
9808 lt_cv_path_NM="$NM"
9809else
9810 lt_nm_to_check="${ac_tool_prefix}nm"
9811 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9812 lt_nm_to_check="$lt_nm_to_check nm"
9813 fi
9814 for lt_tmp_nm in $lt_nm_to_check; do
9815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9816 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9817 IFS="$lt_save_ifs"
9818 test -z "$ac_dir" && ac_dir=.
9819 tmp_nm="$ac_dir/$lt_tmp_nm"
9820 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9821 # Check to see if the nm accepts a BSD-compat flag.
9822 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9823 # nm: unknown option "B" ignored
9824 # Tru64's nm complains that /dev/null is an invalid object file
9825 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9826 */dev/null* | *'Invalid file or object type'*)
9827 lt_cv_path_NM="$tmp_nm -B"
9828 break
9829 ;;
9830 *)
9831 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9832 */dev/null*)
9833 lt_cv_path_NM="$tmp_nm -p"
9834 break
9835 ;;
9836 *)
9837 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9838 continue # so that we can try to find one that supports BSD flags
9839 ;;
9840 esac
9841 ;;
9842 esac
9843 fi
9844 done
9845 IFS="$lt_save_ifs"
9846 done
9847 : ${lt_cv_path_NM=no}
9848fi
9849fi
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9851$as_echo "$lt_cv_path_NM" >&6; }
9852if test "$lt_cv_path_NM" != "no"; then
9853 NM="$lt_cv_path_NM"
9854else
9855 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009856 if test -n "$DUMPBIN"; then :
9857 # Let the user override the test.
9858 else
9859 if test -n "$ac_tool_prefix"; then
9860 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009861 do
9862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9863set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009866if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009867 $as_echo_n "(cached) " >&6
9868else
9869 if test -n "$DUMPBIN"; then
9870 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9871else
9872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9882 fi
9883done
9884 done
9885IFS=$as_save_IFS
9886
9887fi
9888fi
9889DUMPBIN=$ac_cv_prog_DUMPBIN
9890if test -n "$DUMPBIN"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9892$as_echo "$DUMPBIN" >&6; }
9893else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895$as_echo "no" >&6; }
9896fi
9897
9898
9899 test -n "$DUMPBIN" && break
9900 done
9901fi
9902if test -z "$DUMPBIN"; then
9903 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009904 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009905do
9906 # Extract the first word of "$ac_prog", so it can be a program name with args.
9907set dummy $ac_prog; ac_word=$2
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009910if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009911 $as_echo_n "(cached) " >&6
9912else
9913 if test -n "$ac_ct_DUMPBIN"; then
9914 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9915else
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927done
9928 done
9929IFS=$as_save_IFS
9930
9931fi
9932fi
9933ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9934if test -n "$ac_ct_DUMPBIN"; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9936$as_echo "$ac_ct_DUMPBIN" >&6; }
9937else
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939$as_echo "no" >&6; }
9940fi
9941
9942
9943 test -n "$ac_ct_DUMPBIN" && break
9944done
9945
9946 if test "x$ac_ct_DUMPBIN" = x; then
9947 DUMPBIN=":"
9948 else
9949 case $cross_compiling:$ac_tool_warned in
9950yes:)
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9953ac_tool_warned=yes ;;
9954esac
9955 DUMPBIN=$ac_ct_DUMPBIN
9956 fi
9957fi
9958
cristy0c60a692010-11-04 01:09:47 +00009959 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9960 *COFF*)
9961 DUMPBIN="$DUMPBIN -symbols"
9962 ;;
9963 *)
9964 DUMPBIN=:
9965 ;;
9966 esac
9967 fi
cristy73bd4a52010-10-05 11:24:23 +00009968
9969 if test "$DUMPBIN" != ":"; then
9970 NM="$DUMPBIN"
9971 fi
9972fi
9973test -z "$NM" && NM=nm
9974
9975
9976
9977
9978
9979
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9981$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009982if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009983 $as_echo_n "(cached) " >&6
9984else
9985 lt_cv_nm_interface="BSD nm"
9986 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009987 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009988 (eval "$ac_compile" 2>conftest.err)
9989 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009990 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009991 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9992 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009993 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009994 cat conftest.out >&5
9995 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9996 lt_cv_nm_interface="MS dumpbin"
9997 fi
9998 rm -f conftest*
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10001$as_echo "$lt_cv_nm_interface" >&6; }
10002
10003# find the maximum length of command line arguments
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10005$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010006if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010007 $as_echo_n "(cached) " >&6
10008else
10009 i=0
10010 teststring="ABCD"
10011
10012 case $build_os in
10013 msdosdjgpp*)
10014 # On DJGPP, this test can blow up pretty badly due to problems in libc
10015 # (any single argument exceeding 2000 bytes causes a buffer overrun
10016 # during glob expansion). Even if it were fixed, the result of this
10017 # check would be larger than it should be.
10018 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10019 ;;
10020
10021 gnu*)
10022 # Under GNU Hurd, this test is not required because there is
10023 # no limit to the length of command line arguments.
10024 # Libtool will interpret -1 as no limit whatsoever
10025 lt_cv_sys_max_cmd_len=-1;
10026 ;;
10027
10028 cygwin* | mingw* | cegcc*)
10029 # On Win9x/ME, this test blows up -- it succeeds, but takes
10030 # about 5 minutes as the teststring grows exponentially.
10031 # Worse, since 9x/ME are not pre-emptively multitasking,
10032 # you end up with a "frozen" computer, even though with patience
10033 # the test eventually succeeds (with a max line length of 256k).
10034 # Instead, let's just punt: use the minimum linelength reported by
10035 # all of the supported platforms: 8192 (on NT/2K/XP).
10036 lt_cv_sys_max_cmd_len=8192;
10037 ;;
10038
cristy0c60a692010-11-04 01:09:47 +000010039 mint*)
10040 # On MiNT this can take a long time and run out of memory.
10041 lt_cv_sys_max_cmd_len=8192;
10042 ;;
10043
cristy73bd4a52010-10-05 11:24:23 +000010044 amigaos*)
10045 # On AmigaOS with pdksh, this test takes hours, literally.
10046 # So we just punt and use a minimum line length of 8192.
10047 lt_cv_sys_max_cmd_len=8192;
10048 ;;
10049
10050 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10051 # This has been around since 386BSD, at least. Likely further.
10052 if test -x /sbin/sysctl; then
10053 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10054 elif test -x /usr/sbin/sysctl; then
10055 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10056 else
10057 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10058 fi
10059 # And add a safety zone
10060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10062 ;;
10063
10064 interix*)
10065 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10066 lt_cv_sys_max_cmd_len=196608
10067 ;;
10068
10069 osf*)
10070 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10071 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10072 # nice to cause kernel panics so lets avoid the loop below.
10073 # First set a reasonable default.
10074 lt_cv_sys_max_cmd_len=16384
10075 #
10076 if test -x /sbin/sysconfig; then
10077 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10078 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10079 esac
10080 fi
10081 ;;
10082 sco3.2v5*)
10083 lt_cv_sys_max_cmd_len=102400
10084 ;;
10085 sysv5* | sco5v6* | sysv4.2uw2*)
10086 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10087 if test -n "$kargmax"; then
10088 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10089 else
10090 lt_cv_sys_max_cmd_len=32768
10091 fi
10092 ;;
10093 *)
10094 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10095 if test -n "$lt_cv_sys_max_cmd_len"; then
10096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10098 else
10099 # Make teststring a little bigger before we do anything with it.
10100 # a 1K string should be a reasonable start.
10101 for i in 1 2 3 4 5 6 7 8 ; do
10102 teststring=$teststring$teststring
10103 done
10104 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10105 # If test is not a shell built-in, we'll probably end up computing a
10106 # maximum length that is only half of the actual maximum length, but
10107 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010108 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10109 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010110 test $i != 17 # 1/2 MB should be enough
10111 do
10112 i=`expr $i + 1`
10113 teststring=$teststring$teststring
10114 done
10115 # Only check the string length outside the loop.
10116 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10117 teststring=
10118 # Add a significant safety factor because C++ compilers can tack on
10119 # massive amounts of additional arguments before passing them to the
10120 # linker. It appears as though 1/2 is a usable value.
10121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10122 fi
10123 ;;
10124 esac
10125
10126fi
10127
10128if test -n $lt_cv_sys_max_cmd_len ; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10130$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10131else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10133$as_echo "none" >&6; }
10134fi
10135max_cmd_len=$lt_cv_sys_max_cmd_len
10136
10137
10138
10139
10140
10141
10142: ${CP="cp -f"}
10143: ${MV="mv -f"}
10144: ${RM="rm -f"}
10145
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10147$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10148# Try some XSI features
10149xsi_shell=no
10150( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010151 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10152 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010153 && eval 'test $(( 1 + 1 )) -eq 2 \
10154 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10155 && xsi_shell=yes
10156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10157$as_echo "$xsi_shell" >&6; }
10158
10159
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10161$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10162lt_shell_append=no
10163( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10164 >/dev/null 2>&1 \
10165 && lt_shell_append=yes
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10167$as_echo "$lt_shell_append" >&6; }
10168
10169
10170if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10171 lt_unset=unset
10172else
10173 lt_unset=false
10174fi
10175
10176
10177
10178
10179
10180# test EBCDIC or ASCII
10181case `echo X|tr X '\101'` in
10182 A) # ASCII based system
10183 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10184 lt_SP2NL='tr \040 \012'
10185 lt_NL2SP='tr \015\012 \040\040'
10186 ;;
10187 *) # EBCDIC based system
10188 lt_SP2NL='tr \100 \n'
10189 lt_NL2SP='tr \r\n \100\100'
10190 ;;
10191esac
10192
10193
10194
10195
10196
10197
10198
10199
10200
cristyda16f162011-02-19 23:52:17 +000010201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10202$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10203if ${lt_cv_to_host_file_cmd+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205else
10206 case $host in
10207 *-*-mingw* )
10208 case $build in
10209 *-*-mingw* ) # actually msys
10210 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10211 ;;
10212 *-*-cygwin* )
10213 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10214 ;;
10215 * ) # otherwise, assume *nix
10216 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10217 ;;
10218 esac
10219 ;;
10220 *-*-cygwin* )
10221 case $build in
10222 *-*-mingw* ) # actually msys
10223 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10224 ;;
10225 *-*-cygwin* )
10226 lt_cv_to_host_file_cmd=func_convert_file_noop
10227 ;;
10228 * ) # otherwise, assume *nix
10229 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10230 ;;
10231 esac
10232 ;;
10233 * ) # unhandled hosts (and "normal" native builds)
10234 lt_cv_to_host_file_cmd=func_convert_file_noop
10235 ;;
10236esac
10237
10238fi
10239
10240to_host_file_cmd=$lt_cv_to_host_file_cmd
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10242$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10243
10244
10245
10246
10247
10248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10249$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10250if ${lt_cv_to_tool_file_cmd+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252else
10253 #assume ordinary cross tools, or native build.
10254lt_cv_to_tool_file_cmd=func_convert_file_noop
10255case $host in
10256 *-*-mingw* )
10257 case $build in
10258 *-*-mingw* ) # actually msys
10259 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10260 ;;
10261 esac
10262 ;;
10263esac
10264
10265fi
10266
10267to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10269$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10270
10271
10272
10273
10274
cristy73bd4a52010-10-05 11:24:23 +000010275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10276$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010277if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010278 $as_echo_n "(cached) " >&6
10279else
10280 lt_cv_ld_reload_flag='-r'
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10283$as_echo "$lt_cv_ld_reload_flag" >&6; }
10284reload_flag=$lt_cv_ld_reload_flag
10285case $reload_flag in
10286"" | " "*) ;;
10287*) reload_flag=" $reload_flag" ;;
10288esac
10289reload_cmds='$LD$reload_flag -o $output$reload_objs'
10290case $host_os in
cristyda16f162011-02-19 23:52:17 +000010291 cygwin* | mingw* | pw32* | cegcc*)
10292 if test "$GCC" != yes; then
10293 reload_cmds=false
10294 fi
10295 ;;
cristy73bd4a52010-10-05 11:24:23 +000010296 darwin*)
10297 if test "$GCC" = yes; then
10298 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10299 else
10300 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10301 fi
10302 ;;
10303esac
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313if test -n "$ac_tool_prefix"; then
10314 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10315set dummy ${ac_tool_prefix}objdump; ac_word=$2
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010318if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010319 $as_echo_n "(cached) " >&6
10320else
10321 if test -n "$OBJDUMP"; then
10322 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10323else
10324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $PATH
10326do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335done
10336 done
10337IFS=$as_save_IFS
10338
10339fi
10340fi
10341OBJDUMP=$ac_cv_prog_OBJDUMP
10342if test -n "$OBJDUMP"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10344$as_echo "$OBJDUMP" >&6; }
10345else
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347$as_echo "no" >&6; }
10348fi
10349
10350
10351fi
10352if test -z "$ac_cv_prog_OBJDUMP"; then
10353 ac_ct_OBJDUMP=$OBJDUMP
10354 # Extract the first word of "objdump", so it can be a program name with args.
10355set dummy objdump; ac_word=$2
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010358if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010359 $as_echo_n "(cached) " >&6
10360else
10361 if test -n "$ac_ct_OBJDUMP"; then
10362 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10363else
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10371 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10374 fi
10375done
10376 done
10377IFS=$as_save_IFS
10378
10379fi
10380fi
10381ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10382if test -n "$ac_ct_OBJDUMP"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10384$as_echo "$ac_ct_OBJDUMP" >&6; }
10385else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
10388fi
10389
10390 if test "x$ac_ct_OBJDUMP" = x; then
10391 OBJDUMP="false"
10392 else
10393 case $cross_compiling:$ac_tool_warned in
10394yes:)
10395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10397ac_tool_warned=yes ;;
10398esac
10399 OBJDUMP=$ac_ct_OBJDUMP
10400 fi
10401else
10402 OBJDUMP="$ac_cv_prog_OBJDUMP"
10403fi
10404
10405test -z "$OBJDUMP" && OBJDUMP=objdump
10406
10407
10408
10409
10410
10411
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10413$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010414if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010415 $as_echo_n "(cached) " >&6
10416else
10417 lt_cv_file_magic_cmd='$MAGIC_CMD'
10418lt_cv_file_magic_test_file=
10419lt_cv_deplibs_check_method='unknown'
10420# Need to set the preceding variable on all platforms that support
10421# interlibrary dependencies.
10422# 'none' -- dependencies not supported.
10423# `unknown' -- same as none, but documents that we really don't know.
10424# 'pass_all' -- all dependencies passed with no checks.
10425# 'test_compile' -- check by making test program.
10426# 'file_magic [[regex]]' -- check by looking for files in library path
10427# which responds to the $file_magic_cmd with a given extended regex.
10428# If you have `file' or equivalent on your system and you're not sure
10429# whether `pass_all' will *always* work, you probably want this one.
10430
10431case $host_os in
10432aix[4-9]*)
10433 lt_cv_deplibs_check_method=pass_all
10434 ;;
10435
10436beos*)
10437 lt_cv_deplibs_check_method=pass_all
10438 ;;
10439
10440bsdi[45]*)
10441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10442 lt_cv_file_magic_cmd='/usr/bin/file -L'
10443 lt_cv_file_magic_test_file=/shlib/libc.so
10444 ;;
10445
10446cygwin*)
10447 # func_win32_libid is a shell function defined in ltmain.sh
10448 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10449 lt_cv_file_magic_cmd='func_win32_libid'
10450 ;;
10451
10452mingw* | pw32*)
10453 # Base MSYS/MinGW do not provide the 'file' command needed by
10454 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10455 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010456 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10457 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10459 lt_cv_file_magic_cmd='func_win32_libid'
10460 else
cristy0c60a692010-11-04 01:09:47 +000010461 # Keep this pattern in sync with the one in func_win32_libid.
10462 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 +000010463 lt_cv_file_magic_cmd='$OBJDUMP -f'
10464 fi
10465 ;;
10466
cristy0c60a692010-11-04 01:09:47 +000010467cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010468 # use the weaker test based on 'objdump'. See mingw*.
10469 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10470 lt_cv_file_magic_cmd='$OBJDUMP -f'
10471 ;;
10472
10473darwin* | rhapsody*)
10474 lt_cv_deplibs_check_method=pass_all
10475 ;;
10476
10477freebsd* | dragonfly*)
10478 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10479 case $host_cpu in
10480 i*86 )
10481 # Not sure whether the presence of OpenBSD here was a mistake.
10482 # Let's accept both of them until this is cleared up.
10483 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10484 lt_cv_file_magic_cmd=/usr/bin/file
10485 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10486 ;;
10487 esac
10488 else
10489 lt_cv_deplibs_check_method=pass_all
10490 fi
10491 ;;
10492
10493gnu*)
10494 lt_cv_deplibs_check_method=pass_all
10495 ;;
10496
cristy0c60a692010-11-04 01:09:47 +000010497haiku*)
10498 lt_cv_deplibs_check_method=pass_all
10499 ;;
10500
cristy73bd4a52010-10-05 11:24:23 +000010501hpux10.20* | hpux11*)
10502 lt_cv_file_magic_cmd=/usr/bin/file
10503 case $host_cpu in
10504 ia64*)
10505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10506 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10507 ;;
10508 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010509 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 +000010510 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10511 ;;
10512 *)
cristy0c60a692010-11-04 01:09:47 +000010513 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 +000010514 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10515 ;;
10516 esac
10517 ;;
10518
10519interix[3-9]*)
10520 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10522 ;;
10523
10524irix5* | irix6* | nonstopux*)
10525 case $LD in
10526 *-32|*"-32 ") libmagic=32-bit;;
10527 *-n32|*"-n32 ") libmagic=N32;;
10528 *-64|*"-64 ") libmagic=64-bit;;
10529 *) libmagic=never-match;;
10530 esac
10531 lt_cv_deplibs_check_method=pass_all
10532 ;;
10533
10534# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010535linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010536 lt_cv_deplibs_check_method=pass_all
10537 ;;
10538
10539netbsd*)
10540 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10542 else
10543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10544 fi
10545 ;;
10546
10547newos6*)
10548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10549 lt_cv_file_magic_cmd=/usr/bin/file
10550 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10551 ;;
10552
10553*nto* | *qnx*)
10554 lt_cv_deplibs_check_method=pass_all
10555 ;;
10556
10557openbsd*)
10558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10560 else
10561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10562 fi
10563 ;;
10564
10565osf3* | osf4* | osf5*)
10566 lt_cv_deplibs_check_method=pass_all
10567 ;;
10568
10569rdos*)
10570 lt_cv_deplibs_check_method=pass_all
10571 ;;
10572
10573solaris*)
10574 lt_cv_deplibs_check_method=pass_all
10575 ;;
10576
10577sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10578 lt_cv_deplibs_check_method=pass_all
10579 ;;
10580
10581sysv4 | sysv4.3*)
10582 case $host_vendor in
10583 motorola)
10584 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]'
10585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10586 ;;
10587 ncr)
10588 lt_cv_deplibs_check_method=pass_all
10589 ;;
10590 sequent)
10591 lt_cv_file_magic_cmd='/bin/file'
10592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10593 ;;
10594 sni)
10595 lt_cv_file_magic_cmd='/bin/file'
10596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10597 lt_cv_file_magic_test_file=/lib/libc.so
10598 ;;
10599 siemens)
10600 lt_cv_deplibs_check_method=pass_all
10601 ;;
10602 pc)
10603 lt_cv_deplibs_check_method=pass_all
10604 ;;
10605 esac
10606 ;;
10607
10608tpf*)
10609 lt_cv_deplibs_check_method=pass_all
10610 ;;
10611esac
10612
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10615$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010616
10617file_magic_glob=
10618want_nocaseglob=no
10619if test "$build" = "$host"; then
10620 case $host_os in
10621 mingw* | pw32*)
10622 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10623 want_nocaseglob=yes
10624 else
10625 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10626 fi
10627 ;;
10628 esac
10629fi
10630
cristy73bd4a52010-10-05 11:24:23 +000010631file_magic_cmd=$lt_cv_file_magic_cmd
10632deplibs_check_method=$lt_cv_deplibs_check_method
10633test -z "$deplibs_check_method" && deplibs_check_method=unknown
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
cristyda16f162011-02-19 23:52:17 +000010646
10647
10648
10649
10650
10651
10652
10653
10654
10655
cristy73bd4a52010-10-05 11:24:23 +000010656if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010657 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10658set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010661if ${ac_cv_prog_DLLTOOL+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663else
10664 if test -n "$DLLTOOL"; then
10665 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10666else
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10674 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678done
10679 done
10680IFS=$as_save_IFS
10681
10682fi
10683fi
10684DLLTOOL=$ac_cv_prog_DLLTOOL
10685if test -n "$DLLTOOL"; then
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10687$as_echo "$DLLTOOL" >&6; }
10688else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690$as_echo "no" >&6; }
10691fi
10692
10693
10694fi
10695if test -z "$ac_cv_prog_DLLTOOL"; then
10696 ac_ct_DLLTOOL=$DLLTOOL
10697 # Extract the first word of "dlltool", so it can be a program name with args.
10698set dummy dlltool; ac_word=$2
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
10701if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10702 $as_echo_n "(cached) " >&6
10703else
10704 if test -n "$ac_ct_DLLTOOL"; then
10705 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10706else
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718done
10719 done
10720IFS=$as_save_IFS
10721
10722fi
10723fi
10724ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10725if test -n "$ac_ct_DLLTOOL"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10727$as_echo "$ac_ct_DLLTOOL" >&6; }
10728else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730$as_echo "no" >&6; }
10731fi
10732
10733 if test "x$ac_ct_DLLTOOL" = x; then
10734 DLLTOOL="false"
10735 else
10736 case $cross_compiling:$ac_tool_warned in
10737yes:)
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10740ac_tool_warned=yes ;;
10741esac
10742 DLLTOOL=$ac_ct_DLLTOOL
10743 fi
10744else
10745 DLLTOOL="$ac_cv_prog_DLLTOOL"
10746fi
10747
10748test -z "$DLLTOOL" && DLLTOOL=dlltool
10749
10750
10751
10752
10753
10754
10755
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10757$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10758if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760else
10761 lt_cv_sharedlib_from_linklib_cmd='unknown'
10762
10763case $host_os in
10764cygwin* | mingw* | pw32* | cegcc*)
10765 # two different shell functions defined in ltmain.sh
10766 # decide which to use based on capabilities of $DLLTOOL
10767 case `$DLLTOOL --help 2>&1` in
10768 *--identify-strict*)
10769 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10770 ;;
10771 *)
10772 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10773 ;;
10774 esac
10775 ;;
10776*)
10777 # fallback: assume linklib IS sharedlib
10778 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10779 ;;
10780esac
10781
10782fi
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10784$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10785sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10786test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10787
10788
10789
10790
10791
10792
10793
10794if test -n "$ac_tool_prefix"; then
10795 for ac_prog in ar
10796 do
10797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800$as_echo_n "checking for $ac_word... " >&6; }
10801if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010802 $as_echo_n "(cached) " >&6
10803else
10804 if test -n "$AR"; then
10805 ac_cv_prog_AR="$AR" # Let the user override the test.
10806else
10807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $PATH
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 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 +000010814 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819 done
10820IFS=$as_save_IFS
10821
10822fi
10823fi
10824AR=$ac_cv_prog_AR
10825if test -n "$AR"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10827$as_echo "$AR" >&6; }
10828else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830$as_echo "no" >&6; }
10831fi
10832
10833
cristyda16f162011-02-19 23:52:17 +000010834 test -n "$AR" && break
10835 done
cristy73bd4a52010-10-05 11:24:23 +000010836fi
cristyda16f162011-02-19 23:52:17 +000010837if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010838 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010839 for ac_prog in ar
10840do
10841 # Extract the first word of "$ac_prog", so it can be a program name with args.
10842set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010845if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010846 $as_echo_n "(cached) " >&6
10847else
10848 if test -n "$ac_ct_AR"; then
10849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10850else
10851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852for as_dir in $PATH
10853do
10854 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 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 +000010858 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2
10861 fi
10862done
10863 done
10864IFS=$as_save_IFS
10865
10866fi
10867fi
10868ac_ct_AR=$ac_cv_prog_ac_ct_AR
10869if test -n "$ac_ct_AR"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10871$as_echo "$ac_ct_AR" >&6; }
10872else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874$as_echo "no" >&6; }
10875fi
10876
cristyda16f162011-02-19 23:52:17 +000010877
10878 test -n "$ac_ct_AR" && break
10879done
10880
cristy73bd4a52010-10-05 11:24:23 +000010881 if test "x$ac_ct_AR" = x; then
10882 AR="false"
10883 else
10884 case $cross_compiling:$ac_tool_warned in
10885yes:)
10886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10888ac_tool_warned=yes ;;
10889esac
10890 AR=$ac_ct_AR
10891 fi
cristy73bd4a52010-10-05 11:24:23 +000010892fi
10893
cristyda16f162011-02-19 23:52:17 +000010894: ${AR=ar}
10895: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
cristyda16f162011-02-19 23:52:17 +000010907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10908$as_echo_n "checking for archiver @FILE support... " >&6; }
10909if ${lt_cv_ar_at_file+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911else
10912 lt_cv_ar_at_file=no
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914/* end confdefs.h. */
10915
10916int
10917main ()
10918{
10919
10920 ;
10921 return 0;
10922}
10923_ACEOF
10924if ac_fn_c_try_compile "$LINENO"; then :
10925 echo conftest.$ac_objext > conftest.lst
10926 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10928 (eval $lt_ar_try) 2>&5
10929 ac_status=$?
10930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10931 test $ac_status = 0; }
10932 if test "$ac_status" -eq 0; then
10933 # Ensure the archiver fails upon bogus file names.
10934 rm -f conftest.$ac_objext libconftest.a
10935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10936 (eval $lt_ar_try) 2>&5
10937 ac_status=$?
10938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10939 test $ac_status = 0; }
10940 if test "$ac_status" -ne 0; then
10941 lt_cv_ar_at_file=@
10942 fi
10943 fi
10944 rm -f conftest.* libconftest.a
10945
10946fi
10947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948
10949fi
10950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10951$as_echo "$lt_cv_ar_at_file" >&6; }
10952
10953if test "x$lt_cv_ar_at_file" = xno; then
10954 archiver_list_spec=
10955else
10956 archiver_list_spec=$lt_cv_ar_at_file
10957fi
10958
10959
10960
10961
10962
10963
10964
cristy73bd4a52010-10-05 11:24:23 +000010965if test -n "$ac_tool_prefix"; then
10966 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10967set dummy ${ac_tool_prefix}strip; ac_word=$2
10968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010970if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010971 $as_echo_n "(cached) " >&6
10972else
10973 if test -n "$STRIP"; then
10974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988 done
10989IFS=$as_save_IFS
10990
10991fi
10992fi
10993STRIP=$ac_cv_prog_STRIP
10994if test -n "$STRIP"; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10996$as_echo "$STRIP" >&6; }
10997else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999$as_echo "no" >&6; }
11000fi
11001
11002
11003fi
11004if test -z "$ac_cv_prog_STRIP"; then
11005 ac_ct_STRIP=$STRIP
11006 # Extract the first word of "strip", so it can be a program name with args.
11007set dummy strip; ac_word=$2
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011010if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011011 $as_echo_n "(cached) " >&6
11012else
11013 if test -n "$ac_ct_STRIP"; then
11014 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11015else
11016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017for as_dir in $PATH
11018do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11023 ac_cv_prog_ac_ct_STRIP="strip"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027done
11028 done
11029IFS=$as_save_IFS
11030
11031fi
11032fi
11033ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11034if test -n "$ac_ct_STRIP"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11036$as_echo "$ac_ct_STRIP" >&6; }
11037else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
11040fi
11041
11042 if test "x$ac_ct_STRIP" = x; then
11043 STRIP=":"
11044 else
11045 case $cross_compiling:$ac_tool_warned in
11046yes:)
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11049ac_tool_warned=yes ;;
11050esac
11051 STRIP=$ac_ct_STRIP
11052 fi
11053else
11054 STRIP="$ac_cv_prog_STRIP"
11055fi
11056
11057test -z "$STRIP" && STRIP=:
11058
11059
11060
11061
11062
11063
11064if test -n "$ac_tool_prefix"; then
11065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11066set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011069if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011070 $as_echo_n "(cached) " >&6
11071else
11072 if test -n "$RANLIB"; then
11073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087 done
11088IFS=$as_save_IFS
11089
11090fi
11091fi
11092RANLIB=$ac_cv_prog_RANLIB
11093if test -n "$RANLIB"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11095$as_echo "$RANLIB" >&6; }
11096else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
11099fi
11100
11101
11102fi
11103if test -z "$ac_cv_prog_RANLIB"; then
11104 ac_ct_RANLIB=$RANLIB
11105 # Extract the first word of "ranlib", so it can be a program name with args.
11106set dummy ranlib; ac_word=$2
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011109if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011110 $as_echo_n "(cached) " >&6
11111else
11112 if test -n "$ac_ct_RANLIB"; then
11113 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11114else
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_ac_ct_RANLIB="ranlib"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126done
11127 done
11128IFS=$as_save_IFS
11129
11130fi
11131fi
11132ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11133if test -n "$ac_ct_RANLIB"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11135$as_echo "$ac_ct_RANLIB" >&6; }
11136else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
11139fi
11140
11141 if test "x$ac_ct_RANLIB" = x; then
11142 RANLIB=":"
11143 else
11144 case $cross_compiling:$ac_tool_warned in
11145yes:)
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11148ac_tool_warned=yes ;;
11149esac
11150 RANLIB=$ac_ct_RANLIB
11151 fi
11152else
11153 RANLIB="$ac_cv_prog_RANLIB"
11154fi
11155
11156test -z "$RANLIB" && RANLIB=:
11157
11158
11159
11160
11161
11162
11163# Determine commands to create old-style static archives.
11164old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11165old_postinstall_cmds='chmod 644 $oldlib'
11166old_postuninstall_cmds=
11167
11168if test -n "$RANLIB"; then
11169 case $host_os in
11170 openbsd*)
11171 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11172 ;;
11173 *)
11174 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11175 ;;
11176 esac
11177 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11178fi
11179
cristy0c60a692010-11-04 01:09:47 +000011180case $host_os in
11181 darwin*)
11182 lock_old_archive_extraction=yes ;;
11183 *)
11184 lock_old_archive_extraction=no ;;
11185esac
11186
11187
11188
11189
11190
11191
cristy73bd4a52010-10-05 11:24:23 +000011192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225# If no C compiler was specified, use CC.
11226LTCC=${LTCC-"$CC"}
11227
11228# If no C compiler flags were specified, use CFLAGS.
11229LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11230
11231# Allow CC to be a program name with arguments.
11232compiler=$CC
11233
11234
11235# Check for command to grab the raw symbol name followed by C symbol from nm.
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11237$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011238if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011239 $as_echo_n "(cached) " >&6
11240else
11241
11242# These are sane defaults that work on at least a few old systems.
11243# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11244
11245# Character class describing NM global symbol codes.
11246symcode='[BCDEGRST]'
11247
11248# Regexp to match symbols that can be accessed directly from C.
11249sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11250
11251# Define system-specific variables.
11252case $host_os in
11253aix*)
11254 symcode='[BCDT]'
11255 ;;
11256cygwin* | mingw* | pw32* | cegcc*)
11257 symcode='[ABCDGISTW]'
11258 ;;
11259hpux*)
11260 if test "$host_cpu" = ia64; then
11261 symcode='[ABCDEGRST]'
11262 fi
11263 ;;
11264irix* | nonstopux*)
11265 symcode='[BCDEGRST]'
11266 ;;
11267osf*)
11268 symcode='[BCDEGQRST]'
11269 ;;
11270solaris*)
11271 symcode='[BDRT]'
11272 ;;
11273sco3.2v5*)
11274 symcode='[DT]'
11275 ;;
11276sysv4.2uw2*)
11277 symcode='[DT]'
11278 ;;
11279sysv5* | sco5v6* | unixware* | OpenUNIX*)
11280 symcode='[ABDT]'
11281 ;;
11282sysv4)
11283 symcode='[DFNSTU]'
11284 ;;
11285esac
11286
11287# If we're using GNU nm, then use its standard symbol codes.
11288case `$NM -V 2>&1` in
11289*GNU* | *'with BFD'*)
11290 symcode='[ABCDGIRSTW]' ;;
11291esac
11292
11293# Transform an extracted symbol line into a proper C declaration.
11294# Some systems (esp. on ia64) link data and code symbols differently,
11295# so use this general approach.
11296lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11297
11298# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011299lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11300lt_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 +000011301
11302# Handle CRLF in mingw tool chain
11303opt_cr=
11304case $build_os in
11305mingw*)
11306 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11307 ;;
11308esac
11309
11310# Try without a prefix underscore, then with it.
11311for ac_symprfx in "" "_"; do
11312
11313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11314 symxfrm="\\1 $ac_symprfx\\2 \\2"
11315
11316 # Write the raw and C identifiers.
11317 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11318 # Fake it for dumpbin and say T for any non-static function
11319 # and D for any global variable.
11320 # Also find C++ and __fastcall symbols from MSVC++,
11321 # which start with @ or ?.
11322 lt_cv_sys_global_symbol_pipe="$AWK '"\
11323" {last_section=section; section=\$ 3};"\
11324" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11325" \$ 0!~/External *\|/{next};"\
11326" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11327" {if(hide[section]) next};"\
11328" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11329" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11330" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11331" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11332" ' prfx=^$ac_symprfx"
11333 else
11334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11335 fi
cristyda16f162011-02-19 23:52:17 +000011336 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011337
11338 # Check to see that the pipe works correctly.
11339 pipe_works=no
11340
11341 rm -f conftest*
11342 cat > conftest.$ac_ext <<_LT_EOF
11343#ifdef __cplusplus
11344extern "C" {
11345#endif
11346char nm_test_var;
11347void nm_test_func(void);
11348void nm_test_func(void){}
11349#ifdef __cplusplus
11350}
11351#endif
11352int main(){nm_test_var='a';nm_test_func();return(0);}
11353_LT_EOF
11354
11355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11356 (eval $ac_compile) 2>&5
11357 ac_status=$?
11358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11359 test $ac_status = 0; }; then
11360 # Now try to grab the symbols.
11361 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11363 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011364 ac_status=$?
11365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11366 test $ac_status = 0; } && test -s "$nlist"; then
11367 # Try sorting and uniquifying the output.
11368 if sort "$nlist" | uniq > "$nlist"T; then
11369 mv -f "$nlist"T "$nlist"
11370 else
11371 rm -f "$nlist"T
11372 fi
11373
11374 # Make sure that we snagged all the symbols we need.
11375 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11376 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11377 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011378/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11379#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11380/* DATA imports from DLLs on WIN32 con't be const, because runtime
11381 relocations are performed -- see ld's documentation on pseudo-relocs. */
11382# define LT_DLSYM_CONST
11383#elif defined(__osf__)
11384/* This system does not cope well with relocations in const data. */
11385# define LT_DLSYM_CONST
11386#else
11387# define LT_DLSYM_CONST const
11388#endif
11389
cristy73bd4a52010-10-05 11:24:23 +000011390#ifdef __cplusplus
11391extern "C" {
11392#endif
11393
11394_LT_EOF
11395 # Now generate the symbol file.
11396 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11397
11398 cat <<_LT_EOF >> conftest.$ac_ext
11399
11400/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011401LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011402 const char *name;
11403 void *address;
11404}
11405lt__PROGRAM__LTX_preloaded_symbols[] =
11406{
11407 { "@PROGRAM@", (void *) 0 },
11408_LT_EOF
11409 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11410 cat <<\_LT_EOF >> conftest.$ac_ext
11411 {0, (void *) 0}
11412};
11413
11414/* This works around a problem in FreeBSD linker */
11415#ifdef FREEBSD_WORKAROUND
11416static const void *lt_preloaded_setup() {
11417 return lt__PROGRAM__LTX_preloaded_symbols;
11418}
11419#endif
11420
11421#ifdef __cplusplus
11422}
11423#endif
11424_LT_EOF
11425 # Now try linking the two files.
11426 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011427 lt_globsym_save_LIBS=$LIBS
11428 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011429 LIBS="conftstm.$ac_objext"
11430 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11432 (eval $ac_link) 2>&5
11433 ac_status=$?
11434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11435 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11436 pipe_works=yes
11437 fi
cristyda16f162011-02-19 23:52:17 +000011438 LIBS=$lt_globsym_save_LIBS
11439 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011440 else
11441 echo "cannot find nm_test_func in $nlist" >&5
11442 fi
11443 else
11444 echo "cannot find nm_test_var in $nlist" >&5
11445 fi
11446 else
11447 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11448 fi
11449 else
11450 echo "$progname: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11452 fi
11453 rm -rf conftest* conftst*
11454
11455 # Do not use the global_symbol_pipe unless it works.
11456 if test "$pipe_works" = yes; then
11457 break
11458 else
11459 lt_cv_sys_global_symbol_pipe=
11460 fi
11461done
11462
11463fi
11464
11465if test -z "$lt_cv_sys_global_symbol_pipe"; then
11466 lt_cv_sys_global_symbol_to_cdecl=
11467fi
11468if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11470$as_echo "failed" >&6; }
11471else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11473$as_echo "ok" >&6; }
11474fi
11475
cristyda16f162011-02-19 23:52:17 +000011476# Response file support.
11477if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11478 nm_file_list_spec='@'
11479elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11480 nm_file_list_spec='@'
11481fi
cristy73bd4a52010-10-05 11:24:23 +000011482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
cristyda16f162011-02-19 23:52:17 +000011503
11504
11505
11506
11507
11508
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11510$as_echo_n "checking for sysroot... " >&6; }
11511
11512# Check whether --with-sysroot was given.
11513if test "${with_sysroot+set}" = set; then :
11514 withval=$with_sysroot;
11515else
11516 with_sysroot=no
11517fi
11518
11519
11520lt_sysroot=
11521case ${with_sysroot} in #(
11522 yes)
11523 if test "$GCC" = yes; then
11524 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11525 fi
11526 ;; #(
11527 /*)
11528 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11529 ;; #(
11530 no|'')
11531 ;; #(
11532 *)
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11534$as_echo "${with_sysroot}" >&6; }
11535 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11536 ;;
11537esac
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11540$as_echo "${lt_sysroot:-no}" >&6; }
11541
11542
11543
11544
11545
cristy73bd4a52010-10-05 11:24:23 +000011546# Check whether --enable-libtool-lock was given.
11547if test "${enable_libtool_lock+set}" = set; then :
11548 enableval=$enable_libtool_lock;
11549fi
11550
11551test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11552
11553# Some flags need to be propagated to the compiler or linker for good
11554# libtool support.
11555case $host in
11556ia64-*-hpux*)
11557 # Find out which ABI we are using.
11558 echo 'int i;' > conftest.$ac_ext
11559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11560 (eval $ac_compile) 2>&5
11561 ac_status=$?
11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; }; then
11564 case `/usr/bin/file conftest.$ac_objext` in
11565 *ELF-32*)
11566 HPUX_IA64_MODE="32"
11567 ;;
11568 *ELF-64*)
11569 HPUX_IA64_MODE="64"
11570 ;;
11571 esac
11572 fi
11573 rm -rf conftest*
11574 ;;
11575*-*-irix6*)
11576 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011577 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011578 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 if test "$lt_cv_prog_gnu_ld" = yes; then
11584 case `/usr/bin/file conftest.$ac_objext` in
11585 *32-bit*)
11586 LD="${LD-ld} -melf32bsmip"
11587 ;;
11588 *N32*)
11589 LD="${LD-ld} -melf32bmipn32"
11590 ;;
11591 *64-bit*)
11592 LD="${LD-ld} -melf64bmip"
11593 ;;
11594 esac
11595 else
11596 case `/usr/bin/file conftest.$ac_objext` in
11597 *32-bit*)
11598 LD="${LD-ld} -32"
11599 ;;
11600 *N32*)
11601 LD="${LD-ld} -n32"
11602 ;;
11603 *64-bit*)
11604 LD="${LD-ld} -64"
11605 ;;
11606 esac
11607 fi
11608 fi
11609 rm -rf conftest*
11610 ;;
11611
11612x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11613s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11614 # Find out which ABI we are using.
11615 echo 'int i;' > conftest.$ac_ext
11616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11617 (eval $ac_compile) 2>&5
11618 ac_status=$?
11619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11620 test $ac_status = 0; }; then
11621 case `/usr/bin/file conftest.o` in
11622 *32-bit*)
11623 case $host in
11624 x86_64-*kfreebsd*-gnu)
11625 LD="${LD-ld} -m elf_i386_fbsd"
11626 ;;
11627 x86_64-*linux*)
11628 LD="${LD-ld} -m elf_i386"
11629 ;;
11630 ppc64-*linux*|powerpc64-*linux*)
11631 LD="${LD-ld} -m elf32ppclinux"
11632 ;;
11633 s390x-*linux*)
11634 LD="${LD-ld} -m elf_s390"
11635 ;;
11636 sparc64-*linux*)
11637 LD="${LD-ld} -m elf32_sparc"
11638 ;;
11639 esac
11640 ;;
11641 *64-bit*)
11642 case $host in
11643 x86_64-*kfreebsd*-gnu)
11644 LD="${LD-ld} -m elf_x86_64_fbsd"
11645 ;;
11646 x86_64-*linux*)
11647 LD="${LD-ld} -m elf_x86_64"
11648 ;;
11649 ppc*-*linux*|powerpc*-*linux*)
11650 LD="${LD-ld} -m elf64ppc"
11651 ;;
11652 s390*-*linux*|s390*-*tpf*)
11653 LD="${LD-ld} -m elf64_s390"
11654 ;;
11655 sparc*-*linux*)
11656 LD="${LD-ld} -m elf64_sparc"
11657 ;;
11658 esac
11659 ;;
11660 esac
11661 fi
11662 rm -rf conftest*
11663 ;;
11664
11665*-*-sco3.2v5*)
11666 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11667 SAVE_CFLAGS="$CFLAGS"
11668 CFLAGS="$CFLAGS -belf"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11670$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011671if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011672 $as_echo_n "(cached) " >&6
11673else
11674 ac_ext=c
11675ac_cpp='$CPP $CPPFLAGS'
11676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678ac_compiler_gnu=$ac_cv_c_compiler_gnu
11679
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681/* end confdefs.h. */
11682
11683int
11684main ()
11685{
11686
11687 ;
11688 return 0;
11689}
11690_ACEOF
11691if ac_fn_c_try_link "$LINENO"; then :
11692 lt_cv_cc_needs_belf=yes
11693else
11694 lt_cv_cc_needs_belf=no
11695fi
11696rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 ac_ext=c
11699ac_cpp='$CPP $CPPFLAGS'
11700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11702ac_compiler_gnu=$ac_cv_c_compiler_gnu
11703
11704fi
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11706$as_echo "$lt_cv_cc_needs_belf" >&6; }
11707 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11709 CFLAGS="$SAVE_CFLAGS"
11710 fi
11711 ;;
11712sparc*-*solaris*)
11713 # Find out which ABI we are using.
11714 echo 'int i;' > conftest.$ac_ext
11715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11716 (eval $ac_compile) 2>&5
11717 ac_status=$?
11718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11719 test $ac_status = 0; }; then
11720 case `/usr/bin/file conftest.o` in
11721 *64-bit*)
11722 case $lt_cv_prog_gnu_ld in
11723 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11724 *)
11725 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11726 LD="${LD-ld} -64"
11727 fi
11728 ;;
11729 esac
11730 ;;
11731 esac
11732 fi
11733 rm -rf conftest*
11734 ;;
11735esac
11736
11737need_locks="$enable_libtool_lock"
11738
cristyda16f162011-02-19 23:52:17 +000011739if test -n "$ac_tool_prefix"; then
11740 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11741set dummy ${ac_tool_prefix}mt; ac_word=$2
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743$as_echo_n "checking for $ac_word... " >&6; }
11744if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746else
11747 if test -n "$MANIFEST_TOOL"; then
11748 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11749else
11750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751for as_dir in $PATH
11752do
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11757 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 break 2
11760 fi
11761done
11762 done
11763IFS=$as_save_IFS
11764
11765fi
11766fi
11767MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11768if test -n "$MANIFEST_TOOL"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11770$as_echo "$MANIFEST_TOOL" >&6; }
11771else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773$as_echo "no" >&6; }
11774fi
11775
11776
11777fi
11778if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11779 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11780 # Extract the first word of "mt", so it can be a program name with args.
11781set dummy mt; ac_word=$2
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783$as_echo_n "checking for $ac_word... " >&6; }
11784if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786else
11787 if test -n "$ac_ct_MANIFEST_TOOL"; then
11788 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11789else
11790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $PATH
11792do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11800 fi
11801done
11802 done
11803IFS=$as_save_IFS
11804
11805fi
11806fi
11807ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11808if test -n "$ac_ct_MANIFEST_TOOL"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11810$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11811else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813$as_echo "no" >&6; }
11814fi
11815
11816 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11817 MANIFEST_TOOL=":"
11818 else
11819 case $cross_compiling:$ac_tool_warned in
11820yes:)
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11823ac_tool_warned=yes ;;
11824esac
11825 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11826 fi
11827else
11828 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11829fi
11830
11831test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11833$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11834if ${lt_cv_path_mainfest_tool+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836else
11837 lt_cv_path_mainfest_tool=no
11838 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11839 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11840 cat conftest.err >&5
11841 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11842 lt_cv_path_mainfest_tool=yes
11843 fi
11844 rm -f conftest*
11845fi
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11847$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11848if test "x$lt_cv_path_mainfest_tool" != xyes; then
11849 MANIFEST_TOOL=:
11850fi
11851
11852
11853
11854
11855
cristy73bd4a52010-10-05 11:24:23 +000011856
11857 case $host_os in
11858 rhapsody* | darwin*)
11859 if test -n "$ac_tool_prefix"; then
11860 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11861set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011864if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011865 $as_echo_n "(cached) " >&6
11866else
11867 if test -n "$DSYMUTIL"; then
11868 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11869else
11870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871for as_dir in $PATH
11872do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11877 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 break 2
11880 fi
11881done
11882 done
11883IFS=$as_save_IFS
11884
11885fi
11886fi
11887DSYMUTIL=$ac_cv_prog_DSYMUTIL
11888if test -n "$DSYMUTIL"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11890$as_echo "$DSYMUTIL" >&6; }
11891else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893$as_echo "no" >&6; }
11894fi
11895
11896
11897fi
11898if test -z "$ac_cv_prog_DSYMUTIL"; then
11899 ac_ct_DSYMUTIL=$DSYMUTIL
11900 # Extract the first word of "dsymutil", so it can be a program name with args.
11901set dummy dsymutil; ac_word=$2
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011904if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011905 $as_echo_n "(cached) " >&6
11906else
11907 if test -n "$ac_ct_DSYMUTIL"; then
11908 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11909else
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 break 2
11920 fi
11921done
11922 done
11923IFS=$as_save_IFS
11924
11925fi
11926fi
11927ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11928if test -n "$ac_ct_DSYMUTIL"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11930$as_echo "$ac_ct_DSYMUTIL" >&6; }
11931else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
11934fi
11935
11936 if test "x$ac_ct_DSYMUTIL" = x; then
11937 DSYMUTIL=":"
11938 else
11939 case $cross_compiling:$ac_tool_warned in
11940yes:)
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943ac_tool_warned=yes ;;
11944esac
11945 DSYMUTIL=$ac_ct_DSYMUTIL
11946 fi
11947else
11948 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11949fi
11950
11951 if test -n "$ac_tool_prefix"; then
11952 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11953set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011956if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011957 $as_echo_n "(cached) " >&6
11958else
11959 if test -n "$NMEDIT"; then
11960 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11961else
11962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963for as_dir in $PATH
11964do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 break 2
11972 fi
11973done
11974 done
11975IFS=$as_save_IFS
11976
11977fi
11978fi
11979NMEDIT=$ac_cv_prog_NMEDIT
11980if test -n "$NMEDIT"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11982$as_echo "$NMEDIT" >&6; }
11983else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
11986fi
11987
11988
11989fi
11990if test -z "$ac_cv_prog_NMEDIT"; then
11991 ac_ct_NMEDIT=$NMEDIT
11992 # Extract the first word of "nmedit", so it can be a program name with args.
11993set dummy nmedit; ac_word=$2
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011996if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011997 $as_echo_n "(cached) " >&6
11998else
11999 if test -n "$ac_ct_NMEDIT"; then
12000 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12001else
12002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003for as_dir in $PATH
12004do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12012 fi
12013done
12014 done
12015IFS=$as_save_IFS
12016
12017fi
12018fi
12019ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12020if test -n "$ac_ct_NMEDIT"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12022$as_echo "$ac_ct_NMEDIT" >&6; }
12023else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025$as_echo "no" >&6; }
12026fi
12027
12028 if test "x$ac_ct_NMEDIT" = x; then
12029 NMEDIT=":"
12030 else
12031 case $cross_compiling:$ac_tool_warned in
12032yes:)
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12035ac_tool_warned=yes ;;
12036esac
12037 NMEDIT=$ac_ct_NMEDIT
12038 fi
12039else
12040 NMEDIT="$ac_cv_prog_NMEDIT"
12041fi
12042
12043 if test -n "$ac_tool_prefix"; then
12044 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12045set dummy ${ac_tool_prefix}lipo; ac_word=$2
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012048if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012049 $as_echo_n "(cached) " >&6
12050else
12051 if test -n "$LIPO"; then
12052 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12053else
12054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055for as_dir in $PATH
12056do
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12064 fi
12065done
12066 done
12067IFS=$as_save_IFS
12068
12069fi
12070fi
12071LIPO=$ac_cv_prog_LIPO
12072if test -n "$LIPO"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12074$as_echo "$LIPO" >&6; }
12075else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
12078fi
12079
12080
12081fi
12082if test -z "$ac_cv_prog_LIPO"; then
12083 ac_ct_LIPO=$LIPO
12084 # Extract the first word of "lipo", so it can be a program name with args.
12085set dummy lipo; ac_word=$2
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012088if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012089 $as_echo_n "(cached) " >&6
12090else
12091 if test -n "$ac_ct_LIPO"; then
12092 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12093else
12094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095for as_dir in $PATH
12096do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_ac_ct_LIPO="lipo"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105done
12106 done
12107IFS=$as_save_IFS
12108
12109fi
12110fi
12111ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12112if test -n "$ac_ct_LIPO"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12114$as_echo "$ac_ct_LIPO" >&6; }
12115else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118fi
12119
12120 if test "x$ac_ct_LIPO" = x; then
12121 LIPO=":"
12122 else
12123 case $cross_compiling:$ac_tool_warned in
12124yes:)
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12127ac_tool_warned=yes ;;
12128esac
12129 LIPO=$ac_ct_LIPO
12130 fi
12131else
12132 LIPO="$ac_cv_prog_LIPO"
12133fi
12134
12135 if test -n "$ac_tool_prefix"; then
12136 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12137set dummy ${ac_tool_prefix}otool; ac_word=$2
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012140if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012141 $as_echo_n "(cached) " >&6
12142else
12143 if test -n "$OTOOL"; then
12144 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12145else
12146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147for as_dir in $PATH
12148do
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12153 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12156 fi
12157done
12158 done
12159IFS=$as_save_IFS
12160
12161fi
12162fi
12163OTOOL=$ac_cv_prog_OTOOL
12164if test -n "$OTOOL"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12166$as_echo "$OTOOL" >&6; }
12167else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169$as_echo "no" >&6; }
12170fi
12171
12172
12173fi
12174if test -z "$ac_cv_prog_OTOOL"; then
12175 ac_ct_OTOOL=$OTOOL
12176 # Extract the first word of "otool", so it can be a program name with args.
12177set dummy otool; ac_word=$2
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012180if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012181 $as_echo_n "(cached) " >&6
12182else
12183 if test -n "$ac_ct_OTOOL"; then
12184 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12185else
12186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12193 ac_cv_prog_ac_ct_OTOOL="otool"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12196 fi
12197done
12198 done
12199IFS=$as_save_IFS
12200
12201fi
12202fi
12203ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12204if test -n "$ac_ct_OTOOL"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12206$as_echo "$ac_ct_OTOOL" >&6; }
12207else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209$as_echo "no" >&6; }
12210fi
12211
12212 if test "x$ac_ct_OTOOL" = x; then
12213 OTOOL=":"
12214 else
12215 case $cross_compiling:$ac_tool_warned in
12216yes:)
12217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12219ac_tool_warned=yes ;;
12220esac
12221 OTOOL=$ac_ct_OTOOL
12222 fi
12223else
12224 OTOOL="$ac_cv_prog_OTOOL"
12225fi
12226
12227 if test -n "$ac_tool_prefix"; then
12228 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12229set dummy ${ac_tool_prefix}otool64; ac_word=$2
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012232if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012233 $as_echo_n "(cached) " >&6
12234else
12235 if test -n "$OTOOL64"; then
12236 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12237else
12238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239for as_dir in $PATH
12240do
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 break 2
12248 fi
12249done
12250 done
12251IFS=$as_save_IFS
12252
12253fi
12254fi
12255OTOOL64=$ac_cv_prog_OTOOL64
12256if test -n "$OTOOL64"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12258$as_echo "$OTOOL64" >&6; }
12259else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261$as_echo "no" >&6; }
12262fi
12263
12264
12265fi
12266if test -z "$ac_cv_prog_OTOOL64"; then
12267 ac_ct_OTOOL64=$OTOOL64
12268 # Extract the first word of "otool64", so it can be a program name with args.
12269set dummy otool64; ac_word=$2
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012272if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012273 $as_echo_n "(cached) " >&6
12274else
12275 if test -n "$ac_ct_OTOOL64"; then
12276 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12277else
12278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $PATH
12280do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12285 ac_cv_prog_ac_ct_OTOOL64="otool64"
12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12288 fi
12289done
12290 done
12291IFS=$as_save_IFS
12292
12293fi
12294fi
12295ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12296if test -n "$ac_ct_OTOOL64"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12298$as_echo "$ac_ct_OTOOL64" >&6; }
12299else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301$as_echo "no" >&6; }
12302fi
12303
12304 if test "x$ac_ct_OTOOL64" = x; then
12305 OTOOL64=":"
12306 else
12307 case $cross_compiling:$ac_tool_warned in
12308yes:)
12309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12311ac_tool_warned=yes ;;
12312esac
12313 OTOOL64=$ac_ct_OTOOL64
12314 fi
12315else
12316 OTOOL64="$ac_cv_prog_OTOOL64"
12317fi
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12346$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012347if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012348 $as_echo_n "(cached) " >&6
12349else
12350 lt_cv_apple_cc_single_mod=no
12351 if test -z "${LT_MULTI_MODULE}"; then
12352 # By default we will add the -single_module flag. You can override
12353 # by either setting the environment variable LT_MULTI_MODULE
12354 # non-empty at configure time, or by adding -multi_module to the
12355 # link flags.
12356 rm -rf libconftest.dylib*
12357 echo "int foo(void){return 1;}" > conftest.c
12358 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12359-dynamiclib -Wl,-single_module conftest.c" >&5
12360 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12361 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12362 _lt_result=$?
12363 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12364 lt_cv_apple_cc_single_mod=yes
12365 else
12366 cat conftest.err >&5
12367 fi
12368 rm -rf libconftest.dylib*
12369 rm -f conftest.*
12370 fi
12371fi
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12373$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12375$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012376if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012377 $as_echo_n "(cached) " >&6
12378else
12379 lt_cv_ld_exported_symbols_list=no
12380 save_LDFLAGS=$LDFLAGS
12381 echo "_main" > conftest.sym
12382 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384/* end confdefs.h. */
12385
12386int
12387main ()
12388{
12389
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394if ac_fn_c_try_link "$LINENO"; then :
12395 lt_cv_ld_exported_symbols_list=yes
12396else
12397 lt_cv_ld_exported_symbols_list=no
12398fi
12399rm -f core conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401 LDFLAGS="$save_LDFLAGS"
12402
12403fi
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12405$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12407$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012408if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012409 $as_echo_n "(cached) " >&6
12410else
12411 lt_cv_ld_force_load=no
12412 cat > conftest.c << _LT_EOF
12413int forced_loaded() { return 2;}
12414_LT_EOF
12415 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12416 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12417 echo "$AR cru libconftest.a conftest.o" >&5
12418 $AR cru libconftest.a conftest.o 2>&5
12419 echo "$RANLIB libconftest.a" >&5
12420 $RANLIB libconftest.a 2>&5
12421 cat > conftest.c << _LT_EOF
12422int main() { return 0;}
12423_LT_EOF
12424 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12425 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12426 _lt_result=$?
12427 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12428 lt_cv_ld_force_load=yes
12429 else
12430 cat conftest.err >&5
12431 fi
12432 rm -f conftest.err libconftest.a conftest conftest.c
12433 rm -rf conftest.dSYM
12434
12435fi
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12437$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012438 case $host_os in
12439 rhapsody* | darwin1.[012])
12440 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12441 darwin1.*)
12442 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12443 darwin*) # darwin 5.x on
12444 # if running on 10.5 or later, the deployment target defaults
12445 # to the OS version, if on x86, and 10.4, the deployment
12446 # target defaults to 10.4. Don't you love it?
12447 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12448 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12449 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12450 10.[012]*)
12451 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12452 10.*)
12453 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12454 esac
12455 ;;
12456 esac
12457 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12458 _lt_dar_single_mod='$single_module'
12459 fi
12460 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12461 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12462 else
12463 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12464 fi
cristy0c60a692010-11-04 01:09:47 +000012465 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012466 _lt_dsymutil='~$DSYMUTIL $lib || :'
12467 else
12468 _lt_dsymutil=
12469 fi
12470 ;;
12471 esac
12472
12473for ac_header in dlfcn.h
12474do :
12475 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12476"
cristyda16f162011-02-19 23:52:17 +000012477if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012478 cat >>confdefs.h <<_ACEOF
12479#define HAVE_DLFCN_H 1
12480_ACEOF
12481
12482fi
12483
12484done
12485
12486
12487
cristy73bd4a52010-10-05 11:24:23 +000012488
cristyda16f162011-02-19 23:52:17 +000012489func_stripname_cnf ()
12490{
12491 case ${2} in
12492 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12493 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12494 esac
12495} # func_stripname_cnf
12496
12497
12498
cristy73bd4a52010-10-05 11:24:23 +000012499
12500
12501# Set options
12502enable_win32_dll=yes
12503
12504case $host in
cristy0c60a692010-11-04 01:09:47 +000012505*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012506 if test -n "$ac_tool_prefix"; then
12507 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12508set dummy ${ac_tool_prefix}as; ac_word=$2
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012511if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012512 $as_echo_n "(cached) " >&6
12513else
12514 if test -n "$AS"; then
12515 ac_cv_prog_AS="$AS" # Let the user override the test.
12516else
12517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518for as_dir in $PATH
12519do
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_exec_ext in '' $ac_executable_extensions; do
12523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12524 ac_cv_prog_AS="${ac_tool_prefix}as"
12525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 break 2
12527 fi
12528done
12529 done
12530IFS=$as_save_IFS
12531
12532fi
12533fi
12534AS=$ac_cv_prog_AS
12535if test -n "$AS"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12537$as_echo "$AS" >&6; }
12538else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540$as_echo "no" >&6; }
12541fi
12542
12543
12544fi
12545if test -z "$ac_cv_prog_AS"; then
12546 ac_ct_AS=$AS
12547 # Extract the first word of "as", so it can be a program name with args.
12548set dummy as; ac_word=$2
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012551if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012552 $as_echo_n "(cached) " >&6
12553else
12554 if test -n "$ac_ct_AS"; then
12555 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12556else
12557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $PATH
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_prog_ac_ct_AS="as"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568done
12569 done
12570IFS=$as_save_IFS
12571
12572fi
12573fi
12574ac_ct_AS=$ac_cv_prog_ac_ct_AS
12575if test -n "$ac_ct_AS"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12577$as_echo "$ac_ct_AS" >&6; }
12578else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
12581fi
12582
12583 if test "x$ac_ct_AS" = x; then
12584 AS="false"
12585 else
12586 case $cross_compiling:$ac_tool_warned in
12587yes:)
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12590ac_tool_warned=yes ;;
12591esac
12592 AS=$ac_ct_AS
12593 fi
12594else
12595 AS="$ac_cv_prog_AS"
12596fi
12597
12598 if test -n "$ac_tool_prefix"; then
12599 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12600set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012603if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012604 $as_echo_n "(cached) " >&6
12605else
12606 if test -n "$DLLTOOL"; then
12607 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12608else
12609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610for as_dir in $PATH
12611do
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12616 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12619 fi
12620done
12621 done
12622IFS=$as_save_IFS
12623
12624fi
12625fi
12626DLLTOOL=$ac_cv_prog_DLLTOOL
12627if test -n "$DLLTOOL"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12629$as_echo "$DLLTOOL" >&6; }
12630else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
12633fi
12634
12635
12636fi
12637if test -z "$ac_cv_prog_DLLTOOL"; then
12638 ac_ct_DLLTOOL=$DLLTOOL
12639 # Extract the first word of "dlltool", so it can be a program name with args.
12640set dummy dlltool; ac_word=$2
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012643if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012644 $as_echo_n "(cached) " >&6
12645else
12646 if test -n "$ac_ct_DLLTOOL"; then
12647 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12648else
12649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650for as_dir in $PATH
12651do
12652 IFS=$as_save_IFS
12653 test -z "$as_dir" && as_dir=.
12654 for ac_exec_ext in '' $ac_executable_extensions; do
12655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12656 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12658 break 2
12659 fi
12660done
12661 done
12662IFS=$as_save_IFS
12663
12664fi
12665fi
12666ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12667if test -n "$ac_ct_DLLTOOL"; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12669$as_echo "$ac_ct_DLLTOOL" >&6; }
12670else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672$as_echo "no" >&6; }
12673fi
12674
12675 if test "x$ac_ct_DLLTOOL" = x; then
12676 DLLTOOL="false"
12677 else
12678 case $cross_compiling:$ac_tool_warned in
12679yes:)
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12682ac_tool_warned=yes ;;
12683esac
12684 DLLTOOL=$ac_ct_DLLTOOL
12685 fi
12686else
12687 DLLTOOL="$ac_cv_prog_DLLTOOL"
12688fi
12689
12690 if test -n "$ac_tool_prefix"; then
12691 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12692set dummy ${ac_tool_prefix}objdump; ac_word=$2
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012695if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012696 $as_echo_n "(cached) " >&6
12697else
12698 if test -n "$OBJDUMP"; then
12699 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12700else
12701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702for as_dir in $PATH
12703do
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
12706 for ac_exec_ext in '' $ac_executable_extensions; do
12707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12708 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710 break 2
12711 fi
12712done
12713 done
12714IFS=$as_save_IFS
12715
12716fi
12717fi
12718OBJDUMP=$ac_cv_prog_OBJDUMP
12719if test -n "$OBJDUMP"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12721$as_echo "$OBJDUMP" >&6; }
12722else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724$as_echo "no" >&6; }
12725fi
12726
12727
12728fi
12729if test -z "$ac_cv_prog_OBJDUMP"; then
12730 ac_ct_OBJDUMP=$OBJDUMP
12731 # Extract the first word of "objdump", so it can be a program name with args.
12732set dummy objdump; ac_word=$2
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012735if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012736 $as_echo_n "(cached) " >&6
12737else
12738 if test -n "$ac_ct_OBJDUMP"; then
12739 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12740else
12741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742for as_dir in $PATH
12743do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12751 fi
12752done
12753 done
12754IFS=$as_save_IFS
12755
12756fi
12757fi
12758ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12759if test -n "$ac_ct_OBJDUMP"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12761$as_echo "$ac_ct_OBJDUMP" >&6; }
12762else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765fi
12766
12767 if test "x$ac_ct_OBJDUMP" = x; then
12768 OBJDUMP="false"
12769 else
12770 case $cross_compiling:$ac_tool_warned in
12771yes:)
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12774ac_tool_warned=yes ;;
12775esac
12776 OBJDUMP=$ac_ct_OBJDUMP
12777 fi
12778else
12779 OBJDUMP="$ac_cv_prog_OBJDUMP"
12780fi
12781
12782 ;;
12783esac
12784
12785test -z "$AS" && AS=as
12786
12787
12788
12789
12790
12791test -z "$DLLTOOL" && DLLTOOL=dlltool
12792
12793
12794
12795
12796
12797test -z "$OBJDUMP" && OBJDUMP=objdump
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807 # Check whether --enable-shared was given.
12808if test "${enable_shared+set}" = set; then :
12809 enableval=$enable_shared; p=${PACKAGE-default}
12810 case $enableval in
12811 yes) enable_shared=yes ;;
12812 no) enable_shared=no ;;
12813 *)
12814 enable_shared=no
12815 # Look at the argument we got. We use all the common list separators.
12816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12817 for pkg in $enableval; do
12818 IFS="$lt_save_ifs"
12819 if test "X$pkg" = "X$p"; then
12820 enable_shared=yes
12821 fi
12822 done
12823 IFS="$lt_save_ifs"
12824 ;;
12825 esac
12826else
12827 enable_shared=yes
12828fi
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838 # Check whether --enable-static was given.
12839if test "${enable_static+set}" = set; then :
12840 enableval=$enable_static; p=${PACKAGE-default}
12841 case $enableval in
12842 yes) enable_static=yes ;;
12843 no) enable_static=no ;;
12844 *)
12845 enable_static=no
12846 # Look at the argument we got. We use all the common list separators.
12847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12848 for pkg in $enableval; do
12849 IFS="$lt_save_ifs"
12850 if test "X$pkg" = "X$p"; then
12851 enable_static=yes
12852 fi
12853 done
12854 IFS="$lt_save_ifs"
12855 ;;
12856 esac
12857else
12858 enable_static=yes
12859fi
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870# Check whether --with-pic was given.
12871if test "${with_pic+set}" = set; then :
12872 withval=$with_pic; pic_mode="$withval"
12873else
12874 pic_mode=default
12875fi
12876
12877
12878test -z "$pic_mode" && pic_mode=default
12879
12880
12881
12882
12883
12884
12885
12886 # Check whether --enable-fast-install was given.
12887if test "${enable_fast_install+set}" = set; then :
12888 enableval=$enable_fast_install; p=${PACKAGE-default}
12889 case $enableval in
12890 yes) enable_fast_install=yes ;;
12891 no) enable_fast_install=no ;;
12892 *)
12893 enable_fast_install=no
12894 # Look at the argument we got. We use all the common list separators.
12895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12896 for pkg in $enableval; do
12897 IFS="$lt_save_ifs"
12898 if test "X$pkg" = "X$p"; then
12899 enable_fast_install=yes
12900 fi
12901 done
12902 IFS="$lt_save_ifs"
12903 ;;
12904 esac
12905else
12906 enable_fast_install=yes
12907fi
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919# This can be used to rebuild libtool when needed
12920LIBTOOL_DEPS="$ltmain"
12921
12922# Always use our own libtool.
12923LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
cristy0c60a692010-11-04 01:09:47 +000012949
cristy73bd4a52010-10-05 11:24:23 +000012950test -z "$LN_S" && LN_S="ln -s"
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965if test -n "${ZSH_VERSION+set}" ; then
12966 setopt NO_GLOB_SUBST
12967fi
12968
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12970$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012971if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012972 $as_echo_n "(cached) " >&6
12973else
12974 rm -f .libs 2>/dev/null
12975mkdir .libs 2>/dev/null
12976if test -d .libs; then
12977 lt_cv_objdir=.libs
12978else
12979 # MS-DOS does not allow filenames that begin with a dot.
12980 lt_cv_objdir=_libs
12981fi
12982rmdir .libs 2>/dev/null
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12985$as_echo "$lt_cv_objdir" >&6; }
12986objdir=$lt_cv_objdir
12987
12988
12989
12990
12991
12992cat >>confdefs.h <<_ACEOF
12993#define LT_OBJDIR "$lt_cv_objdir/"
12994_ACEOF
12995
12996
12997
12998
cristy73bd4a52010-10-05 11:24:23 +000012999case $host_os in
13000aix3*)
13001 # AIX sometimes has problems with the GCC collect2 program. For some
13002 # reason, if we set the COLLECT_NAMES environment variable, the problems
13003 # vanish in a puff of smoke.
13004 if test "X${COLLECT_NAMES+set}" != Xset; then
13005 COLLECT_NAMES=
13006 export COLLECT_NAMES
13007 fi
13008 ;;
13009esac
13010
cristy73bd4a52010-10-05 11:24:23 +000013011# Global variables:
13012ofile=libtool
13013can_build_shared=yes
13014
13015# All known linkers require a `.a' archive for static linking (except MSVC,
13016# which needs '.lib').
13017libext=a
13018
13019with_gnu_ld="$lt_cv_prog_gnu_ld"
13020
13021old_CC="$CC"
13022old_CFLAGS="$CFLAGS"
13023
13024# Set sane defaults for various variables
13025test -z "$CC" && CC=cc
13026test -z "$LTCC" && LTCC=$CC
13027test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13028test -z "$LD" && LD=ld
13029test -z "$ac_objext" && ac_objext=o
13030
13031for cc_temp in $compiler""; do
13032 case $cc_temp in
13033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13035 \-*) ;;
13036 *) break;;
13037 esac
13038done
cristy0c60a692010-11-04 01:09:47 +000013039cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013040
13041
13042# Only perform the check for file, if the check method requires it
13043test -z "$MAGIC_CMD" && MAGIC_CMD=file
13044case $deplibs_check_method in
13045file_magic*)
13046 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13048$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013049if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013050 $as_echo_n "(cached) " >&6
13051else
13052 case $MAGIC_CMD in
13053[\\/*] | ?:[\\/]*)
13054 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13055 ;;
13056*)
13057 lt_save_MAGIC_CMD="$MAGIC_CMD"
13058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13059 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13060 for ac_dir in $ac_dummy; do
13061 IFS="$lt_save_ifs"
13062 test -z "$ac_dir" && ac_dir=.
13063 if test -f $ac_dir/${ac_tool_prefix}file; then
13064 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13065 if test -n "$file_magic_test_file"; then
13066 case $deplibs_check_method in
13067 "file_magic "*)
13068 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13070 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13071 $EGREP "$file_magic_regex" > /dev/null; then
13072 :
13073 else
13074 cat <<_LT_EOF 1>&2
13075
13076*** Warning: the command libtool uses to detect shared libraries,
13077*** $file_magic_cmd, produces output that libtool cannot recognize.
13078*** The result is that libtool may fail to recognize shared libraries
13079*** as such. This will affect the creation of libtool libraries that
13080*** depend on shared libraries, but programs linked with such libtool
13081*** libraries will work regardless of this problem. Nevertheless, you
13082*** may want to report the problem to your system manager and/or to
13083*** bug-libtool@gnu.org
13084
13085_LT_EOF
13086 fi ;;
13087 esac
13088 fi
13089 break
13090 fi
13091 done
13092 IFS="$lt_save_ifs"
13093 MAGIC_CMD="$lt_save_MAGIC_CMD"
13094 ;;
13095esac
13096fi
13097
13098MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13099if test -n "$MAGIC_CMD"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13101$as_echo "$MAGIC_CMD" >&6; }
13102else
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104$as_echo "no" >&6; }
13105fi
13106
13107
13108
13109
13110
13111if test -z "$lt_cv_path_MAGIC_CMD"; then
13112 if test -n "$ac_tool_prefix"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13114$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013115if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013116 $as_echo_n "(cached) " >&6
13117else
13118 case $MAGIC_CMD in
13119[\\/*] | ?:[\\/]*)
13120 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13121 ;;
13122*)
13123 lt_save_MAGIC_CMD="$MAGIC_CMD"
13124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13125 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13126 for ac_dir in $ac_dummy; do
13127 IFS="$lt_save_ifs"
13128 test -z "$ac_dir" && ac_dir=.
13129 if test -f $ac_dir/file; then
13130 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13131 if test -n "$file_magic_test_file"; then
13132 case $deplibs_check_method in
13133 "file_magic "*)
13134 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13135 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13136 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13137 $EGREP "$file_magic_regex" > /dev/null; then
13138 :
13139 else
13140 cat <<_LT_EOF 1>&2
13141
13142*** Warning: the command libtool uses to detect shared libraries,
13143*** $file_magic_cmd, produces output that libtool cannot recognize.
13144*** The result is that libtool may fail to recognize shared libraries
13145*** as such. This will affect the creation of libtool libraries that
13146*** depend on shared libraries, but programs linked with such libtool
13147*** libraries will work regardless of this problem. Nevertheless, you
13148*** may want to report the problem to your system manager and/or to
13149*** bug-libtool@gnu.org
13150
13151_LT_EOF
13152 fi ;;
13153 esac
13154 fi
13155 break
13156 fi
13157 done
13158 IFS="$lt_save_ifs"
13159 MAGIC_CMD="$lt_save_MAGIC_CMD"
13160 ;;
13161esac
13162fi
13163
13164MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13165if test -n "$MAGIC_CMD"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13167$as_echo "$MAGIC_CMD" >&6; }
13168else
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
13171fi
13172
13173
13174 else
13175 MAGIC_CMD=:
13176 fi
13177fi
13178
13179 fi
13180 ;;
13181esac
13182
13183# Use C for the default configuration in the libtool script
13184
13185lt_save_CC="$CC"
13186ac_ext=c
13187ac_cpp='$CPP $CPPFLAGS'
13188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13190ac_compiler_gnu=$ac_cv_c_compiler_gnu
13191
13192
13193# Source file extension for C test sources.
13194ac_ext=c
13195
13196# Object file extension for compiled C test sources.
13197objext=o
13198objext=$objext
13199
13200# Code to be used in simple compile tests
13201lt_simple_compile_test_code="int some_variable = 0;"
13202
13203# Code to be used in simple link tests
13204lt_simple_link_test_code='int main(){return(0);}'
13205
13206
13207
13208
13209
13210
13211
13212# If no C compiler was specified, use CC.
13213LTCC=${LTCC-"$CC"}
13214
13215# If no C compiler flags were specified, use CFLAGS.
13216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13217
13218# Allow CC to be a program name with arguments.
13219compiler=$CC
13220
13221# Save the default compiler, since it gets overwritten when the other
13222# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13223compiler_DEFAULT=$CC
13224
13225# save warnings/boilerplate of simple test code
13226ac_outfile=conftest.$ac_objext
13227echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13228eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13229_lt_compiler_boilerplate=`cat conftest.err`
13230$RM conftest*
13231
13232ac_outfile=conftest.$ac_objext
13233echo "$lt_simple_link_test_code" >conftest.$ac_ext
13234eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13235_lt_linker_boilerplate=`cat conftest.err`
13236$RM -r conftest*
13237
13238
13239## CAVEAT EMPTOR:
13240## There is no encapsulation within the following macros, do not change
13241## the running order or otherwise move them around unless you know exactly
13242## what you are doing...
13243if test -n "$compiler"; then
13244
13245lt_prog_compiler_no_builtin_flag=
13246
13247if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013248 case $cc_basename in
13249 nvcc*)
13250 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13251 *)
13252 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13253 esac
cristy73bd4a52010-10-05 11:24:23 +000013254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13256$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013257if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013258 $as_echo_n "(cached) " >&6
13259else
13260 lt_cv_prog_compiler_rtti_exceptions=no
13261 ac_outfile=conftest.$ac_objext
13262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13263 lt_compiler_flag="-fno-rtti -fno-exceptions"
13264 # Insert the option either (1) after the last *FLAGS variable, or
13265 # (2) before a word containing "conftest.", or (3) at the end.
13266 # Note that $ac_compile itself does not contain backslashes and begins
13267 # with a dollar sign (not a hyphen), so the echo should work correctly.
13268 # The option is referenced via a variable to avoid confusing sed.
13269 lt_compile=`echo "$ac_compile" | $SED \
13270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13272 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013274 (eval "$lt_compile" 2>conftest.err)
13275 ac_status=$?
13276 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013278 if (exit $ac_status) && test -s "$ac_outfile"; then
13279 # The compiler can only warn and ignore the option if not recognized
13280 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13284 lt_cv_prog_compiler_rtti_exceptions=yes
13285 fi
13286 fi
13287 $RM conftest*
13288
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13291$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13292
13293if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13294 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13295else
13296 :
13297fi
13298
13299fi
13300
13301
13302
13303
13304
13305
13306 lt_prog_compiler_wl=
13307lt_prog_compiler_pic=
13308lt_prog_compiler_static=
13309
cristy73bd4a52010-10-05 11:24:23 +000013310
13311 if test "$GCC" = yes; then
13312 lt_prog_compiler_wl='-Wl,'
13313 lt_prog_compiler_static='-static'
13314
13315 case $host_os in
13316 aix*)
13317 # All AIX code is PIC.
13318 if test "$host_cpu" = ia64; then
13319 # AIX 5 now supports IA64 processor
13320 lt_prog_compiler_static='-Bstatic'
13321 fi
13322 ;;
13323
13324 amigaos*)
13325 case $host_cpu in
13326 powerpc)
13327 # see comment about AmigaOS4 .so support
13328 lt_prog_compiler_pic='-fPIC'
13329 ;;
13330 m68k)
13331 # FIXME: we need at least 68020 code to build shared libraries, but
13332 # adding the `-m68020' flag to GCC prevents building anything better,
13333 # like `-m68040'.
13334 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13335 ;;
13336 esac
13337 ;;
13338
13339 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13340 # PIC is the default for these OSes.
13341 ;;
13342
13343 mingw* | cygwin* | pw32* | os2* | cegcc*)
13344 # This hack is so that the source file can tell whether it is being
13345 # built for inclusion in a dll (and should export symbols for example).
13346 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13347 # (--disable-auto-import) libraries
13348 lt_prog_compiler_pic='-DDLL_EXPORT'
13349 ;;
13350
13351 darwin* | rhapsody*)
13352 # PIC is the default on this platform
13353 # Common symbols not allowed in MH_DYLIB files
13354 lt_prog_compiler_pic='-fno-common'
13355 ;;
13356
cristy0c60a692010-11-04 01:09:47 +000013357 haiku*)
13358 # PIC is the default for Haiku.
13359 # The "-static" flag exists, but is broken.
13360 lt_prog_compiler_static=
13361 ;;
13362
cristy73bd4a52010-10-05 11:24:23 +000013363 hpux*)
13364 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13365 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13366 # sets the default TLS model and affects inlining.
13367 case $host_cpu in
13368 hppa*64*)
13369 # +Z the default
13370 ;;
13371 *)
13372 lt_prog_compiler_pic='-fPIC'
13373 ;;
13374 esac
13375 ;;
13376
13377 interix[3-9]*)
13378 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13379 # Instead, we relocate shared libraries at runtime.
13380 ;;
13381
13382 msdosdjgpp*)
13383 # Just because we use GCC doesn't mean we suddenly get shared libraries
13384 # on systems that don't support them.
13385 lt_prog_compiler_can_build_shared=no
13386 enable_shared=no
13387 ;;
13388
13389 *nto* | *qnx*)
13390 # QNX uses GNU C++, but need to define -shared option too, otherwise
13391 # it will coredump.
13392 lt_prog_compiler_pic='-fPIC -shared'
13393 ;;
13394
13395 sysv4*MP*)
13396 if test -d /usr/nec; then
13397 lt_prog_compiler_pic=-Kconform_pic
13398 fi
13399 ;;
13400
13401 *)
13402 lt_prog_compiler_pic='-fPIC'
13403 ;;
13404 esac
cristy0c60a692010-11-04 01:09:47 +000013405
13406 case $cc_basename in
13407 nvcc*) # Cuda Compiler Driver 2.2
13408 lt_prog_compiler_wl='-Xlinker '
13409 lt_prog_compiler_pic='-Xcompiler -fPIC'
13410 ;;
13411 esac
cristy73bd4a52010-10-05 11:24:23 +000013412 else
13413 # PORTME Check for flag to pass linker flags through the system compiler.
13414 case $host_os in
13415 aix*)
13416 lt_prog_compiler_wl='-Wl,'
13417 if test "$host_cpu" = ia64; then
13418 # AIX 5 now supports IA64 processor
13419 lt_prog_compiler_static='-Bstatic'
13420 else
13421 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13422 fi
13423 ;;
13424
13425 mingw* | cygwin* | pw32* | os2* | cegcc*)
13426 # This hack is so that the source file can tell whether it is being
13427 # built for inclusion in a dll (and should export symbols for example).
13428 lt_prog_compiler_pic='-DDLL_EXPORT'
13429 ;;
13430
13431 hpux9* | hpux10* | hpux11*)
13432 lt_prog_compiler_wl='-Wl,'
13433 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13434 # not for PA HP-UX.
13435 case $host_cpu in
13436 hppa*64*|ia64*)
13437 # +Z the default
13438 ;;
13439 *)
13440 lt_prog_compiler_pic='+Z'
13441 ;;
13442 esac
13443 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13444 lt_prog_compiler_static='${wl}-a ${wl}archive'
13445 ;;
13446
13447 irix5* | irix6* | nonstopux*)
13448 lt_prog_compiler_wl='-Wl,'
13449 # PIC (with -KPIC) is the default.
13450 lt_prog_compiler_static='-non_shared'
13451 ;;
13452
cristy0c60a692010-11-04 01:09:47 +000013453 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013454 case $cc_basename in
13455 # old Intel for x86_64 which still supported -KPIC.
13456 ecc*)
13457 lt_prog_compiler_wl='-Wl,'
13458 lt_prog_compiler_pic='-KPIC'
13459 lt_prog_compiler_static='-static'
13460 ;;
13461 # icc used to be incompatible with GCC.
13462 # ICC 10 doesn't accept -KPIC any more.
13463 icc* | ifort*)
13464 lt_prog_compiler_wl='-Wl,'
13465 lt_prog_compiler_pic='-fPIC'
13466 lt_prog_compiler_static='-static'
13467 ;;
13468 # Lahey Fortran 8.1.
13469 lf95*)
13470 lt_prog_compiler_wl='-Wl,'
13471 lt_prog_compiler_pic='--shared'
13472 lt_prog_compiler_static='--static'
13473 ;;
cristyda16f162011-02-19 23:52:17 +000013474 nagfor*)
13475 # NAG Fortran compiler
13476 lt_prog_compiler_wl='-Wl,-Wl,,'
13477 lt_prog_compiler_pic='-PIC'
13478 lt_prog_compiler_static='-Bstatic'
13479 ;;
cristy0c60a692010-11-04 01:09:47 +000013480 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013481 # Portland Group compilers (*not* the Pentium gcc compiler,
13482 # which looks to be a dead project)
13483 lt_prog_compiler_wl='-Wl,'
13484 lt_prog_compiler_pic='-fpic'
13485 lt_prog_compiler_static='-Bstatic'
13486 ;;
13487 ccc*)
13488 lt_prog_compiler_wl='-Wl,'
13489 # All Alpha code is PIC.
13490 lt_prog_compiler_static='-non_shared'
13491 ;;
cristy0c60a692010-11-04 01:09:47 +000013492 xl* | bgxl* | bgf* | mpixl*)
13493 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013494 lt_prog_compiler_wl='-Wl,'
13495 lt_prog_compiler_pic='-qpic'
13496 lt_prog_compiler_static='-qstaticlink'
13497 ;;
13498 *)
13499 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013500 *Sun\ F* | *Sun*Fortran*)
13501 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13502 lt_prog_compiler_pic='-KPIC'
13503 lt_prog_compiler_static='-Bstatic'
13504 lt_prog_compiler_wl=''
13505 ;;
cristy73bd4a52010-10-05 11:24:23 +000013506 *Sun\ C*)
13507 # Sun C 5.9
13508 lt_prog_compiler_pic='-KPIC'
13509 lt_prog_compiler_static='-Bstatic'
13510 lt_prog_compiler_wl='-Wl,'
13511 ;;
cristy73bd4a52010-10-05 11:24:23 +000013512 esac
13513 ;;
13514 esac
13515 ;;
13516
13517 newsos6)
13518 lt_prog_compiler_pic='-KPIC'
13519 lt_prog_compiler_static='-Bstatic'
13520 ;;
13521
13522 *nto* | *qnx*)
13523 # QNX uses GNU C++, but need to define -shared option too, otherwise
13524 # it will coredump.
13525 lt_prog_compiler_pic='-fPIC -shared'
13526 ;;
13527
13528 osf3* | osf4* | osf5*)
13529 lt_prog_compiler_wl='-Wl,'
13530 # All OSF/1 code is PIC.
13531 lt_prog_compiler_static='-non_shared'
13532 ;;
13533
13534 rdos*)
13535 lt_prog_compiler_static='-non_shared'
13536 ;;
13537
13538 solaris*)
13539 lt_prog_compiler_pic='-KPIC'
13540 lt_prog_compiler_static='-Bstatic'
13541 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013542 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013543 lt_prog_compiler_wl='-Qoption ld ';;
13544 *)
13545 lt_prog_compiler_wl='-Wl,';;
13546 esac
13547 ;;
13548
13549 sunos4*)
13550 lt_prog_compiler_wl='-Qoption ld '
13551 lt_prog_compiler_pic='-PIC'
13552 lt_prog_compiler_static='-Bstatic'
13553 ;;
13554
13555 sysv4 | sysv4.2uw2* | sysv4.3*)
13556 lt_prog_compiler_wl='-Wl,'
13557 lt_prog_compiler_pic='-KPIC'
13558 lt_prog_compiler_static='-Bstatic'
13559 ;;
13560
13561 sysv4*MP*)
13562 if test -d /usr/nec ;then
13563 lt_prog_compiler_pic='-Kconform_pic'
13564 lt_prog_compiler_static='-Bstatic'
13565 fi
13566 ;;
13567
13568 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13569 lt_prog_compiler_wl='-Wl,'
13570 lt_prog_compiler_pic='-KPIC'
13571 lt_prog_compiler_static='-Bstatic'
13572 ;;
13573
13574 unicos*)
13575 lt_prog_compiler_wl='-Wl,'
13576 lt_prog_compiler_can_build_shared=no
13577 ;;
13578
13579 uts4*)
13580 lt_prog_compiler_pic='-pic'
13581 lt_prog_compiler_static='-Bstatic'
13582 ;;
13583
13584 *)
13585 lt_prog_compiler_can_build_shared=no
13586 ;;
13587 esac
13588 fi
13589
13590case $host_os in
13591 # For platforms which do not support PIC, -DPIC is meaningless:
13592 *djgpp*)
13593 lt_prog_compiler_pic=
13594 ;;
13595 *)
13596 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13597 ;;
13598esac
cristy73bd4a52010-10-05 11:24:23 +000013599
cristyda16f162011-02-19 23:52:17 +000013600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13601$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13602if ${lt_cv_prog_compiler_pic+:} false; then :
13603 $as_echo_n "(cached) " >&6
13604else
13605 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13606fi
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13608$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13609lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013610
13611#
13612# Check to make sure the PIC flag actually works.
13613#
13614if test -n "$lt_prog_compiler_pic"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13616$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013617if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013618 $as_echo_n "(cached) " >&6
13619else
13620 lt_cv_prog_compiler_pic_works=no
13621 ac_outfile=conftest.$ac_objext
13622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13623 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13624 # Insert the option either (1) after the last *FLAGS variable, or
13625 # (2) before a word containing "conftest.", or (3) at the end.
13626 # Note that $ac_compile itself does not contain backslashes and begins
13627 # with a dollar sign (not a hyphen), so the echo should work correctly.
13628 # The option is referenced via a variable to avoid confusing sed.
13629 lt_compile=`echo "$ac_compile" | $SED \
13630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13632 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013634 (eval "$lt_compile" 2>conftest.err)
13635 ac_status=$?
13636 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013638 if (exit $ac_status) && test -s "$ac_outfile"; then
13639 # The compiler can only warn and ignore the option if not recognized
13640 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13644 lt_cv_prog_compiler_pic_works=yes
13645 fi
13646 fi
13647 $RM conftest*
13648
13649fi
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13651$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13652
13653if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13654 case $lt_prog_compiler_pic in
13655 "" | " "*) ;;
13656 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13657 esac
13658else
13659 lt_prog_compiler_pic=
13660 lt_prog_compiler_can_build_shared=no
13661fi
13662
13663fi
13664
13665
13666
13667
13668
13669
cristyda16f162011-02-19 23:52:17 +000013670
13671
13672
13673
13674
cristy73bd4a52010-10-05 11:24:23 +000013675#
13676# Check to make sure the static flag actually works.
13677#
13678wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13680$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013681if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013682 $as_echo_n "(cached) " >&6
13683else
13684 lt_cv_prog_compiler_static_works=no
13685 save_LDFLAGS="$LDFLAGS"
13686 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13687 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13688 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13689 # The linker can only warn and ignore the option if not recognized
13690 # So say no if there are warnings
13691 if test -s conftest.err; then
13692 # Append any errors to the config.log.
13693 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013694 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13696 if diff conftest.exp conftest.er2 >/dev/null; then
13697 lt_cv_prog_compiler_static_works=yes
13698 fi
13699 else
13700 lt_cv_prog_compiler_static_works=yes
13701 fi
13702 fi
13703 $RM -r conftest*
13704 LDFLAGS="$save_LDFLAGS"
13705
13706fi
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13708$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13709
13710if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13711 :
13712else
13713 lt_prog_compiler_static=
13714fi
13715
13716
13717
13718
13719
13720
13721
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13723$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013724if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013725 $as_echo_n "(cached) " >&6
13726else
13727 lt_cv_prog_compiler_c_o=no
13728 $RM -r conftest 2>/dev/null
13729 mkdir conftest
13730 cd conftest
13731 mkdir out
13732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13733
13734 lt_compiler_flag="-o out/conftest2.$ac_objext"
13735 # Insert the option either (1) after the last *FLAGS variable, or
13736 # (2) before a word containing "conftest.", or (3) at the end.
13737 # Note that $ac_compile itself does not contain backslashes and begins
13738 # with a dollar sign (not a hyphen), so the echo should work correctly.
13739 lt_compile=`echo "$ac_compile" | $SED \
13740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13742 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013744 (eval "$lt_compile" 2>out/conftest.err)
13745 ac_status=$?
13746 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13749 then
13750 # The compiler can only warn and ignore the option if not recognized
13751 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13755 lt_cv_prog_compiler_c_o=yes
13756 fi
13757 fi
13758 chmod u+w . 2>&5
13759 $RM conftest*
13760 # SGI C++ compiler will create directory out/ii_files/ for
13761 # template instantiation
13762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13763 $RM out/* && rmdir out
13764 cd ..
13765 $RM -r conftest
13766 $RM conftest*
13767
13768fi
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13770$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13771
13772
13773
13774
13775
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13778$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013779if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013780 $as_echo_n "(cached) " >&6
13781else
13782 lt_cv_prog_compiler_c_o=no
13783 $RM -r conftest 2>/dev/null
13784 mkdir conftest
13785 cd conftest
13786 mkdir out
13787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13788
13789 lt_compiler_flag="-o out/conftest2.$ac_objext"
13790 # Insert the option either (1) after the last *FLAGS variable, or
13791 # (2) before a word containing "conftest.", or (3) at the end.
13792 # Note that $ac_compile itself does not contain backslashes and begins
13793 # with a dollar sign (not a hyphen), so the echo should work correctly.
13794 lt_compile=`echo "$ac_compile" | $SED \
13795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13797 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013799 (eval "$lt_compile" 2>out/conftest.err)
13800 ac_status=$?
13801 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13804 then
13805 # The compiler can only warn and ignore the option if not recognized
13806 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13810 lt_cv_prog_compiler_c_o=yes
13811 fi
13812 fi
13813 chmod u+w . 2>&5
13814 $RM conftest*
13815 # SGI C++ compiler will create directory out/ii_files/ for
13816 # template instantiation
13817 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13818 $RM out/* && rmdir out
13819 cd ..
13820 $RM -r conftest
13821 $RM conftest*
13822
13823fi
13824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13825$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13826
13827
13828
13829
13830hard_links="nottested"
13831if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13832 # do not overwrite the value of need_locks provided by the user
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13834$as_echo_n "checking if we can lock with hard links... " >&6; }
13835 hard_links=yes
13836 $RM conftest*
13837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13838 touch conftest.a
13839 ln conftest.a conftest.b 2>&5 || hard_links=no
13840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13842$as_echo "$hard_links" >&6; }
13843 if test "$hard_links" = no; then
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13845$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13846 need_locks=warn
13847 fi
13848else
13849 need_locks=no
13850fi
13851
13852
13853
13854
13855
13856
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13858$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13859
13860 runpath_var=
13861 allow_undefined_flag=
13862 always_export_symbols=no
13863 archive_cmds=
13864 archive_expsym_cmds=
13865 compiler_needs_object=no
13866 enable_shared_with_static_runtimes=no
13867 export_dynamic_flag_spec=
13868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13869 hardcode_automatic=no
13870 hardcode_direct=no
13871 hardcode_direct_absolute=no
13872 hardcode_libdir_flag_spec=
13873 hardcode_libdir_flag_spec_ld=
13874 hardcode_libdir_separator=
13875 hardcode_minus_L=no
13876 hardcode_shlibpath_var=unsupported
13877 inherit_rpath=no
13878 link_all_deplibs=unknown
13879 module_cmds=
13880 module_expsym_cmds=
13881 old_archive_from_new_cmds=
13882 old_archive_from_expsyms_cmds=
13883 thread_safe_flag_spec=
13884 whole_archive_flag_spec=
13885 # include_expsyms should be a list of space-separated symbols to be *always*
13886 # included in the symbol list
13887 include_expsyms=
13888 # exclude_expsyms can be an extended regexp of symbols to exclude
13889 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13890 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13891 # as well as any symbol that contains `d'.
13892 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13893 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13894 # platforms (ab)use it in PIC code, but their linkers get confused if
13895 # the symbol is explicitly referenced. Since portable code cannot
13896 # rely on this symbol name, it's probably fine to never include it in
13897 # preloaded symbol tables.
13898 # Exclude shared library initialization/finalization symbols.
13899 extract_expsyms_cmds=
13900
13901 case $host_os in
13902 cygwin* | mingw* | pw32* | cegcc*)
13903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13904 # When not using gcc, we currently assume that we are using
13905 # Microsoft Visual C++.
13906 if test "$GCC" != yes; then
13907 with_gnu_ld=no
13908 fi
13909 ;;
13910 interix*)
13911 # we just hope/assume this is gcc and not c89 (= MSVC++)
13912 with_gnu_ld=yes
13913 ;;
13914 openbsd*)
13915 with_gnu_ld=no
13916 ;;
13917 esac
13918
13919 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013920
13921 # On some targets, GNU ld is compatible enough with the native linker
13922 # that we're better off using the native interface for both.
13923 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013924 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013925 case $host_os in
13926 aix*)
13927 # The AIX port of GNU ld has always aspired to compatibility
13928 # with the native linker. However, as the warning in the GNU ld
13929 # block says, versions before 2.19.5* couldn't really create working
13930 # shared libraries, regardless of the interface used.
13931 case `$LD -v 2>&1` in
13932 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13933 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13934 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13935 *)
13936 lt_use_gnu_ld_interface=yes
13937 ;;
13938 esac
13939 ;;
13940 *)
13941 lt_use_gnu_ld_interface=yes
13942 ;;
13943 esac
13944 fi
13945
13946 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013947 # If archive_cmds runs LD, not CC, wlarc should be empty
13948 wlarc='${wl}'
13949
13950 # Set some defaults for GNU ld with shared library support. These
13951 # are reset later if shared libraries are not supported. Putting them
13952 # here allows them to be overridden if necessary.
13953 runpath_var=LD_RUN_PATH
13954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13955 export_dynamic_flag_spec='${wl}--export-dynamic'
13956 # ancient GNU ld didn't support --whole-archive et. al.
13957 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13958 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13959 else
13960 whole_archive_flag_spec=
13961 fi
13962 supports_anon_versioning=no
13963 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013964 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013965 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13966 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13967 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13968 *\ 2.11.*) ;; # other 2.11 versions
13969 *) supports_anon_versioning=yes ;;
13970 esac
13971
13972 # See if GNU ld supports shared libraries.
13973 case $host_os in
13974 aix[3-9]*)
13975 # On AIX/PPC, the GNU linker is very broken
13976 if test "$host_cpu" != ia64; then
13977 ld_shlibs=no
13978 cat <<_LT_EOF 1>&2
13979
cristy0c60a692010-11-04 01:09:47 +000013980*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013981*** to be unable to reliably create shared libraries on AIX.
13982*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013983*** really care for shared libraries, you may want to install binutils
13984*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13985*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013986
13987_LT_EOF
13988 fi
13989 ;;
13990
13991 amigaos*)
13992 case $host_cpu in
13993 powerpc)
13994 # see comment about AmigaOS4 .so support
13995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996 archive_expsym_cmds=''
13997 ;;
13998 m68k)
13999 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)'
14000 hardcode_libdir_flag_spec='-L$libdir'
14001 hardcode_minus_L=yes
14002 ;;
14003 esac
14004 ;;
14005
14006 beos*)
14007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14008 allow_undefined_flag=unsupported
14009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14010 # support --undefined. This deserves some investigation. FIXME
14011 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14012 else
14013 ld_shlibs=no
14014 fi
14015 ;;
14016
14017 cygwin* | mingw* | pw32* | cegcc*)
14018 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14019 # as there is no search path for DLLs.
14020 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014021 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014022 allow_undefined_flag=unsupported
14023 always_export_symbols=no
14024 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014025 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'
14026 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 +000014027
14028 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14030 # If the export-symbols file already is a .def file (1st line
14031 # is EXPORTS), use it as is; otherwise, prepend...
14032 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14033 cp $export_symbols $output_objdir/$soname.def;
14034 else
14035 echo EXPORTS > $output_objdir/$soname.def;
14036 cat $export_symbols >> $output_objdir/$soname.def;
14037 fi~
14038 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14039 else
14040 ld_shlibs=no
14041 fi
14042 ;;
14043
cristy0c60a692010-11-04 01:09:47 +000014044 haiku*)
14045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14046 link_all_deplibs=yes
14047 ;;
14048
cristy73bd4a52010-10-05 11:24:23 +000014049 interix[3-9]*)
14050 hardcode_direct=no
14051 hardcode_shlibpath_var=no
14052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14053 export_dynamic_flag_spec='${wl}-E'
14054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14055 # Instead, shared libraries are loaded at an image base (0x10000000 by
14056 # default) and relocated if they conflict, which is a slow very memory
14057 # consuming and fragmenting process. To avoid this, we pick a random,
14058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14061 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'
14062 ;;
14063
cristy0c60a692010-11-04 01:09:47 +000014064 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014065 tmp_diet=no
14066 if test "$host_os" = linux-dietlibc; then
14067 case $cc_basename in
14068 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14069 esac
14070 fi
14071 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14072 && test "$tmp_diet" = no
14073 then
cristyda16f162011-02-19 23:52:17 +000014074 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014075 tmp_sharedflag='-shared'
14076 case $cc_basename,$host_cpu in
14077 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014078 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 +000014079 tmp_addflag=' $pic_flag'
14080 ;;
cristy0c60a692010-11-04 01:09:47 +000014081 pgf77* | pgf90* | pgf95* | pgfortran*)
14082 # Portland Group f77 and f90 compilers
14083 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 +000014084 tmp_addflag=' $pic_flag -Mnomain' ;;
14085 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14086 tmp_addflag=' -i_dynamic' ;;
14087 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14088 tmp_addflag=' -i_dynamic -nofor_main' ;;
14089 ifc* | ifort*) # Intel Fortran compiler
14090 tmp_addflag=' -nofor_main' ;;
14091 lf95*) # Lahey Fortran 8.1
14092 whole_archive_flag_spec=
14093 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014094 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014095 tmp_sharedflag='-qmkshrobj'
14096 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014097 nvcc*) # Cuda Compiler Driver 2.2
14098 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'
14099 compiler_needs_object=yes
14100 ;;
cristy73bd4a52010-10-05 11:24:23 +000014101 esac
14102 case `$CC -V 2>&1 | sed 5q` in
14103 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014104 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 +000014105 compiler_needs_object=yes
14106 tmp_sharedflag='-G' ;;
14107 *Sun\ F*) # Sun Fortran 8.3
14108 tmp_sharedflag='-G' ;;
14109 esac
14110 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14111
14112 if test "x$supports_anon_versioning" = xyes; then
14113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14115 echo "local: *; };" >> $output_objdir/$libname.ver~
14116 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14117 fi
14118
14119 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014120 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014121 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14122 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14123 hardcode_libdir_flag_spec=
14124 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014125 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014126 if test "x$supports_anon_versioning" = xyes; then
14127 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14129 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014130 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014131 fi
14132 ;;
14133 esac
14134 else
14135 ld_shlibs=no
14136 fi
14137 ;;
14138
14139 netbsd*)
14140 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14141 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14142 wlarc=
14143 else
cristyda16f162011-02-19 23:52:17 +000014144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14145 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 +000014146 fi
14147 ;;
14148
14149 solaris*)
14150 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14151 ld_shlibs=no
14152 cat <<_LT_EOF 1>&2
14153
14154*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14155*** create shared libraries on Solaris systems. Therefore, libtool
14156*** is disabling shared libraries support. We urge you to upgrade GNU
14157*** binutils to release 2.9.1 or newer. Another option is to modify
14158*** your PATH or compiler configuration so that the native linker is
14159*** used, and then restart.
14160
14161_LT_EOF
14162 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14164 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 +000014165 else
14166 ld_shlibs=no
14167 fi
14168 ;;
14169
14170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14171 case `$LD -v 2>&1` in
14172 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14173 ld_shlibs=no
14174 cat <<_LT_EOF 1>&2
14175
14176*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14177*** reliably create shared libraries on SCO systems. Therefore, libtool
14178*** is disabling shared libraries support. We urge you to upgrade GNU
14179*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14180*** your PATH or compiler configuration so that the native linker is
14181*** used, and then restart.
14182
14183_LT_EOF
14184 ;;
14185 *)
14186 # For security reasons, it is highly recommended that you always
14187 # use absolute paths for naming shared libraries, and exclude the
14188 # DT_RUNPATH tag from executables and libraries. But doing so
14189 # requires that you compile everything twice, which is a pain.
14190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14194 else
14195 ld_shlibs=no
14196 fi
14197 ;;
14198 esac
14199 ;;
14200
14201 sunos4*)
14202 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14203 wlarc=
14204 hardcode_direct=yes
14205 hardcode_shlibpath_var=no
14206 ;;
14207
14208 *)
14209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14211 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 +000014212 else
14213 ld_shlibs=no
14214 fi
14215 ;;
14216 esac
14217
14218 if test "$ld_shlibs" = no; then
14219 runpath_var=
14220 hardcode_libdir_flag_spec=
14221 export_dynamic_flag_spec=
14222 whole_archive_flag_spec=
14223 fi
14224 else
14225 # PORTME fill in a description of your system's linker (not GNU ld)
14226 case $host_os in
14227 aix3*)
14228 allow_undefined_flag=unsupported
14229 always_export_symbols=yes
14230 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'
14231 # Note: this linker hardcodes the directories in LIBPATH if there
14232 # are no directories specified by -L.
14233 hardcode_minus_L=yes
14234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14235 # Neither direct hardcoding nor static linking is supported with a
14236 # broken collect2.
14237 hardcode_direct=unsupported
14238 fi
14239 ;;
14240
14241 aix[4-9]*)
14242 if test "$host_cpu" = ia64; then
14243 # On IA64, the linker does run time linking by default, so we don't
14244 # have to do anything special.
14245 aix_use_runtimelinking=no
14246 exp_sym_flag='-Bexport'
14247 no_entry_flag=""
14248 else
14249 # If we're using GNU nm, then we don't want the "-C" option.
14250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014251 # Also, AIX nm treats weak defined symbols like other global
14252 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014253 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014254 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 +000014255 else
14256 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'
14257 fi
14258 aix_use_runtimelinking=no
14259
14260 # Test if we are trying to use run time linking or normal
14261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14262 # need to do runtime linking.
14263 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14264 for ld_flag in $LDFLAGS; do
14265 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14266 aix_use_runtimelinking=yes
14267 break
14268 fi
14269 done
14270 ;;
14271 esac
14272
14273 exp_sym_flag='-bexport'
14274 no_entry_flag='-bnoentry'
14275 fi
14276
14277 # When large executables or shared objects are built, AIX ld can
14278 # have problems creating the table of contents. If linking a library
14279 # or program results in "error TOC overflow" add -mminimal-toc to
14280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14282
14283 archive_cmds=''
14284 hardcode_direct=yes
14285 hardcode_direct_absolute=yes
14286 hardcode_libdir_separator=':'
14287 link_all_deplibs=yes
14288 file_list_spec='${wl}-f,'
14289
14290 if test "$GCC" = yes; then
14291 case $host_os in aix4.[012]|aix4.[012].*)
14292 # We only want to do this on AIX 4.2 and lower, the check
14293 # below for broken collect2 doesn't work under 4.3+
14294 collect2name=`${CC} -print-prog-name=collect2`
14295 if test -f "$collect2name" &&
14296 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14297 then
14298 # We have reworked collect2
14299 :
14300 else
14301 # We have old collect2
14302 hardcode_direct=unsupported
14303 # It fails to find uninstalled libraries when the uninstalled
14304 # path is not listed in the libpath. Setting hardcode_minus_L
14305 # to unsupported forces relinking
14306 hardcode_minus_L=yes
14307 hardcode_libdir_flag_spec='-L$libdir'
14308 hardcode_libdir_separator=
14309 fi
14310 ;;
14311 esac
14312 shared_flag='-shared'
14313 if test "$aix_use_runtimelinking" = yes; then
14314 shared_flag="$shared_flag "'${wl}-G'
14315 fi
14316 else
14317 # not using gcc
14318 if test "$host_cpu" = ia64; then
14319 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14320 # chokes on -Wl,-G. The following line is correct:
14321 shared_flag='-G'
14322 else
14323 if test "$aix_use_runtimelinking" = yes; then
14324 shared_flag='${wl}-G'
14325 else
14326 shared_flag='${wl}-bM:SRE'
14327 fi
14328 fi
14329 fi
14330
14331 export_dynamic_flag_spec='${wl}-bexpall'
14332 # It seems that -bexpall does not export symbols beginning with
14333 # underscore (_), so it is better to generate a list of symbols to export.
14334 always_export_symbols=yes
14335 if test "$aix_use_runtimelinking" = yes; then
14336 # Warning - without using the other runtime loading flags (-brtl),
14337 # -berok will link without error, but may produce a broken library.
14338 allow_undefined_flag='-berok'
14339 # Determine the default libpath from the value encoded in an
14340 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014341 if test "${lt_cv_aix_libpath+set}" = set; then
14342 aix_libpath=$lt_cv_aix_libpath
14343else
14344 if ${lt_cv_aix_libpath_+:} false; then :
14345 $as_echo_n "(cached) " >&6
14346else
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014348/* end confdefs.h. */
14349
14350int
14351main ()
14352{
14353
14354 ;
14355 return 0;
14356}
14357_ACEOF
14358if ac_fn_c_try_link "$LINENO"; then :
14359
cristyda16f162011-02-19 23:52:17 +000014360 lt_aix_libpath_sed='
14361 /Import File Strings/,/^$/ {
14362 /^0/ {
14363 s/^0 *\([^ ]*\) *$/\1/
14364 p
14365 }
14366 }'
14367 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14368 # Check for a 64-bit object if we didn't find anything.
14369 if test -z "$lt_cv_aix_libpath_"; then
14370 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14371 fi
cristy73bd4a52010-10-05 11:24:23 +000014372fi
14373rm -f core conftest.err conftest.$ac_objext \
14374 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014375 if test -z "$lt_cv_aix_libpath_"; then
14376 lt_cv_aix_libpath_="/usr/lib:/lib"
14377 fi
14378
14379fi
14380
14381 aix_libpath=$lt_cv_aix_libpath_
14382fi
cristy73bd4a52010-10-05 11:24:23 +000014383
14384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014385 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 +000014386 else
14387 if test "$host_cpu" = ia64; then
14388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14389 allow_undefined_flag="-z nodefs"
14390 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"
14391 else
14392 # Determine the default libpath from the value encoded in an
14393 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014394 if test "${lt_cv_aix_libpath+set}" = set; then
14395 aix_libpath=$lt_cv_aix_libpath
14396else
14397 if ${lt_cv_aix_libpath_+:} false; then :
14398 $as_echo_n "(cached) " >&6
14399else
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014401/* end confdefs.h. */
14402
14403int
14404main ()
14405{
14406
14407 ;
14408 return 0;
14409}
14410_ACEOF
14411if ac_fn_c_try_link "$LINENO"; then :
14412
cristyda16f162011-02-19 23:52:17 +000014413 lt_aix_libpath_sed='
14414 /Import File Strings/,/^$/ {
14415 /^0/ {
14416 s/^0 *\([^ ]*\) *$/\1/
14417 p
14418 }
14419 }'
14420 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14421 # Check for a 64-bit object if we didn't find anything.
14422 if test -z "$lt_cv_aix_libpath_"; then
14423 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14424 fi
cristy73bd4a52010-10-05 11:24:23 +000014425fi
14426rm -f core conftest.err conftest.$ac_objext \
14427 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014428 if test -z "$lt_cv_aix_libpath_"; then
14429 lt_cv_aix_libpath_="/usr/lib:/lib"
14430 fi
14431
14432fi
14433
14434 aix_libpath=$lt_cv_aix_libpath_
14435fi
cristy73bd4a52010-10-05 11:24:23 +000014436
14437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14438 # Warning - without using the other run time loading flags,
14439 # -berok will link without error, but may produce a broken library.
14440 no_undefined_flag=' ${wl}-bernotok'
14441 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014442 if test "$with_gnu_ld" = yes; then
14443 # We only use this code for GNU lds that support --whole-archive.
14444 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14445 else
14446 # Exported symbols can be pulled into shared objects from archives
14447 whole_archive_flag_spec='$convenience'
14448 fi
cristy73bd4a52010-10-05 11:24:23 +000014449 archive_cmds_need_lc=yes
14450 # This is similar to how AIX traditionally builds its shared libraries.
14451 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'
14452 fi
14453 fi
14454 ;;
14455
14456 amigaos*)
14457 case $host_cpu in
14458 powerpc)
14459 # see comment about AmigaOS4 .so support
14460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14461 archive_expsym_cmds=''
14462 ;;
14463 m68k)
14464 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)'
14465 hardcode_libdir_flag_spec='-L$libdir'
14466 hardcode_minus_L=yes
14467 ;;
14468 esac
14469 ;;
14470
14471 bsdi[45]*)
14472 export_dynamic_flag_spec=-rdynamic
14473 ;;
14474
14475 cygwin* | mingw* | pw32* | cegcc*)
14476 # When not using gcc, we currently assume that we are using
14477 # Microsoft Visual C++.
14478 # hardcode_libdir_flag_spec is actually meaningless, as there is
14479 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014480 case $cc_basename in
14481 cl*)
14482 # Native MSVC
14483 hardcode_libdir_flag_spec=' '
14484 allow_undefined_flag=unsupported
14485 always_export_symbols=yes
14486 file_list_spec='@'
14487 # Tell ltmain to make .lib files, not .a files.
14488 libext=lib
14489 # Tell ltmain to make .dll files, not .so files.
14490 shrext_cmds=".dll"
14491 # FIXME: Setting linknames here is a bad hack.
14492 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14493 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14494 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14495 else
14496 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14497 fi~
14498 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14499 linknames='
14500 # The linker will not automatically build a static lib if we build a DLL.
14501 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14502 enable_shared_with_static_runtimes=yes
14503 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14504 # Don't use ranlib
14505 old_postinstall_cmds='chmod 644 $oldlib'
14506 postlink_cmds='lt_outputfile="@OUTPUT@"~
14507 lt_tool_outputfile="@TOOL_OUTPUT@"~
14508 case $lt_outputfile in
14509 *.exe|*.EXE) ;;
14510 *)
14511 lt_outputfile="$lt_outputfile.exe"
14512 lt_tool_outputfile="$lt_tool_outputfile.exe"
14513 ;;
14514 esac~
14515 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14516 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14517 $RM "$lt_outputfile.manifest";
14518 fi'
14519 ;;
14520 *)
14521 # Assume MSVC wrapper
14522 hardcode_libdir_flag_spec=' '
14523 allow_undefined_flag=unsupported
14524 # Tell ltmain to make .lib files, not .a files.
14525 libext=lib
14526 # Tell ltmain to make .dll files, not .so files.
14527 shrext_cmds=".dll"
14528 # FIXME: Setting linknames here is a bad hack.
14529 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14530 # The linker will automatically build a .lib file if we build a DLL.
14531 old_archive_from_new_cmds='true'
14532 # FIXME: Should let the user specify the lib program.
14533 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14534 enable_shared_with_static_runtimes=yes
14535 ;;
14536 esac
cristy73bd4a52010-10-05 11:24:23 +000014537 ;;
14538
14539 darwin* | rhapsody*)
14540
14541
14542 archive_cmds_need_lc=no
14543 hardcode_direct=no
14544 hardcode_automatic=yes
14545 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014546 if test "$lt_cv_ld_force_load" = "yes"; then
14547 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\"`'
14548 else
14549 whole_archive_flag_spec=''
14550 fi
cristy73bd4a52010-10-05 11:24:23 +000014551 link_all_deplibs=yes
14552 allow_undefined_flag="$_lt_dar_allow_undefined"
14553 case $cc_basename in
14554 ifort*) _lt_dar_can_shared=yes ;;
14555 *) _lt_dar_can_shared=$GCC ;;
14556 esac
14557 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014558 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014559 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14560 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14561 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}"
14562 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}"
14563
14564 else
14565 ld_shlibs=no
14566 fi
14567
14568 ;;
14569
14570 dgux*)
14571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14572 hardcode_libdir_flag_spec='-L$libdir'
14573 hardcode_shlibpath_var=no
14574 ;;
14575
14576 freebsd1*)
14577 ld_shlibs=no
14578 ;;
14579
14580 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14581 # support. Future versions do this automatically, but an explicit c++rt0.o
14582 # does not break anything, and helps significantly (at the cost of a little
14583 # extra space).
14584 freebsd2.2*)
14585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14586 hardcode_libdir_flag_spec='-R$libdir'
14587 hardcode_direct=yes
14588 hardcode_shlibpath_var=no
14589 ;;
14590
14591 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14592 freebsd2*)
14593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14594 hardcode_direct=yes
14595 hardcode_minus_L=yes
14596 hardcode_shlibpath_var=no
14597 ;;
14598
14599 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14600 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014602 hardcode_libdir_flag_spec='-R$libdir'
14603 hardcode_direct=yes
14604 hardcode_shlibpath_var=no
14605 ;;
14606
14607 hpux9*)
14608 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014609 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 +000014610 else
14611 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'
14612 fi
14613 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14614 hardcode_libdir_separator=:
14615 hardcode_direct=yes
14616
14617 # hardcode_minus_L: Not really in the search PATH,
14618 # but as the default location of the library.
14619 hardcode_minus_L=yes
14620 export_dynamic_flag_spec='${wl}-E'
14621 ;;
14622
14623 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014624 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014625 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 +000014626 else
14627 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14628 fi
14629 if test "$with_gnu_ld" = no; then
14630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14631 hardcode_libdir_flag_spec_ld='+b $libdir'
14632 hardcode_libdir_separator=:
14633 hardcode_direct=yes
14634 hardcode_direct_absolute=yes
14635 export_dynamic_flag_spec='${wl}-E'
14636 # hardcode_minus_L: Not really in the search PATH,
14637 # but as the default location of the library.
14638 hardcode_minus_L=yes
14639 fi
14640 ;;
14641
14642 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014643 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014644 case $host_cpu in
14645 hppa*64*)
14646 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14647 ;;
14648 ia64*)
cristyda16f162011-02-19 23:52:17 +000014649 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014650 ;;
14651 *)
cristyda16f162011-02-19 23:52:17 +000014652 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 +000014653 ;;
14654 esac
14655 else
14656 case $host_cpu in
14657 hppa*64*)
14658 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 ;;
14660 ia64*)
14661 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14662 ;;
14663 *)
cristy0c60a692010-11-04 01:09:47 +000014664
14665 # Older versions of the 11.00 compiler do not understand -b yet
14666 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14668$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014669if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014670 $as_echo_n "(cached) " >&6
14671else
14672 lt_cv_prog_compiler__b=no
14673 save_LDFLAGS="$LDFLAGS"
14674 LDFLAGS="$LDFLAGS -b"
14675 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14676 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14677 # The linker can only warn and ignore the option if not recognized
14678 # So say no if there are warnings
14679 if test -s conftest.err; then
14680 # Append any errors to the config.log.
14681 cat conftest.err 1>&5
14682 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14684 if diff conftest.exp conftest.er2 >/dev/null; then
14685 lt_cv_prog_compiler__b=yes
14686 fi
14687 else
14688 lt_cv_prog_compiler__b=yes
14689 fi
14690 fi
14691 $RM -r conftest*
14692 LDFLAGS="$save_LDFLAGS"
14693
14694fi
14695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14696$as_echo "$lt_cv_prog_compiler__b" >&6; }
14697
14698if test x"$lt_cv_prog_compiler__b" = xyes; then
14699 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14700else
14701 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14702fi
14703
cristy73bd4a52010-10-05 11:24:23 +000014704 ;;
14705 esac
14706 fi
14707 if test "$with_gnu_ld" = no; then
14708 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14709 hardcode_libdir_separator=:
14710
14711 case $host_cpu in
14712 hppa*64*|ia64*)
14713 hardcode_direct=no
14714 hardcode_shlibpath_var=no
14715 ;;
14716 *)
14717 hardcode_direct=yes
14718 hardcode_direct_absolute=yes
14719 export_dynamic_flag_spec='${wl}-E'
14720
14721 # hardcode_minus_L: Not really in the search PATH,
14722 # but as the default location of the library.
14723 hardcode_minus_L=yes
14724 ;;
14725 esac
14726 fi
14727 ;;
14728
14729 irix5* | irix6* | nonstopux*)
14730 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014731 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 +000014732 # Try to use the -exported_symbol ld option, if it does not
14733 # work, assume that -exports_file does not work either and
14734 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014735 # This should be the same for all languages, so no per-tag cache variable.
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14737$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14738if ${lt_cv_irix_exported_symbol+:} false; then :
14739 $as_echo_n "(cached) " >&6
14740else
14741 save_LDFLAGS="$LDFLAGS"
14742 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014744/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014745int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014746_ACEOF
14747if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014748 lt_cv_irix_exported_symbol=yes
14749else
14750 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014751fi
14752rm -f core conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014754 LDFLAGS="$save_LDFLAGS"
14755fi
14756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14757$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14758 if test "$lt_cv_irix_exported_symbol" = yes; then
14759 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'
14760 fi
cristy73bd4a52010-10-05 11:24:23 +000014761 else
cristy0c60a692010-11-04 01:09:47 +000014762 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'
14763 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 +000014764 fi
14765 archive_cmds_need_lc='no'
14766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14767 hardcode_libdir_separator=:
14768 inherit_rpath=yes
14769 link_all_deplibs=yes
14770 ;;
14771
14772 netbsd*)
14773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14775 else
14776 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14777 fi
14778 hardcode_libdir_flag_spec='-R$libdir'
14779 hardcode_direct=yes
14780 hardcode_shlibpath_var=no
14781 ;;
14782
14783 newsos6)
14784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14785 hardcode_direct=yes
14786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14787 hardcode_libdir_separator=:
14788 hardcode_shlibpath_var=no
14789 ;;
14790
14791 *nto* | *qnx*)
14792 ;;
14793
14794 openbsd*)
14795 if test -f /usr/libexec/ld.so; then
14796 hardcode_direct=yes
14797 hardcode_shlibpath_var=no
14798 hardcode_direct_absolute=yes
14799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14801 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14803 export_dynamic_flag_spec='${wl}-E'
14804 else
14805 case $host_os in
14806 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14808 hardcode_libdir_flag_spec='-R$libdir'
14809 ;;
14810 *)
14811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14812 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14813 ;;
14814 esac
14815 fi
14816 else
14817 ld_shlibs=no
14818 fi
14819 ;;
14820
14821 os2*)
14822 hardcode_libdir_flag_spec='-L$libdir'
14823 hardcode_minus_L=yes
14824 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014825 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 +000014826 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14827 ;;
14828
14829 osf3*)
14830 if test "$GCC" = yes; then
14831 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014832 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 +000014833 else
14834 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014835 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 +000014836 fi
14837 archive_cmds_need_lc='no'
14838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14839 hardcode_libdir_separator=:
14840 ;;
14841
14842 osf4* | osf5*) # as osf3* with the addition of -msym flag
14843 if test "$GCC" = yes; then
14844 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014845 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 +000014846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14847 else
14848 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014849 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 +000014850 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 +000014851 $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 +000014852
14853 # Both c and cxx compiler support -rpath directly
14854 hardcode_libdir_flag_spec='-rpath $libdir'
14855 fi
14856 archive_cmds_need_lc='no'
14857 hardcode_libdir_separator=:
14858 ;;
14859
14860 solaris*)
14861 no_undefined_flag=' -z defs'
14862 if test "$GCC" = yes; then
14863 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014864 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 +000014865 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 +000014866 $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 +000014867 else
14868 case `$CC -V 2>&1` in
14869 *"Compilers 5.0"*)
14870 wlarc=''
14871 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14873 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14874 ;;
14875 *)
14876 wlarc='${wl}'
14877 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14878 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14879 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14880 ;;
14881 esac
14882 fi
14883 hardcode_libdir_flag_spec='-R$libdir'
14884 hardcode_shlibpath_var=no
14885 case $host_os in
14886 solaris2.[0-5] | solaris2.[0-5].*) ;;
14887 *)
14888 # The compiler driver will combine and reorder linker options,
14889 # but understands `-z linker_flag'. GCC discards it without `$wl',
14890 # but is careful enough not to reorder.
14891 # Supported since Solaris 2.6 (maybe 2.5.1?)
14892 if test "$GCC" = yes; then
14893 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14894 else
14895 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14896 fi
14897 ;;
14898 esac
14899 link_all_deplibs=yes
14900 ;;
14901
14902 sunos4*)
14903 if test "x$host_vendor" = xsequent; then
14904 # Use $CC to link under sequent, because it throws in some extra .o
14905 # files that make .init and .fini sections work.
14906 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14907 else
14908 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14909 fi
14910 hardcode_libdir_flag_spec='-L$libdir'
14911 hardcode_direct=yes
14912 hardcode_minus_L=yes
14913 hardcode_shlibpath_var=no
14914 ;;
14915
14916 sysv4)
14917 case $host_vendor in
14918 sni)
14919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920 hardcode_direct=yes # is this really true???
14921 ;;
14922 siemens)
14923 ## LD is ld it makes a PLAMLIB
14924 ## CC just makes a GrossModule.
14925 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14926 reload_cmds='$CC -r -o $output$reload_objs'
14927 hardcode_direct=no
14928 ;;
14929 motorola)
14930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14931 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14932 ;;
14933 esac
14934 runpath_var='LD_RUN_PATH'
14935 hardcode_shlibpath_var=no
14936 ;;
14937
14938 sysv4.3*)
14939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14940 hardcode_shlibpath_var=no
14941 export_dynamic_flag_spec='-Bexport'
14942 ;;
14943
14944 sysv4*MP*)
14945 if test -d /usr/nec; then
14946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14947 hardcode_shlibpath_var=no
14948 runpath_var=LD_RUN_PATH
14949 hardcode_runpath_var=yes
14950 ld_shlibs=yes
14951 fi
14952 ;;
14953
14954 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14955 no_undefined_flag='${wl}-z,text'
14956 archive_cmds_need_lc=no
14957 hardcode_shlibpath_var=no
14958 runpath_var='LD_RUN_PATH'
14959
14960 if test "$GCC" = yes; then
14961 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963 else
14964 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14965 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 fi
14967 ;;
14968
14969 sysv5* | sco3.2v5* | sco5v6*)
14970 # Note: We can NOT use -z defs as we might desire, because we do not
14971 # link with -lc, and that would cause any symbols used from libc to
14972 # always be unresolved, which means just about no library would
14973 # ever link correctly. If we're not using GNU ld we use -z text
14974 # though, which does catch some bad symbols but isn't as heavy-handed
14975 # as -z defs.
14976 no_undefined_flag='${wl}-z,text'
14977 allow_undefined_flag='${wl}-z,nodefs'
14978 archive_cmds_need_lc=no
14979 hardcode_shlibpath_var=no
14980 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14981 hardcode_libdir_separator=':'
14982 link_all_deplibs=yes
14983 export_dynamic_flag_spec='${wl}-Bexport'
14984 runpath_var='LD_RUN_PATH'
14985
14986 if test "$GCC" = yes; then
14987 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14989 else
14990 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 fi
14993 ;;
14994
14995 uts4*)
14996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14997 hardcode_libdir_flag_spec='-L$libdir'
14998 hardcode_shlibpath_var=no
14999 ;;
15000
15001 *)
15002 ld_shlibs=no
15003 ;;
15004 esac
15005
15006 if test x$host_vendor = xsni; then
15007 case $host in
15008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15009 export_dynamic_flag_spec='${wl}-Blargedynsym'
15010 ;;
15011 esac
15012 fi
15013 fi
15014
15015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15016$as_echo "$ld_shlibs" >&6; }
15017test "$ld_shlibs" = no && can_build_shared=no
15018
15019with_gnu_ld=$with_gnu_ld
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035#
15036# Do we need to explicitly link libc?
15037#
15038case "x$archive_cmds_need_lc" in
15039x|xyes)
15040 # Assume -lc should be added
15041 archive_cmds_need_lc=yes
15042
15043 if test "$enable_shared" = yes && test "$GCC" = yes; then
15044 case $archive_cmds in
15045 *'~'*)
15046 # FIXME: we may have to deal with multi-command sequences.
15047 ;;
15048 '$CC '*)
15049 # Test whether the compiler implicitly links with -lc since on some
15050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15051 # to ld, don't add -lc before -lgcc.
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15053$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015054if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015055 $as_echo_n "(cached) " >&6
15056else
15057 $RM conftest*
15058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015059
cristy0c60a692010-11-04 01:09:47 +000015060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015061 (eval $ac_compile) 2>&5
15062 ac_status=$?
15063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15064 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015065 soname=conftest
15066 lib=conftest
15067 libobjs=conftest.$ac_objext
15068 deplibs=
15069 wl=$lt_prog_compiler_wl
15070 pic_flag=$lt_prog_compiler_pic
15071 compiler_flags=-v
15072 linker_flags=-v
15073 verstring=
15074 output_objdir=.
15075 libname=conftest
15076 lt_save_allow_undefined_flag=$allow_undefined_flag
15077 allow_undefined_flag=
15078 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 +000015079 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15080 ac_status=$?
15081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15082 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015083 then
15084 lt_cv_archive_cmds_need_lc=no
15085 else
15086 lt_cv_archive_cmds_need_lc=yes
15087 fi
15088 allow_undefined_flag=$lt_save_allow_undefined_flag
15089 else
15090 cat conftest.err 1>&5
15091 fi
15092 $RM conftest*
15093
15094fi
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15096$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15097 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015098 ;;
15099 esac
15100 fi
15101 ;;
15102esac
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
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15261$as_echo_n "checking dynamic linker characteristics... " >&6; }
15262
15263if test "$GCC" = yes; then
15264 case $host_os in
15265 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15266 *) lt_awk_arg="/^libraries:/" ;;
15267 esac
cristy0c60a692010-11-04 01:09:47 +000015268 case $host_os in
15269 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15270 *) lt_sed_strip_eq="s,=/,/,g" ;;
15271 esac
15272 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15273 case $lt_search_path_spec in
15274 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015275 # if the path contains ";" then we assume it to be the separator
15276 # otherwise default to the standard path separator (i.e. ":") - it is
15277 # assumed that no part of a normal pathname contains ";" but that should
15278 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015279 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15280 ;;
15281 *)
15282 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15283 ;;
15284 esac
cristy73bd4a52010-10-05 11:24:23 +000015285 # Ok, now we have the path, separated by spaces, we can step through it
15286 # and add multilib dir if necessary.
15287 lt_tmp_lt_search_path_spec=
15288 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15289 for lt_sys_path in $lt_search_path_spec; do
15290 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15291 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15292 else
15293 test -d "$lt_sys_path" && \
15294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15295 fi
15296 done
cristy0c60a692010-11-04 01:09:47 +000015297 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015298BEGIN {RS=" "; FS="/|\n";} {
15299 lt_foo="";
15300 lt_count=0;
15301 for (lt_i = NF; lt_i > 0; lt_i--) {
15302 if ($lt_i != "" && $lt_i != ".") {
15303 if ($lt_i == "..") {
15304 lt_count++;
15305 } else {
15306 if (lt_count == 0) {
15307 lt_foo="/" $lt_i lt_foo;
15308 } else {
15309 lt_count--;
15310 }
15311 }
15312 }
15313 }
15314 if (lt_foo != "") { lt_freq[lt_foo]++; }
15315 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15316}'`
cristy0c60a692010-11-04 01:09:47 +000015317 # AWK program above erroneously prepends '/' to C:/dos/paths
15318 # for these hosts.
15319 case $host_os in
15320 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15321 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15322 esac
15323 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015324else
15325 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15326fi
15327library_names_spec=
15328libname_spec='lib$name'
15329soname_spec=
15330shrext_cmds=".so"
15331postinstall_cmds=
15332postuninstall_cmds=
15333finish_cmds=
15334finish_eval=
15335shlibpath_var=
15336shlibpath_overrides_runpath=unknown
15337version_type=none
15338dynamic_linker="$host_os ld.so"
15339sys_lib_dlsearch_path_spec="/lib /usr/lib"
15340need_lib_prefix=unknown
15341hardcode_into_libs=no
15342
15343# when you set need_version to no, make sure it does not cause -set_version
15344# flags to be left without arguments
15345need_version=unknown
15346
15347case $host_os in
15348aix3*)
15349 version_type=linux
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15351 shlibpath_var=LIBPATH
15352
15353 # AIX 3 has no versioning support, so we append a major version to the name.
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 ;;
15356
15357aix[4-9]*)
15358 version_type=linux
15359 need_lib_prefix=no
15360 need_version=no
15361 hardcode_into_libs=yes
15362 if test "$host_cpu" = ia64; then
15363 # AIX 5 supports IA64
15364 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15365 shlibpath_var=LD_LIBRARY_PATH
15366 else
15367 # With GCC up to 2.95.x, collect2 would create an import file
15368 # for dependence libraries. The import file would start with
15369 # the line `#! .'. This would cause the generated library to
15370 # depend on `.', always an invalid library. This was fixed in
15371 # development snapshots of GCC prior to 3.0.
15372 case $host_os in
15373 aix4 | aix4.[01] | aix4.[01].*)
15374 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15375 echo ' yes '
15376 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15377 :
15378 else
15379 can_build_shared=no
15380 fi
15381 ;;
15382 esac
15383 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15384 # soname into executable. Probably we can add versioning support to
15385 # collect2, so additional links can be useful in future.
15386 if test "$aix_use_runtimelinking" = yes; then
15387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15388 # instead of lib<name>.a to let people know that these are not
15389 # typical AIX shared libraries.
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 else
15392 # We preserve .a as extension for shared libraries through AIX4.2
15393 # and later when we are not doing run time linking.
15394 library_names_spec='${libname}${release}.a $libname.a'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 fi
15397 shlibpath_var=LIBPATH
15398 fi
15399 ;;
15400
15401amigaos*)
15402 case $host_cpu in
15403 powerpc)
15404 # Since July 2007 AmigaOS4 officially supports .so libraries.
15405 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 ;;
15408 m68k)
15409 library_names_spec='$libname.ixlibrary $libname.a'
15410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015411 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 +000015412 ;;
15413 esac
15414 ;;
15415
15416beos*)
15417 library_names_spec='${libname}${shared_ext}'
15418 dynamic_linker="$host_os ld.so"
15419 shlibpath_var=LIBRARY_PATH
15420 ;;
15421
15422bsdi[45]*)
15423 version_type=linux
15424 need_version=no
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15430 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15431 # the default ld.so.conf also contains /usr/contrib/lib and
15432 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15433 # libtool to hard-code these into programs
15434 ;;
15435
15436cygwin* | mingw* | pw32* | cegcc*)
15437 version_type=windows
15438 shrext_cmds=".dll"
15439 need_version=no
15440 need_lib_prefix=no
15441
cristyda16f162011-02-19 23:52:17 +000015442 case $GCC,$cc_basename in
15443 yes,*)
15444 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015445 library_names_spec='$libname.dll.a'
15446 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15447 postinstall_cmds='base_file=`basename \${file}`~
15448 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15449 dldir=$destdir/`dirname \$dlpath`~
15450 test -d \$dldir || mkdir -p \$dldir~
15451 $install_prog $dir/$dlname \$dldir/$dlname~
15452 chmod a+x \$dldir/$dlname~
15453 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15454 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15455 fi'
15456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15457 dlpath=$dir/\$dldll~
15458 $RM \$dlpath'
15459 shlibpath_overrides_runpath=yes
15460
15461 case $host_os in
15462 cygwin*)
15463 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15464 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015465
15466 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015467 ;;
15468 mingw* | cegcc*)
15469 # MinGW DLLs use traditional 'lib' prefix
15470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015471 ;;
15472 pw32*)
15473 # pw32 DLLs use 'pw' prefix rather than 'lib'
15474 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15475 ;;
15476 esac
cristyda16f162011-02-19 23:52:17 +000015477 dynamic_linker='Win32 ld.exe'
15478 ;;
15479
15480 *,cl*)
15481 # Native MSVC
15482 libname_spec='$name'
15483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15484 library_names_spec='${libname}.dll.lib'
15485
15486 case $build_os in
15487 mingw*)
15488 sys_lib_search_path_spec=
15489 lt_save_ifs=$IFS
15490 IFS=';'
15491 for lt_path in $LIB
15492 do
15493 IFS=$lt_save_ifs
15494 # Let DOS variable expansion print the short 8.3 style file name.
15495 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15496 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15497 done
15498 IFS=$lt_save_ifs
15499 # Convert to MSYS style.
15500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15501 ;;
15502 cygwin*)
15503 # Convert to unix form, then to dos form, then back to unix form
15504 # but this time dos style (no spaces!) so that the unix form looks
15505 # like /cygdrive/c/PROGRA~1:/cygdr...
15506 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15507 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15508 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15509 ;;
15510 *)
15511 sys_lib_search_path_spec="$LIB"
15512 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15513 # It is most probably a Windows format PATH.
15514 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15515 else
15516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15517 fi
15518 # FIXME: find the short name or the path components, as spaces are
15519 # common. (e.g. "Program Files" -> "PROGRA~1")
15520 ;;
15521 esac
15522
15523 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15524 postinstall_cmds='base_file=`basename \${file}`~
15525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15526 dldir=$destdir/`dirname \$dlpath`~
15527 test -d \$dldir || mkdir -p \$dldir~
15528 $install_prog $dir/$dlname \$dldir/$dlname'
15529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15530 dlpath=$dir/\$dldll~
15531 $RM \$dlpath'
15532 shlibpath_overrides_runpath=yes
15533 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015534 ;;
15535
15536 *)
cristyda16f162011-02-19 23:52:17 +000015537 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015538 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015539 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015540 ;;
15541 esac
cristy73bd4a52010-10-05 11:24:23 +000015542 # FIXME: first we should search . and the directory the executable is in
15543 shlibpath_var=PATH
15544 ;;
15545
15546darwin* | rhapsody*)
15547 dynamic_linker="$host_os dyld"
15548 version_type=darwin
15549 need_lib_prefix=no
15550 need_version=no
15551 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15552 soname_spec='${libname}${release}${major}$shared_ext'
15553 shlibpath_overrides_runpath=yes
15554 shlibpath_var=DYLD_LIBRARY_PATH
15555 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15556
15557 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15558 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15559 ;;
15560
15561dgux*)
15562 version_type=linux
15563 need_lib_prefix=no
15564 need_version=no
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 ;;
15569
15570freebsd1*)
15571 dynamic_linker=no
15572 ;;
15573
15574freebsd* | dragonfly*)
15575 # DragonFly does not have aout. When/if they implement a new
15576 # versioning mechanism, adjust this.
15577 if test -x /usr/bin/objformat; then
15578 objformat=`/usr/bin/objformat`
15579 else
15580 case $host_os in
15581 freebsd[123]*) objformat=aout ;;
15582 *) objformat=elf ;;
15583 esac
15584 fi
15585 version_type=freebsd-$objformat
15586 case $version_type in
15587 freebsd-elf*)
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15589 need_version=no
15590 need_lib_prefix=no
15591 ;;
15592 freebsd-*)
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15594 need_version=yes
15595 ;;
15596 esac
15597 shlibpath_var=LD_LIBRARY_PATH
15598 case $host_os in
15599 freebsd2*)
15600 shlibpath_overrides_runpath=yes
15601 ;;
15602 freebsd3.[01]* | freebsdelf3.[01]*)
15603 shlibpath_overrides_runpath=yes
15604 hardcode_into_libs=yes
15605 ;;
15606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15608 shlibpath_overrides_runpath=no
15609 hardcode_into_libs=yes
15610 ;;
15611 *) # from 4.6 on, and DragonFly
15612 shlibpath_overrides_runpath=yes
15613 hardcode_into_libs=yes
15614 ;;
15615 esac
15616 ;;
15617
15618gnu*)
15619 version_type=linux
15620 need_lib_prefix=no
15621 need_version=no
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15623 soname_spec='${libname}${release}${shared_ext}$major'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 hardcode_into_libs=yes
15626 ;;
15627
cristy0c60a692010-11-04 01:09:47 +000015628haiku*)
15629 version_type=linux
15630 need_lib_prefix=no
15631 need_version=no
15632 dynamic_linker="$host_os runtime_loader"
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LIBRARY_PATH
15636 shlibpath_overrides_runpath=yes
15637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15638 hardcode_into_libs=yes
15639 ;;
15640
cristy73bd4a52010-10-05 11:24:23 +000015641hpux9* | hpux10* | hpux11*)
15642 # Give a soname corresponding to the major version so that dld.sl refuses to
15643 # link against other versions.
15644 version_type=sunos
15645 need_lib_prefix=no
15646 need_version=no
15647 case $host_cpu in
15648 ia64*)
15649 shrext_cmds='.so'
15650 hardcode_into_libs=yes
15651 dynamic_linker="$host_os dld.so"
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655 soname_spec='${libname}${release}${shared_ext}$major'
15656 if test "X$HPUX_IA64_MODE" = X32; then
15657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15658 else
15659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15660 fi
15661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15662 ;;
15663 hppa*64*)
15664 shrext_cmds='.sl'
15665 hardcode_into_libs=yes
15666 dynamic_linker="$host_os dld.sl"
15667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670 soname_spec='${libname}${release}${shared_ext}$major'
15671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15673 ;;
15674 *)
15675 shrext_cmds='.sl'
15676 dynamic_linker="$host_os dld.sl"
15677 shlibpath_var=SHLIB_PATH
15678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680 soname_spec='${libname}${release}${shared_ext}$major'
15681 ;;
15682 esac
cristy0c60a692010-11-04 01:09:47 +000015683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015684 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015685 # or fails outright, so override atomically:
15686 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015687 ;;
15688
15689interix[3-9]*)
15690 version_type=linux
15691 need_lib_prefix=no
15692 need_version=no
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=no
15698 hardcode_into_libs=yes
15699 ;;
15700
15701irix5* | irix6* | nonstopux*)
15702 case $host_os in
15703 nonstopux*) version_type=nonstopux ;;
15704 *)
15705 if test "$lt_cv_prog_gnu_ld" = yes; then
15706 version_type=linux
15707 else
15708 version_type=irix
15709 fi ;;
15710 esac
15711 need_lib_prefix=no
15712 need_version=no
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15715 case $host_os in
15716 irix5* | nonstopux*)
15717 libsuff= shlibsuff=
15718 ;;
15719 *)
15720 case $LD in # libtool.m4 will add one of these switches to LD
15721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15722 libsuff= shlibsuff= libmagic=32-bit;;
15723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15724 libsuff=32 shlibsuff=N32 libmagic=N32;;
15725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15727 *) libsuff= shlibsuff= libmagic=never-match;;
15728 esac
15729 ;;
15730 esac
15731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15732 shlibpath_overrides_runpath=no
15733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15735 hardcode_into_libs=yes
15736 ;;
15737
15738# No shared lib support for Linux oldld, aout, or coff.
15739linux*oldld* | linux*aout* | linux*coff*)
15740 dynamic_linker=no
15741 ;;
15742
15743# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015744linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015745 version_type=linux
15746 need_lib_prefix=no
15747 need_version=no
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749 soname_spec='${libname}${release}${shared_ext}$major'
15750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15751 shlibpath_var=LD_LIBRARY_PATH
15752 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015753
cristy73bd4a52010-10-05 11:24:23 +000015754 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015755 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015756 $as_echo_n "(cached) " >&6
15757else
15758 lt_cv_shlibpath_overrides_runpath=no
15759 save_LDFLAGS=$LDFLAGS
15760 save_libdir=$libdir
15761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015764/* end confdefs.h. */
15765
15766int
15767main ()
15768{
15769
15770 ;
15771 return 0;
15772}
15773_ACEOF
15774if ac_fn_c_try_link "$LINENO"; then :
15775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015776 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015777fi
15778fi
15779rm -f core conftest.err conftest.$ac_objext \
15780 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015781 LDFLAGS=$save_LDFLAGS
15782 libdir=$save_libdir
15783
15784fi
15785
15786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015787
15788 # This implies no fast_install, which is unacceptable.
15789 # Some rework will be needed to allow for fast_install
15790 # before this can be enabled.
15791 hardcode_into_libs=yes
15792
15793 # Add ABI-specific directories to the system library path.
15794 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15795
15796 # Append ld.so.conf contents to the search path
15797 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015798 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 +000015799 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015800
cristy73bd4a52010-10-05 11:24:23 +000015801 fi
15802
15803 # We used to test for /lib/ld.so.1 and disable shared libraries on
15804 # powerpc, because MkLinux only supported shared libraries with the
15805 # GNU dynamic linker. Since this was broken with cross compilers,
15806 # most powerpc-linux boxes support dynamic linking these days and
15807 # people can always --disable-shared, the test was removed, and we
15808 # assume the GNU/Linux dynamic linker is in use.
15809 dynamic_linker='GNU/Linux ld.so'
15810 ;;
15811
15812netbsd*)
15813 version_type=sunos
15814 need_lib_prefix=no
15815 need_version=no
15816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15819 dynamic_linker='NetBSD (a.out) ld.so'
15820 else
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 dynamic_linker='NetBSD ld.elf_so'
15824 fi
15825 shlibpath_var=LD_LIBRARY_PATH
15826 shlibpath_overrides_runpath=yes
15827 hardcode_into_libs=yes
15828 ;;
15829
15830newsos6)
15831 version_type=linux
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 shlibpath_var=LD_LIBRARY_PATH
15834 shlibpath_overrides_runpath=yes
15835 ;;
15836
15837*nto* | *qnx*)
15838 version_type=qnx
15839 need_lib_prefix=no
15840 need_version=no
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=no
15845 hardcode_into_libs=yes
15846 dynamic_linker='ldqnx.so'
15847 ;;
15848
15849openbsd*)
15850 version_type=sunos
15851 sys_lib_dlsearch_path_spec="/usr/lib"
15852 need_lib_prefix=no
15853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15854 case $host_os in
15855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15856 *) need_version=no ;;
15857 esac
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15860 shlibpath_var=LD_LIBRARY_PATH
15861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15862 case $host_os in
15863 openbsd2.[89] | openbsd2.[89].*)
15864 shlibpath_overrides_runpath=no
15865 ;;
15866 *)
15867 shlibpath_overrides_runpath=yes
15868 ;;
15869 esac
15870 else
15871 shlibpath_overrides_runpath=yes
15872 fi
15873 ;;
15874
15875os2*)
15876 libname_spec='$name'
15877 shrext_cmds=".dll"
15878 need_lib_prefix=no
15879 library_names_spec='$libname${shared_ext} $libname.a'
15880 dynamic_linker='OS/2 ld.exe'
15881 shlibpath_var=LIBPATH
15882 ;;
15883
15884osf3* | osf4* | osf5*)
15885 version_type=osf
15886 need_lib_prefix=no
15887 need_version=no
15888 soname_spec='${libname}${release}${shared_ext}$major'
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 shlibpath_var=LD_LIBRARY_PATH
15891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15893 ;;
15894
15895rdos*)
15896 dynamic_linker=no
15897 ;;
15898
15899solaris*)
15900 version_type=linux
15901 need_lib_prefix=no
15902 need_version=no
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15905 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=yes
15907 hardcode_into_libs=yes
15908 # ldd complains unless libraries are executable
15909 postinstall_cmds='chmod +x $lib'
15910 ;;
15911
15912sunos4*)
15913 version_type=sunos
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath=yes
15918 if test "$with_gnu_ld" = yes; then
15919 need_lib_prefix=no
15920 fi
15921 need_version=yes
15922 ;;
15923
15924sysv4 | sysv4.3*)
15925 version_type=linux
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15929 case $host_vendor in
15930 sni)
15931 shlibpath_overrides_runpath=no
15932 need_lib_prefix=no
15933 runpath_var=LD_RUN_PATH
15934 ;;
15935 siemens)
15936 need_lib_prefix=no
15937 ;;
15938 motorola)
15939 need_lib_prefix=no
15940 need_version=no
15941 shlibpath_overrides_runpath=no
15942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15943 ;;
15944 esac
15945 ;;
15946
15947sysv4*MP*)
15948 if test -d /usr/nec ;then
15949 version_type=linux
15950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15951 soname_spec='$libname${shared_ext}.$major'
15952 shlibpath_var=LD_LIBRARY_PATH
15953 fi
15954 ;;
15955
15956sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15957 version_type=freebsd-elf
15958 need_lib_prefix=no
15959 need_version=no
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 shlibpath_overrides_runpath=yes
15964 hardcode_into_libs=yes
15965 if test "$with_gnu_ld" = yes; then
15966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15967 else
15968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15969 case $host_os in
15970 sco3.2v5*)
15971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15972 ;;
15973 esac
15974 fi
15975 sys_lib_dlsearch_path_spec='/usr/lib'
15976 ;;
15977
15978tpf*)
15979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15980 version_type=linux
15981 need_lib_prefix=no
15982 need_version=no
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 shlibpath_overrides_runpath=no
15986 hardcode_into_libs=yes
15987 ;;
15988
15989uts4*)
15990 version_type=linux
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 shlibpath_var=LD_LIBRARY_PATH
15994 ;;
15995
15996*)
15997 dynamic_linker=no
15998 ;;
15999esac
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16001$as_echo "$dynamic_linker" >&6; }
16002test "$dynamic_linker" = no && can_build_shared=no
16003
16004variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16005if test "$GCC" = yes; then
16006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16007fi
16008
16009if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16011fi
16012if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16014fi
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
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
cristy0c60a692010-11-04 01:09:47 +000016102
16103
16104
16105
16106
cristy73bd4a52010-10-05 11:24:23 +000016107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16108$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16109hardcode_action=
16110if test -n "$hardcode_libdir_flag_spec" ||
16111 test -n "$runpath_var" ||
16112 test "X$hardcode_automatic" = "Xyes" ; then
16113
16114 # We can hardcode non-existent directories.
16115 if test "$hardcode_direct" != no &&
16116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16117 # have to relink, otherwise we might link with an installed library
16118 # when we should be linking with a yet-to-be-installed one
16119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16120 test "$hardcode_minus_L" != no; then
16121 # Linking always hardcodes the temporary library directory.
16122 hardcode_action=relink
16123 else
16124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16125 hardcode_action=immediate
16126 fi
16127else
16128 # We cannot hardcode anything, or else we can only hardcode existing
16129 # directories.
16130 hardcode_action=unsupported
16131fi
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16133$as_echo "$hardcode_action" >&6; }
16134
16135if test "$hardcode_action" = relink ||
16136 test "$inherit_rpath" = yes; then
16137 # Fast installation is not supported
16138 enable_fast_install=no
16139elif test "$shlibpath_overrides_runpath" = yes ||
16140 test "$enable_shared" = no; then
16141 # Fast installation is not necessary
16142 enable_fast_install=needless
16143fi
16144
16145
16146
16147
16148
16149
16150 if test "x$enable_dlopen" != xyes; then
16151 enable_dlopen=unknown
16152 enable_dlopen_self=unknown
16153 enable_dlopen_self_static=unknown
16154else
16155 lt_cv_dlopen=no
16156 lt_cv_dlopen_libs=
16157
16158 case $host_os in
16159 beos*)
16160 lt_cv_dlopen="load_add_on"
16161 lt_cv_dlopen_libs=
16162 lt_cv_dlopen_self=yes
16163 ;;
16164
16165 mingw* | pw32* | cegcc*)
16166 lt_cv_dlopen="LoadLibrary"
16167 lt_cv_dlopen_libs=
16168 ;;
16169
16170 cygwin*)
16171 lt_cv_dlopen="dlopen"
16172 lt_cv_dlopen_libs=
16173 ;;
16174
16175 darwin*)
16176 # if libdl is installed we need to link against it
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16178$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016179if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016180 $as_echo_n "(cached) " >&6
16181else
16182 ac_check_lib_save_LIBS=$LIBS
16183LIBS="-ldl $LIBS"
16184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185/* end confdefs.h. */
16186
16187/* Override any GCC internal prototype to avoid an error.
16188 Use char because int might match the return type of a GCC
16189 builtin and then its argument prototype would still apply. */
16190#ifdef __cplusplus
16191extern "C"
16192#endif
16193char dlopen ();
16194int
16195main ()
16196{
16197return dlopen ();
16198 ;
16199 return 0;
16200}
16201_ACEOF
16202if ac_fn_c_try_link "$LINENO"; then :
16203 ac_cv_lib_dl_dlopen=yes
16204else
16205 ac_cv_lib_dl_dlopen=no
16206fi
16207rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209LIBS=$ac_check_lib_save_LIBS
16210fi
16211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16212$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016213if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16215else
16216
16217 lt_cv_dlopen="dyld"
16218 lt_cv_dlopen_libs=
16219 lt_cv_dlopen_self=yes
16220
16221fi
16222
16223 ;;
16224
16225 *)
16226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016227if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016228 lt_cv_dlopen="shl_load"
16229else
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16231$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016232if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016233 $as_echo_n "(cached) " >&6
16234else
16235 ac_check_lib_save_LIBS=$LIBS
16236LIBS="-ldld $LIBS"
16237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238/* end confdefs.h. */
16239
16240/* Override any GCC internal prototype to avoid an error.
16241 Use char because int might match the return type of a GCC
16242 builtin and then its argument prototype would still apply. */
16243#ifdef __cplusplus
16244extern "C"
16245#endif
16246char shl_load ();
16247int
16248main ()
16249{
16250return shl_load ();
16251 ;
16252 return 0;
16253}
16254_ACEOF
16255if ac_fn_c_try_link "$LINENO"; then :
16256 ac_cv_lib_dld_shl_load=yes
16257else
16258 ac_cv_lib_dld_shl_load=no
16259fi
16260rm -f core conftest.err conftest.$ac_objext \
16261 conftest$ac_exeext conftest.$ac_ext
16262LIBS=$ac_check_lib_save_LIBS
16263fi
16264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16265$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016266if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16268else
16269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016270if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016271 lt_cv_dlopen="dlopen"
16272else
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16274$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016275if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016276 $as_echo_n "(cached) " >&6
16277else
16278 ac_check_lib_save_LIBS=$LIBS
16279LIBS="-ldl $LIBS"
16280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281/* end confdefs.h. */
16282
16283/* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16286#ifdef __cplusplus
16287extern "C"
16288#endif
16289char dlopen ();
16290int
16291main ()
16292{
16293return dlopen ();
16294 ;
16295 return 0;
16296}
16297_ACEOF
16298if ac_fn_c_try_link "$LINENO"; then :
16299 ac_cv_lib_dl_dlopen=yes
16300else
16301 ac_cv_lib_dl_dlopen=no
16302fi
16303rm -f core conftest.err conftest.$ac_objext \
16304 conftest$ac_exeext conftest.$ac_ext
16305LIBS=$ac_check_lib_save_LIBS
16306fi
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16308$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016309if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16311else
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16313$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016314if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016315 $as_echo_n "(cached) " >&6
16316else
16317 ac_check_lib_save_LIBS=$LIBS
16318LIBS="-lsvld $LIBS"
16319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320/* end confdefs.h. */
16321
16322/* Override any GCC internal prototype to avoid an error.
16323 Use char because int might match the return type of a GCC
16324 builtin and then its argument prototype would still apply. */
16325#ifdef __cplusplus
16326extern "C"
16327#endif
16328char dlopen ();
16329int
16330main ()
16331{
16332return dlopen ();
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337if ac_fn_c_try_link "$LINENO"; then :
16338 ac_cv_lib_svld_dlopen=yes
16339else
16340 ac_cv_lib_svld_dlopen=no
16341fi
16342rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344LIBS=$ac_check_lib_save_LIBS
16345fi
16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16347$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016348if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16350else
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16352$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016353if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016354 $as_echo_n "(cached) " >&6
16355else
16356 ac_check_lib_save_LIBS=$LIBS
16357LIBS="-ldld $LIBS"
16358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359/* end confdefs.h. */
16360
16361/* Override any GCC internal prototype to avoid an error.
16362 Use char because int might match the return type of a GCC
16363 builtin and then its argument prototype would still apply. */
16364#ifdef __cplusplus
16365extern "C"
16366#endif
16367char dld_link ();
16368int
16369main ()
16370{
16371return dld_link ();
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376if ac_fn_c_try_link "$LINENO"; then :
16377 ac_cv_lib_dld_dld_link=yes
16378else
16379 ac_cv_lib_dld_dld_link=no
16380fi
16381rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16383LIBS=$ac_check_lib_save_LIBS
16384fi
16385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16386$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016387if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16389fi
16390
16391
16392fi
16393
16394
16395fi
16396
16397
16398fi
16399
16400
16401fi
16402
16403
16404fi
16405
16406 ;;
16407 esac
16408
16409 if test "x$lt_cv_dlopen" != xno; then
16410 enable_dlopen=yes
16411 else
16412 enable_dlopen=no
16413 fi
16414
16415 case $lt_cv_dlopen in
16416 dlopen)
16417 save_CPPFLAGS="$CPPFLAGS"
16418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16419
16420 save_LDFLAGS="$LDFLAGS"
16421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16422
16423 save_LIBS="$LIBS"
16424 LIBS="$lt_cv_dlopen_libs $LIBS"
16425
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16427$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016428if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016429 $as_echo_n "(cached) " >&6
16430else
16431 if test "$cross_compiling" = yes; then :
16432 lt_cv_dlopen_self=cross
16433else
16434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16435 lt_status=$lt_dlunknown
16436 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016437#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016438#include "confdefs.h"
16439
16440#if HAVE_DLFCN_H
16441#include <dlfcn.h>
16442#endif
16443
16444#include <stdio.h>
16445
16446#ifdef RTLD_GLOBAL
16447# define LT_DLGLOBAL RTLD_GLOBAL
16448#else
16449# ifdef DL_GLOBAL
16450# define LT_DLGLOBAL DL_GLOBAL
16451# else
16452# define LT_DLGLOBAL 0
16453# endif
16454#endif
16455
16456/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16457 find out it does not work in some platform. */
16458#ifndef LT_DLLAZY_OR_NOW
16459# ifdef RTLD_LAZY
16460# define LT_DLLAZY_OR_NOW RTLD_LAZY
16461# else
16462# ifdef DL_LAZY
16463# define LT_DLLAZY_OR_NOW DL_LAZY
16464# else
16465# ifdef RTLD_NOW
16466# define LT_DLLAZY_OR_NOW RTLD_NOW
16467# else
16468# ifdef DL_NOW
16469# define LT_DLLAZY_OR_NOW DL_NOW
16470# else
16471# define LT_DLLAZY_OR_NOW 0
16472# endif
16473# endif
16474# endif
16475# endif
16476#endif
16477
cristy0c60a692010-11-04 01:09:47 +000016478/* When -fvisbility=hidden is used, assume the code has been annotated
16479 correspondingly for the symbols needed. */
16480#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016481int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016482#endif
16483
cristyda16f162011-02-19 23:52:17 +000016484int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016485int main ()
16486{
16487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16488 int status = $lt_dlunknown;
16489
16490 if (self)
16491 {
16492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016493 else
16494 {
16495 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16496 else puts (dlerror ());
16497 }
cristy73bd4a52010-10-05 11:24:23 +000016498 /* dlclose (self); */
16499 }
16500 else
16501 puts (dlerror ());
16502
16503 return status;
16504}
16505_LT_EOF
16506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16507 (eval $ac_link) 2>&5
16508 ac_status=$?
16509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16510 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16511 (./conftest; exit; ) >&5 2>/dev/null
16512 lt_status=$?
16513 case x$lt_status in
16514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16517 esac
16518 else :
16519 # compilation failed
16520 lt_cv_dlopen_self=no
16521 fi
16522fi
16523rm -fr conftest*
16524
16525
16526fi
16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16528$as_echo "$lt_cv_dlopen_self" >&6; }
16529
16530 if test "x$lt_cv_dlopen_self" = xyes; then
16531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16533$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016534if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016535 $as_echo_n "(cached) " >&6
16536else
16537 if test "$cross_compiling" = yes; then :
16538 lt_cv_dlopen_self_static=cross
16539else
16540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16541 lt_status=$lt_dlunknown
16542 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016543#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016544#include "confdefs.h"
16545
16546#if HAVE_DLFCN_H
16547#include <dlfcn.h>
16548#endif
16549
16550#include <stdio.h>
16551
16552#ifdef RTLD_GLOBAL
16553# define LT_DLGLOBAL RTLD_GLOBAL
16554#else
16555# ifdef DL_GLOBAL
16556# define LT_DLGLOBAL DL_GLOBAL
16557# else
16558# define LT_DLGLOBAL 0
16559# endif
16560#endif
16561
16562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16563 find out it does not work in some platform. */
16564#ifndef LT_DLLAZY_OR_NOW
16565# ifdef RTLD_LAZY
16566# define LT_DLLAZY_OR_NOW RTLD_LAZY
16567# else
16568# ifdef DL_LAZY
16569# define LT_DLLAZY_OR_NOW DL_LAZY
16570# else
16571# ifdef RTLD_NOW
16572# define LT_DLLAZY_OR_NOW RTLD_NOW
16573# else
16574# ifdef DL_NOW
16575# define LT_DLLAZY_OR_NOW DL_NOW
16576# else
16577# define LT_DLLAZY_OR_NOW 0
16578# endif
16579# endif
16580# endif
16581# endif
16582#endif
16583
cristy0c60a692010-11-04 01:09:47 +000016584/* When -fvisbility=hidden is used, assume the code has been annotated
16585 correspondingly for the symbols needed. */
16586#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016587int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016588#endif
16589
cristyda16f162011-02-19 23:52:17 +000016590int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016591int main ()
16592{
16593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16594 int status = $lt_dlunknown;
16595
16596 if (self)
16597 {
16598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016599 else
16600 {
16601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16602 else puts (dlerror ());
16603 }
cristy73bd4a52010-10-05 11:24:23 +000016604 /* dlclose (self); */
16605 }
16606 else
16607 puts (dlerror ());
16608
16609 return status;
16610}
16611_LT_EOF
16612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16613 (eval $ac_link) 2>&5
16614 ac_status=$?
16615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16617 (./conftest; exit; ) >&5 2>/dev/null
16618 lt_status=$?
16619 case x$lt_status in
16620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16622 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16623 esac
16624 else :
16625 # compilation failed
16626 lt_cv_dlopen_self_static=no
16627 fi
16628fi
16629rm -fr conftest*
16630
16631
16632fi
16633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16634$as_echo "$lt_cv_dlopen_self_static" >&6; }
16635 fi
16636
16637 CPPFLAGS="$save_CPPFLAGS"
16638 LDFLAGS="$save_LDFLAGS"
16639 LIBS="$save_LIBS"
16640 ;;
16641 esac
16642
16643 case $lt_cv_dlopen_self in
16644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16645 *) enable_dlopen_self=unknown ;;
16646 esac
16647
16648 case $lt_cv_dlopen_self_static in
16649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16650 *) enable_dlopen_self_static=unknown ;;
16651 esac
16652fi
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670striplib=
16671old_striplib=
16672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16673$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16674if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16676 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16678$as_echo "yes" >&6; }
16679else
16680# FIXME - insert some real tests, host_os isn't really good enough
16681 case $host_os in
16682 darwin*)
16683 if test -n "$STRIP" ; then
16684 striplib="$STRIP -x"
16685 old_striplib="$STRIP -S"
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16687$as_echo "yes" >&6; }
16688 else
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16690$as_echo "no" >&6; }
16691 fi
16692 ;;
16693 *)
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16695$as_echo "no" >&6; }
16696 ;;
16697 esac
16698fi
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711 # Report which library types will actually be built
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16713$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16715$as_echo "$can_build_shared" >&6; }
16716
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16718$as_echo_n "checking whether to build shared libraries... " >&6; }
16719 test "$can_build_shared" = "no" && enable_shared=no
16720
16721 # On AIX, shared libraries and static libraries use the same namespace, and
16722 # are all built from PIC.
16723 case $host_os in
16724 aix3*)
16725 test "$enable_shared" = yes && enable_static=no
16726 if test -n "$RANLIB"; then
16727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16728 postinstall_cmds='$RANLIB $lib'
16729 fi
16730 ;;
16731
16732 aix[4-9]*)
16733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16734 test "$enable_shared" = yes && enable_static=no
16735 fi
16736 ;;
16737 esac
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16739$as_echo "$enable_shared" >&6; }
16740
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16742$as_echo_n "checking whether to build static libraries... " >&6; }
16743 # Make sure either enable_shared or enable_static is yes.
16744 test "$enable_shared" = yes || enable_static=yes
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16746$as_echo "$enable_static" >&6; }
16747
16748
16749
16750
16751fi
16752ac_ext=c
16753ac_cpp='$CPP $CPPFLAGS'
16754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16756ac_compiler_gnu=$ac_cv_c_compiler_gnu
16757
16758CC="$lt_save_CC"
16759
cristy0c60a692010-11-04 01:09:47 +000016760 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16761 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16762 (test "X$CXX" != "Xg++"))) ; then
16763 ac_ext=cpp
16764ac_cpp='$CXXCPP $CPPFLAGS'
16765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16769$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16770if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016771 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016772 $as_echo_n "(cached) " >&6
16773else
16774 # Double quotes because CXXCPP needs to be expanded
16775 for CXXCPP in "$CXX -E" "/lib/cpp"
16776 do
16777 ac_preproc_ok=false
16778for ac_cxx_preproc_warn_flag in '' yes
16779do
16780 # Use a header file that comes with gcc, so configuring glibc
16781 # with a fresh cross-compiler works.
16782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16783 # <limits.h> exists even on freestanding compilers.
16784 # On the NeXT, cc -E runs the code through the compiler's parser,
16785 # not just through cpp. "Syntax error" is here to catch this case.
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787/* end confdefs.h. */
16788#ifdef __STDC__
16789# include <limits.h>
16790#else
16791# include <assert.h>
16792#endif
16793 Syntax error
16794_ACEOF
16795if ac_fn_cxx_try_cpp "$LINENO"; then :
16796
16797else
16798 # Broken: fails on valid input.
16799continue
16800fi
cristyda16f162011-02-19 23:52:17 +000016801rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016802
16803 # OK, works on sane cases. Now check whether nonexistent headers
16804 # can be detected and how.
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806/* end confdefs.h. */
16807#include <ac_nonexistent.h>
16808_ACEOF
16809if ac_fn_cxx_try_cpp "$LINENO"; then :
16810 # Broken: success on invalid input.
16811continue
16812else
16813 # Passes both tests.
16814ac_preproc_ok=:
16815break
16816fi
cristyda16f162011-02-19 23:52:17 +000016817rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016818
16819done
16820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016821rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016822if $ac_preproc_ok; then :
16823 break
16824fi
16825
16826 done
16827 ac_cv_prog_CXXCPP=$CXXCPP
16828
16829fi
16830 CXXCPP=$ac_cv_prog_CXXCPP
16831else
16832 ac_cv_prog_CXXCPP=$CXXCPP
16833fi
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16835$as_echo "$CXXCPP" >&6; }
16836ac_preproc_ok=false
16837for ac_cxx_preproc_warn_flag in '' yes
16838do
16839 # Use a header file that comes with gcc, so configuring glibc
16840 # with a fresh cross-compiler works.
16841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16842 # <limits.h> exists even on freestanding compilers.
16843 # On the NeXT, cc -E runs the code through the compiler's parser,
16844 # not just through cpp. "Syntax error" is here to catch this case.
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846/* end confdefs.h. */
16847#ifdef __STDC__
16848# include <limits.h>
16849#else
16850# include <assert.h>
16851#endif
16852 Syntax error
16853_ACEOF
16854if ac_fn_cxx_try_cpp "$LINENO"; then :
16855
16856else
16857 # Broken: fails on valid input.
16858continue
16859fi
cristyda16f162011-02-19 23:52:17 +000016860rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016861
16862 # OK, works on sane cases. Now check whether nonexistent headers
16863 # can be detected and how.
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865/* end confdefs.h. */
16866#include <ac_nonexistent.h>
16867_ACEOF
16868if ac_fn_cxx_try_cpp "$LINENO"; then :
16869 # Broken: success on invalid input.
16870continue
16871else
16872 # Passes both tests.
16873ac_preproc_ok=:
16874break
16875fi
cristyda16f162011-02-19 23:52:17 +000016876rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016877
16878done
16879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016880rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016881if $ac_preproc_ok; then :
16882
16883else
16884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16886as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16887See \`config.log' for more details" "$LINENO" 5; }
16888fi
16889
16890ac_ext=c
16891ac_cpp='$CPP $CPPFLAGS'
16892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16894ac_compiler_gnu=$ac_cv_c_compiler_gnu
16895
16896else
16897 _lt_caught_CXX_error=yes
16898fi
cristy73bd4a52010-10-05 11:24:23 +000016899
16900ac_ext=cpp
16901ac_cpp='$CXXCPP $CPPFLAGS'
16902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16905
16906archive_cmds_need_lc_CXX=no
16907allow_undefined_flag_CXX=
16908always_export_symbols_CXX=no
16909archive_expsym_cmds_CXX=
16910compiler_needs_object_CXX=no
16911export_dynamic_flag_spec_CXX=
16912hardcode_direct_CXX=no
16913hardcode_direct_absolute_CXX=no
16914hardcode_libdir_flag_spec_CXX=
16915hardcode_libdir_flag_spec_ld_CXX=
16916hardcode_libdir_separator_CXX=
16917hardcode_minus_L_CXX=no
16918hardcode_shlibpath_var_CXX=unsupported
16919hardcode_automatic_CXX=no
16920inherit_rpath_CXX=no
16921module_cmds_CXX=
16922module_expsym_cmds_CXX=
16923link_all_deplibs_CXX=unknown
16924old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016925reload_flag_CXX=$reload_flag
16926reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016927no_undefined_flag_CXX=
16928whole_archive_flag_spec_CXX=
16929enable_shared_with_static_runtimes_CXX=no
16930
16931# Source file extension for C++ test sources.
16932ac_ext=cpp
16933
16934# Object file extension for compiled C++ test sources.
16935objext=o
16936objext_CXX=$objext
16937
16938# No sense in running all these tests if we already determined that
16939# the CXX compiler isn't working. Some variables (like enable_shared)
16940# are currently assumed to apply to all compilers on this platform,
16941# and will be corrupted by setting them based on a non-working compiler.
16942if test "$_lt_caught_CXX_error" != yes; then
16943 # Code to be used in simple compile tests
16944 lt_simple_compile_test_code="int some_variable = 0;"
16945
16946 # Code to be used in simple link tests
16947 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16948
16949 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16950
16951
16952
16953
16954
16955
16956# If no C compiler was specified, use CC.
16957LTCC=${LTCC-"$CC"}
16958
16959# If no C compiler flags were specified, use CFLAGS.
16960LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16961
16962# Allow CC to be a program name with arguments.
16963compiler=$CC
16964
16965
16966 # save warnings/boilerplate of simple test code
16967 ac_outfile=conftest.$ac_objext
16968echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16969eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16970_lt_compiler_boilerplate=`cat conftest.err`
16971$RM conftest*
16972
16973 ac_outfile=conftest.$ac_objext
16974echo "$lt_simple_link_test_code" >conftest.$ac_ext
16975eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16976_lt_linker_boilerplate=`cat conftest.err`
16977$RM -r conftest*
16978
16979
16980 # Allow CC to be a program name with arguments.
16981 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016982 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016983 lt_save_LD=$LD
16984 lt_save_GCC=$GCC
16985 GCC=$GXX
16986 lt_save_with_gnu_ld=$with_gnu_ld
16987 lt_save_path_LD=$lt_cv_path_LD
16988 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16989 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16990 else
16991 $as_unset lt_cv_prog_gnu_ld
16992 fi
16993 if test -n "${lt_cv_path_LDCXX+set}"; then
16994 lt_cv_path_LD=$lt_cv_path_LDCXX
16995 else
16996 $as_unset lt_cv_path_LD
16997 fi
16998 test -z "${LDCXX+set}" || LD=$LDCXX
16999 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017000 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017001 compiler=$CC
17002 compiler_CXX=$CC
17003 for cc_temp in $compiler""; do
17004 case $cc_temp in
17005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17007 \-*) ;;
17008 *) break;;
17009 esac
17010done
cristy0c60a692010-11-04 01:09:47 +000017011cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017012
17013
17014 if test -n "$compiler"; then
17015 # We don't want -fno-exception when compiling C++ code, so set the
17016 # no_builtin_flag separately
17017 if test "$GXX" = yes; then
17018 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17019 else
17020 lt_prog_compiler_no_builtin_flag_CXX=
17021 fi
17022
17023 if test "$GXX" = yes; then
17024 # Set up default GNU C++ configuration
17025
17026
17027
17028# Check whether --with-gnu-ld was given.
17029if test "${with_gnu_ld+set}" = set; then :
17030 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17031else
17032 with_gnu_ld=no
17033fi
17034
17035ac_prog=ld
17036if test "$GCC" = yes; then
17037 # Check if gcc -print-prog-name=ld gives a path.
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17039$as_echo_n "checking for ld used by $CC... " >&6; }
17040 case $host in
17041 *-*-mingw*)
17042 # gcc leaves a trailing carriage return which upsets mingw
17043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17044 *)
17045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17046 esac
17047 case $ac_prog in
17048 # Accept absolute paths.
17049 [\\/]* | ?:[\\/]*)
17050 re_direlt='/[^/][^/]*/\.\./'
17051 # Canonicalize the pathname of ld
17052 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17053 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17054 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17055 done
17056 test -z "$LD" && LD="$ac_prog"
17057 ;;
17058 "")
17059 # If it fails, then pretend we aren't using GCC.
17060 ac_prog=ld
17061 ;;
17062 *)
17063 # If it is relative, then search for the first ld in PATH.
17064 with_gnu_ld=unknown
17065 ;;
17066 esac
17067elif test "$with_gnu_ld" = yes; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17069$as_echo_n "checking for GNU ld... " >&6; }
17070else
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17072$as_echo_n "checking for non-GNU ld... " >&6; }
17073fi
cristyda16f162011-02-19 23:52:17 +000017074if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017075 $as_echo_n "(cached) " >&6
17076else
17077 if test -z "$LD"; then
17078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17079 for ac_dir in $PATH; do
17080 IFS="$lt_save_ifs"
17081 test -z "$ac_dir" && ac_dir=.
17082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17083 lt_cv_path_LD="$ac_dir/$ac_prog"
17084 # Check to see if the program is GNU ld. I'd rather use --version,
17085 # but apparently some variants of GNU ld only accept -v.
17086 # Break only if it was the GNU/non-GNU ld that we prefer.
17087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17088 *GNU* | *'with BFD'*)
17089 test "$with_gnu_ld" != no && break
17090 ;;
17091 *)
17092 test "$with_gnu_ld" != yes && break
17093 ;;
17094 esac
17095 fi
17096 done
17097 IFS="$lt_save_ifs"
17098else
17099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17100fi
17101fi
17102
17103LD="$lt_cv_path_LD"
17104if test -n "$LD"; then
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17106$as_echo "$LD" >&6; }
17107else
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17109$as_echo "no" >&6; }
17110fi
cristy98dddb52010-11-04 00:30:15 +000017111test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17113$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017114if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017115 $as_echo_n "(cached) " >&6
17116else
17117 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17118case `$LD -v 2>&1 </dev/null` in
17119*GNU* | *'with BFD'*)
17120 lt_cv_prog_gnu_ld=yes
17121 ;;
17122*)
17123 lt_cv_prog_gnu_ld=no
17124 ;;
17125esac
17126fi
17127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17128$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17129with_gnu_ld=$lt_cv_prog_gnu_ld
17130
17131
17132
17133
17134
17135
17136
17137 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17138 # archiving commands below assume that GNU ld is being used.
17139 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017140 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17141 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 +000017142
17143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17144 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17145
17146 # If archive_cmds runs LD, not CC, wlarc should be empty
17147 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17148 # investigate it a little bit more. (MM)
17149 wlarc='${wl}'
17150
17151 # ancient GNU ld didn't support --whole-archive et. al.
17152 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17153 $GREP 'no-whole-archive' > /dev/null; then
17154 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17155 else
17156 whole_archive_flag_spec_CXX=
17157 fi
17158 else
17159 with_gnu_ld=no
17160 wlarc=
17161
17162 # A generic and very simple default shared library creation
17163 # command for GNU C++ for the case where it uses the native
17164 # linker, instead of GNU ld. If possible, this setting should
17165 # overridden to take advantage of the native linker features on
17166 # the platform it is being used on.
17167 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17168 fi
17169
17170 # Commands to make compiler produce verbose output that lists
17171 # what "hidden" libraries, object files and flags are used when
17172 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017173 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017174
17175 else
17176 GXX=no
17177 with_gnu_ld=no
17178 wlarc=
17179 fi
17180
17181 # PORTME: fill in a description of your system's C++ link characteristics
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17183$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17184 ld_shlibs_CXX=yes
17185 case $host_os in
17186 aix3*)
17187 # FIXME: insert proper C++ library support
17188 ld_shlibs_CXX=no
17189 ;;
17190 aix[4-9]*)
17191 if test "$host_cpu" = ia64; then
17192 # On IA64, the linker does run time linking by default, so we don't
17193 # have to do anything special.
17194 aix_use_runtimelinking=no
17195 exp_sym_flag='-Bexport'
17196 no_entry_flag=""
17197 else
17198 aix_use_runtimelinking=no
17199
17200 # Test if we are trying to use run time linking or normal
17201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17202 # need to do runtime linking.
17203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17204 for ld_flag in $LDFLAGS; do
17205 case $ld_flag in
17206 *-brtl*)
17207 aix_use_runtimelinking=yes
17208 break
17209 ;;
17210 esac
17211 done
17212 ;;
17213 esac
17214
17215 exp_sym_flag='-bexport'
17216 no_entry_flag='-bnoentry'
17217 fi
17218
17219 # When large executables or shared objects are built, AIX ld can
17220 # have problems creating the table of contents. If linking a library
17221 # or program results in "error TOC overflow" add -mminimal-toc to
17222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17224
17225 archive_cmds_CXX=''
17226 hardcode_direct_CXX=yes
17227 hardcode_direct_absolute_CXX=yes
17228 hardcode_libdir_separator_CXX=':'
17229 link_all_deplibs_CXX=yes
17230 file_list_spec_CXX='${wl}-f,'
17231
17232 if test "$GXX" = yes; then
17233 case $host_os in aix4.[012]|aix4.[012].*)
17234 # We only want to do this on AIX 4.2 and lower, the check
17235 # below for broken collect2 doesn't work under 4.3+
17236 collect2name=`${CC} -print-prog-name=collect2`
17237 if test -f "$collect2name" &&
17238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17239 then
17240 # We have reworked collect2
17241 :
17242 else
17243 # We have old collect2
17244 hardcode_direct_CXX=unsupported
17245 # It fails to find uninstalled libraries when the uninstalled
17246 # path is not listed in the libpath. Setting hardcode_minus_L
17247 # to unsupported forces relinking
17248 hardcode_minus_L_CXX=yes
17249 hardcode_libdir_flag_spec_CXX='-L$libdir'
17250 hardcode_libdir_separator_CXX=
17251 fi
17252 esac
17253 shared_flag='-shared'
17254 if test "$aix_use_runtimelinking" = yes; then
17255 shared_flag="$shared_flag "'${wl}-G'
17256 fi
17257 else
17258 # not using gcc
17259 if test "$host_cpu" = ia64; then
17260 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17261 # chokes on -Wl,-G. The following line is correct:
17262 shared_flag='-G'
17263 else
17264 if test "$aix_use_runtimelinking" = yes; then
17265 shared_flag='${wl}-G'
17266 else
17267 shared_flag='${wl}-bM:SRE'
17268 fi
17269 fi
17270 fi
17271
17272 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17273 # It seems that -bexpall does not export symbols beginning with
17274 # underscore (_), so it is better to generate a list of symbols to
17275 # export.
17276 always_export_symbols_CXX=yes
17277 if test "$aix_use_runtimelinking" = yes; then
17278 # Warning - without using the other runtime loading flags (-brtl),
17279 # -berok will link without error, but may produce a broken library.
17280 allow_undefined_flag_CXX='-berok'
17281 # Determine the default libpath from the value encoded in an empty
17282 # executable.
cristyda16f162011-02-19 23:52:17 +000017283 if test "${lt_cv_aix_libpath+set}" = set; then
17284 aix_libpath=$lt_cv_aix_libpath
17285else
17286 if ${lt_cv_aix_libpath__CXX+:} false; then :
17287 $as_echo_n "(cached) " >&6
17288else
17289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017290/* end confdefs.h. */
17291
17292int
17293main ()
17294{
17295
17296 ;
17297 return 0;
17298}
17299_ACEOF
17300if ac_fn_cxx_try_link "$LINENO"; then :
17301
cristyda16f162011-02-19 23:52:17 +000017302 lt_aix_libpath_sed='
17303 /Import File Strings/,/^$/ {
17304 /^0/ {
17305 s/^0 *\([^ ]*\) *$/\1/
17306 p
17307 }
17308 }'
17309 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17310 # Check for a 64-bit object if we didn't find anything.
17311 if test -z "$lt_cv_aix_libpath__CXX"; then
17312 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17313 fi
cristy73bd4a52010-10-05 11:24:23 +000017314fi
17315rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017317 if test -z "$lt_cv_aix_libpath__CXX"; then
17318 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17319 fi
17320
17321fi
17322
17323 aix_libpath=$lt_cv_aix_libpath__CXX
17324fi
cristy73bd4a52010-10-05 11:24:23 +000017325
17326 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17327
cristy0c60a692010-11-04 01:09:47 +000017328 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 +000017329 else
17330 if test "$host_cpu" = ia64; then
17331 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17332 allow_undefined_flag_CXX="-z nodefs"
17333 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"
17334 else
17335 # Determine the default libpath from the value encoded in an
17336 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017337 if test "${lt_cv_aix_libpath+set}" = set; then
17338 aix_libpath=$lt_cv_aix_libpath
17339else
17340 if ${lt_cv_aix_libpath__CXX+:} false; then :
17341 $as_echo_n "(cached) " >&6
17342else
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017344/* end confdefs.h. */
17345
17346int
17347main ()
17348{
17349
17350 ;
17351 return 0;
17352}
17353_ACEOF
17354if ac_fn_cxx_try_link "$LINENO"; then :
17355
cristyda16f162011-02-19 23:52:17 +000017356 lt_aix_libpath_sed='
17357 /Import File Strings/,/^$/ {
17358 /^0/ {
17359 s/^0 *\([^ ]*\) *$/\1/
17360 p
17361 }
17362 }'
17363 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17364 # Check for a 64-bit object if we didn't find anything.
17365 if test -z "$lt_cv_aix_libpath__CXX"; then
17366 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17367 fi
cristy73bd4a52010-10-05 11:24:23 +000017368fi
17369rm -f core conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017371 if test -z "$lt_cv_aix_libpath__CXX"; then
17372 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17373 fi
17374
17375fi
17376
17377 aix_libpath=$lt_cv_aix_libpath__CXX
17378fi
cristy73bd4a52010-10-05 11:24:23 +000017379
17380 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17381 # Warning - without using the other run time loading flags,
17382 # -berok will link without error, but may produce a broken library.
17383 no_undefined_flag_CXX=' ${wl}-bernotok'
17384 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017385 if test "$with_gnu_ld" = yes; then
17386 # We only use this code for GNU lds that support --whole-archive.
17387 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17388 else
17389 # Exported symbols can be pulled into shared objects from archives
17390 whole_archive_flag_spec_CXX='$convenience'
17391 fi
cristy73bd4a52010-10-05 11:24:23 +000017392 archive_cmds_need_lc_CXX=yes
17393 # This is similar to how AIX traditionally builds its shared
17394 # libraries.
17395 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'
17396 fi
17397 fi
17398 ;;
17399
17400 beos*)
17401 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17402 allow_undefined_flag_CXX=unsupported
17403 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17404 # support --undefined. This deserves some investigation. FIXME
17405 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17406 else
17407 ld_shlibs_CXX=no
17408 fi
17409 ;;
17410
17411 chorus*)
17412 case $cc_basename in
17413 *)
17414 # FIXME: insert proper C++ library support
17415 ld_shlibs_CXX=no
17416 ;;
17417 esac
17418 ;;
17419
17420 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017421 case $GXX,$cc_basename in
17422 ,cl* | no,cl*)
17423 # Native MSVC
17424 # hardcode_libdir_flag_spec is actually meaningless, as there is
17425 # no search path for DLLs.
17426 hardcode_libdir_flag_spec_CXX=' '
17427 allow_undefined_flag_CXX=unsupported
17428 always_export_symbols_CXX=yes
17429 file_list_spec_CXX='@'
17430 # Tell ltmain to make .lib files, not .a files.
17431 libext=lib
17432 # Tell ltmain to make .dll files, not .so files.
17433 shrext_cmds=".dll"
17434 # FIXME: Setting linknames here is a bad hack.
17435 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17436 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17437 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17438 else
17439 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17440 fi~
17441 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17442 linknames='
17443 # The linker will not automatically build a static lib if we build a DLL.
17444 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17445 enable_shared_with_static_runtimes_CXX=yes
17446 # Don't use ranlib
17447 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17448 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17449 lt_tool_outputfile="@TOOL_OUTPUT@"~
17450 case $lt_outputfile in
17451 *.exe|*.EXE) ;;
17452 *)
17453 lt_outputfile="$lt_outputfile.exe"
17454 lt_tool_outputfile="$lt_tool_outputfile.exe"
17455 ;;
17456 esac~
17457 func_to_tool_file "$lt_outputfile"~
17458 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17460 $RM "$lt_outputfile.manifest";
17461 fi'
17462 ;;
17463 *)
17464 # g++
17465 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17466 # as there is no search path for DLLs.
17467 hardcode_libdir_flag_spec_CXX='-L$libdir'
17468 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17469 allow_undefined_flag_CXX=unsupported
17470 always_export_symbols_CXX=no
17471 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017472
cristyda16f162011-02-19 23:52:17 +000017473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17474 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'
17475 # If the export-symbols file already is a .def file (1st line
17476 # is EXPORTS), use it as is; otherwise, prepend...
17477 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17478 cp $export_symbols $output_objdir/$soname.def;
17479 else
17480 echo EXPORTS > $output_objdir/$soname.def;
17481 cat $export_symbols >> $output_objdir/$soname.def;
17482 fi~
17483 $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'
17484 else
17485 ld_shlibs_CXX=no
17486 fi
17487 ;;
17488 esac
17489 ;;
cristy73bd4a52010-10-05 11:24:23 +000017490 darwin* | rhapsody*)
17491
17492
17493 archive_cmds_need_lc_CXX=no
17494 hardcode_direct_CXX=no
17495 hardcode_automatic_CXX=yes
17496 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017497 if test "$lt_cv_ld_force_load" = "yes"; then
17498 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\"`'
17499 else
17500 whole_archive_flag_spec_CXX=''
17501 fi
cristy73bd4a52010-10-05 11:24:23 +000017502 link_all_deplibs_CXX=yes
17503 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17504 case $cc_basename in
17505 ifort*) _lt_dar_can_shared=yes ;;
17506 *) _lt_dar_can_shared=$GCC ;;
17507 esac
17508 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017509 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017510 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}"
17511 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17512 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}"
17513 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}"
17514 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17515 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}"
17516 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}"
17517 fi
17518
17519 else
17520 ld_shlibs_CXX=no
17521 fi
17522
17523 ;;
17524
17525 dgux*)
17526 case $cc_basename in
17527 ec++*)
17528 # FIXME: insert proper C++ library support
17529 ld_shlibs_CXX=no
17530 ;;
17531 ghcx*)
17532 # Green Hills C++ Compiler
17533 # FIXME: insert proper C++ library support
17534 ld_shlibs_CXX=no
17535 ;;
17536 *)
17537 # FIXME: insert proper C++ library support
17538 ld_shlibs_CXX=no
17539 ;;
17540 esac
17541 ;;
17542
17543 freebsd[12]*)
17544 # C++ shared libraries reported to be fairly broken before
17545 # switch to ELF
17546 ld_shlibs_CXX=no
17547 ;;
17548
17549 freebsd-elf*)
17550 archive_cmds_need_lc_CXX=no
17551 ;;
17552
17553 freebsd* | dragonfly*)
17554 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17555 # conventions
17556 ld_shlibs_CXX=yes
17557 ;;
17558
17559 gnu*)
17560 ;;
17561
cristy0c60a692010-11-04 01:09:47 +000017562 haiku*)
17563 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17564 link_all_deplibs_CXX=yes
17565 ;;
17566
cristy73bd4a52010-10-05 11:24:23 +000017567 hpux9*)
17568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17569 hardcode_libdir_separator_CXX=:
17570 export_dynamic_flag_spec_CXX='${wl}-E'
17571 hardcode_direct_CXX=yes
17572 hardcode_minus_L_CXX=yes # Not in the search PATH,
17573 # but as the default
17574 # location of the library.
17575
17576 case $cc_basename in
17577 CC*)
17578 # FIXME: insert proper C++ library support
17579 ld_shlibs_CXX=no
17580 ;;
17581 aCC*)
17582 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'
17583 # Commands to make compiler produce verbose output that lists
17584 # what "hidden" libraries, object files and flags are used when
17585 # linking a shared library.
17586 #
17587 # There doesn't appear to be a way to prevent this compiler from
17588 # explicitly linking system object files so we need to strip them
17589 # from the output so that they don't get included in the library
17590 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017591 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 +000017592 ;;
17593 *)
17594 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017595 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 +000017596 else
17597 # FIXME: insert proper C++ library support
17598 ld_shlibs_CXX=no
17599 fi
17600 ;;
17601 esac
17602 ;;
17603
17604 hpux10*|hpux11*)
17605 if test $with_gnu_ld = no; then
17606 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17607 hardcode_libdir_separator_CXX=:
17608
17609 case $host_cpu in
17610 hppa*64*|ia64*)
17611 ;;
17612 *)
17613 export_dynamic_flag_spec_CXX='${wl}-E'
17614 ;;
17615 esac
17616 fi
17617 case $host_cpu in
17618 hppa*64*|ia64*)
17619 hardcode_direct_CXX=no
17620 hardcode_shlibpath_var_CXX=no
17621 ;;
17622 *)
17623 hardcode_direct_CXX=yes
17624 hardcode_direct_absolute_CXX=yes
17625 hardcode_minus_L_CXX=yes # Not in the search PATH,
17626 # but as the default
17627 # location of the library.
17628 ;;
17629 esac
17630
17631 case $cc_basename in
17632 CC*)
17633 # FIXME: insert proper C++ library support
17634 ld_shlibs_CXX=no
17635 ;;
17636 aCC*)
17637 case $host_cpu in
17638 hppa*64*)
17639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17640 ;;
17641 ia64*)
17642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17643 ;;
17644 *)
17645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17646 ;;
17647 esac
17648 # Commands to make compiler produce verbose output that lists
17649 # what "hidden" libraries, object files and flags are used when
17650 # linking a shared library.
17651 #
17652 # There doesn't appear to be a way to prevent this compiler from
17653 # explicitly linking system object files so we need to strip them
17654 # from the output so that they don't get included in the library
17655 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017656 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 +000017657 ;;
17658 *)
17659 if test "$GXX" = yes; then
17660 if test $with_gnu_ld = no; then
17661 case $host_cpu in
17662 hppa*64*)
17663 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17664 ;;
17665 ia64*)
cristyda16f162011-02-19 23:52:17 +000017666 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 +000017667 ;;
17668 *)
cristyda16f162011-02-19 23:52:17 +000017669 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 +000017670 ;;
17671 esac
17672 fi
17673 else
17674 # FIXME: insert proper C++ library support
17675 ld_shlibs_CXX=no
17676 fi
17677 ;;
17678 esac
17679 ;;
17680
17681 interix[3-9]*)
17682 hardcode_direct_CXX=no
17683 hardcode_shlibpath_var_CXX=no
17684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17685 export_dynamic_flag_spec_CXX='${wl}-E'
17686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17687 # Instead, shared libraries are loaded at an image base (0x10000000 by
17688 # default) and relocated if they conflict, which is a slow very memory
17689 # consuming and fragmenting process. To avoid this, we pick a random,
17690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17692 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'
17693 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'
17694 ;;
17695 irix5* | irix6*)
17696 case $cc_basename in
17697 CC*)
17698 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017699 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 +000017700
17701 # Archives containing C++ object files must be created using
17702 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17703 # necessary to make sure instantiated templates are included
17704 # in the archive.
17705 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17706 ;;
17707 *)
17708 if test "$GXX" = yes; then
17709 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017710 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 +000017711 else
cristyda16f162011-02-19 23:52:17 +000017712 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 +000017713 fi
17714 fi
17715 link_all_deplibs_CXX=yes
17716 ;;
17717 esac
17718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17719 hardcode_libdir_separator_CXX=:
17720 inherit_rpath_CXX=yes
17721 ;;
17722
cristy0c60a692010-11-04 01:09:47 +000017723 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017724 case $cc_basename in
17725 KCC*)
17726 # Kuck and Associates, Inc. (KAI) C++ Compiler
17727
17728 # KCC will only create a shared library if the output file
17729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17730 # to its proper name (with version) after linking.
17731 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'
17732 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'
17733 # Commands to make compiler produce verbose output that lists
17734 # what "hidden" libraries, object files and flags are used when
17735 # linking a shared library.
17736 #
17737 # There doesn't appear to be a way to prevent this compiler from
17738 # explicitly linking system object files so we need to strip them
17739 # from the output so that they don't get included in the library
17740 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017741 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 +000017742
17743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17745
17746 # Archives containing C++ object files must be created using
17747 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17748 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17749 ;;
17750 icpc* | ecpc* )
17751 # Intel C++
17752 with_gnu_ld=yes
17753 # version 8.0 and above of icpc choke on multiply defined symbols
17754 # if we add $predep_objects and $postdep_objects, however 7.1 and
17755 # earlier do not add the objects themselves.
17756 case `$CC -V 2>&1` in
17757 *"Version 7."*)
17758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17759 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'
17760 ;;
17761 *) # Version 8.0 or newer
17762 tmp_idyn=
17763 case $host_cpu in
17764 ia64*) tmp_idyn=' -i_dynamic';;
17765 esac
17766 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17767 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'
17768 ;;
17769 esac
17770 archive_cmds_need_lc_CXX=no
17771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17773 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17774 ;;
17775 pgCC* | pgcpp*)
17776 # Portland Group C++ compiler
17777 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017778 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017779 prelink_cmds_CXX='tpldir=Template.dir~
17780 rm -rf $tpldir~
17781 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017782 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017783 old_archive_cmds_CXX='tpldir=Template.dir~
17784 rm -rf $tpldir~
17785 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017786 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017787 $RANLIB $oldlib'
17788 archive_cmds_CXX='tpldir=Template.dir~
17789 rm -rf $tpldir~
17790 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017791 $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 +000017792 archive_expsym_cmds_CXX='tpldir=Template.dir~
17793 rm -rf $tpldir~
17794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017795 $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 +000017796 ;;
cristy0c60a692010-11-04 01:09:47 +000017797 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17799 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'
17800 ;;
17801 esac
17802
17803 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017805 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 +000017806 ;;
17807 cxx*)
17808 # Compaq C++
17809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17810 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'
17811
17812 runpath_var=LD_RUN_PATH
17813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17814 hardcode_libdir_separator_CXX=:
17815
17816 # Commands to make compiler produce verbose output that lists
17817 # what "hidden" libraries, object files and flags are used when
17818 # linking a shared library.
17819 #
17820 # There doesn't appear to be a way to prevent this compiler from
17821 # explicitly linking system object files so we need to strip them
17822 # from the output so that they don't get included in the library
17823 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017824 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 +000017825 ;;
cristy0c60a692010-11-04 01:09:47 +000017826 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017827 # IBM XL 8.0 on PPC, with GNU ld
17828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17830 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17831 if test "x$supports_anon_versioning" = xyes; then
17832 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17834 echo "local: *; };" >> $output_objdir/$libname.ver~
17835 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17836 fi
17837 ;;
17838 *)
17839 case `$CC -V 2>&1 | sed 5q` in
17840 *Sun\ C*)
17841 # Sun C++ 5.9
17842 no_undefined_flag_CXX=' -zdefs'
17843 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17844 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'
17845 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017846 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 +000017847 compiler_needs_object_CXX=yes
17848
17849 # Not sure whether something based on
17850 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17851 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017852 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017853
17854 # Archives containing C++ object files must be created using
17855 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17856 # necessary to make sure instantiated templates are included
17857 # in the archive.
17858 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17859 ;;
17860 esac
17861 ;;
17862 esac
17863 ;;
17864
17865 lynxos*)
17866 # FIXME: insert proper C++ library support
17867 ld_shlibs_CXX=no
17868 ;;
17869
17870 m88k*)
17871 # FIXME: insert proper C++ library support
17872 ld_shlibs_CXX=no
17873 ;;
17874
17875 mvs*)
17876 case $cc_basename in
17877 cxx*)
17878 # FIXME: insert proper C++ library support
17879 ld_shlibs_CXX=no
17880 ;;
17881 *)
17882 # FIXME: insert proper C++ library support
17883 ld_shlibs_CXX=no
17884 ;;
17885 esac
17886 ;;
17887
17888 netbsd*)
17889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17890 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17891 wlarc=
17892 hardcode_libdir_flag_spec_CXX='-R$libdir'
17893 hardcode_direct_CXX=yes
17894 hardcode_shlibpath_var_CXX=no
17895 fi
17896 # Workaround some broken pre-1.5 toolchains
17897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17898 ;;
17899
17900 *nto* | *qnx*)
17901 ld_shlibs_CXX=yes
17902 ;;
17903
17904 openbsd2*)
17905 # C++ shared libraries are fairly broken
17906 ld_shlibs_CXX=no
17907 ;;
17908
17909 openbsd*)
17910 if test -f /usr/libexec/ld.so; then
17911 hardcode_direct_CXX=yes
17912 hardcode_shlibpath_var_CXX=no
17913 hardcode_direct_absolute_CXX=yes
17914 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17917 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17918 export_dynamic_flag_spec_CXX='${wl}-E'
17919 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17920 fi
cristy0c60a692010-11-04 01:09:47 +000017921 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017922 else
17923 ld_shlibs_CXX=no
17924 fi
17925 ;;
17926
17927 osf3* | osf4* | osf5*)
17928 case $cc_basename in
17929 KCC*)
17930 # Kuck and Associates, Inc. (KAI) C++ Compiler
17931
17932 # KCC will only create a shared library if the output file
17933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17934 # to its proper name (with version) after linking.
17935 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'
17936
17937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17938 hardcode_libdir_separator_CXX=:
17939
17940 # Archives containing C++ object files must be created using
17941 # the KAI C++ compiler.
17942 case $host in
17943 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17944 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17945 esac
17946 ;;
17947 RCC*)
17948 # Rational C++ 2.4.1
17949 # FIXME: insert proper C++ library support
17950 ld_shlibs_CXX=no
17951 ;;
17952 cxx*)
17953 case $host in
17954 osf3*)
17955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017956 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 +000017957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17958 ;;
17959 *)
17960 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017961 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 +000017962 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17963 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017964 $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 +000017965 $RM $lib.exp'
17966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17967 ;;
17968 esac
17969
17970 hardcode_libdir_separator_CXX=:
17971
17972 # Commands to make compiler produce verbose output that lists
17973 # what "hidden" libraries, object files and flags are used when
17974 # linking a shared library.
17975 #
17976 # There doesn't appear to be a way to prevent this compiler from
17977 # explicitly linking system object files so we need to strip them
17978 # from the output so that they don't get included in the library
17979 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017980 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 +000017981 ;;
17982 *)
17983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17985 case $host in
17986 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017987 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 +000017988 ;;
17989 *)
cristyda16f162011-02-19 23:52:17 +000017990 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 +000017991 ;;
17992 esac
17993
17994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17995 hardcode_libdir_separator_CXX=:
17996
17997 # Commands to make compiler produce verbose output that lists
17998 # what "hidden" libraries, object files and flags are used when
17999 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018001
18002 else
18003 # FIXME: insert proper C++ library support
18004 ld_shlibs_CXX=no
18005 fi
18006 ;;
18007 esac
18008 ;;
18009
18010 psos*)
18011 # FIXME: insert proper C++ library support
18012 ld_shlibs_CXX=no
18013 ;;
18014
18015 sunos4*)
18016 case $cc_basename in
18017 CC*)
18018 # Sun C++ 4.x
18019 # FIXME: insert proper C++ library support
18020 ld_shlibs_CXX=no
18021 ;;
18022 lcc*)
18023 # Lucid
18024 # FIXME: insert proper C++ library support
18025 ld_shlibs_CXX=no
18026 ;;
18027 *)
18028 # FIXME: insert proper C++ library support
18029 ld_shlibs_CXX=no
18030 ;;
18031 esac
18032 ;;
18033
18034 solaris*)
18035 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018036 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018037 # Sun C++ 4.2, 5.x and Centerline C++
18038 archive_cmds_need_lc_CXX=yes
18039 no_undefined_flag_CXX=' -zdefs'
18040 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18042 $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'
18043
18044 hardcode_libdir_flag_spec_CXX='-R$libdir'
18045 hardcode_shlibpath_var_CXX=no
18046 case $host_os in
18047 solaris2.[0-5] | solaris2.[0-5].*) ;;
18048 *)
18049 # The compiler driver will combine and reorder linker options,
18050 # but understands `-z linker_flag'.
18051 # Supported since Solaris 2.6 (maybe 2.5.1?)
18052 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18053 ;;
18054 esac
18055 link_all_deplibs_CXX=yes
18056
cristy0c60a692010-11-04 01:09:47 +000018057 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018058
18059 # Archives containing C++ object files must be created using
18060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18061 # necessary to make sure instantiated templates are included
18062 # in the archive.
18063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18064 ;;
18065 gcx*)
18066 # Green Hills C++ Compiler
18067 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18068
18069 # The C++ compiler must be used to create the archive.
18070 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18071 ;;
18072 *)
18073 # GNU C++ compiler with Solaris linker
18074 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18075 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18076 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018077 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 +000018078 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 +000018079 $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 +000018080
18081 # Commands to make compiler produce verbose output that lists
18082 # what "hidden" libraries, object files and flags are used when
18083 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018084 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018085 else
18086 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18087 # platform.
18088 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18089 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18090 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18091
18092 # Commands to make compiler produce verbose output that lists
18093 # what "hidden" libraries, object files and flags are used when
18094 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018095 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018096 fi
18097
18098 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18099 case $host_os in
18100 solaris2.[0-5] | solaris2.[0-5].*) ;;
18101 *)
18102 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18103 ;;
18104 esac
18105 fi
18106 ;;
18107 esac
18108 ;;
18109
18110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18111 no_undefined_flag_CXX='${wl}-z,text'
18112 archive_cmds_need_lc_CXX=no
18113 hardcode_shlibpath_var_CXX=no
18114 runpath_var='LD_RUN_PATH'
18115
18116 case $cc_basename in
18117 CC*)
18118 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18120 ;;
18121 *)
18122 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18124 ;;
18125 esac
18126 ;;
18127
18128 sysv5* | sco3.2v5* | sco5v6*)
18129 # Note: We can NOT use -z defs as we might desire, because we do not
18130 # link with -lc, and that would cause any symbols used from libc to
18131 # always be unresolved, which means just about no library would
18132 # ever link correctly. If we're not using GNU ld we use -z text
18133 # though, which does catch some bad symbols but isn't as heavy-handed
18134 # as -z defs.
18135 no_undefined_flag_CXX='${wl}-z,text'
18136 allow_undefined_flag_CXX='${wl}-z,nodefs'
18137 archive_cmds_need_lc_CXX=no
18138 hardcode_shlibpath_var_CXX=no
18139 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18140 hardcode_libdir_separator_CXX=':'
18141 link_all_deplibs_CXX=yes
18142 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18143 runpath_var='LD_RUN_PATH'
18144
18145 case $cc_basename in
18146 CC*)
18147 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18148 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 +000018149 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18150 '"$old_archive_cmds_CXX"
18151 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18152 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018153 ;;
18154 *)
18155 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18156 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18157 ;;
18158 esac
18159 ;;
18160
18161 tandem*)
18162 case $cc_basename in
18163 NCC*)
18164 # NonStop-UX NCC 3.20
18165 # FIXME: insert proper C++ library support
18166 ld_shlibs_CXX=no
18167 ;;
18168 *)
18169 # FIXME: insert proper C++ library support
18170 ld_shlibs_CXX=no
18171 ;;
18172 esac
18173 ;;
18174
18175 vxworks*)
18176 # FIXME: insert proper C++ library support
18177 ld_shlibs_CXX=no
18178 ;;
18179
18180 *)
18181 # FIXME: insert proper C++ library support
18182 ld_shlibs_CXX=no
18183 ;;
18184 esac
18185
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18187$as_echo "$ld_shlibs_CXX" >&6; }
18188 test "$ld_shlibs_CXX" = no && can_build_shared=no
18189
18190 GCC_CXX="$GXX"
18191 LD_CXX="$LD"
18192
18193 ## CAVEAT EMPTOR:
18194 ## There is no encapsulation within the following macros, do not change
18195 ## the running order or otherwise move them around unless you know exactly
18196 ## what you are doing...
18197 # Dependencies to place before and after the object being linked:
18198predep_objects_CXX=
18199postdep_objects_CXX=
18200predeps_CXX=
18201postdeps_CXX=
18202compiler_lib_search_path_CXX=
18203
18204cat > conftest.$ac_ext <<_LT_EOF
18205class Foo
18206{
18207public:
18208 Foo (void) { a = 0; }
18209private:
18210 int a;
18211};
18212_LT_EOF
18213
cristyda16f162011-02-19 23:52:17 +000018214
18215_lt_libdeps_save_CFLAGS=$CFLAGS
18216case "$CC $CFLAGS " in #(
18217*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18218*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18219esac
18220
cristy73bd4a52010-10-05 11:24:23 +000018221if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18222 (eval $ac_compile) 2>&5
18223 ac_status=$?
18224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18225 test $ac_status = 0; }; then
18226 # Parse the compiler output and extract the necessary
18227 # objects, libraries and library flags.
18228
18229 # Sentinel used to keep track of whether or not we are before
18230 # the conftest object file.
18231 pre_test_object_deps_done=no
18232
18233 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018234 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018235
18236 -L* | -R* | -l*)
18237 # Some compilers place space between "-{L,R}" and the path.
18238 # Remove the space.
18239 if test $p = "-L" ||
18240 test $p = "-R"; then
18241 prev=$p
18242 continue
cristy73bd4a52010-10-05 11:24:23 +000018243 fi
18244
cristyda16f162011-02-19 23:52:17 +000018245 # Expand the sysroot to ease extracting the directories later.
18246 if test -z "$prev"; then
18247 case $p in
18248 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18249 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18250 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18251 esac
18252 fi
18253 case $p in
18254 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18255 esac
cristy73bd4a52010-10-05 11:24:23 +000018256 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018257 case ${prev} in
18258 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018259 # Internal compiler library paths should come after those
18260 # provided the user. The postdeps already come after the
18261 # user supplied libs so there is no need to process them.
18262 if test -z "$compiler_lib_search_path_CXX"; then
18263 compiler_lib_search_path_CXX="${prev}${p}"
18264 else
18265 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18266 fi
18267 ;;
18268 # The "-l" case would never come before the object being
18269 # linked, so don't bother handling this case.
18270 esac
18271 else
18272 if test -z "$postdeps_CXX"; then
18273 postdeps_CXX="${prev}${p}"
18274 else
18275 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18276 fi
18277 fi
cristyda16f162011-02-19 23:52:17 +000018278 prev=
cristy73bd4a52010-10-05 11:24:23 +000018279 ;;
18280
cristyda16f162011-02-19 23:52:17 +000018281 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018282 *.$objext)
18283 # This assumes that the test object file only shows up
18284 # once in the compiler output.
18285 if test "$p" = "conftest.$objext"; then
18286 pre_test_object_deps_done=yes
18287 continue
18288 fi
18289
18290 if test "$pre_test_object_deps_done" = no; then
18291 if test -z "$predep_objects_CXX"; then
18292 predep_objects_CXX="$p"
18293 else
18294 predep_objects_CXX="$predep_objects_CXX $p"
18295 fi
18296 else
18297 if test -z "$postdep_objects_CXX"; then
18298 postdep_objects_CXX="$p"
18299 else
18300 postdep_objects_CXX="$postdep_objects_CXX $p"
18301 fi
18302 fi
18303 ;;
18304
18305 *) ;; # Ignore the rest.
18306
18307 esac
18308 done
18309
18310 # Clean up.
18311 rm -f a.out a.exe
18312else
18313 echo "libtool.m4: error: problem compiling CXX test program"
18314fi
18315
18316$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018317CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018318
18319# PORTME: override above test on systems where it is broken
18320case $host_os in
18321interix[3-9]*)
18322 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18323 # hack all around it, let's just trust "g++" to DTRT.
18324 predep_objects_CXX=
18325 postdep_objects_CXX=
18326 postdeps_CXX=
18327 ;;
18328
18329linux*)
18330 case `$CC -V 2>&1 | sed 5q` in
18331 *Sun\ C*)
18332 # Sun C++ 5.9
18333
18334 # The more standards-conforming stlport4 library is
18335 # incompatible with the Cstd library. Avoid specifying
18336 # it if it's in CXXFLAGS. Ignore libCrun as
18337 # -library=stlport4 depends on it.
18338 case " $CXX $CXXFLAGS " in
18339 *" -library=stlport4 "*)
18340 solaris_use_stlport4=yes
18341 ;;
18342 esac
18343
18344 if test "$solaris_use_stlport4" != yes; then
18345 postdeps_CXX='-library=Cstd -library=Crun'
18346 fi
18347 ;;
18348 esac
18349 ;;
18350
18351solaris*)
18352 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018353 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018354 # The more standards-conforming stlport4 library is
18355 # incompatible with the Cstd library. Avoid specifying
18356 # it if it's in CXXFLAGS. Ignore libCrun as
18357 # -library=stlport4 depends on it.
18358 case " $CXX $CXXFLAGS " in
18359 *" -library=stlport4 "*)
18360 solaris_use_stlport4=yes
18361 ;;
18362 esac
18363
18364 # Adding this requires a known-good setup of shared libraries for
18365 # Sun compiler versions before 5.6, else PIC objects from an old
18366 # archive will be linked into the output, leading to subtle bugs.
18367 if test "$solaris_use_stlport4" != yes; then
18368 postdeps_CXX='-library=Cstd -library=Crun'
18369 fi
18370 ;;
18371 esac
18372 ;;
18373esac
18374
18375
18376case " $postdeps_CXX " in
18377*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18378esac
18379 compiler_lib_search_dirs_CXX=
18380if test -n "${compiler_lib_search_path_CXX}"; then
18381 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18382fi
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414 lt_prog_compiler_wl_CXX=
18415lt_prog_compiler_pic_CXX=
18416lt_prog_compiler_static_CXX=
18417
cristy73bd4a52010-10-05 11:24:23 +000018418
18419 # C++ specific cases for pic, static, wl, etc.
18420 if test "$GXX" = yes; then
18421 lt_prog_compiler_wl_CXX='-Wl,'
18422 lt_prog_compiler_static_CXX='-static'
18423
18424 case $host_os in
18425 aix*)
18426 # All AIX code is PIC.
18427 if test "$host_cpu" = ia64; then
18428 # AIX 5 now supports IA64 processor
18429 lt_prog_compiler_static_CXX='-Bstatic'
18430 fi
18431 ;;
18432
18433 amigaos*)
18434 case $host_cpu in
18435 powerpc)
18436 # see comment about AmigaOS4 .so support
18437 lt_prog_compiler_pic_CXX='-fPIC'
18438 ;;
18439 m68k)
18440 # FIXME: we need at least 68020 code to build shared libraries, but
18441 # adding the `-m68020' flag to GCC prevents building anything better,
18442 # like `-m68040'.
18443 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18444 ;;
18445 esac
18446 ;;
18447
18448 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18449 # PIC is the default for these OSes.
18450 ;;
18451 mingw* | cygwin* | os2* | pw32* | cegcc*)
18452 # This hack is so that the source file can tell whether it is being
18453 # built for inclusion in a dll (and should export symbols for example).
18454 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18455 # (--disable-auto-import) libraries
18456 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18457 ;;
18458 darwin* | rhapsody*)
18459 # PIC is the default on this platform
18460 # Common symbols not allowed in MH_DYLIB files
18461 lt_prog_compiler_pic_CXX='-fno-common'
18462 ;;
18463 *djgpp*)
18464 # DJGPP does not support shared libraries at all
18465 lt_prog_compiler_pic_CXX=
18466 ;;
cristy0c60a692010-11-04 01:09:47 +000018467 haiku*)
18468 # PIC is the default for Haiku.
18469 # The "-static" flag exists, but is broken.
18470 lt_prog_compiler_static_CXX=
18471 ;;
cristy73bd4a52010-10-05 11:24:23 +000018472 interix[3-9]*)
18473 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18474 # Instead, we relocate shared libraries at runtime.
18475 ;;
18476 sysv4*MP*)
18477 if test -d /usr/nec; then
18478 lt_prog_compiler_pic_CXX=-Kconform_pic
18479 fi
18480 ;;
18481 hpux*)
18482 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18483 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18484 # sets the default TLS model and affects inlining.
18485 case $host_cpu in
18486 hppa*64*)
18487 ;;
18488 *)
18489 lt_prog_compiler_pic_CXX='-fPIC'
18490 ;;
18491 esac
18492 ;;
18493 *qnx* | *nto*)
18494 # QNX uses GNU C++, but need to define -shared option too, otherwise
18495 # it will coredump.
18496 lt_prog_compiler_pic_CXX='-fPIC -shared'
18497 ;;
18498 *)
18499 lt_prog_compiler_pic_CXX='-fPIC'
18500 ;;
18501 esac
18502 else
18503 case $host_os in
18504 aix[4-9]*)
18505 # All AIX code is PIC.
18506 if test "$host_cpu" = ia64; then
18507 # AIX 5 now supports IA64 processor
18508 lt_prog_compiler_static_CXX='-Bstatic'
18509 else
18510 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18511 fi
18512 ;;
18513 chorus*)
18514 case $cc_basename in
18515 cxch68*)
18516 # Green Hills C++ Compiler
18517 # _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"
18518 ;;
18519 esac
18520 ;;
cristyda16f162011-02-19 23:52:17 +000018521 mingw* | cygwin* | os2* | pw32* | cegcc*)
18522 # This hack is so that the source file can tell whether it is being
18523 # built for inclusion in a dll (and should export symbols for example).
18524 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18525 ;;
cristy73bd4a52010-10-05 11:24:23 +000018526 dgux*)
18527 case $cc_basename in
18528 ec++*)
18529 lt_prog_compiler_pic_CXX='-KPIC'
18530 ;;
18531 ghcx*)
18532 # Green Hills C++ Compiler
18533 lt_prog_compiler_pic_CXX='-pic'
18534 ;;
18535 *)
18536 ;;
18537 esac
18538 ;;
18539 freebsd* | dragonfly*)
18540 # FreeBSD uses GNU C++
18541 ;;
18542 hpux9* | hpux10* | hpux11*)
18543 case $cc_basename in
18544 CC*)
18545 lt_prog_compiler_wl_CXX='-Wl,'
18546 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18547 if test "$host_cpu" != ia64; then
18548 lt_prog_compiler_pic_CXX='+Z'
18549 fi
18550 ;;
18551 aCC*)
18552 lt_prog_compiler_wl_CXX='-Wl,'
18553 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18554 case $host_cpu in
18555 hppa*64*|ia64*)
18556 # +Z the default
18557 ;;
18558 *)
18559 lt_prog_compiler_pic_CXX='+Z'
18560 ;;
18561 esac
18562 ;;
18563 *)
18564 ;;
18565 esac
18566 ;;
18567 interix*)
18568 # This is c89, which is MS Visual C++ (no shared libs)
18569 # Anyone wants to do a port?
18570 ;;
18571 irix5* | irix6* | nonstopux*)
18572 case $cc_basename in
18573 CC*)
18574 lt_prog_compiler_wl_CXX='-Wl,'
18575 lt_prog_compiler_static_CXX='-non_shared'
18576 # CC pic flag -KPIC is the default.
18577 ;;
18578 *)
18579 ;;
18580 esac
18581 ;;
cristy0c60a692010-11-04 01:09:47 +000018582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018583 case $cc_basename in
18584 KCC*)
18585 # KAI C++ Compiler
18586 lt_prog_compiler_wl_CXX='--backend -Wl,'
18587 lt_prog_compiler_pic_CXX='-fPIC'
18588 ;;
18589 ecpc* )
18590 # old Intel C++ for x86_64 which still supported -KPIC.
18591 lt_prog_compiler_wl_CXX='-Wl,'
18592 lt_prog_compiler_pic_CXX='-KPIC'
18593 lt_prog_compiler_static_CXX='-static'
18594 ;;
18595 icpc* )
18596 # Intel C++, used to be incompatible with GCC.
18597 # ICC 10 doesn't accept -KPIC any more.
18598 lt_prog_compiler_wl_CXX='-Wl,'
18599 lt_prog_compiler_pic_CXX='-fPIC'
18600 lt_prog_compiler_static_CXX='-static'
18601 ;;
18602 pgCC* | pgcpp*)
18603 # Portland Group C++ compiler
18604 lt_prog_compiler_wl_CXX='-Wl,'
18605 lt_prog_compiler_pic_CXX='-fpic'
18606 lt_prog_compiler_static_CXX='-Bstatic'
18607 ;;
18608 cxx*)
18609 # Compaq C++
18610 # Make sure the PIC flag is empty. It appears that all Alpha
18611 # Linux and Compaq Tru64 Unix objects are PIC.
18612 lt_prog_compiler_pic_CXX=
18613 lt_prog_compiler_static_CXX='-non_shared'
18614 ;;
cristy0c60a692010-11-04 01:09:47 +000018615 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18616 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018617 lt_prog_compiler_wl_CXX='-Wl,'
18618 lt_prog_compiler_pic_CXX='-qpic'
18619 lt_prog_compiler_static_CXX='-qstaticlink'
18620 ;;
18621 *)
18622 case `$CC -V 2>&1 | sed 5q` in
18623 *Sun\ C*)
18624 # Sun C++ 5.9
18625 lt_prog_compiler_pic_CXX='-KPIC'
18626 lt_prog_compiler_static_CXX='-Bstatic'
18627 lt_prog_compiler_wl_CXX='-Qoption ld '
18628 ;;
18629 esac
18630 ;;
18631 esac
18632 ;;
18633 lynxos*)
18634 ;;
18635 m88k*)
18636 ;;
18637 mvs*)
18638 case $cc_basename in
18639 cxx*)
18640 lt_prog_compiler_pic_CXX='-W c,exportall'
18641 ;;
18642 *)
18643 ;;
18644 esac
18645 ;;
18646 netbsd*)
18647 ;;
18648 *qnx* | *nto*)
18649 # QNX uses GNU C++, but need to define -shared option too, otherwise
18650 # it will coredump.
18651 lt_prog_compiler_pic_CXX='-fPIC -shared'
18652 ;;
18653 osf3* | osf4* | osf5*)
18654 case $cc_basename in
18655 KCC*)
18656 lt_prog_compiler_wl_CXX='--backend -Wl,'
18657 ;;
18658 RCC*)
18659 # Rational C++ 2.4.1
18660 lt_prog_compiler_pic_CXX='-pic'
18661 ;;
18662 cxx*)
18663 # Digital/Compaq C++
18664 lt_prog_compiler_wl_CXX='-Wl,'
18665 # Make sure the PIC flag is empty. It appears that all Alpha
18666 # Linux and Compaq Tru64 Unix objects are PIC.
18667 lt_prog_compiler_pic_CXX=
18668 lt_prog_compiler_static_CXX='-non_shared'
18669 ;;
18670 *)
18671 ;;
18672 esac
18673 ;;
18674 psos*)
18675 ;;
18676 solaris*)
18677 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018678 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018679 # Sun C++ 4.2, 5.x and Centerline C++
18680 lt_prog_compiler_pic_CXX='-KPIC'
18681 lt_prog_compiler_static_CXX='-Bstatic'
18682 lt_prog_compiler_wl_CXX='-Qoption ld '
18683 ;;
18684 gcx*)
18685 # Green Hills C++ Compiler
18686 lt_prog_compiler_pic_CXX='-PIC'
18687 ;;
18688 *)
18689 ;;
18690 esac
18691 ;;
18692 sunos4*)
18693 case $cc_basename in
18694 CC*)
18695 # Sun C++ 4.x
18696 lt_prog_compiler_pic_CXX='-pic'
18697 lt_prog_compiler_static_CXX='-Bstatic'
18698 ;;
18699 lcc*)
18700 # Lucid
18701 lt_prog_compiler_pic_CXX='-pic'
18702 ;;
18703 *)
18704 ;;
18705 esac
18706 ;;
18707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18708 case $cc_basename in
18709 CC*)
18710 lt_prog_compiler_wl_CXX='-Wl,'
18711 lt_prog_compiler_pic_CXX='-KPIC'
18712 lt_prog_compiler_static_CXX='-Bstatic'
18713 ;;
18714 esac
18715 ;;
18716 tandem*)
18717 case $cc_basename in
18718 NCC*)
18719 # NonStop-UX NCC 3.20
18720 lt_prog_compiler_pic_CXX='-KPIC'
18721 ;;
18722 *)
18723 ;;
18724 esac
18725 ;;
18726 vxworks*)
18727 ;;
18728 *)
18729 lt_prog_compiler_can_build_shared_CXX=no
18730 ;;
18731 esac
18732 fi
18733
18734case $host_os in
18735 # For platforms which do not support PIC, -DPIC is meaningless:
18736 *djgpp*)
18737 lt_prog_compiler_pic_CXX=
18738 ;;
18739 *)
18740 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18741 ;;
18742esac
cristy73bd4a52010-10-05 11:24:23 +000018743
cristyda16f162011-02-19 23:52:17 +000018744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18745$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18746if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18747 $as_echo_n "(cached) " >&6
18748else
18749 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18750fi
18751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18752$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18753lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018754
18755#
18756# Check to make sure the PIC flag actually works.
18757#
18758if test -n "$lt_prog_compiler_pic_CXX"; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18760$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018761if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018762 $as_echo_n "(cached) " >&6
18763else
18764 lt_cv_prog_compiler_pic_works_CXX=no
18765 ac_outfile=conftest.$ac_objext
18766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18767 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18768 # Insert the option either (1) after the last *FLAGS variable, or
18769 # (2) before a word containing "conftest.", or (3) at the end.
18770 # Note that $ac_compile itself does not contain backslashes and begins
18771 # with a dollar sign (not a hyphen), so the echo should work correctly.
18772 # The option is referenced via a variable to avoid confusing sed.
18773 lt_compile=`echo "$ac_compile" | $SED \
18774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18776 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018778 (eval "$lt_compile" 2>conftest.err)
18779 ac_status=$?
18780 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018782 if (exit $ac_status) && test -s "$ac_outfile"; then
18783 # The compiler can only warn and ignore the option if not recognized
18784 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18788 lt_cv_prog_compiler_pic_works_CXX=yes
18789 fi
18790 fi
18791 $RM conftest*
18792
18793fi
18794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18795$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18796
18797if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18798 case $lt_prog_compiler_pic_CXX in
18799 "" | " "*) ;;
18800 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18801 esac
18802else
18803 lt_prog_compiler_pic_CXX=
18804 lt_prog_compiler_can_build_shared_CXX=no
18805fi
18806
18807fi
18808
18809
18810
cristyda16f162011-02-19 23:52:17 +000018811
18812
cristy73bd4a52010-10-05 11:24:23 +000018813#
18814# Check to make sure the static flag actually works.
18815#
18816wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18818$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018819if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018820 $as_echo_n "(cached) " >&6
18821else
18822 lt_cv_prog_compiler_static_works_CXX=no
18823 save_LDFLAGS="$LDFLAGS"
18824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18825 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18827 # The linker can only warn and ignore the option if not recognized
18828 # So say no if there are warnings
18829 if test -s conftest.err; then
18830 # Append any errors to the config.log.
18831 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018832 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18834 if diff conftest.exp conftest.er2 >/dev/null; then
18835 lt_cv_prog_compiler_static_works_CXX=yes
18836 fi
18837 else
18838 lt_cv_prog_compiler_static_works_CXX=yes
18839 fi
18840 fi
18841 $RM -r conftest*
18842 LDFLAGS="$save_LDFLAGS"
18843
18844fi
18845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18846$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18847
18848if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18849 :
18850else
18851 lt_prog_compiler_static_CXX=
18852fi
18853
18854
18855
18856
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18858$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018859if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018860 $as_echo_n "(cached) " >&6
18861else
18862 lt_cv_prog_compiler_c_o_CXX=no
18863 $RM -r conftest 2>/dev/null
18864 mkdir conftest
18865 cd conftest
18866 mkdir out
18867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18868
18869 lt_compiler_flag="-o out/conftest2.$ac_objext"
18870 # Insert the option either (1) after the last *FLAGS variable, or
18871 # (2) before a word containing "conftest.", or (3) at the end.
18872 # Note that $ac_compile itself does not contain backslashes and begins
18873 # with a dollar sign (not a hyphen), so the echo should work correctly.
18874 lt_compile=`echo "$ac_compile" | $SED \
18875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18877 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018879 (eval "$lt_compile" 2>out/conftest.err)
18880 ac_status=$?
18881 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18884 then
18885 # The compiler can only warn and ignore the option if not recognized
18886 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18890 lt_cv_prog_compiler_c_o_CXX=yes
18891 fi
18892 fi
18893 chmod u+w . 2>&5
18894 $RM conftest*
18895 # SGI C++ compiler will create directory out/ii_files/ for
18896 # template instantiation
18897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18898 $RM out/* && rmdir out
18899 cd ..
18900 $RM -r conftest
18901 $RM conftest*
18902
18903fi
18904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18905$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18906
18907
18908
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18910$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018911if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018912 $as_echo_n "(cached) " >&6
18913else
18914 lt_cv_prog_compiler_c_o_CXX=no
18915 $RM -r conftest 2>/dev/null
18916 mkdir conftest
18917 cd conftest
18918 mkdir out
18919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18920
18921 lt_compiler_flag="-o out/conftest2.$ac_objext"
18922 # Insert the option either (1) after the last *FLAGS variable, or
18923 # (2) before a word containing "conftest.", or (3) at the end.
18924 # Note that $ac_compile itself does not contain backslashes and begins
18925 # with a dollar sign (not a hyphen), so the echo should work correctly.
18926 lt_compile=`echo "$ac_compile" | $SED \
18927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18929 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018931 (eval "$lt_compile" 2>out/conftest.err)
18932 ac_status=$?
18933 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18936 then
18937 # The compiler can only warn and ignore the option if not recognized
18938 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18942 lt_cv_prog_compiler_c_o_CXX=yes
18943 fi
18944 fi
18945 chmod u+w . 2>&5
18946 $RM conftest*
18947 # SGI C++ compiler will create directory out/ii_files/ for
18948 # template instantiation
18949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18950 $RM out/* && rmdir out
18951 cd ..
18952 $RM -r conftest
18953 $RM conftest*
18954
18955fi
18956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18957$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18958
18959
18960
18961
18962hard_links="nottested"
18963if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18964 # do not overwrite the value of need_locks provided by the user
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18966$as_echo_n "checking if we can lock with hard links... " >&6; }
18967 hard_links=yes
18968 $RM conftest*
18969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18970 touch conftest.a
18971 ln conftest.a conftest.b 2>&5 || hard_links=no
18972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18974$as_echo "$hard_links" >&6; }
18975 if test "$hard_links" = no; then
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18977$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18978 need_locks=warn
18979 fi
18980else
18981 need_locks=no
18982fi
18983
18984
18985
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18987$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18988
18989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018990 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018991 case $host_os in
18992 aix[4-9]*)
18993 # If we're using GNU nm, then we don't want the "-C" option.
18994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018995 # Also, AIX nm treats weak defined symbols like other global defined
18996 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018997 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018998 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 +000018999 else
19000 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'
19001 fi
19002 ;;
19003 pw32*)
19004 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019005 ;;
cristy73bd4a52010-10-05 11:24:23 +000019006 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019007 case $cc_basename in
19008 cl*) ;;
19009 *)
19010 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'
19011 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19012 ;;
19013 esac
19014 ;;
cristy73bd4a52010-10-05 11:24:23 +000019015 *)
19016 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019017 ;;
cristy73bd4a52010-10-05 11:24:23 +000019018 esac
cristy73bd4a52010-10-05 11:24:23 +000019019
19020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19021$as_echo "$ld_shlibs_CXX" >&6; }
19022test "$ld_shlibs_CXX" = no && can_build_shared=no
19023
19024with_gnu_ld_CXX=$with_gnu_ld
19025
19026
19027
19028
19029
19030
19031#
19032# Do we need to explicitly link libc?
19033#
19034case "x$archive_cmds_need_lc_CXX" in
19035x|xyes)
19036 # Assume -lc should be added
19037 archive_cmds_need_lc_CXX=yes
19038
19039 if test "$enable_shared" = yes && test "$GCC" = yes; then
19040 case $archive_cmds_CXX in
19041 *'~'*)
19042 # FIXME: we may have to deal with multi-command sequences.
19043 ;;
19044 '$CC '*)
19045 # Test whether the compiler implicitly links with -lc since on some
19046 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19047 # to ld, don't add -lc before -lgcc.
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19049$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019050if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019051 $as_echo_n "(cached) " >&6
19052else
19053 $RM conftest*
19054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019055
cristy0c60a692010-11-04 01:09:47 +000019056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019057 (eval $ac_compile) 2>&5
19058 ac_status=$?
19059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19060 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019061 soname=conftest
19062 lib=conftest
19063 libobjs=conftest.$ac_objext
19064 deplibs=
19065 wl=$lt_prog_compiler_wl_CXX
19066 pic_flag=$lt_prog_compiler_pic_CXX
19067 compiler_flags=-v
19068 linker_flags=-v
19069 verstring=
19070 output_objdir=.
19071 libname=conftest
19072 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19073 allow_undefined_flag_CXX=
19074 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 +000019075 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19076 ac_status=$?
19077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19078 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019079 then
19080 lt_cv_archive_cmds_need_lc_CXX=no
19081 else
19082 lt_cv_archive_cmds_need_lc_CXX=yes
19083 fi
19084 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19085 else
19086 cat conftest.err 1>&5
19087 fi
19088 $RM conftest*
19089
19090fi
19091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19092$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19093 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019094 ;;
19095 esac
19096 fi
19097 ;;
19098esac
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
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19164$as_echo_n "checking dynamic linker characteristics... " >&6; }
19165
19166library_names_spec=
19167libname_spec='lib$name'
19168soname_spec=
19169shrext_cmds=".so"
19170postinstall_cmds=
19171postuninstall_cmds=
19172finish_cmds=
19173finish_eval=
19174shlibpath_var=
19175shlibpath_overrides_runpath=unknown
19176version_type=none
19177dynamic_linker="$host_os ld.so"
19178sys_lib_dlsearch_path_spec="/lib /usr/lib"
19179need_lib_prefix=unknown
19180hardcode_into_libs=no
19181
19182# when you set need_version to no, make sure it does not cause -set_version
19183# flags to be left without arguments
19184need_version=unknown
19185
19186case $host_os in
19187aix3*)
19188 version_type=linux
19189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19190 shlibpath_var=LIBPATH
19191
19192 # AIX 3 has no versioning support, so we append a major version to the name.
19193 soname_spec='${libname}${release}${shared_ext}$major'
19194 ;;
19195
19196aix[4-9]*)
19197 version_type=linux
19198 need_lib_prefix=no
19199 need_version=no
19200 hardcode_into_libs=yes
19201 if test "$host_cpu" = ia64; then
19202 # AIX 5 supports IA64
19203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19204 shlibpath_var=LD_LIBRARY_PATH
19205 else
19206 # With GCC up to 2.95.x, collect2 would create an import file
19207 # for dependence libraries. The import file would start with
19208 # the line `#! .'. This would cause the generated library to
19209 # depend on `.', always an invalid library. This was fixed in
19210 # development snapshots of GCC prior to 3.0.
19211 case $host_os in
19212 aix4 | aix4.[01] | aix4.[01].*)
19213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19214 echo ' yes '
19215 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19216 :
19217 else
19218 can_build_shared=no
19219 fi
19220 ;;
19221 esac
19222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19223 # soname into executable. Probably we can add versioning support to
19224 # collect2, so additional links can be useful in future.
19225 if test "$aix_use_runtimelinking" = yes; then
19226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19227 # instead of lib<name>.a to let people know that these are not
19228 # typical AIX shared libraries.
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 else
19231 # We preserve .a as extension for shared libraries through AIX4.2
19232 # and later when we are not doing run time linking.
19233 library_names_spec='${libname}${release}.a $libname.a'
19234 soname_spec='${libname}${release}${shared_ext}$major'
19235 fi
19236 shlibpath_var=LIBPATH
19237 fi
19238 ;;
19239
19240amigaos*)
19241 case $host_cpu in
19242 powerpc)
19243 # Since July 2007 AmigaOS4 officially supports .so libraries.
19244 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19246 ;;
19247 m68k)
19248 library_names_spec='$libname.ixlibrary $libname.a'
19249 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019250 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 +000019251 ;;
19252 esac
19253 ;;
19254
19255beos*)
19256 library_names_spec='${libname}${shared_ext}'
19257 dynamic_linker="$host_os ld.so"
19258 shlibpath_var=LIBRARY_PATH
19259 ;;
19260
19261bsdi[45]*)
19262 version_type=linux
19263 need_version=no
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19265 soname_spec='${libname}${release}${shared_ext}$major'
19266 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19267 shlibpath_var=LD_LIBRARY_PATH
19268 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19269 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19270 # the default ld.so.conf also contains /usr/contrib/lib and
19271 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19272 # libtool to hard-code these into programs
19273 ;;
19274
19275cygwin* | mingw* | pw32* | cegcc*)
19276 version_type=windows
19277 shrext_cmds=".dll"
19278 need_version=no
19279 need_lib_prefix=no
19280
cristyda16f162011-02-19 23:52:17 +000019281 case $GCC,$cc_basename in
19282 yes,*)
19283 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019284 library_names_spec='$libname.dll.a'
19285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19286 postinstall_cmds='base_file=`basename \${file}`~
19287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19288 dldir=$destdir/`dirname \$dlpath`~
19289 test -d \$dldir || mkdir -p \$dldir~
19290 $install_prog $dir/$dlname \$dldir/$dlname~
19291 chmod a+x \$dldir/$dlname~
19292 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19293 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19294 fi'
19295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19296 dlpath=$dir/\$dldll~
19297 $RM \$dlpath'
19298 shlibpath_overrides_runpath=yes
19299
19300 case $host_os in
19301 cygwin*)
19302 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19303 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019304
cristy73bd4a52010-10-05 11:24:23 +000019305 ;;
19306 mingw* | cegcc*)
19307 # MinGW DLLs use traditional 'lib' prefix
19308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019309 ;;
19310 pw32*)
19311 # pw32 DLLs use 'pw' prefix rather than 'lib'
19312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19313 ;;
19314 esac
cristyda16f162011-02-19 23:52:17 +000019315 dynamic_linker='Win32 ld.exe'
19316 ;;
19317
19318 *,cl*)
19319 # Native MSVC
19320 libname_spec='$name'
19321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19322 library_names_spec='${libname}.dll.lib'
19323
19324 case $build_os in
19325 mingw*)
19326 sys_lib_search_path_spec=
19327 lt_save_ifs=$IFS
19328 IFS=';'
19329 for lt_path in $LIB
19330 do
19331 IFS=$lt_save_ifs
19332 # Let DOS variable expansion print the short 8.3 style file name.
19333 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19334 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19335 done
19336 IFS=$lt_save_ifs
19337 # Convert to MSYS style.
19338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19339 ;;
19340 cygwin*)
19341 # Convert to unix form, then to dos form, then back to unix form
19342 # but this time dos style (no spaces!) so that the unix form looks
19343 # like /cygdrive/c/PROGRA~1:/cygdr...
19344 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19345 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19346 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19347 ;;
19348 *)
19349 sys_lib_search_path_spec="$LIB"
19350 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19351 # It is most probably a Windows format PATH.
19352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19353 else
19354 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19355 fi
19356 # FIXME: find the short name or the path components, as spaces are
19357 # common. (e.g. "Program Files" -> "PROGRA~1")
19358 ;;
19359 esac
19360
19361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19362 postinstall_cmds='base_file=`basename \${file}`~
19363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19364 dldir=$destdir/`dirname \$dlpath`~
19365 test -d \$dldir || mkdir -p \$dldir~
19366 $install_prog $dir/$dlname \$dldir/$dlname'
19367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19368 dlpath=$dir/\$dldll~
19369 $RM \$dlpath'
19370 shlibpath_overrides_runpath=yes
19371 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019372 ;;
19373
19374 *)
cristyda16f162011-02-19 23:52:17 +000019375 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019376 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019377 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019378 ;;
19379 esac
cristy73bd4a52010-10-05 11:24:23 +000019380 # FIXME: first we should search . and the directory the executable is in
19381 shlibpath_var=PATH
19382 ;;
19383
19384darwin* | rhapsody*)
19385 dynamic_linker="$host_os dyld"
19386 version_type=darwin
19387 need_lib_prefix=no
19388 need_version=no
19389 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19390 soname_spec='${libname}${release}${major}$shared_ext'
19391 shlibpath_overrides_runpath=yes
19392 shlibpath_var=DYLD_LIBRARY_PATH
19393 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19394
19395 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19396 ;;
19397
19398dgux*)
19399 version_type=linux
19400 need_lib_prefix=no
19401 need_version=no
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19403 soname_spec='${libname}${release}${shared_ext}$major'
19404 shlibpath_var=LD_LIBRARY_PATH
19405 ;;
19406
19407freebsd1*)
19408 dynamic_linker=no
19409 ;;
19410
19411freebsd* | dragonfly*)
19412 # DragonFly does not have aout. When/if they implement a new
19413 # versioning mechanism, adjust this.
19414 if test -x /usr/bin/objformat; then
19415 objformat=`/usr/bin/objformat`
19416 else
19417 case $host_os in
19418 freebsd[123]*) objformat=aout ;;
19419 *) objformat=elf ;;
19420 esac
19421 fi
19422 version_type=freebsd-$objformat
19423 case $version_type in
19424 freebsd-elf*)
19425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19426 need_version=no
19427 need_lib_prefix=no
19428 ;;
19429 freebsd-*)
19430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19431 need_version=yes
19432 ;;
19433 esac
19434 shlibpath_var=LD_LIBRARY_PATH
19435 case $host_os in
19436 freebsd2*)
19437 shlibpath_overrides_runpath=yes
19438 ;;
19439 freebsd3.[01]* | freebsdelf3.[01]*)
19440 shlibpath_overrides_runpath=yes
19441 hardcode_into_libs=yes
19442 ;;
19443 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19444 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19445 shlibpath_overrides_runpath=no
19446 hardcode_into_libs=yes
19447 ;;
19448 *) # from 4.6 on, and DragonFly
19449 shlibpath_overrides_runpath=yes
19450 hardcode_into_libs=yes
19451 ;;
19452 esac
19453 ;;
19454
19455gnu*)
19456 version_type=linux
19457 need_lib_prefix=no
19458 need_version=no
19459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19460 soname_spec='${libname}${release}${shared_ext}$major'
19461 shlibpath_var=LD_LIBRARY_PATH
19462 hardcode_into_libs=yes
19463 ;;
19464
cristy0c60a692010-11-04 01:09:47 +000019465haiku*)
19466 version_type=linux
19467 need_lib_prefix=no
19468 need_version=no
19469 dynamic_linker="$host_os runtime_loader"
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 shlibpath_var=LIBRARY_PATH
19473 shlibpath_overrides_runpath=yes
19474 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19475 hardcode_into_libs=yes
19476 ;;
19477
cristy73bd4a52010-10-05 11:24:23 +000019478hpux9* | hpux10* | hpux11*)
19479 # Give a soname corresponding to the major version so that dld.sl refuses to
19480 # link against other versions.
19481 version_type=sunos
19482 need_lib_prefix=no
19483 need_version=no
19484 case $host_cpu in
19485 ia64*)
19486 shrext_cmds='.so'
19487 hardcode_into_libs=yes
19488 dynamic_linker="$host_os dld.so"
19489 shlibpath_var=LD_LIBRARY_PATH
19490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19492 soname_spec='${libname}${release}${shared_ext}$major'
19493 if test "X$HPUX_IA64_MODE" = X32; then
19494 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19495 else
19496 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19497 fi
19498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19499 ;;
19500 hppa*64*)
19501 shrext_cmds='.sl'
19502 hardcode_into_libs=yes
19503 dynamic_linker="$host_os dld.sl"
19504 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19507 soname_spec='${libname}${release}${shared_ext}$major'
19508 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19510 ;;
19511 *)
19512 shrext_cmds='.sl'
19513 dynamic_linker="$host_os dld.sl"
19514 shlibpath_var=SHLIB_PATH
19515 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19517 soname_spec='${libname}${release}${shared_ext}$major'
19518 ;;
19519 esac
cristy0c60a692010-11-04 01:09:47 +000019520 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019521 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019522 # or fails outright, so override atomically:
19523 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019524 ;;
19525
19526interix[3-9]*)
19527 version_type=linux
19528 need_lib_prefix=no
19529 need_version=no
19530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19531 soname_spec='${libname}${release}${shared_ext}$major'
19532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19533 shlibpath_var=LD_LIBRARY_PATH
19534 shlibpath_overrides_runpath=no
19535 hardcode_into_libs=yes
19536 ;;
19537
19538irix5* | irix6* | nonstopux*)
19539 case $host_os in
19540 nonstopux*) version_type=nonstopux ;;
19541 *)
19542 if test "$lt_cv_prog_gnu_ld" = yes; then
19543 version_type=linux
19544 else
19545 version_type=irix
19546 fi ;;
19547 esac
19548 need_lib_prefix=no
19549 need_version=no
19550 soname_spec='${libname}${release}${shared_ext}$major'
19551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19552 case $host_os in
19553 irix5* | nonstopux*)
19554 libsuff= shlibsuff=
19555 ;;
19556 *)
19557 case $LD in # libtool.m4 will add one of these switches to LD
19558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19559 libsuff= shlibsuff= libmagic=32-bit;;
19560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19561 libsuff=32 shlibsuff=N32 libmagic=N32;;
19562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19564 *) libsuff= shlibsuff= libmagic=never-match;;
19565 esac
19566 ;;
19567 esac
19568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19569 shlibpath_overrides_runpath=no
19570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19572 hardcode_into_libs=yes
19573 ;;
19574
19575# No shared lib support for Linux oldld, aout, or coff.
19576linux*oldld* | linux*aout* | linux*coff*)
19577 dynamic_linker=no
19578 ;;
19579
19580# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019581linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019582 version_type=linux
19583 need_lib_prefix=no
19584 need_version=no
19585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19586 soname_spec='${libname}${release}${shared_ext}$major'
19587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19588 shlibpath_var=LD_LIBRARY_PATH
19589 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019590
cristy73bd4a52010-10-05 11:24:23 +000019591 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019592 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019593 $as_echo_n "(cached) " >&6
19594else
19595 lt_cv_shlibpath_overrides_runpath=no
19596 save_LDFLAGS=$LDFLAGS
19597 save_libdir=$libdir
19598 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19599 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019601/* end confdefs.h. */
19602
19603int
19604main ()
19605{
19606
19607 ;
19608 return 0;
19609}
19610_ACEOF
19611if ac_fn_cxx_try_link "$LINENO"; then :
19612 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019613 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019614fi
19615fi
19616rm -f core conftest.err conftest.$ac_objext \
19617 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019618 LDFLAGS=$save_LDFLAGS
19619 libdir=$save_libdir
19620
19621fi
19622
19623 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019624
19625 # This implies no fast_install, which is unacceptable.
19626 # Some rework will be needed to allow for fast_install
19627 # before this can be enabled.
19628 hardcode_into_libs=yes
19629
19630 # Add ABI-specific directories to the system library path.
19631 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19632
19633 # Append ld.so.conf contents to the search path
19634 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019635 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 +000019636 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019637
cristy73bd4a52010-10-05 11:24:23 +000019638 fi
19639
19640 # We used to test for /lib/ld.so.1 and disable shared libraries on
19641 # powerpc, because MkLinux only supported shared libraries with the
19642 # GNU dynamic linker. Since this was broken with cross compilers,
19643 # most powerpc-linux boxes support dynamic linking these days and
19644 # people can always --disable-shared, the test was removed, and we
19645 # assume the GNU/Linux dynamic linker is in use.
19646 dynamic_linker='GNU/Linux ld.so'
19647 ;;
19648
19649netbsd*)
19650 version_type=sunos
19651 need_lib_prefix=no
19652 need_version=no
19653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19656 dynamic_linker='NetBSD (a.out) ld.so'
19657 else
19658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19659 soname_spec='${libname}${release}${shared_ext}$major'
19660 dynamic_linker='NetBSD ld.elf_so'
19661 fi
19662 shlibpath_var=LD_LIBRARY_PATH
19663 shlibpath_overrides_runpath=yes
19664 hardcode_into_libs=yes
19665 ;;
19666
19667newsos6)
19668 version_type=linux
19669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19670 shlibpath_var=LD_LIBRARY_PATH
19671 shlibpath_overrides_runpath=yes
19672 ;;
19673
19674*nto* | *qnx*)
19675 version_type=qnx
19676 need_lib_prefix=no
19677 need_version=no
19678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19679 soname_spec='${libname}${release}${shared_ext}$major'
19680 shlibpath_var=LD_LIBRARY_PATH
19681 shlibpath_overrides_runpath=no
19682 hardcode_into_libs=yes
19683 dynamic_linker='ldqnx.so'
19684 ;;
19685
19686openbsd*)
19687 version_type=sunos
19688 sys_lib_dlsearch_path_spec="/usr/lib"
19689 need_lib_prefix=no
19690 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19691 case $host_os in
19692 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19693 *) need_version=no ;;
19694 esac
19695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19697 shlibpath_var=LD_LIBRARY_PATH
19698 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19699 case $host_os in
19700 openbsd2.[89] | openbsd2.[89].*)
19701 shlibpath_overrides_runpath=no
19702 ;;
19703 *)
19704 shlibpath_overrides_runpath=yes
19705 ;;
19706 esac
19707 else
19708 shlibpath_overrides_runpath=yes
19709 fi
19710 ;;
19711
19712os2*)
19713 libname_spec='$name'
19714 shrext_cmds=".dll"
19715 need_lib_prefix=no
19716 library_names_spec='$libname${shared_ext} $libname.a'
19717 dynamic_linker='OS/2 ld.exe'
19718 shlibpath_var=LIBPATH
19719 ;;
19720
19721osf3* | osf4* | osf5*)
19722 version_type=osf
19723 need_lib_prefix=no
19724 need_version=no
19725 soname_spec='${libname}${release}${shared_ext}$major'
19726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19727 shlibpath_var=LD_LIBRARY_PATH
19728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19729 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19730 ;;
19731
19732rdos*)
19733 dynamic_linker=no
19734 ;;
19735
19736solaris*)
19737 version_type=linux
19738 need_lib_prefix=no
19739 need_version=no
19740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741 soname_spec='${libname}${release}${shared_ext}$major'
19742 shlibpath_var=LD_LIBRARY_PATH
19743 shlibpath_overrides_runpath=yes
19744 hardcode_into_libs=yes
19745 # ldd complains unless libraries are executable
19746 postinstall_cmds='chmod +x $lib'
19747 ;;
19748
19749sunos4*)
19750 version_type=sunos
19751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19753 shlibpath_var=LD_LIBRARY_PATH
19754 shlibpath_overrides_runpath=yes
19755 if test "$with_gnu_ld" = yes; then
19756 need_lib_prefix=no
19757 fi
19758 need_version=yes
19759 ;;
19760
19761sysv4 | sysv4.3*)
19762 version_type=linux
19763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19764 soname_spec='${libname}${release}${shared_ext}$major'
19765 shlibpath_var=LD_LIBRARY_PATH
19766 case $host_vendor in
19767 sni)
19768 shlibpath_overrides_runpath=no
19769 need_lib_prefix=no
19770 runpath_var=LD_RUN_PATH
19771 ;;
19772 siemens)
19773 need_lib_prefix=no
19774 ;;
19775 motorola)
19776 need_lib_prefix=no
19777 need_version=no
19778 shlibpath_overrides_runpath=no
19779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19780 ;;
19781 esac
19782 ;;
19783
19784sysv4*MP*)
19785 if test -d /usr/nec ;then
19786 version_type=linux
19787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19788 soname_spec='$libname${shared_ext}.$major'
19789 shlibpath_var=LD_LIBRARY_PATH
19790 fi
19791 ;;
19792
19793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19794 version_type=freebsd-elf
19795 need_lib_prefix=no
19796 need_version=no
19797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 shlibpath_overrides_runpath=yes
19801 hardcode_into_libs=yes
19802 if test "$with_gnu_ld" = yes; then
19803 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19804 else
19805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19806 case $host_os in
19807 sco3.2v5*)
19808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19809 ;;
19810 esac
19811 fi
19812 sys_lib_dlsearch_path_spec='/usr/lib'
19813 ;;
19814
19815tpf*)
19816 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19817 version_type=linux
19818 need_lib_prefix=no
19819 need_version=no
19820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19821 shlibpath_var=LD_LIBRARY_PATH
19822 shlibpath_overrides_runpath=no
19823 hardcode_into_libs=yes
19824 ;;
19825
19826uts4*)
19827 version_type=linux
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 shlibpath_var=LD_LIBRARY_PATH
19831 ;;
19832
19833*)
19834 dynamic_linker=no
19835 ;;
19836esac
19837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19838$as_echo "$dynamic_linker" >&6; }
19839test "$dynamic_linker" = no && can_build_shared=no
19840
19841variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19842if test "$GCC" = yes; then
19843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19844fi
19845
19846if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19847 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19848fi
19849if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19850 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19851fi
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
cristy0c60a692010-11-04 01:09:47 +000019888
19889
cristy73bd4a52010-10-05 11:24:23 +000019890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19891$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19892hardcode_action_CXX=
19893if test -n "$hardcode_libdir_flag_spec_CXX" ||
19894 test -n "$runpath_var_CXX" ||
19895 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19896
19897 # We can hardcode non-existent directories.
19898 if test "$hardcode_direct_CXX" != no &&
19899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19900 # have to relink, otherwise we might link with an installed library
19901 # when we should be linking with a yet-to-be-installed one
19902 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19903 test "$hardcode_minus_L_CXX" != no; then
19904 # Linking always hardcodes the temporary library directory.
19905 hardcode_action_CXX=relink
19906 else
19907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19908 hardcode_action_CXX=immediate
19909 fi
19910else
19911 # We cannot hardcode anything, or else we can only hardcode existing
19912 # directories.
19913 hardcode_action_CXX=unsupported
19914fi
19915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19916$as_echo "$hardcode_action_CXX" >&6; }
19917
19918if test "$hardcode_action_CXX" = relink ||
19919 test "$inherit_rpath_CXX" = yes; then
19920 # Fast installation is not supported
19921 enable_fast_install=no
19922elif test "$shlibpath_overrides_runpath" = yes ||
19923 test "$enable_shared" = no; then
19924 # Fast installation is not necessary
19925 enable_fast_install=needless
19926fi
19927
19928
19929
19930
19931
19932
19933
19934 fi # test -n "$compiler"
19935
19936 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019937 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019938 LDCXX=$LD
19939 LD=$lt_save_LD
19940 GCC=$lt_save_GCC
19941 with_gnu_ld=$lt_save_with_gnu_ld
19942 lt_cv_path_LDCXX=$lt_cv_path_LD
19943 lt_cv_path_LD=$lt_save_path_LD
19944 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19945 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19946fi # test "$_lt_caught_CXX_error" != yes
19947
19948ac_ext=c
19949ac_cpp='$CPP $CPPFLAGS'
19950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19952ac_compiler_gnu=$ac_cv_c_compiler_gnu
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966 ac_config_commands="$ac_config_commands libtool"
19967
19968
19969
19970
19971# Only expand once:
19972
19973
19974
cristy3ed852e2009-09-05 21:47:34 +000019975
19976
19977# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019978
19979
19980
19981
19982
19983
19984
cristy73bd4a52010-10-05 11:24:23 +000019985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19986$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019987if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019988 $as_echo_n "(cached) " >&6
19989else
19990
19991module=yes
19992eval libltdl_cv_shlibext=$shrext_cmds
19993
19994fi
19995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19996$as_echo "$libltdl_cv_shlibext" >&6; }
19997if test -n "$libltdl_cv_shlibext"; then
19998
19999cat >>confdefs.h <<_ACEOF
20000#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20001_ACEOF
20002
20003fi
20004
20005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20006$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020007if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020008 $as_echo_n "(cached) " >&6
20009else
20010 lt_cv_module_path_var="$shlibpath_var"
20011fi
20012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20013$as_echo "$lt_cv_module_path_var" >&6; }
20014if test -n "$lt_cv_module_path_var"; then
20015
20016cat >>confdefs.h <<_ACEOF
20017#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20018_ACEOF
20019
20020fi
20021
20022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20023$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020024if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020025 $as_echo_n "(cached) " >&6
20026else
20027 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20028fi
20029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20030$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20031if test -n "$lt_cv_sys_dlsearch_path"; then
20032 sys_dlsearch_path=
20033 for dir in $lt_cv_sys_dlsearch_path; do
20034 if test -z "$sys_dlsearch_path"; then
20035 sys_dlsearch_path="$dir"
20036 else
20037 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20038 fi
20039 done
20040
20041cat >>confdefs.h <<_ACEOF
20042#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20043_ACEOF
20044
20045fi
20046
20047
20048LT_DLLOADERS=
20049
20050
20051ac_ext=c
20052ac_cpp='$CPP $CPPFLAGS'
20053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20055ac_compiler_gnu=$ac_cv_c_compiler_gnu
20056
20057
20058LIBADD_DLOPEN=
20059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20060$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020061if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020062 $as_echo_n "(cached) " >&6
20063else
20064 ac_func_search_save_LIBS=$LIBS
20065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066/* end confdefs.h. */
20067
20068/* Override any GCC internal prototype to avoid an error.
20069 Use char because int might match the return type of a GCC
20070 builtin and then its argument prototype would still apply. */
20071#ifdef __cplusplus
20072extern "C"
20073#endif
20074char dlopen ();
20075int
20076main ()
20077{
20078return dlopen ();
20079 ;
20080 return 0;
20081}
20082_ACEOF
20083for ac_lib in '' dl; do
20084 if test -z "$ac_lib"; then
20085 ac_res="none required"
20086 else
20087 ac_res=-l$ac_lib
20088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20089 fi
20090 if ac_fn_c_try_link "$LINENO"; then :
20091 ac_cv_search_dlopen=$ac_res
20092fi
20093rm -f core conftest.err conftest.$ac_objext \
20094 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020095 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020096 break
20097fi
20098done
cristyda16f162011-02-19 23:52:17 +000020099if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020100
20101else
20102 ac_cv_search_dlopen=no
20103fi
20104rm conftest.$ac_ext
20105LIBS=$ac_func_search_save_LIBS
20106fi
20107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20108$as_echo "$ac_cv_search_dlopen" >&6; }
20109ac_res=$ac_cv_search_dlopen
20110if test "$ac_res" != no; then :
20111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20112
20113$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20114
20115 if test "$ac_cv_search_dlopen" != "none required" ; then
20116 LIBADD_DLOPEN="-ldl"
20117 fi
20118 libltdl_cv_lib_dl_dlopen="yes"
20119 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20120else
20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122/* end confdefs.h. */
20123#if HAVE_DLFCN_H
20124# include <dlfcn.h>
20125#endif
20126
20127int
20128main ()
20129{
20130dlopen(0, 0);
20131 ;
20132 return 0;
20133}
20134_ACEOF
20135if ac_fn_c_try_link "$LINENO"; then :
20136
20137$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20138
20139 libltdl_cv_func_dlopen="yes"
20140 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20141else
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20143$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020144if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020145 $as_echo_n "(cached) " >&6
20146else
20147 ac_check_lib_save_LIBS=$LIBS
20148LIBS="-lsvld $LIBS"
20149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150/* end confdefs.h. */
20151
20152/* Override any GCC internal prototype to avoid an error.
20153 Use char because int might match the return type of a GCC
20154 builtin and then its argument prototype would still apply. */
20155#ifdef __cplusplus
20156extern "C"
20157#endif
20158char dlopen ();
20159int
20160main ()
20161{
20162return dlopen ();
20163 ;
20164 return 0;
20165}
20166_ACEOF
20167if ac_fn_c_try_link "$LINENO"; then :
20168 ac_cv_lib_svld_dlopen=yes
20169else
20170 ac_cv_lib_svld_dlopen=no
20171fi
20172rm -f core conftest.err conftest.$ac_objext \
20173 conftest$ac_exeext conftest.$ac_ext
20174LIBS=$ac_check_lib_save_LIBS
20175fi
20176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20177$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020178if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020179
20180$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20181
20182 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20183 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20184fi
20185
20186fi
20187rm -f core conftest.err conftest.$ac_objext \
20188 conftest$ac_exeext conftest.$ac_ext
20189fi
20190
20191if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20192then
20193 lt_save_LIBS="$LIBS"
20194 LIBS="$LIBS $LIBADD_DLOPEN"
20195 for ac_func in dlerror
20196do :
20197 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020198if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020199 cat >>confdefs.h <<_ACEOF
20200#define HAVE_DLERROR 1
20201_ACEOF
20202
20203fi
20204done
20205
20206 LIBS="$lt_save_LIBS"
20207fi
20208
20209
20210LIBADD_SHL_LOAD=
20211ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020212if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020213
20214$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20215
20216 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20217else
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20219$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020220if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020221 $as_echo_n "(cached) " >&6
20222else
20223 ac_check_lib_save_LIBS=$LIBS
20224LIBS="-ldld $LIBS"
20225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20226/* end confdefs.h. */
20227
20228/* Override any GCC internal prototype to avoid an error.
20229 Use char because int might match the return type of a GCC
20230 builtin and then its argument prototype would still apply. */
20231#ifdef __cplusplus
20232extern "C"
20233#endif
20234char shl_load ();
20235int
20236main ()
20237{
20238return shl_load ();
20239 ;
20240 return 0;
20241}
20242_ACEOF
20243if ac_fn_c_try_link "$LINENO"; then :
20244 ac_cv_lib_dld_shl_load=yes
20245else
20246 ac_cv_lib_dld_shl_load=no
20247fi
20248rm -f core conftest.err conftest.$ac_objext \
20249 conftest$ac_exeext conftest.$ac_ext
20250LIBS=$ac_check_lib_save_LIBS
20251fi
20252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20253$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020254if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020255
20256$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20257
20258 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20259 LIBADD_SHL_LOAD="-ldld"
20260fi
20261
20262fi
20263
20264
20265
20266case $host_os in
20267darwin[1567].*)
20268# We only want this for pre-Mac OS X 10.4.
20269 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020270if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020271
20272$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20273
20274 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20275fi
20276
20277 ;;
20278beos*)
20279 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20280 ;;
20281cygwin* | mingw* | os2* | pw32*)
20282 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20283"
cristyda16f162011-02-19 23:52:17 +000020284if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020285 ac_have_decl=1
20286else
20287 ac_have_decl=0
20288fi
20289
20290cat >>confdefs.h <<_ACEOF
20291#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20292_ACEOF
20293
20294 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20295 ;;
20296esac
20297
20298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20299$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020300if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020301 $as_echo_n "(cached) " >&6
20302else
20303 ac_check_lib_save_LIBS=$LIBS
20304LIBS="-ldld $LIBS"
20305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306/* end confdefs.h. */
20307
20308/* Override any GCC internal prototype to avoid an error.
20309 Use char because int might match the return type of a GCC
20310 builtin and then its argument prototype would still apply. */
20311#ifdef __cplusplus
20312extern "C"
20313#endif
20314char dld_link ();
20315int
20316main ()
20317{
20318return dld_link ();
20319 ;
20320 return 0;
20321}
20322_ACEOF
20323if ac_fn_c_try_link "$LINENO"; then :
20324 ac_cv_lib_dld_dld_link=yes
20325else
20326 ac_cv_lib_dld_dld_link=no
20327fi
20328rm -f core conftest.err conftest.$ac_objext \
20329 conftest$ac_exeext conftest.$ac_ext
20330LIBS=$ac_check_lib_save_LIBS
20331fi
20332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20333$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020334if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020335
20336$as_echo "#define HAVE_DLD 1" >>confdefs.h
20337
20338 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20339fi
20340
20341
20342
20343
20344LT_DLPREOPEN=
20345if test -n "$LT_DLLOADERS"
20346then
20347 for lt_loader in $LT_DLLOADERS; do
20348 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20349 done
20350
20351$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20352
20353fi
20354
20355
20356LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20357
20358
20359ac_ext=c
20360ac_cpp='$CPP $CPPFLAGS'
20361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20363ac_compiler_gnu=$ac_cv_c_compiler_gnu
20364
20365
20366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20367$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020368if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020369 $as_echo_n "(cached) " >&6
20370else
20371 lt_cv_sys_symbol_underscore=no
20372 cat > conftest.$ac_ext <<_LT_EOF
20373void nm_test_func(){}
20374int main(){nm_test_func;return 0;}
20375_LT_EOF
20376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20377 (eval $ac_compile) 2>&5
20378 ac_status=$?
20379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20380 test $ac_status = 0; }; then
20381 # Now try to grab the symbols.
20382 ac_nlist=conftest.nm
20383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20384 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20385 ac_status=$?
20386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20387 test $ac_status = 0; } && test -s "$ac_nlist"; then
20388 # See whether the symbols have a leading underscore.
20389 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20390 lt_cv_sys_symbol_underscore=yes
20391 else
20392 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20393 :
20394 else
20395 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20396 fi
20397 fi
20398 else
20399 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20400 fi
20401 else
20402 echo "configure: failed program was:" >&5
20403 cat conftest.c >&5
20404 fi
20405 rm -rf conftest*
20406
20407fi
20408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20409$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20410 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20411
20412
20413if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20414 if test x"$libltdl_cv_func_dlopen" = xyes ||
20415 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20417$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020418if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020419 $as_echo_n "(cached) " >&6
20420else
20421 libltdl_cv_need_uscore=unknown
20422 save_LIBS="$LIBS"
20423 LIBS="$LIBS $LIBADD_DLOPEN"
20424 if test "$cross_compiling" = yes; then :
20425 libltdl_cv_need_uscore=cross
20426else
20427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20428 lt_status=$lt_dlunknown
20429 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020430#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020431#include "confdefs.h"
20432
20433#if HAVE_DLFCN_H
20434#include <dlfcn.h>
20435#endif
20436
20437#include <stdio.h>
20438
20439#ifdef RTLD_GLOBAL
20440# define LT_DLGLOBAL RTLD_GLOBAL
20441#else
20442# ifdef DL_GLOBAL
20443# define LT_DLGLOBAL DL_GLOBAL
20444# else
20445# define LT_DLGLOBAL 0
20446# endif
20447#endif
20448
20449/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20450 find out it does not work in some platform. */
20451#ifndef LT_DLLAZY_OR_NOW
20452# ifdef RTLD_LAZY
20453# define LT_DLLAZY_OR_NOW RTLD_LAZY
20454# else
20455# ifdef DL_LAZY
20456# define LT_DLLAZY_OR_NOW DL_LAZY
20457# else
20458# ifdef RTLD_NOW
20459# define LT_DLLAZY_OR_NOW RTLD_NOW
20460# else
20461# ifdef DL_NOW
20462# define LT_DLLAZY_OR_NOW DL_NOW
20463# else
20464# define LT_DLLAZY_OR_NOW 0
20465# endif
20466# endif
20467# endif
20468# endif
20469#endif
20470
cristy0c60a692010-11-04 01:09:47 +000020471/* When -fvisbility=hidden is used, assume the code has been annotated
20472 correspondingly for the symbols needed. */
20473#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020474int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020475#endif
20476
cristyda16f162011-02-19 23:52:17 +000020477int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020478int main ()
20479{
20480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20481 int status = $lt_dlunknown;
20482
20483 if (self)
20484 {
20485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020486 else
20487 {
20488 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20489 else puts (dlerror ());
20490 }
cristy73bd4a52010-10-05 11:24:23 +000020491 /* dlclose (self); */
20492 }
20493 else
20494 puts (dlerror ());
20495
20496 return status;
20497}
20498_LT_EOF
20499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20500 (eval $ac_link) 2>&5
20501 ac_status=$?
20502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20503 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20504 (./conftest; exit; ) >&5 2>/dev/null
20505 lt_status=$?
20506 case x$lt_status in
20507 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20508 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20509 x$lt_dlunknown|x*) ;;
20510 esac
20511 else :
20512 # compilation failed
20513
20514 fi
20515fi
20516rm -fr conftest*
20517
20518 LIBS="$save_LIBS"
20519
20520fi
20521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20522$as_echo "$libltdl_cv_need_uscore" >&6; }
20523 fi
20524fi
20525
20526if test x"$libltdl_cv_need_uscore" = xyes; then
20527
20528$as_echo "#define NEED_USCORE 1" >>confdefs.h
20529
20530fi
20531
20532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20533$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020534if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020535 $as_echo_n "(cached) " >&6
20536else
20537 # PORTME does your system automatically load deplibs for dlopen?
20538 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20539 # For now, we just catch OSes we know something about -- in the
20540 # future, we'll try test this programmatically.
20541 lt_cv_sys_dlopen_deplibs=unknown
20542 case $host_os in
20543 aix3*|aix4.1.*|aix4.2.*)
20544 # Unknown whether this is true for these versions of AIX, but
20545 # we want this `case' here to explicitly catch those versions.
20546 lt_cv_sys_dlopen_deplibs=unknown
20547 ;;
20548 aix[4-9]*)
20549 lt_cv_sys_dlopen_deplibs=yes
20550 ;;
20551 amigaos*)
20552 case $host_cpu in
20553 powerpc)
20554 lt_cv_sys_dlopen_deplibs=no
20555 ;;
20556 esac
20557 ;;
20558 darwin*)
20559 # Assuming the user has installed a libdl from somewhere, this is true
20560 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20561 lt_cv_sys_dlopen_deplibs=yes
20562 ;;
20563 freebsd* | dragonfly*)
20564 lt_cv_sys_dlopen_deplibs=yes
20565 ;;
cristy0c60a692010-11-04 01:09:47 +000020566 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020567 # GNU and its variants, using gnu ld.so (Glibc)
20568 lt_cv_sys_dlopen_deplibs=yes
20569 ;;
20570 hpux10*|hpux11*)
20571 lt_cv_sys_dlopen_deplibs=yes
20572 ;;
20573 interix*)
20574 lt_cv_sys_dlopen_deplibs=yes
20575 ;;
20576 irix[12345]*|irix6.[01]*)
20577 # Catch all versions of IRIX before 6.2, and indicate that we don't
20578 # know how it worked for any of those versions.
20579 lt_cv_sys_dlopen_deplibs=unknown
20580 ;;
20581 irix*)
20582 # The case above catches anything before 6.2, and it's known that
20583 # at 6.2 and later dlopen does load deplibs.
20584 lt_cv_sys_dlopen_deplibs=yes
20585 ;;
20586 netbsd*)
20587 lt_cv_sys_dlopen_deplibs=yes
20588 ;;
20589 openbsd*)
20590 lt_cv_sys_dlopen_deplibs=yes
20591 ;;
20592 osf[1234]*)
20593 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20594 # it did *not* use an RPATH in a shared library to find objects the
20595 # library depends on, so we explicitly say `no'.
20596 lt_cv_sys_dlopen_deplibs=no
20597 ;;
20598 osf5.0|osf5.0a|osf5.1)
20599 # dlopen *does* load deplibs and with the right loader patch applied
20600 # it even uses RPATH in a shared library to search for shared objects
20601 # that the library depends on, but there's no easy way to know if that
20602 # patch is installed. Since this is the case, all we can really
20603 # say is unknown -- it depends on the patch being installed. If
20604 # it is, this changes to `yes'. Without it, it would be `no'.
20605 lt_cv_sys_dlopen_deplibs=unknown
20606 ;;
20607 osf*)
20608 # the two cases above should catch all versions of osf <= 5.1. Read
20609 # the comments above for what we know about them.
20610 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20611 # is used to find them so we can finally say `yes'.
20612 lt_cv_sys_dlopen_deplibs=yes
20613 ;;
20614 qnx*)
20615 lt_cv_sys_dlopen_deplibs=yes
20616 ;;
20617 solaris*)
20618 lt_cv_sys_dlopen_deplibs=yes
20619 ;;
20620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20621 libltdl_cv_sys_dlopen_deplibs=yes
20622 ;;
20623 esac
20624
20625fi
20626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20627$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20628if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20629
20630$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20631
20632fi
20633
20634:
20635
20636for ac_header in argz.h
20637do :
20638 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20639"
cristyda16f162011-02-19 23:52:17 +000020640if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020641 cat >>confdefs.h <<_ACEOF
20642#define HAVE_ARGZ_H 1
20643_ACEOF
20644
20645fi
20646
20647done
20648
20649
20650ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20651# include <argz.h>
20652#endif
20653"
cristyda16f162011-02-19 23:52:17 +000020654if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020655
20656cat >>confdefs.h <<_ACEOF
20657#define HAVE_ERROR_T 1
20658_ACEOF
20659
20660
20661else
20662
20663$as_echo "#define error_t int" >>confdefs.h
20664
20665
20666$as_echo "#define __error_t_defined 1" >>confdefs.h
20667
20668fi
20669
20670
20671ARGZ_H=
20672for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20673 argz_next argz_stringify
20674do :
20675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20676ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020677if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020678 cat >>confdefs.h <<_ACEOF
20679#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20680_ACEOF
20681
20682else
20683 ARGZ_H=argz.h;
20684
20685 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20686
20687fi
20688done
20689
20690
20691if test -z "$ARGZ_H"; then :
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20693$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020694if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020695 $as_echo_n "(cached) " >&6
20696else
20697 case $host_os in #(
20698 *cygwin*)
20699 lt_cv_sys_argz_works=no
20700 if test "$cross_compiling" != no; then
20701 lt_cv_sys_argz_works="guessing no"
20702 else
20703 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20704 save_IFS=$IFS
20705 IFS=-.
20706 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20707 IFS=$save_IFS
20708 lt_os_major=${2-0}
20709 lt_os_minor=${3-0}
20710 lt_os_micro=${4-0}
20711 if test "$lt_os_major" -gt 1 \
20712 || { test "$lt_os_major" -eq 1 \
20713 && { test "$lt_os_minor" -gt 5 \
20714 || { test "$lt_os_minor" -eq 5 \
20715 && test "$lt_os_micro" -gt 24; }; }; }; then
20716 lt_cv_sys_argz_works=yes
20717 fi
20718 fi
20719 ;; #(
20720 *) lt_cv_sys_argz_works=yes ;;
20721 esac
20722fi
20723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20724$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020725 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020726
20727$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20728
20729else
20730 ARGZ_H=argz.h
20731
20732
20733 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20734
20735fi
20736fi
20737
20738
20739
20740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20741$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020742if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020743 $as_echo_n "(cached) " >&6
20744else
20745 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20746 libltdl_cv_preloaded_symbols=yes
20747 else
20748 libltdl_cv_preloaded_symbols=no
20749 fi
20750
20751fi
20752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20753$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20754if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20755
20756$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20757
20758fi
20759
20760# Set options
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772# Check whether --with-included_ltdl was given.
20773if test "${with_included_ltdl+set}" = set; then :
20774 withval=$with_included_ltdl;
20775fi
20776
20777
20778if test "x$with_included_ltdl" != xyes; then
20779 # We are not being forced to use the included libltdl sources, so
20780 # decide whether there is a useful installed version we can use.
20781 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20782
20783"
cristyda16f162011-02-19 23:52:17 +000020784if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020785 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20786 #include <ltdl.h>
20787"
cristyda16f162011-02-19 23:52:17 +000020788if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20790$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020791if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020792 $as_echo_n "(cached) " >&6
20793else
20794 ac_check_lib_save_LIBS=$LIBS
20795LIBS="-lltdl $LIBS"
20796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797/* end confdefs.h. */
20798
20799/* Override any GCC internal prototype to avoid an error.
20800 Use char because int might match the return type of a GCC
20801 builtin and then its argument prototype would still apply. */
20802#ifdef __cplusplus
20803extern "C"
20804#endif
20805char lt_dladvise_preload ();
20806int
20807main ()
20808{
20809return lt_dladvise_preload ();
20810 ;
20811 return 0;
20812}
20813_ACEOF
20814if ac_fn_c_try_link "$LINENO"; then :
20815 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20816else
20817 ac_cv_lib_ltdl_lt_dladvise_preload=no
20818fi
20819rm -f core conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20821LIBS=$ac_check_lib_save_LIBS
20822fi
20823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20824$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020825if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020826 with_included_ltdl=no
20827else
20828 with_included_ltdl=yes
20829fi
20830
20831else
20832 with_included_ltdl=yes
20833fi
20834
20835else
20836 with_included_ltdl=yes
20837fi
20838
20839
20840fi
20841
20842
20843
20844
20845# Check whether --with-ltdl_include was given.
20846if test "${with_ltdl_include+set}" = set; then :
20847 withval=$with_ltdl_include;
20848fi
20849
20850
20851if test -n "$with_ltdl_include"; then
20852 if test -f "$with_ltdl_include/ltdl.h"; then :
20853 else
cristy98dddb52010-11-04 00:30:15 +000020854 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020855 fi
20856else
20857 with_ltdl_include=no
20858fi
20859
20860
20861# Check whether --with-ltdl_lib was given.
20862if test "${with_ltdl_lib+set}" = set; then :
20863 withval=$with_ltdl_lib;
20864fi
20865
20866
20867if test -n "$with_ltdl_lib"; then
20868 if test -f "$with_ltdl_lib/libltdl.la"; then :
20869 else
cristy98dddb52010-11-04 00:30:15 +000020870 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020871 fi
20872else
20873 with_ltdl_lib=no
20874fi
20875
20876case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20877 ,yes,no,no,)
20878 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020879 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020880 "") enable_ltdl_convenience=yes
20881 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20882esac
20883LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20884LTDLDEPS=$LIBLTDL
20885LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20886
20887
20888
20889
20890
20891# For backwards non-gettext consistent compatibility...
20892INCLTDL="$LTDLINCL"
20893
20894
20895 ;;
20896 ,no,no,no,)
20897 # If the included ltdl is not to be used, then use the
20898 # preinstalled libltdl we found.
20899
20900$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20901
20902 LIBLTDL=-lltdl
20903 LTDLDEPS=
20904 LTDLINCL=
20905 ;;
20906 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020907 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020908 ;;
20909 *) with_included_ltdl=no
20910 LIBLTDL="-L$with_ltdl_lib -lltdl"
20911 LTDLDEPS=
20912 LTDLINCL="-I$with_ltdl_include"
20913 ;;
20914esac
20915INCLTDL="$LTDLINCL"
20916
20917# Report our decision...
20918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20919$as_echo_n "checking where to find libltdl headers... " >&6; }
20920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20921$as_echo "$LTDLINCL" >&6; }
20922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20923$as_echo_n "checking where to find libltdl library... " >&6; }
20924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20925$as_echo "$LIBLTDL" >&6; }
20926
20927
20928
20929# Check whether --enable-ltdl-install was given.
20930if test "${enable_ltdl_install+set}" = set; then :
20931 enableval=$enable_ltdl_install;
20932fi
20933
20934
20935case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20936 *yes*) ;;
20937 *) enable_ltdl_convenience=yes ;;
20938esac
20939
20940 if test x"${enable_ltdl_install-no}" != xno; then
20941 INSTALL_LTDL_TRUE=
20942 INSTALL_LTDL_FALSE='#'
20943else
20944 INSTALL_LTDL_TRUE='#'
20945 INSTALL_LTDL_FALSE=
20946fi
20947
20948 if test x"${enable_ltdl_convenience-no}" != xno; then
20949 CONVENIENCE_LTDL_TRUE=
20950 CONVENIENCE_LTDL_FALSE='#'
20951else
20952 CONVENIENCE_LTDL_TRUE='#'
20953 CONVENIENCE_LTDL_FALSE=
20954fi
20955
20956
20957
20958
20959
20960
cristy73bd4a52010-10-05 11:24:23 +000020961# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20962# the user used. This is so that ltdl.h can pick up the parent projects
20963# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20964# definitions required by ltdl.c.
20965# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20966
20967
20968
20969for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20970do :
20971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20972ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20973"
cristy98dddb52010-11-04 00:30:15 +000020974if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020975 cat >>confdefs.h <<_ACEOF
20976#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20977_ACEOF
20978
20979fi
20980
20981done
20982
20983
20984for ac_func in closedir opendir readdir
20985do :
20986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20987ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020988if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020989 cat >>confdefs.h <<_ACEOF
20990#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20991_ACEOF
20992
20993else
20994
20995
20996 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20997
20998fi
20999done
21000
21001for ac_func in strlcat strlcpy
21002do :
21003 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21004ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021005if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021006 cat >>confdefs.h <<_ACEOF
21007#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21008_ACEOF
21009
21010else
21011
21012
21013 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21014
21015fi
21016done
21017
21018
21019
21020cat >>confdefs.h <<_ACEOF
21021#define LT_LIBEXT "$libext"
21022_ACEOF
21023
21024
cristyda16f162011-02-19 23:52:17 +000021025name=
21026eval "lt_libprefix=\"$libname_spec\""
21027
21028cat >>confdefs.h <<_ACEOF
21029#define LT_LIBPREFIX "$lt_libprefix"
21030_ACEOF
21031
21032
cristy73bd4a52010-10-05 11:24:23 +000021033name=ltdl
cristyda16f162011-02-19 23:52:17 +000021034eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021035
21036
21037
21038
21039
21040
21041
21042
21043# Only expand once:
21044
21045
cristy3ed852e2009-09-05 21:47:34 +000021046
21047# Check to see if building shared libraries
21048libtool_build_shared_libs='no'
21049if test "$enable_shared" = 'yes'; then
21050 libtool_build_shared_libs='yes'
21051fi
21052
21053# Check to see if building static libraries
21054libtool_build_static_libs='no'
21055if test "$enable_static" = 'yes'; then
21056 libtool_build_static_libs='yes'
21057fi
21058
cristy73bd4a52010-10-05 11:24:23 +000021059 if test "${libtool_build_shared_libs}" = 'yes'; then
21060 WITH_SHARED_LIBS_TRUE=
21061 WITH_SHARED_LIBS_FALSE='#'
21062else
21063 WITH_SHARED_LIBS_TRUE='#'
21064 WITH_SHARED_LIBS_FALSE=
21065fi
21066
cristy3ed852e2009-09-05 21:47:34 +000021067#
21068# Enable support for building loadable modules
21069#
21070
21071# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021072if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021073 withval=$with_modules; with_modules=$withval
21074else
cristy5a1cefd2010-01-06 20:42:35 +000021075 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021076fi
21077
21078
21079# Only allow building loadable modules if we are building shared libraries
21080if test "$with_modules" != 'no' ; then
21081 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021082 { $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 +000021083$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21084 with_modules='no'
21085 fi
21086fi
21087if test "$with_modules" != 'no'; then
21088
cristy8b350f62009-11-15 23:12:43 +000021089$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021090
21091fi
cristy73bd4a52010-10-05 11:24:23 +000021092 if test "$with_modules" != 'no'; then
21093 WITH_MODULES_TRUE=
21094 WITH_MODULES_FALSE='#'
21095else
21096 WITH_MODULES_TRUE='#'
21097 WITH_MODULES_FALSE=
21098fi
21099
cristy3ed852e2009-09-05 21:47:34 +000021100
21101# Enable building/use of libltdl if we are building shared libraries regardless
21102# of whether modules are built or not.
21103with_ltdl='no'
21104if test "$libtool_build_shared_libs" != 'no'; then
21105 with_ltdl='yes'
21106fi
21107
cristy73bd4a52010-10-05 11:24:23 +000021108 if test "$with_ltdl" != 'no'; then
21109 WITH_LTDL_TRUE=
21110 WITH_LTDL_FALSE='#'
21111else
21112 WITH_LTDL_TRUE='#'
21113 WITH_LTDL_FALSE=
21114fi
21115
cristy3ed852e2009-09-05 21:47:34 +000021116if test "$with_ltdl" != 'no'; then
21117
cristy8b350f62009-11-15 23:12:43 +000021118$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021119
21120
21121 # Set DLLDFLAGS
21122 if test X"$enable_shared" = Xyes; then
21123 DLLDFLAGS=-export-dynamic
21124
21125 fi
21126fi
21127
21128# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021129# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021130# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021131if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021132 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21133else
21134 enable_delegate_build='no'
21135fi
21136
21137
21138# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021139if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021140 enableval=$enable_deprecated; enable_deprecated=$enableval
21141else
21142 enable_deprecated='no'
21143fi
21144
21145
21146if test "$enable_deprecated" = 'yes'; then
21147
cristy8b350f62009-11-15 23:12:43 +000021148$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021149
21150else
21151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21152fi
21153
21154# Build a version of ImageMagick which operates uninstalled.
21155# Used to build distributions located via MAGICK_HOME / executable path
21156# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021157if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021158 enableval=$enable_installed; enable_installed=$enableval
21159else
21160 enable_installed='yes'
21161fi
21162
21163
21164if test "$enable_installed" = 'yes'; then
21165
cristy8b350f62009-11-15 23:12:43 +000021166$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021167
21168else
21169 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21170fi
21171
21172# Permit enciphering and deciphering image pixels.
21173# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021174if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021175 enableval=$enable_cipher; enable_cipher=$enableval
21176else
21177 enable_cipher='yes'
21178fi
21179
21180
21181if test "$enable_cipher" = 'yes'; then
21182
cristy8b350f62009-11-15 23:12:43 +000021183$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021184
21185fi
21186
cristy6e3607c2011-09-13 13:59:17 +000021187# Build a zero-configuration version of ImageMagick.
21188# Check whether --enable-zero-configuration was given.
21189if test "${enable_zero_configuration+set}" = set; then :
21190 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021191else
cristy6e3607c2011-09-13 13:59:17 +000021192 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021193fi
21194
21195
cristy6e3607c2011-09-13 13:59:17 +000021196if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021197
cristy6e3607c2011-09-13 13:59:17 +000021198$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021199
cristy81af5702011-09-13 14:20:58 +000021200 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021201fi
21202
21203# Build a high dynamic range version of ImageMagick.
21204# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021205if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021206 enableval=$enable_hdri; enable_hdri=$enableval
21207else
21208 enable_hdri='no'
21209fi
21210
21211
21212MAGICK_HDRI=""
21213if test "$enable_hdri" = 'yes'; then
21214 MAGICK_HDRI="HDRI"
21215
cristy8b350f62009-11-15 23:12:43 +000021216$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021217
cristyfd9dcd42010-08-08 18:07:02 +000021218 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021219fi
21220
cristy3ed852e2009-09-05 21:47:34 +000021221# Build a version of ImageMagick with assert statements.
21222# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021223if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021224 enableval=$enable_assert; enable_assert=$enableval
21225else
21226 enable_assert='yes'
21227fi
21228
21229
21230if test "$enable_assert" = 'no'; then
21231
cristy8b350f62009-11-15 23:12:43 +000021232$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021233
21234fi
21235
cristya448bd22011-10-14 12:38:13 +000021236# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021237
21238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21239$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21240 # Check whether --enable-maintainer-mode was given.
21241if test "${enable_maintainer_mode+set}" = set; then :
21242 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21243else
21244 USE_MAINTAINER_MODE=no
21245fi
21246
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21248$as_echo "$USE_MAINTAINER_MODE" >&6; }
21249 if test $USE_MAINTAINER_MODE = yes; then
21250 MAINTAINER_MODE_TRUE=
21251 MAINTAINER_MODE_FALSE='#'
21252else
21253 MAINTAINER_MODE_TRUE='#'
21254 MAINTAINER_MODE_FALSE=
21255fi
21256
21257 MAINT=$MAINTAINER_MODE_TRUE
21258
21259
cristy3ed852e2009-09-05 21:47:34 +000021260
cristy3ed852e2009-09-05 21:47:34 +000021261# Enable ccmalloc memory debugging support
21262# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021263if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021264 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21265else
21266 enable_ccmalloc='no'
21267fi
21268
21269
21270# Enable Electric Fence memory debugging support
21271# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021272if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021273 enableval=$enable_efence; enable_efence=$enableval
21274else
21275 enable_efence='no'
21276fi
21277
21278
21279# Enable prof-based profiling support
21280# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021281if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021282 enableval=$enable_prof; enable_prof=$enableval
21283else
21284 enable_prof='no'
21285fi
21286
21287
21288# Enable gprof-based profiling support
21289# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021290if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021291 enableval=$enable_gprof; enable_gprof=$enableval
21292else
21293 enable_gprof='no'
21294fi
21295
21296
21297# Enable gcov-based profiling support
21298# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021299if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021300 enableval=$enable_gcov; enable_gcov=$enableval
21301else
21302 enable_gcov='no'
21303fi
21304
21305
21306enable_profiling='no'
21307if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21308 enable_profiling='yes'
21309 if test "$libtool_build_shared_libs" = 'yes'; then
21310 echo "Warning: Can not profile code using shared libraries"
21311 fi
21312fi
21313
21314# Magick API method prefix
21315
21316# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021317if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021318 withval=$with_method_prefix; with_method_prefix=$enableval
21319else
21320 with_method_prefix=''
21321fi
21322
21323
21324if test "$with_method_prefix" != ''; then
21325
21326cat >>confdefs.h <<_ACEOF
21327#define NAMESPACE_PREFIX $with_method_prefix
21328_ACEOF
21329
21330fi
21331
21332# Number of bits in a Quantum
21333
21334# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021335if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021336 withval=$with_quantum_depth; with_quantum_depth=$withval
21337else
21338 with_quantum_depth=16
21339fi
21340
21341
21342if test "$with_quantum_depth" != '8'; then
21343 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21344fi
21345
21346case "${with_quantum_depth}" in
21347 8 ) ;;
21348 16 ) ;;
21349 32 ) ;;
21350 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021351 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021352esac
21353QUANTUM_DEPTH="$with_quantum_depth"
21354
21355cat >>confdefs.h <<_ACEOF
21356#define QUANTUM_DEPTH $QUANTUM_DEPTH
21357_ACEOF
21358
21359
21360# Set pixel cache threshold
21361
21362# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021363if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021364 withval=$with_cache; with_cache=$withval
21365else
21366 with_cache=''
21367fi
21368
21369
21370if test "$with_cache" != ''; then
21371
21372cat >>confdefs.h <<_ACEOF
21373#define PixelCacheThreshold $with_cache
21374_ACEOF
21375
21376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21377fi
21378
21379# Disable/Enable support for full delegate paths
21380
21381# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021382if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021383 withval=$with_frozenpaths; with_frozenpaths=$withval
21384else
21385 with_frozenpaths='no'
21386fi
21387
21388
21389# Enable build/install of Magick++
21390
21391# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021392if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021393 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21394else
21395 with_magick_plus_plus='yes'
21396fi
21397
21398
21399# Disable build/install of PerlMagick.
21400
21401# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021402if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021403 withval=$with_perl; with_perl=$withval
21404else
cristyb5f4e2f2010-04-25 00:49:11 +000021405 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021406fi
21407
21408
21409# Options to pass when configuring PerlMagick
21410
21411# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021412if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021413 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021414fi
21415
21416
cristy3ed852e2009-09-05 21:47:34 +000021417
21418# Enable umem, object-caching memory allocation library.
21419
21420# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021421if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021422 withval=$with_umem; with_umem=$withval
21423else
21424 with_umem='no'
21425fi
21426
21427if test "$with_umem" != 'yes' ; then
21428 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21429fi
21430
21431#
21432# Specify path to shared libstdc++ if not in normal location
21433#
21434
21435# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021436if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021437 withval=$with_libstdc; with_libstdc=$withval
21438else
21439 with_libstdc=''
21440fi
21441
21442
21443if test "$with_libstdc" != ''; then
21444 if test -d "$with_libstdc"; then
21445 LIBSTDCLDFLAGS="-L$with_libstdc"
21446 fi
21447fi
21448
21449
21450# Does gcc required -traditional?
21451if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021453$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021454if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021455 $as_echo_n "(cached) " >&6
21456else
21457 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021459/* end confdefs.h. */
21460#include <sgtty.h>
21461Autoconf TIOCGETP
21462_ACEOF
21463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021464 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021465 ac_cv_prog_gcc_traditional=yes
21466else
21467 ac_cv_prog_gcc_traditional=no
21468fi
21469rm -f conftest*
21470
21471
21472 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021474/* end confdefs.h. */
21475#include <termio.h>
21476Autoconf TCGETA
21477_ACEOF
21478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021479 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021480 ac_cv_prog_gcc_traditional=yes
21481fi
21482rm -f conftest*
21483
21484 fi
21485fi
cristy8b350f62009-11-15 23:12:43 +000021486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021487$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21488 if test $ac_cv_prog_gcc_traditional = yes; then
21489 CC="$CC -traditional"
21490 fi
21491fi
21492
21493
21494########
21495#
21496# Set defines required to build DLLs and modules using MinGW
21497#
21498########
21499# These options are set for multi-thread DLL module build
21500# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21501# module: _DLL
21502# executable/Magick++: _DLL _MAGICKMOD_
21503MODULE_EXTRA_CPPFLAGS=''
21504LIBRARY_EXTRA_CPPFLAGS=''
21505if test "${native_win32_build}" = 'yes'; then
21506 if test "${libtool_build_shared_libs}" = 'yes'; then
21507 CPPFLAGS="$CPPFLAGS -D_DLL"
21508 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21509 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21510 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21511 if test "$with_modules" = 'yes'; then
21512 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21513 else
21514 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21515 fi
21516 else
21517 CPPFLAGS="$CPPFLAGS -D_LIB"
21518 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21519 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21520 fi
21521 if test "$with_threads" = 'yes'; then
21522 CPPFLAGS="$CPPFLAGS -D_MT"
21523 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21524 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21525 fi
21526fi
21527
21528
21529
21530# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021532$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021533if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021534 $as_echo_n "(cached) " >&6
21535else
cristy8b350f62009-11-15 23:12:43 +000021536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021537/* end confdefs.h. */
21538#include <stdlib.h>
21539#include <stdarg.h>
21540#include <string.h>
21541#include <float.h>
21542
21543int
21544main ()
21545{
21546
21547 ;
21548 return 0;
21549}
21550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021551if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 ac_cv_header_stdc=yes
21553else
cristy8b350f62009-11-15 23:12:43 +000021554 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021555fi
cristy3ed852e2009-09-05 21:47:34 +000021556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557
21558if test $ac_cv_header_stdc = yes; then
21559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021561/* end confdefs.h. */
21562#include <string.h>
21563
21564_ACEOF
21565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021566 $EGREP "memchr" >/dev/null 2>&1; then :
21567
cristy3ed852e2009-09-05 21:47:34 +000021568else
21569 ac_cv_header_stdc=no
21570fi
21571rm -f conftest*
21572
21573fi
21574
21575if test $ac_cv_header_stdc = yes; then
21576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021578/* end confdefs.h. */
21579#include <stdlib.h>
21580
21581_ACEOF
21582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021583 $EGREP "free" >/dev/null 2>&1; then :
21584
cristy3ed852e2009-09-05 21:47:34 +000021585else
21586 ac_cv_header_stdc=no
21587fi
21588rm -f conftest*
21589
21590fi
21591
21592if test $ac_cv_header_stdc = yes; then
21593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021594 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021595 :
21596else
cristy8b350f62009-11-15 23:12:43 +000021597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021598/* end confdefs.h. */
21599#include <ctype.h>
21600#include <stdlib.h>
21601#if ((' ' & 0x0FF) == 0x020)
21602# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21603# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21604#else
21605# define ISLOWER(c) \
21606 (('a' <= (c) && (c) <= 'i') \
21607 || ('j' <= (c) && (c) <= 'r') \
21608 || ('s' <= (c) && (c) <= 'z'))
21609# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21610#endif
21611
21612#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21613int
21614main ()
21615{
21616 int i;
21617 for (i = 0; i < 256; i++)
21618 if (XOR (islower (i), ISLOWER (i))
21619 || toupper (i) != TOUPPER (i))
21620 return 2;
21621 return 0;
21622}
21623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021624if ac_fn_c_try_run "$LINENO"; then :
21625
cristy3ed852e2009-09-05 21:47:34 +000021626else
cristy8b350f62009-11-15 23:12:43 +000021627 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021628fi
cristy8b350f62009-11-15 23:12:43 +000021629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21630 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021631fi
21632
cristy3ed852e2009-09-05 21:47:34 +000021633fi
21634fi
cristy8b350f62009-11-15 23:12:43 +000021635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021636$as_echo "$ac_cv_header_stdc" >&6; }
21637if test $ac_cv_header_stdc = yes; then
21638
cristy8b350f62009-11-15 23:12:43 +000021639$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021640
21641fi
21642
21643if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021644 { $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 +000021645 header files. Compilation cannot proceed. Please install the ANSI C
21646 headers and rerun this script." >&5
21647$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21648 header files. Compilation cannot proceed. Please install the ANSI C
21649 headers and rerun this script." >&2;};
21650fi
cristya0b81c32010-01-22 02:54:33 +000021651
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21653$as_echo_n "checking whether to enable assertions... " >&6; }
21654 # Check whether --enable-assert was given.
21655if test "${enable_assert+set}" = set; then :
21656 enableval=$enable_assert; ac_enable_assert=$enableval
21657 if test "x$enableval" = xno; then :
21658
21659$as_echo "#define NDEBUG 1" >>confdefs.h
21660
21661elif test "x$enableval" != xyes; then :
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21663$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21664 ac_enable_assert=yes
21665fi
21666else
21667 ac_enable_assert=yes
21668fi
21669
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21671$as_echo "$ac_enable_assert" >&6; }
21672
cristy3ed852e2009-09-05 21:47:34 +000021673ac_header_dirent=no
21674for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21675 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021677$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021678if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021679 $as_echo_n "(cached) " >&6
21680else
cristy8b350f62009-11-15 23:12:43 +000021681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021682/* end confdefs.h. */
21683#include <sys/types.h>
21684#include <$ac_hdr>
21685
21686int
21687main ()
21688{
21689if ((DIR *) 0)
21690return 0;
21691 ;
21692 return 0;
21693}
21694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021695if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021696 eval "$as_ac_Header=yes"
21697else
cristy8b350f62009-11-15 23:12:43 +000021698 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021699fi
cristy3ed852e2009-09-05 21:47:34 +000021700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21701fi
cristy8b350f62009-11-15 23:12:43 +000021702eval ac_res=\$$as_ac_Header
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021706 cat >>confdefs.h <<_ACEOF
21707#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21708_ACEOF
21709
21710ac_header_dirent=$ac_hdr; break
21711fi
21712
21713done
21714# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21715if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021717$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021718if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021719 $as_echo_n "(cached) " >&6
21720else
21721 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021723/* end confdefs.h. */
21724
21725/* Override any GCC internal prototype to avoid an error.
21726 Use char because int might match the return type of a GCC
21727 builtin and then its argument prototype would still apply. */
21728#ifdef __cplusplus
21729extern "C"
21730#endif
21731char opendir ();
21732int
21733main ()
21734{
21735return opendir ();
21736 ;
21737 return 0;
21738}
21739_ACEOF
21740for ac_lib in '' dir; do
21741 if test -z "$ac_lib"; then
21742 ac_res="none required"
21743 else
21744 ac_res=-l$ac_lib
21745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21746 fi
cristy8b350f62009-11-15 23:12:43 +000021747 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021748 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021749fi
cristy8b350f62009-11-15 23:12:43 +000021750rm -f core conftest.err conftest.$ac_objext \
21751 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021752 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021753 break
21754fi
21755done
cristyda16f162011-02-19 23:52:17 +000021756if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021757
cristy3ed852e2009-09-05 21:47:34 +000021758else
21759 ac_cv_search_opendir=no
21760fi
21761rm conftest.$ac_ext
21762LIBS=$ac_func_search_save_LIBS
21763fi
cristy8b350f62009-11-15 23:12:43 +000021764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021765$as_echo "$ac_cv_search_opendir" >&6; }
21766ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021767if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21769
21770fi
21771
21772else
cristy8b350f62009-11-15 23:12:43 +000021773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021774$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021775if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021776 $as_echo_n "(cached) " >&6
21777else
21778 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021780/* end confdefs.h. */
21781
21782/* Override any GCC internal prototype to avoid an error.
21783 Use char because int might match the return type of a GCC
21784 builtin and then its argument prototype would still apply. */
21785#ifdef __cplusplus
21786extern "C"
21787#endif
21788char opendir ();
21789int
21790main ()
21791{
21792return opendir ();
21793 ;
21794 return 0;
21795}
21796_ACEOF
21797for ac_lib in '' x; do
21798 if test -z "$ac_lib"; then
21799 ac_res="none required"
21800 else
21801 ac_res=-l$ac_lib
21802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21803 fi
cristy8b350f62009-11-15 23:12:43 +000021804 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021805 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021806fi
cristy8b350f62009-11-15 23:12:43 +000021807rm -f core conftest.err conftest.$ac_objext \
21808 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021809 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021810 break
21811fi
21812done
cristyda16f162011-02-19 23:52:17 +000021813if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021814
cristy3ed852e2009-09-05 21:47:34 +000021815else
21816 ac_cv_search_opendir=no
21817fi
21818rm conftest.$ac_ext
21819LIBS=$ac_func_search_save_LIBS
21820fi
cristy8b350f62009-11-15 23:12:43 +000021821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021822$as_echo "$ac_cv_search_opendir" >&6; }
21823ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021824if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21826
21827fi
21828
21829fi
21830
21831
21832# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021833for 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 +000021834do :
21835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21836ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021838 cat >>confdefs.h <<_ACEOF
21839#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21840_ACEOF
21841
21842fi
21843
21844done
21845
21846
21847########
21848#
21849# Checks for typedefs, structures, and compiler characteristics.
21850#
21851########
21852
cristy8b350f62009-11-15 23:12:43 +000021853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021854$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021855if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021856 $as_echo_n "(cached) " >&6
21857else
cristy8b350f62009-11-15 23:12:43 +000021858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021859/* end confdefs.h. */
21860
21861#include <stdbool.h>
21862#ifndef bool
21863 "error: bool is not defined"
21864#endif
21865#ifndef false
21866 "error: false is not defined"
21867#endif
21868#if false
21869 "error: false is not 0"
21870#endif
21871#ifndef true
21872 "error: true is not defined"
21873#endif
21874#if true != 1
21875 "error: true is not 1"
21876#endif
21877#ifndef __bool_true_false_are_defined
21878 "error: __bool_true_false_are_defined is not defined"
21879#endif
21880
21881 struct s { _Bool s: 1; _Bool t; } s;
21882
21883 char a[true == 1 ? 1 : -1];
21884 char b[false == 0 ? 1 : -1];
21885 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21886 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021887 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021888 char f[(_Bool) 0.0 == false ? 1 : -1];
21889 char g[true];
21890 char h[sizeof (_Bool)];
21891 char i[sizeof s.t];
21892 enum { j = false, k = true, l = false * true, m = true * 256 };
21893 /* The following fails for
21894 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21895 _Bool n[m];
21896 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21897 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021898 /* Catch a bug in an HP-UX C compiler. See
21899 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21900 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21901 */
21902 _Bool q = true;
21903 _Bool *pq = &q;
21904
21905int
21906main ()
21907{
21908
cristyda16f162011-02-19 23:52:17 +000021909 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021910 *pq |= q;
21911 *pq |= ! q;
21912 /* Refer to every declared value, to avoid compiler optimizations. */
21913 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21914 + !m + !n + !o + !p + !q + !pq);
21915
21916 ;
21917 return 0;
21918}
21919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021920if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021921 ac_cv_header_stdbool_h=yes
21922else
cristy8b350f62009-11-15 23:12:43 +000021923 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021924fi
cristy3ed852e2009-09-05 21:47:34 +000021925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926fi
cristy8b350f62009-11-15 23:12:43 +000021927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021928$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021929ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021930if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021931
21932cat >>confdefs.h <<_ACEOF
21933#define HAVE__BOOL 1
21934_ACEOF
21935
21936
21937fi
21938
21939if test $ac_cv_header_stdbool_h = yes; then
21940
cristy8b350f62009-11-15 23:12:43 +000021941$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021942
21943fi
21944
cristy8b350f62009-11-15 23:12:43 +000021945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021946$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021947if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021948 $as_echo_n "(cached) " >&6
21949else
cristy8b350f62009-11-15 23:12:43 +000021950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021951/* end confdefs.h. */
21952
21953int
21954main ()
21955{
21956
21957volatile int x;
21958int * volatile y = (int *) 0;
21959return !x && !y;
21960 ;
21961 return 0;
21962}
21963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021964if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021965 ac_cv_c_volatile=yes
21966else
cristy8b350f62009-11-15 23:12:43 +000021967 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021968fi
cristy3ed852e2009-09-05 21:47:34 +000021969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970fi
cristy8b350f62009-11-15 23:12:43 +000021971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021972$as_echo "$ac_cv_c_volatile" >&6; }
21973if test $ac_cv_c_volatile = no; then
21974
cristy8b350f62009-11-15 23:12:43 +000021975$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021976
21977fi
21978
cristy8b350f62009-11-15 23:12:43 +000021979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021980$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021981if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021982 $as_echo_n "(cached) " >&6
21983else
cristy8b350f62009-11-15 23:12:43 +000021984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021985/* end confdefs.h. */
21986#define x(y) #y
21987
21988char *s = x(teststring);
21989_ACEOF
21990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021991 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021992 ac_cv_c_stringize=no
21993else
21994 ac_cv_c_stringize=yes
21995fi
21996rm -f conftest*
21997
21998fi
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo "$ac_cv_c_stringize" >&6; }
22001if test $ac_cv_c_stringize = yes; then
22002
cristy8b350f62009-11-15 23:12:43 +000022003$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022004
22005fi
22006
cristy8b350f62009-11-15 23:12:43 +000022007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022008$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022009if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022010 $as_echo_n "(cached) " >&6
22011else
cristy8b350f62009-11-15 23:12:43 +000022012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022013/* end confdefs.h. */
22014#include <sys/types.h>
22015#include <sys/stat.h>
22016
22017#if defined S_ISBLK && defined S_IFDIR
22018extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22019#endif
22020
22021#if defined S_ISBLK && defined S_IFCHR
22022extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22023#endif
22024
22025#if defined S_ISLNK && defined S_IFREG
22026extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22027#endif
22028
22029#if defined S_ISSOCK && defined S_IFREG
22030extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22031#endif
22032
22033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022034if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022035 ac_cv_header_stat_broken=no
22036else
cristy8b350f62009-11-15 23:12:43 +000022037 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022038fi
cristy3ed852e2009-09-05 21:47:34 +000022039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040fi
cristy8b350f62009-11-15 23:12:43 +000022041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022042$as_echo "$ac_cv_header_stat_broken" >&6; }
22043if test $ac_cv_header_stat_broken = yes; then
22044
cristy8b350f62009-11-15 23:12:43 +000022045$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022046
22047fi
22048
cristy8b350f62009-11-15 23:12:43 +000022049{ $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 +000022050$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022051if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022052 $as_echo_n "(cached) " >&6
22053else
cristy8b350f62009-11-15 23:12:43 +000022054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022055/* end confdefs.h. */
22056#include <sys/types.h>
22057#include <sys/time.h>
22058#include <time.h>
22059
22060int
22061main ()
22062{
22063if ((struct tm *) 0)
22064return 0;
22065 ;
22066 return 0;
22067}
22068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022069if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022070 ac_cv_header_time=yes
22071else
cristy8b350f62009-11-15 23:12:43 +000022072 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022073fi
cristy3ed852e2009-09-05 21:47:34 +000022074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075fi
cristy8b350f62009-11-15 23:12:43 +000022076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022077$as_echo "$ac_cv_header_time" >&6; }
22078if test $ac_cv_header_time = yes; then
22079
cristy8b350f62009-11-15 23:12:43 +000022080$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022081
22082fi
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $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 +000022085$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022086if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022087 $as_echo_n "(cached) " >&6
22088else
cristy8b350f62009-11-15 23:12:43 +000022089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022090/* end confdefs.h. */
22091#include <sys/types.h>
22092#include <time.h>
22093
22094int
22095main ()
22096{
22097struct tm tm;
22098 int *p = &tm.tm_sec;
22099 return !p;
22100 ;
22101 return 0;
22102}
22103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022104if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022105 ac_cv_struct_tm=time.h
22106else
cristy8b350f62009-11-15 23:12:43 +000022107 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022108fi
cristy3ed852e2009-09-05 21:47:34 +000022109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110fi
cristy8b350f62009-11-15 23:12:43 +000022111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022112$as_echo "$ac_cv_struct_tm" >&6; }
22113if test $ac_cv_struct_tm = sys/time.h; then
22114
cristy8b350f62009-11-15 23:12:43 +000022115$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022116
22117fi
22118
cristy92703d82010-04-26 00:18:18 +000022119ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22120#include <$ac_cv_struct_tm>
22121
22122"
cristyda16f162011-02-19 23:52:17 +000022123if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022124
22125cat >>confdefs.h <<_ACEOF
22126#define HAVE_STRUCT_TM_TM_ZONE 1
22127_ACEOF
22128
22129
22130fi
22131
22132if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22133
22134$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22135
22136else
22137 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22138"
cristyda16f162011-02-19 23:52:17 +000022139if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022140 ac_have_decl=1
22141else
22142 ac_have_decl=0
22143fi
22144
22145cat >>confdefs.h <<_ACEOF
22146#define HAVE_DECL_TZNAME $ac_have_decl
22147_ACEOF
22148
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22150$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022151if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022152 $as_echo_n "(cached) " >&6
22153else
22154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22155/* end confdefs.h. */
22156#include <time.h>
22157#if !HAVE_DECL_TZNAME
22158extern char *tzname[];
22159#endif
22160
22161int
22162main ()
22163{
22164return tzname[0][0];
22165 ;
22166 return 0;
22167}
22168_ACEOF
22169if ac_fn_c_try_link "$LINENO"; then :
22170 ac_cv_var_tzname=yes
22171else
22172 ac_cv_var_tzname=no
22173fi
22174rm -f core conftest.err conftest.$ac_objext \
22175 conftest$ac_exeext conftest.$ac_ext
22176fi
22177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22178$as_echo "$ac_cv_var_tzname" >&6; }
22179 if test $ac_cv_var_tzname = yes; then
22180
22181$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22182
22183 fi
22184fi
22185
cristy8b350f62009-11-15 23:12:43 +000022186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022187$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022188if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022189 $as_echo_n "(cached) " >&6
22190else
22191 echo '#! /bin/cat
22192exit 69
22193' >conftest
22194chmod u+x conftest
22195(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22196if test $? -ne 69; then
22197 ac_cv_sys_interpreter=yes
22198else
22199 ac_cv_sys_interpreter=no
22200fi
22201rm -f conftest
22202fi
cristy8b350f62009-11-15 23:12:43 +000022203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022204$as_echo "$ac_cv_sys_interpreter" >&6; }
22205interpval=$ac_cv_sys_interpreter
22206
22207
cristy3ed852e2009-09-05 21:47:34 +000022208# If the C compiler supports the keyword inline, do nothing. Otherwise
22209# define inline to __inline__ or __inline if it accepts one of those,
22210# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022212$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022213if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022214 $as_echo_n "(cached) " >&6
22215else
22216 ac_cv_c_inline=no
22217for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022219/* end confdefs.h. */
22220#ifndef __cplusplus
22221typedef int foo_t;
22222static $ac_kw foo_t static_foo () {return 0; }
22223$ac_kw foo_t foo () {return 0; }
22224#endif
22225
22226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022227if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022228 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022229fi
cristy3ed852e2009-09-05 21:47:34 +000022230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231 test "$ac_cv_c_inline" != no && break
22232done
22233
22234fi
cristy8b350f62009-11-15 23:12:43 +000022235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022236$as_echo "$ac_cv_c_inline" >&6; }
22237
cristy3ed852e2009-09-05 21:47:34 +000022238case $ac_cv_c_inline in
22239 inline | yes) ;;
22240 *)
22241 case $ac_cv_c_inline in
22242 no) ac_val=;;
22243 *) ac_val=$ac_cv_c_inline;;
22244 esac
22245 cat >>confdefs.h <<_ACEOF
22246#ifndef __cplusplus
22247#define inline $ac_val
22248#endif
22249_ACEOF
22250 ;;
22251esac
22252
22253
22254# If the C compiler supports the keyword restrict, do nothing. Otherwise
22255# define restrict to __restrict__ or __restrict if it accepts one of those,
22256# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022258$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022259if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022260 $as_echo_n "(cached) " >&6
22261else
22262 ac_cv_c_restrict=no
22263 # The order here caters to the fact that C++ does not require restrict.
22264 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022266/* end confdefs.h. */
22267typedef int * int_ptr;
22268 int foo (int_ptr $ac_kw ip) {
22269 return ip[0];
22270 }
22271int
22272main ()
22273{
22274int s[1];
22275 int * $ac_kw t = s;
22276 t[0] = 0;
22277 return foo(t)
22278 ;
22279 return 0;
22280}
22281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022283 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022284fi
cristy3ed852e2009-09-05 21:47:34 +000022285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 test "$ac_cv_c_restrict" != no && break
22287 done
22288
22289fi
cristy8b350f62009-11-15 23:12:43 +000022290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022291$as_echo "$ac_cv_c_restrict" >&6; }
22292
cristy3ed852e2009-09-05 21:47:34 +000022293 case $ac_cv_c_restrict in
22294 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022295 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022296 ;;
22297 *) cat >>confdefs.h <<_ACEOF
22298#define restrict $ac_cv_c_restrict
22299_ACEOF
22300 ;;
22301 esac
22302
22303
22304# If words are stored with the most significant byte first (like
22305# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022307$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022308if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022309 $as_echo_n "(cached) " >&6
22310else
22311 ac_cv_c_bigendian=unknown
22312 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022314/* end confdefs.h. */
22315#ifndef __APPLE_CC__
22316 not a universal capable compiler
22317 #endif
22318 typedef int dummy;
22319
22320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022321if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022322
22323 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022324 # there are at least two -arch flags with different values.
22325 ac_arch=
22326 ac_prev=
22327 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22328 if test -n "$ac_prev"; then
22329 case $ac_word in
22330 i?86 | x86_64 | ppc | ppc64)
22331 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22332 ac_arch=$ac_word
22333 else
22334 ac_cv_c_bigendian=universal
22335 break
22336 fi
22337 ;;
22338 esac
22339 ac_prev=
22340 elif test "x$ac_word" = "x-arch"; then
22341 ac_prev=arch
22342 fi
22343 done
cristy3ed852e2009-09-05 21:47:34 +000022344fi
cristy3ed852e2009-09-05 21:47:34 +000022345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22346 if test $ac_cv_c_bigendian = unknown; then
22347 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022349/* end confdefs.h. */
22350#include <sys/types.h>
22351 #include <sys/param.h>
22352
22353int
22354main ()
22355{
22356#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22357 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22358 && LITTLE_ENDIAN)
22359 bogus endian macros
22360 #endif
22361
22362 ;
22363 return 0;
22364}
22365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022366if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022367 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022369/* end confdefs.h. */
22370#include <sys/types.h>
22371 #include <sys/param.h>
22372
22373int
22374main ()
22375{
22376#if BYTE_ORDER != BIG_ENDIAN
22377 not big endian
22378 #endif
22379
22380 ;
22381 return 0;
22382}
22383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022384if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022385 ac_cv_c_bigendian=yes
22386else
cristy8b350f62009-11-15 23:12:43 +000022387 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022388fi
cristy3ed852e2009-09-05 21:47:34 +000022389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022390fi
cristy3ed852e2009-09-05 21:47:34 +000022391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 fi
22393 if test $ac_cv_c_bigendian = unknown; then
22394 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022396/* end confdefs.h. */
22397#include <limits.h>
22398
22399int
22400main ()
22401{
22402#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22403 bogus endian macros
22404 #endif
22405
22406 ;
22407 return 0;
22408}
22409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022410if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022411 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022413/* end confdefs.h. */
22414#include <limits.h>
22415
22416int
22417main ()
22418{
22419#ifndef _BIG_ENDIAN
22420 not big endian
22421 #endif
22422
22423 ;
22424 return 0;
22425}
22426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022427if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022428 ac_cv_c_bigendian=yes
22429else
cristy8b350f62009-11-15 23:12:43 +000022430 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022431fi
cristy3ed852e2009-09-05 21:47:34 +000022432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022433fi
cristy3ed852e2009-09-05 21:47:34 +000022434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22435 fi
22436 if test $ac_cv_c_bigendian = unknown; then
22437 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022438 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022439 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022441/* end confdefs.h. */
22442short int ascii_mm[] =
22443 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22444 short int ascii_ii[] =
22445 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22446 int use_ascii (int i) {
22447 return ascii_mm[i] + ascii_ii[i];
22448 }
22449 short int ebcdic_ii[] =
22450 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22451 short int ebcdic_mm[] =
22452 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22453 int use_ebcdic (int i) {
22454 return ebcdic_mm[i] + ebcdic_ii[i];
22455 }
22456 extern int foo;
22457
22458int
22459main ()
22460{
22461return use_ascii (foo) == use_ebcdic (foo);
22462 ;
22463 return 0;
22464}
22465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022467 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22468 ac_cv_c_bigendian=yes
22469 fi
22470 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22471 if test "$ac_cv_c_bigendian" = unknown; then
22472 ac_cv_c_bigendian=no
22473 else
22474 # finding both strings is unlikely to happen, but who knows?
22475 ac_cv_c_bigendian=unknown
22476 fi
22477 fi
cristy3ed852e2009-09-05 21:47:34 +000022478fi
cristy3ed852e2009-09-05 21:47:34 +000022479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480else
cristy8b350f62009-11-15 23:12:43 +000022481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022482/* end confdefs.h. */
22483$ac_includes_default
22484int
22485main ()
22486{
22487
22488 /* Are we little or big endian? From Harbison&Steele. */
22489 union
22490 {
22491 long int l;
22492 char c[sizeof (long int)];
22493 } u;
22494 u.l = 1;
22495 return u.c[sizeof (long int) - 1] == 1;
22496
22497 ;
22498 return 0;
22499}
22500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022501if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022502 ac_cv_c_bigendian=no
22503else
cristy8b350f62009-11-15 23:12:43 +000022504 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022505fi
cristy8b350f62009-11-15 23:12:43 +000022506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22507 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022508fi
22509
cristy3ed852e2009-09-05 21:47:34 +000022510 fi
22511fi
cristy8b350f62009-11-15 23:12:43 +000022512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022513$as_echo "$ac_cv_c_bigendian" >&6; }
22514 case $ac_cv_c_bigendian in #(
22515 yes)
cristy8b350f62009-11-15 23:12:43 +000022516 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022517;; #(
22518 no)
22519 ;; #(
22520 universal)
22521
cristy8b350f62009-11-15 23:12:43 +000022522$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022523
22524 ;; #(
22525 *)
cristy98dddb52010-11-04 00:30:15 +000022526 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022527 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022528 esac
22529
22530
cristy501c8042011-05-26 17:46:28 +000022531# Define to a suitable type, if standard headers do not define it.
22532ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22533case $ac_cv_c_int8_t in #(
22534 no|yes) ;; #(
22535 *)
cristy3ed852e2009-09-05 21:47:34 +000022536
22537cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022538#define int8_t $ac_cv_c_int8_t
22539_ACEOF
22540;;
22541esac
22542
22543ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22544case $ac_cv_c_int16_t in #(
22545 no|yes) ;; #(
22546 *)
22547
22548cat >>confdefs.h <<_ACEOF
22549#define int16_t $ac_cv_c_int16_t
22550_ACEOF
22551;;
22552esac
22553
22554ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22555case $ac_cv_c_int32_t in #(
22556 no|yes) ;; #(
22557 *)
22558
22559cat >>confdefs.h <<_ACEOF
22560#define int32_t $ac_cv_c_int32_t
22561_ACEOF
22562;;
22563esac
22564
22565ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22566case $ac_cv_c_int64_t in #(
22567 no|yes) ;; #(
22568 *)
22569
22570cat >>confdefs.h <<_ACEOF
22571#define int64_t $ac_cv_c_int64_t
22572_ACEOF
22573;;
22574esac
22575
22576
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22578$as_echo_n "checking for long long int... " >&6; }
22579if ${ac_cv_type_long_long_int+:} false; then :
22580 $as_echo_n "(cached) " >&6
22581else
22582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22583/* end confdefs.h. */
22584
22585 /* For now, do not test the preprocessor; as of 2007 there are too many
22586 implementations with broken preprocessors. Perhaps this can
22587 be revisited in 2012. In the meantime, code should not expect
22588 #if to work with literals wider than 32 bits. */
22589 /* Test literals. */
22590 long long int ll = 9223372036854775807ll;
22591 long long int nll = -9223372036854775807LL;
22592 unsigned long long int ull = 18446744073709551615ULL;
22593 /* Test constant expressions. */
22594 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22595 ? 1 : -1)];
22596 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22597 ? 1 : -1)];
22598 int i = 63;
22599int
22600main ()
22601{
22602/* Test availability of runtime routines for shift and division. */
22603 long long int llmax = 9223372036854775807ll;
22604 unsigned long long int ullmax = 18446744073709551615ull;
22605 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22606 | (llmax / ll) | (llmax % ll)
22607 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22608 | (ullmax / ull) | (ullmax % ull));
22609 ;
22610 return 0;
22611}
22612
22613_ACEOF
22614if ac_fn_c_try_link "$LINENO"; then :
22615 if test "$cross_compiling" = yes; then :
22616 ac_cv_type_long_long_int=yes
22617else
22618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619/* end confdefs.h. */
22620#include <limits.h>
22621 #ifndef LLONG_MAX
22622 # define HALF \
22623 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22624 # define LLONG_MAX (HALF - 1 + HALF)
22625 #endif
22626int
22627main ()
22628{
22629long long int n = 1;
22630 int i;
22631 for (i = 0; ; i++)
22632 {
22633 long long int m = n << i;
22634 if (m >> i != n)
22635 return 1;
22636 if (LLONG_MAX / 2 < m)
22637 break;
22638 }
22639 return 0;
22640 ;
22641 return 0;
22642}
22643_ACEOF
22644if ac_fn_c_try_run "$LINENO"; then :
22645 ac_cv_type_long_long_int=yes
22646else
22647 ac_cv_type_long_long_int=no
22648fi
22649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22650 conftest.$ac_objext conftest.beam conftest.$ac_ext
22651fi
22652
22653else
22654 ac_cv_type_long_long_int=no
22655fi
22656rm -f core conftest.err conftest.$ac_objext \
22657 conftest$ac_exeext conftest.$ac_ext
22658fi
22659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22660$as_echo "$ac_cv_type_long_long_int" >&6; }
22661 if test $ac_cv_type_long_long_int = yes; then
22662
22663$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22664
22665 fi
22666
22667
22668
22669 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22670if test "x$ac_cv_type_intmax_t" = xyes; then :
22671
22672$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22673
22674else
22675 test $ac_cv_type_long_long_int = yes \
22676 && ac_type='long long int' \
22677 || ac_type='long int'
22678
22679cat >>confdefs.h <<_ACEOF
22680#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022681_ACEOF
22682
22683fi
22684
22685
cristy501c8042011-05-26 17:46:28 +000022686
22687 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22688if test "x$ac_cv_type_intptr_t" = xyes; then :
22689
22690$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022691
cristy3ed852e2009-09-05 21:47:34 +000022692else
cristy501c8042011-05-26 17:46:28 +000022693 for ac_type in 'int' 'long int' 'long long int'; do
22694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695/* end confdefs.h. */
22696$ac_includes_default
22697int
22698main ()
22699{
22700static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22701test_array [0] = 0
22702
22703 ;
22704 return 0;
22705}
22706_ACEOF
22707if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022708
22709cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022710#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022711_ACEOF
22712
cristy501c8042011-05-26 17:46:28 +000022713 ac_type=
22714fi
22715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 test -z "$ac_type" && break
22717 done
cristy3ed852e2009-09-05 21:47:34 +000022718fi
22719
22720
cristy3ed852e2009-09-05 21:47:34 +000022721
cristy501c8042011-05-26 17:46:28 +000022722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22723$as_echo_n "checking for long double... " >&6; }
22724if ${ac_cv_type_long_double+:} false; then :
22725 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022726else
cristy501c8042011-05-26 17:46:28 +000022727 if test "$GCC" = yes; then
22728 ac_cv_type_long_double=yes
22729 else
22730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22731/* end confdefs.h. */
22732/* The Stardent Vistra knows sizeof (long double), but does
22733 not support it. */
22734 long double foo = 0.0L;
22735int
22736main ()
22737{
22738static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22739 sizeof (double) <= sizeof (long double))];
22740test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022741
cristy501c8042011-05-26 17:46:28 +000022742 ;
22743 return 0;
22744}
cristy3ed852e2009-09-05 21:47:34 +000022745_ACEOF
cristy501c8042011-05-26 17:46:28 +000022746if ac_fn_c_try_compile "$LINENO"; then :
22747 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022748else
cristy501c8042011-05-26 17:46:28 +000022749 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022750fi
cristy501c8042011-05-26 17:46:28 +000022751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752 fi
cristy3ed852e2009-09-05 21:47:34 +000022753fi
cristy501c8042011-05-26 17:46:28 +000022754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22755$as_echo "$ac_cv_type_long_double" >&6; }
22756 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022757
cristy501c8042011-05-26 17:46:28 +000022758$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022759
cristy501c8042011-05-26 17:46:28 +000022760 fi
22761
cristy3ed852e2009-09-05 21:47:34 +000022762
cristy8b350f62009-11-15 23:12:43 +000022763 { $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 +000022764$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022765if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022766 $as_echo_n "(cached) " >&6
22767else
cristy8b350f62009-11-15 23:12:43 +000022768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022769/* end confdefs.h. */
22770#include <float.h>
22771 long double const a[] =
22772 {
22773 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22774 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22775 };
22776 long double
22777 f (long double x)
22778 {
22779 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22780 + (x ? f (x) : 'c'));
22781 }
22782
22783int
22784main ()
22785{
22786static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22787 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22788 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22789 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22790 && (int) LDBL_EPSILON == 0
22791 )];
22792test_array [0] = 0
22793
22794 ;
22795 return 0;
22796}
22797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022798if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022799 ac_cv_type_long_double_wider=yes
22800else
cristy8b350f62009-11-15 23:12:43 +000022801 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022802fi
cristy3ed852e2009-09-05 21:47:34 +000022803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22804fi
cristy8b350f62009-11-15 23:12:43 +000022805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022806$as_echo "$ac_cv_type_long_double_wider" >&6; }
22807 if test $ac_cv_type_long_double_wider = yes; then
22808
cristy8b350f62009-11-15 23:12:43 +000022809$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022810
22811 fi
22812
22813
cristy501c8042011-05-26 17:46:28 +000022814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22815$as_echo_n "checking for long long int... " >&6; }
22816if ${ac_cv_type_long_long_int+:} false; then :
22817 $as_echo_n "(cached) " >&6
22818else
22819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820/* end confdefs.h. */
22821
22822 /* For now, do not test the preprocessor; as of 2007 there are too many
22823 implementations with broken preprocessors. Perhaps this can
22824 be revisited in 2012. In the meantime, code should not expect
22825 #if to work with literals wider than 32 bits. */
22826 /* Test literals. */
22827 long long int ll = 9223372036854775807ll;
22828 long long int nll = -9223372036854775807LL;
22829 unsigned long long int ull = 18446744073709551615ULL;
22830 /* Test constant expressions. */
22831 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22832 ? 1 : -1)];
22833 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22834 ? 1 : -1)];
22835 int i = 63;
22836int
22837main ()
22838{
22839/* Test availability of runtime routines for shift and division. */
22840 long long int llmax = 9223372036854775807ll;
22841 unsigned long long int ullmax = 18446744073709551615ull;
22842 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22843 | (llmax / ll) | (llmax % ll)
22844 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22845 | (ullmax / ull) | (ullmax % ull));
22846 ;
22847 return 0;
22848}
22849
22850_ACEOF
22851if ac_fn_c_try_link "$LINENO"; then :
22852 if test "$cross_compiling" = yes; then :
22853 ac_cv_type_long_long_int=yes
22854else
22855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22856/* end confdefs.h. */
22857#include <limits.h>
22858 #ifndef LLONG_MAX
22859 # define HALF \
22860 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22861 # define LLONG_MAX (HALF - 1 + HALF)
22862 #endif
22863int
22864main ()
22865{
22866long long int n = 1;
22867 int i;
22868 for (i = 0; ; i++)
22869 {
22870 long long int m = n << i;
22871 if (m >> i != n)
22872 return 1;
22873 if (LLONG_MAX / 2 < m)
22874 break;
22875 }
22876 return 0;
22877 ;
22878 return 0;
22879}
22880_ACEOF
22881if ac_fn_c_try_run "$LINENO"; then :
22882 ac_cv_type_long_long_int=yes
22883else
22884 ac_cv_type_long_long_int=no
22885fi
22886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22887 conftest.$ac_objext conftest.beam conftest.$ac_ext
22888fi
22889
22890else
22891 ac_cv_type_long_long_int=no
22892fi
22893rm -f core conftest.err conftest.$ac_objext \
22894 conftest$ac_exeext conftest.$ac_ext
22895fi
22896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22897$as_echo "$ac_cv_type_long_long_int" >&6; }
22898 if test $ac_cv_type_long_long_int = yes; then
22899
22900$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22901
22902 fi
22903
22904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22905$as_echo_n "checking for mbstate_t... " >&6; }
22906if ${ac_cv_type_mbstate_t+:} false; then :
22907 $as_echo_n "(cached) " >&6
22908else
22909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910/* end confdefs.h. */
22911$ac_includes_default
22912# include <wchar.h>
22913int
22914main ()
22915{
22916mbstate_t x; return sizeof x;
22917 ;
22918 return 0;
22919}
22920_ACEOF
22921if ac_fn_c_try_compile "$LINENO"; then :
22922 ac_cv_type_mbstate_t=yes
22923else
22924 ac_cv_type_mbstate_t=no
22925fi
22926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927fi
22928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22929$as_echo "$ac_cv_type_mbstate_t" >&6; }
22930 if test $ac_cv_type_mbstate_t = yes; then
22931
22932$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22933
22934 else
22935
22936$as_echo "#define mbstate_t int" >>confdefs.h
22937
22938 fi
22939ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22940if test "x$ac_cv_type_mode_t" = xyes; then :
22941
22942else
22943
22944cat >>confdefs.h <<_ACEOF
22945#define mode_t int
22946_ACEOF
22947
22948fi
22949
22950ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22951if test "x$ac_cv_type_off_t" = xyes; then :
22952
22953else
22954
22955cat >>confdefs.h <<_ACEOF
22956#define off_t long int
22957_ACEOF
22958
22959fi
22960
22961ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22962if test "x$ac_cv_type_pid_t" = xyes; then :
22963
22964else
22965
22966cat >>confdefs.h <<_ACEOF
22967#define pid_t int
22968_ACEOF
22969
22970fi
22971
22972ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22973if test "x$ac_cv_type_size_t" = xyes; then :
22974
22975else
22976
22977cat >>confdefs.h <<_ACEOF
22978#define size_t unsigned int
22979_ACEOF
22980
22981fi
22982
22983ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22984if test "x$ac_cv_type_ssize_t" = xyes; then :
22985
22986else
22987
22988cat >>confdefs.h <<_ACEOF
22989#define ssize_t int
22990_ACEOF
22991
22992fi
22993
22994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22995$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22996if ${ac_cv_type_uid_t+:} false; then :
22997 $as_echo_n "(cached) " >&6
22998else
22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000/* end confdefs.h. */
23001#include <sys/types.h>
23002
23003_ACEOF
23004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23005 $EGREP "uid_t" >/dev/null 2>&1; then :
23006 ac_cv_type_uid_t=yes
23007else
23008 ac_cv_type_uid_t=no
23009fi
23010rm -f conftest*
23011
23012fi
23013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23014$as_echo "$ac_cv_type_uid_t" >&6; }
23015if test $ac_cv_type_uid_t = no; then
23016
23017$as_echo "#define uid_t int" >>confdefs.h
23018
23019
23020$as_echo "#define gid_t int" >>confdefs.h
23021
23022fi
23023
23024ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23025case $ac_cv_c_uint8_t in #(
23026 no|yes) ;; #(
23027 *)
23028
23029$as_echo "#define _UINT8_T 1" >>confdefs.h
23030
23031
23032cat >>confdefs.h <<_ACEOF
23033#define uint8_t $ac_cv_c_uint8_t
23034_ACEOF
23035;;
23036 esac
23037
23038ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23039case $ac_cv_c_uint16_t in #(
23040 no|yes) ;; #(
23041 *)
23042
23043
23044cat >>confdefs.h <<_ACEOF
23045#define uint16_t $ac_cv_c_uint16_t
23046_ACEOF
23047;;
23048 esac
23049
23050ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23051case $ac_cv_c_uint32_t in #(
23052 no|yes) ;; #(
23053 *)
23054
23055$as_echo "#define _UINT32_T 1" >>confdefs.h
23056
23057
23058cat >>confdefs.h <<_ACEOF
23059#define uint32_t $ac_cv_c_uint32_t
23060_ACEOF
23061;;
23062 esac
23063
23064ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23065case $ac_cv_c_uint64_t in #(
23066 no|yes) ;; #(
23067 *)
23068
23069$as_echo "#define _UINT64_T 1" >>confdefs.h
23070
23071
23072cat >>confdefs.h <<_ACEOF
23073#define uint64_t $ac_cv_c_uint64_t
23074_ACEOF
23075;;
23076 esac
23077
23078
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23080$as_echo_n "checking for unsigned long long int... " >&6; }
23081if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23082 $as_echo_n "(cached) " >&6
23083else
23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085/* end confdefs.h. */
23086
23087 /* For now, do not test the preprocessor; as of 2007 there are too many
23088 implementations with broken preprocessors. Perhaps this can
23089 be revisited in 2012. In the meantime, code should not expect
23090 #if to work with literals wider than 32 bits. */
23091 /* Test literals. */
23092 long long int ll = 9223372036854775807ll;
23093 long long int nll = -9223372036854775807LL;
23094 unsigned long long int ull = 18446744073709551615ULL;
23095 /* Test constant expressions. */
23096 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23097 ? 1 : -1)];
23098 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23099 ? 1 : -1)];
23100 int i = 63;
23101int
23102main ()
23103{
23104/* Test availability of runtime routines for shift and division. */
23105 long long int llmax = 9223372036854775807ll;
23106 unsigned long long int ullmax = 18446744073709551615ull;
23107 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23108 | (llmax / ll) | (llmax % ll)
23109 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23110 | (ullmax / ull) | (ullmax % ull));
23111 ;
23112 return 0;
23113}
23114
23115_ACEOF
23116if ac_fn_c_try_link "$LINENO"; then :
23117 ac_cv_type_unsigned_long_long_int=yes
23118else
23119 ac_cv_type_unsigned_long_long_int=no
23120fi
23121rm -f core conftest.err conftest.$ac_objext \
23122 conftest$ac_exeext conftest.$ac_ext
23123fi
23124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23125$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23126 if test $ac_cv_type_unsigned_long_long_int = yes; then
23127
23128$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23129
23130 fi
23131
23132
23133
23134 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23135if test "x$ac_cv_type_uintmax_t" = xyes; then :
23136
23137$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23138
23139else
23140 test $ac_cv_type_unsigned_long_long_int = yes \
23141 && ac_type='unsigned long long int' \
23142 || ac_type='unsigned long int'
23143
23144cat >>confdefs.h <<_ACEOF
23145#define uintmax_t $ac_type
23146_ACEOF
23147
23148fi
23149
23150
23151
23152 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23153if test "x$ac_cv_type_uintptr_t" = xyes; then :
23154
23155$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23156
23157else
23158 for ac_type in 'unsigned int' 'unsigned long int' \
23159 'unsigned long long int'; do
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161/* end confdefs.h. */
23162$ac_includes_default
23163int
23164main ()
23165{
23166static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23167test_array [0] = 0
23168
23169 ;
23170 return 0;
23171}
23172_ACEOF
23173if ac_fn_c_try_compile "$LINENO"; then :
23174
23175cat >>confdefs.h <<_ACEOF
23176#define uintptr_t $ac_type
23177_ACEOF
23178
23179 ac_type=
23180fi
23181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23182 test -z "$ac_type" && break
23183 done
23184fi
23185
23186
23187
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23189$as_echo_n "checking for unsigned long long int... " >&6; }
23190if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23191 $as_echo_n "(cached) " >&6
23192else
23193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23194/* end confdefs.h. */
23195
23196 /* For now, do not test the preprocessor; as of 2007 there are too many
23197 implementations with broken preprocessors. Perhaps this can
23198 be revisited in 2012. In the meantime, code should not expect
23199 #if to work with literals wider than 32 bits. */
23200 /* Test literals. */
23201 long long int ll = 9223372036854775807ll;
23202 long long int nll = -9223372036854775807LL;
23203 unsigned long long int ull = 18446744073709551615ULL;
23204 /* Test constant expressions. */
23205 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23206 ? 1 : -1)];
23207 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23208 ? 1 : -1)];
23209 int i = 63;
23210int
23211main ()
23212{
23213/* Test availability of runtime routines for shift and division. */
23214 long long int llmax = 9223372036854775807ll;
23215 unsigned long long int ullmax = 18446744073709551615ull;
23216 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23217 | (llmax / ll) | (llmax % ll)
23218 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23219 | (ullmax / ull) | (ullmax % ull));
23220 ;
23221 return 0;
23222}
23223
23224_ACEOF
23225if ac_fn_c_try_link "$LINENO"; then :
23226 ac_cv_type_unsigned_long_long_int=yes
23227else
23228 ac_cv_type_unsigned_long_long_int=no
23229fi
23230rm -f core conftest.err conftest.$ac_objext \
23231 conftest$ac_exeext conftest.$ac_ext
23232fi
23233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23234$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23235 if test $ac_cv_type_unsigned_long_long_int = yes; then
23236
23237$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23238
23239 fi
23240
23241
cristy3ed852e2009-09-05 21:47:34 +000023242# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23243# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023245$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023246if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023247 $as_echo_n "(cached) " >&6
23248else
cristy8b350f62009-11-15 23:12:43 +000023249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023250/* end confdefs.h. */
23251$ac_includes_default
23252int
23253main ()
23254{
23255static int test_array [1 - 2 * !(((char) -1) < 0)];
23256test_array [0] = 0
23257
23258 ;
23259 return 0;
23260}
23261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023262if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023263 ac_cv_c_char_unsigned=no
23264else
cristy8b350f62009-11-15 23:12:43 +000023265 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023266fi
cristy3ed852e2009-09-05 21:47:34 +000023267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23268fi
cristy8b350f62009-11-15 23:12:43 +000023269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023270$as_echo "$ac_cv_c_char_unsigned" >&6; }
23271if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023272 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023273
23274fi
23275
23276
23277# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23278# The cast to long int works around a bug in the HP C Compiler
23279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23281# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023283$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023284if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023285 $as_echo_n "(cached) " >&6
23286else
cristy8b350f62009-11-15 23:12:43 +000023287 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 +000023288
cristy3ed852e2009-09-05 21:47:34 +000023289else
cristy8b350f62009-11-15 23:12:43 +000023290 if test "$ac_cv_type_signed_short" = yes; then
23291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023293as_fn_error 77 "cannot compute sizeof (signed short)
23294See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023295 else
23296 ac_cv_sizeof_signed_short=0
23297 fi
23298fi
cristy8b350f62009-11-15 23:12:43 +000023299
cristy3ed852e2009-09-05 21:47:34 +000023300fi
cristy8b350f62009-11-15 23:12:43 +000023301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023302$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23303
23304
23305
23306cat >>confdefs.h <<_ACEOF
23307#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23308_ACEOF
23309
23310
23311
23312# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23313# The cast to long int works around a bug in the HP C Compiler
23314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23316# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023318$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023319if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023320 $as_echo_n "(cached) " >&6
23321else
cristy8b350f62009-11-15 23:12:43 +000023322 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 +000023323
cristy3ed852e2009-09-05 21:47:34 +000023324else
cristy8b350f62009-11-15 23:12:43 +000023325 if test "$ac_cv_type_unsigned_short" = yes; then
23326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023328as_fn_error 77 "cannot compute sizeof (unsigned short)
23329See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023330 else
23331 ac_cv_sizeof_unsigned_short=0
23332 fi
23333fi
cristy8b350f62009-11-15 23:12:43 +000023334
cristy3ed852e2009-09-05 21:47:34 +000023335fi
cristy8b350f62009-11-15 23:12:43 +000023336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023337$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23338
23339
23340
23341cat >>confdefs.h <<_ACEOF
23342#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23343_ACEOF
23344
23345
23346
23347# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23348# The cast to long int works around a bug in the HP C Compiler
23349# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23350# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23351# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023353$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023354if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023355 $as_echo_n "(cached) " >&6
23356else
cristy8b350f62009-11-15 23:12:43 +000023357 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 +000023358
cristy3ed852e2009-09-05 21:47:34 +000023359else
cristy8b350f62009-11-15 23:12:43 +000023360 if test "$ac_cv_type_signed_int" = yes; then
23361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023363as_fn_error 77 "cannot compute sizeof (signed int)
23364See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023365 else
23366 ac_cv_sizeof_signed_int=0
23367 fi
23368fi
cristy8b350f62009-11-15 23:12:43 +000023369
cristy3ed852e2009-09-05 21:47:34 +000023370fi
cristy8b350f62009-11-15 23:12:43 +000023371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023372$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23373
23374
23375
23376cat >>confdefs.h <<_ACEOF
23377#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23378_ACEOF
23379
23380
23381
23382# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23383# The cast to long int works around a bug in the HP C Compiler
23384# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23385# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23386# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023388$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023389if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023390 $as_echo_n "(cached) " >&6
23391else
cristy8b350f62009-11-15 23:12:43 +000023392 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 +000023393
cristy3ed852e2009-09-05 21:47:34 +000023394else
cristy8b350f62009-11-15 23:12:43 +000023395 if test "$ac_cv_type_unsigned_int" = yes; then
23396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023398as_fn_error 77 "cannot compute sizeof (unsigned int)
23399See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023400 else
23401 ac_cv_sizeof_unsigned_int=0
23402 fi
23403fi
cristy8b350f62009-11-15 23:12:43 +000023404
cristy3ed852e2009-09-05 21:47:34 +000023405fi
cristy8b350f62009-11-15 23:12:43 +000023406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023407$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23408
23409
23410
23411cat >>confdefs.h <<_ACEOF
23412#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23413_ACEOF
23414
23415
23416
23417# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23418# The cast to long int works around a bug in the HP C Compiler
23419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23421# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023423$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023424if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023425 $as_echo_n "(cached) " >&6
23426else
cristy8b350f62009-11-15 23:12:43 +000023427 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 +000023428
cristy3ed852e2009-09-05 21:47:34 +000023429else
cristy8b350f62009-11-15 23:12:43 +000023430 if test "$ac_cv_type_signed_long" = yes; then
23431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023433as_fn_error 77 "cannot compute sizeof (signed long)
23434See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023435 else
23436 ac_cv_sizeof_signed_long=0
23437 fi
23438fi
cristy8b350f62009-11-15 23:12:43 +000023439
cristy3ed852e2009-09-05 21:47:34 +000023440fi
cristy8b350f62009-11-15 23:12:43 +000023441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023442$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23443
23444
23445
23446cat >>confdefs.h <<_ACEOF
23447#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23448_ACEOF
23449
23450
23451
23452# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23453# The cast to long int works around a bug in the HP C Compiler
23454# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23455# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23456# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023459if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023460 $as_echo_n "(cached) " >&6
23461else
cristy8b350f62009-11-15 23:12:43 +000023462 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 +000023463
cristy3ed852e2009-09-05 21:47:34 +000023464else
cristy8b350f62009-11-15 23:12:43 +000023465 if test "$ac_cv_type_unsigned_long" = yes; then
23466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023468as_fn_error 77 "cannot compute sizeof (unsigned long)
23469See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023470 else
23471 ac_cv_sizeof_unsigned_long=0
23472 fi
23473fi
cristy8b350f62009-11-15 23:12:43 +000023474
cristy3ed852e2009-09-05 21:47:34 +000023475fi
cristy8b350f62009-11-15 23:12:43 +000023476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023477$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23478
23479
23480
23481cat >>confdefs.h <<_ACEOF
23482#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23483_ACEOF
23484
23485
23486
23487# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23488# 'signed long long' is not supported then the value defined is zero.
23489# The cast to long int works around a bug in the HP C Compiler
23490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23492# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023494$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023495if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023496 $as_echo_n "(cached) " >&6
23497else
cristy8b350f62009-11-15 23:12:43 +000023498 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 +000023499
cristy3ed852e2009-09-05 21:47:34 +000023500else
cristy8b350f62009-11-15 23:12:43 +000023501 if test "$ac_cv_type_signed_long_long" = yes; then
23502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023504as_fn_error 77 "cannot compute sizeof (signed long long)
23505See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023506 else
23507 ac_cv_sizeof_signed_long_long=0
23508 fi
23509fi
cristy8b350f62009-11-15 23:12:43 +000023510
cristy3ed852e2009-09-05 21:47:34 +000023511fi
cristy8b350f62009-11-15 23:12:43 +000023512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023513$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23514
23515
23516
23517cat >>confdefs.h <<_ACEOF
23518#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23519_ACEOF
23520
23521
23522
23523# Obtain size of a 'unsigned long long' and define as
23524# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23525# supported then the value defined is zero.
23526# The cast to long int works around a bug in the HP C Compiler
23527# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23528# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23529# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023531$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023532if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023533 $as_echo_n "(cached) " >&6
23534else
cristy8b350f62009-11-15 23:12:43 +000023535 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 +000023536
cristy3ed852e2009-09-05 21:47:34 +000023537else
cristy8b350f62009-11-15 23:12:43 +000023538 if test "$ac_cv_type_unsigned_long_long" = yes; then
23539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023541as_fn_error 77 "cannot compute sizeof (unsigned long long)
23542See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023543 else
23544 ac_cv_sizeof_unsigned_long_long=0
23545 fi
23546fi
cristy8b350f62009-11-15 23:12:43 +000023547
cristy3ed852e2009-09-05 21:47:34 +000023548fi
cristy8b350f62009-11-15 23:12:43 +000023549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023550$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23551
23552
23553
23554cat >>confdefs.h <<_ACEOF
23555#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23556_ACEOF
23557
23558
23559
23560# Obtain size of off_t and define as SIZEOF_OFF_T
23561# The cast to long int works around a bug in the HP C Compiler
23562# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23563# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23564# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023566$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023567if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023568 $as_echo_n "(cached) " >&6
23569else
cristy8b350f62009-11-15 23:12:43 +000023570 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 +000023571
cristy3ed852e2009-09-05 21:47:34 +000023572else
cristy8b350f62009-11-15 23:12:43 +000023573 if test "$ac_cv_type_off_t" = yes; then
23574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023576as_fn_error 77 "cannot compute sizeof (off_t)
23577See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023578 else
23579 ac_cv_sizeof_off_t=0
23580 fi
23581fi
cristy8b350f62009-11-15 23:12:43 +000023582
cristy3ed852e2009-09-05 21:47:34 +000023583fi
cristy8b350f62009-11-15 23:12:43 +000023584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023585$as_echo "$ac_cv_sizeof_off_t" >&6; }
23586
23587
23588
23589cat >>confdefs.h <<_ACEOF
23590#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23591_ACEOF
23592
23593
23594
23595# Obtain size of size_t and define as SIZEOF_SIZE_T
23596# The cast to long int works around a bug in the HP C Compiler
23597# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23598# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23599# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023601$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023602if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023603 $as_echo_n "(cached) " >&6
23604else
cristy8b350f62009-11-15 23:12:43 +000023605 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 +000023606
cristy3ed852e2009-09-05 21:47:34 +000023607else
cristy8b350f62009-11-15 23:12:43 +000023608 if test "$ac_cv_type_size_t" = yes; then
23609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023611as_fn_error 77 "cannot compute sizeof (size_t)
23612See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023613 else
23614 ac_cv_sizeof_size_t=0
23615 fi
23616fi
cristy8b350f62009-11-15 23:12:43 +000023617
cristy3ed852e2009-09-05 21:47:34 +000023618fi
cristy8b350f62009-11-15 23:12:43 +000023619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023620$as_echo "$ac_cv_sizeof_size_t" >&6; }
23621
23622
23623
23624cat >>confdefs.h <<_ACEOF
23625#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23626_ACEOF
23627
23628
23629
cristy330e9352010-06-01 18:42:49 +000023630# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23631# The cast to long int works around a bug in the HP C Compiler
23632# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23633# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23634# This bug is HP SR number 8606223364.
23635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23636$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023637if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023638 $as_echo_n "(cached) " >&6
23639else
23640 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23641
23642else
23643 if test "$ac_cv_type_ssize_t" = yes; then
23644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023646as_fn_error 77 "cannot compute sizeof (ssize_t)
23647See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023648 else
23649 ac_cv_sizeof_ssize_t=0
23650 fi
23651fi
23652
23653fi
23654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23655$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23656
23657
23658
23659cat >>confdefs.h <<_ACEOF
23660#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23661_ACEOF
23662
23663
23664
cristy3ed852e2009-09-05 21:47:34 +000023665# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23666# The cast to long int works around a bug in the HP C Compiler
23667# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23668# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23669# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023671$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023672if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023673 $as_echo_n "(cached) " >&6
23674else
cristy8b350f62009-11-15 23:12:43 +000023675 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 +000023676
cristy3ed852e2009-09-05 21:47:34 +000023677else
cristy8b350f62009-11-15 23:12:43 +000023678 if test "$ac_cv_type_unsigned_intp" = yes; then
23679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023681as_fn_error 77 "cannot compute sizeof (unsigned int*)
23682See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023683 else
23684 ac_cv_sizeof_unsigned_intp=0
23685 fi
23686fi
cristy8b350f62009-11-15 23:12:43 +000023687
cristy3ed852e2009-09-05 21:47:34 +000023688fi
cristy8b350f62009-11-15 23:12:43 +000023689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023690$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23691
23692
23693
23694cat >>confdefs.h <<_ACEOF
23695#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23696_ACEOF
23697
23698
23699
23700#
23701# Compute sized types for current CPU and compiler options.
23702#
23703
cristy8b350f62009-11-15 23:12:43 +000023704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023705$as_echo_n "checking for signed 8-bit type... " >&6; }
23706INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023707{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23708$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023709
23710
cristy8b350f62009-11-15 23:12:43 +000023711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023712$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23713UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023714{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23715$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023716
23717
cristy8b350f62009-11-15 23:12:43 +000023718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023719$as_echo_n "checking for signed 16-bit type... " >&6; }
23720INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023721{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23722$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023723
23724
cristy8b350f62009-11-15 23:12:43 +000023725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023726$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23727UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023728{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23729$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023730
23731
cristy8b350f62009-11-15 23:12:43 +000023732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023733$as_echo_n "checking for signed 32-bit type... " >&6; }
23734INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023735INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023736if test $ac_cv_sizeof_signed_int -eq 4; then
23737 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023738 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023739elif test $ac_cv_sizeof_signed_long -eq 4; then
23740 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023741 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023742fi
cristy09b53e12011-10-14 12:47:22 +000023743{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23744$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023745
23746
cristy6d5e20f2011-04-25 13:48:54 +000023747
cristy8b350f62009-11-15 23:12:43 +000023748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023749$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23750UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023751UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023752if test $ac_cv_sizeof_unsigned_int -eq 4; then
23753 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023754 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023755elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23756 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023757 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023758fi
cristy09b53e12011-10-14 12:47:22 +000023759{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23760$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023761
23762
cristy6d5e20f2011-04-25 13:48:54 +000023763
cristy8b350f62009-11-15 23:12:43 +000023764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023765$as_echo_n "checking for signed 64-bit type... " >&6; }
23766INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023767INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023768if test $ac_cv_sizeof_signed_long -eq 8; then
23769 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023770 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023771elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23772 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023773 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023774fi
cristy6d5e20f2011-04-25 13:48:54 +000023775case "${build_os}" in
23776 mingw* )
23777 INT64_F='"I64"'
23778 ;;
23779esac
cristy09b53e12011-10-14 12:47:22 +000023780{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23781$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023782
23783
cristy6d5e20f2011-04-25 13:48:54 +000023784
cristy8b350f62009-11-15 23:12:43 +000023785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023786$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23787UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023788UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023789if test $ac_cv_sizeof_unsigned_long -eq 8; then
23790 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023791 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023792elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23793 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023794 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023795fi
cristy6d5e20f2011-04-25 13:48:54 +000023796case "${build_os}" in
23797 mingw* )
23798 UINT64_F='"I64"'
23799 ;;
23800esac
cristy09b53e12011-10-14 12:47:22 +000023801{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23802$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023803
23804
cristy6d5e20f2011-04-25 13:48:54 +000023805
cristy8b350f62009-11-15 23:12:43 +000023806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023807$as_echo_n "checking for unsigned maximum type... " >&6; }
23808UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023809UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023810if test "$UINT64_T" != 'none'; then
23811 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023812 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023813elif test "$UINT32_T" != 'none'; then
23814 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023815 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023816fi
cristy09b53e12011-10-14 12:47:22 +000023817{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23818$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023819
23820
cristy6d5e20f2011-04-25 13:48:54 +000023821
cristy8b350f62009-11-15 23:12:43 +000023822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023823$as_echo_n "checking for pointer difference type... " >&6; }
23824UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023825UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023826if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23827 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023828 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023829elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23830 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023831 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023832fi
cristy09b53e12011-10-14 12:47:22 +000023833{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23834$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023835
23836
cristy6d5e20f2011-04-25 13:48:54 +000023837
cristy8b350f62009-11-15 23:12:43 +000023838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023839$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023841/* end confdefs.h. */
23842
23843int
23844main ()
23845{
23846{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23847 ;
23848 return 0;
23849}
23850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023851if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023852 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23853$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023854else
cristy09b53e12011-10-14 12:47:22 +000023855 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23856$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023858$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023860/* end confdefs.h. */
23861
23862int
23863main ()
23864{
23865{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23866 ;
23867 return 0;
23868}
23869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023870if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023871 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23872$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023873
cristy8b350f62009-11-15 23:12:43 +000023874$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023875
23876else
cristy09b53e12011-10-14 12:47:22 +000023877 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23878$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023879
cristy8b350f62009-11-15 23:12:43 +000023880$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023881
23882fi
cristy3ed852e2009-09-05 21:47:34 +000023883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884fi
cristy3ed852e2009-09-05 21:47:34 +000023885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886
23887########
23888#
23889# Check for functions
23890#
23891########
cristy73bd4a52010-10-05 11:24:23 +000023892for ac_header in stdlib.h unistd.h
23893do :
23894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23895ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023896if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023897 cat >>confdefs.h <<_ACEOF
23898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23899_ACEOF
23900
23901fi
23902
23903done
23904
23905for ac_func in getpagesize
23906do :
23907 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023908if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023909 cat >>confdefs.h <<_ACEOF
23910#define HAVE_GETPAGESIZE 1
23911_ACEOF
23912
23913fi
23914done
23915
23916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23917$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023918if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023919 $as_echo_n "(cached) " >&6
23920else
23921 if test "$cross_compiling" = yes; then :
23922 magick_cv_func_mmap_fileio=no
23923else
23924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23925/* end confdefs.h. */
23926$ac_includes_default
23927/* malloc might have been renamed as rpl_malloc. */
23928#undef malloc
23929
23930/*
23931 This test is derived from GNU Autoconf's similar macro.
23932 The purpose of this test is to verify that files may be memory
23933 mapped, and that memory mapping and file I/O are coherent.
23934
23935 The test creates a test file, memory maps the file, updates
23936 the file using the memory map, and then reads the file using
23937 file I/O to verify that the file contains the updates.
23938*/
23939
23940#include <fcntl.h>
23941#include <sys/mman.h>
23942
23943#if !STDC_HEADERS && !HAVE_STDLIB_H
23944char *malloc ();
23945#endif
23946
23947/* This mess was copied from the GNU getpagesize.h. */
23948#if !HAVE_GETPAGESIZE
23949/* Assume that all systems that can run configure have sys/param.h. */
23950# if !HAVE_SYS_PARAM_H
23951# define HAVE_SYS_PARAM_H 1
23952# endif
23953
23954# ifdef _SC_PAGESIZE
23955# define getpagesize() sysconf(_SC_PAGESIZE)
23956# else /* no _SC_PAGESIZE */
23957# if HAVE_SYS_PARAM_H
23958# include <sys/param.h>
23959# ifdef EXEC_PAGESIZE
23960# define getpagesize() EXEC_PAGESIZE
23961# else /* no EXEC_PAGESIZE */
23962# ifdef NBPG
23963# define getpagesize() NBPG * CLSIZE
23964# ifndef CLSIZE
23965# define CLSIZE 1
23966# endif /* no CLSIZE */
23967# else /* no NBPG */
23968# ifdef NBPC
23969# define getpagesize() NBPC
23970# else /* no NBPC */
23971# ifdef PAGESIZE
23972# define getpagesize() PAGESIZE
23973# endif /* PAGESIZE */
23974# endif /* no NBPC */
23975# endif /* no NBPG */
23976# endif /* no EXEC_PAGESIZE */
23977# else /* no HAVE_SYS_PARAM_H */
23978# define getpagesize() 8192 /* punt totally */
23979# endif /* no HAVE_SYS_PARAM_H */
23980# endif /* no _SC_PAGESIZE */
23981
23982#endif /* no HAVE_GETPAGESIZE */
23983
23984int
23985main ()
23986{
23987 char *data, *data2, *data3;
23988 int i, pagesize;
23989 int fd;
23990
23991 pagesize = getpagesize ();
23992
23993 /* First, make a file with some known garbage in it. */
23994 data = (char *) malloc (pagesize);
23995 if (!data)
23996 exit (1);
23997 for (i = 0; i < pagesize; ++i)
23998 *(data + i) = rand ();
23999 umask (0);
24000 fd = creat ("conftest.mmap", 0600);
24001 if (fd < 0)
24002 exit (1);
24003 if (write (fd, data, pagesize) != pagesize)
24004 exit (1);
24005 close (fd);
24006
24007 /* Mmap the file as read/write/shared and verify that we see the
24008 same garbage. */
24009 fd = open ("conftest.mmap", O_RDWR);
24010 if (fd < 0)
24011 exit (1);
24012 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24013 if (data2 == 0)
24014 exit (1);
24015 for (i = 0; i < pagesize; ++i)
24016 if (*(data + i) != *(data2 + i))
24017 exit (1);
24018
24019 /* Finally, make sure that changes to the mapped area
24020 percolate back to the file as seen by read(). */
24021 for (i = 0; i < pagesize; ++i)
24022 *(data2 + i) = *(data2 + i) + 1;
24023 data3 = (char *) malloc (pagesize);
24024 if (!data3)
24025 exit (1);
24026 if (read (fd, data3, pagesize) != pagesize)
24027 exit (1);
24028 for (i = 0; i < pagesize; ++i)
24029 if (*(data2 + i) != *(data3 + i))
24030 exit (1);
24031 close (fd);
24032 exit (0);
24033}
24034_ACEOF
24035if ac_fn_c_try_run "$LINENO"; then :
24036 magick_cv_func_mmap_fileio=yes
24037else
24038 magick_cv_func_mmap_fileio=no
24039fi
24040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24041 conftest.$ac_objext conftest.beam conftest.$ac_ext
24042fi
24043
24044fi
24045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24046$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24047if test $magick_cv_func_mmap_fileio = yes; then
24048
24049$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24050
24051fi
24052rm -f conftest.mmap
24053
cristy8b350f62009-11-15 23:12:43 +000024054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024055$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024056if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024057 $as_echo_n "(cached) " >&6
24058else
cristy8b350f62009-11-15 23:12:43 +000024059 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 ac_cv_func_closedir_void=yes
24061else
cristy8b350f62009-11-15 23:12:43 +000024062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024063/* end confdefs.h. */
24064$ac_includes_default
24065#include <$ac_header_dirent>
24066#ifndef __cplusplus
24067int closedir ();
24068#endif
24069
24070int
24071main ()
24072{
24073return closedir (opendir (".")) != 0;
24074 ;
24075 return 0;
24076}
24077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024078if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024079 ac_cv_func_closedir_void=no
24080else
cristy8b350f62009-11-15 23:12:43 +000024081 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024082fi
cristy8b350f62009-11-15 23:12:43 +000024083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24084 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024085fi
24086
cristy3ed852e2009-09-05 21:47:34 +000024087fi
cristy8b350f62009-11-15 23:12:43 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024089$as_echo "$ac_cv_func_closedir_void" >&6; }
24090if test $ac_cv_func_closedir_void = yes; then
24091
cristy8b350f62009-11-15 23:12:43 +000024092$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024093
24094fi
24095
cristycd4c5312009-11-22 01:19:08 +000024096
24097
24098
24099 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024100do :
24101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024102ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24103"
cristy98dddb52010-11-04 00:30:15 +000024104if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024105 cat >>confdefs.h <<_ACEOF
24106#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24107_ACEOF
24108
24109fi
24110
24111done
24112
cristycd4c5312009-11-22 01:19:08 +000024113
24114
24115
24116
24117
24118
24119
cristy3ed852e2009-09-05 21:47:34 +000024120for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024121do :
24122 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024123if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024124 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024125#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024126_ACEOF
24127
24128fi
24129done
24130
cristy8b350f62009-11-15 23:12:43 +000024131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024132$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024133if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024134 $as_echo_n "(cached) " >&6
24135else
cristy8b350f62009-11-15 23:12:43 +000024136 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024137 ac_cv_func_mmap_fixed_mapped=no
24138else
cristy8b350f62009-11-15 23:12:43 +000024139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024140/* end confdefs.h. */
24141$ac_includes_default
24142/* malloc might have been renamed as rpl_malloc. */
24143#undef malloc
24144
24145/* Thanks to Mike Haertel and Jim Avera for this test.
24146 Here is a matrix of mmap possibilities:
24147 mmap private not fixed
24148 mmap private fixed at somewhere currently unmapped
24149 mmap private fixed at somewhere already mapped
24150 mmap shared not fixed
24151 mmap shared fixed at somewhere currently unmapped
24152 mmap shared fixed at somewhere already mapped
24153 For private mappings, we should verify that changes cannot be read()
24154 back from the file, nor mmap's back from the file at a different
24155 address. (There have been systems where private was not correctly
24156 implemented like the infamous i386 svr4.0, and systems where the
24157 VM page cache was not coherent with the file system buffer cache
24158 like early versions of FreeBSD and possibly contemporary NetBSD.)
24159 For shared mappings, we should conversely verify that changes get
24160 propagated back to all the places they're supposed to be.
24161
24162 Grep wants private fixed already mapped.
24163 The main things grep needs to know about mmap are:
24164 * does it exist and is it safe to write into the mmap'd area
24165 * how to use it (BSD variants) */
24166
24167#include <fcntl.h>
24168#include <sys/mman.h>
24169
24170#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24171char *malloc ();
24172#endif
24173
24174/* This mess was copied from the GNU getpagesize.h. */
24175#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024176# ifdef _SC_PAGESIZE
24177# define getpagesize() sysconf(_SC_PAGESIZE)
24178# else /* no _SC_PAGESIZE */
24179# ifdef HAVE_SYS_PARAM_H
24180# include <sys/param.h>
24181# ifdef EXEC_PAGESIZE
24182# define getpagesize() EXEC_PAGESIZE
24183# else /* no EXEC_PAGESIZE */
24184# ifdef NBPG
24185# define getpagesize() NBPG * CLSIZE
24186# ifndef CLSIZE
24187# define CLSIZE 1
24188# endif /* no CLSIZE */
24189# else /* no NBPG */
24190# ifdef NBPC
24191# define getpagesize() NBPC
24192# else /* no NBPC */
24193# ifdef PAGESIZE
24194# define getpagesize() PAGESIZE
24195# endif /* PAGESIZE */
24196# endif /* no NBPC */
24197# endif /* no NBPG */
24198# endif /* no EXEC_PAGESIZE */
24199# else /* no HAVE_SYS_PARAM_H */
24200# define getpagesize() 8192 /* punt totally */
24201# endif /* no HAVE_SYS_PARAM_H */
24202# endif /* no _SC_PAGESIZE */
24203
24204#endif /* no HAVE_GETPAGESIZE */
24205
24206int
24207main ()
24208{
24209 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024210 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024211 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024212 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024213
24214 pagesize = getpagesize ();
24215
24216 /* First, make a file with some known garbage in it. */
24217 data = (char *) malloc (pagesize);
24218 if (!data)
24219 return 1;
24220 for (i = 0; i < pagesize; ++i)
24221 *(data + i) = rand ();
24222 umask (0);
24223 fd = creat ("conftest.mmap", 0600);
24224 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024225 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024226 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024227 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024228 close (fd);
24229
cristycd4c5312009-11-22 01:19:08 +000024230 /* Next, check that the tail of a page is zero-filled. File must have
24231 non-zero length, otherwise we risk SIGBUS for entire page. */
24232 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24233 if (fd2 < 0)
24234 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024235 cdata2 = "";
24236 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024237 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024238 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024239 if (data2 == MAP_FAILED)
24240 return 6;
24241 for (i = 0; i < pagesize; ++i)
24242 if (*(data2 + i))
24243 return 7;
24244 close (fd2);
24245 if (munmap (data2, pagesize))
24246 return 8;
24247
cristy3ed852e2009-09-05 21:47:34 +000024248 /* Next, try to mmap the file at a fixed address which already has
24249 something else allocated at it. If we can, also make sure that
24250 we see the same garbage. */
24251 fd = open ("conftest.mmap", O_RDWR);
24252 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024253 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024254 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24255 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024256 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024257 for (i = 0; i < pagesize; ++i)
24258 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024259 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024260
24261 /* Finally, make sure that changes to the mapped area do not
24262 percolate back to the file as seen by read(). (This is a bug on
24263 some variants of i386 svr4.0.) */
24264 for (i = 0; i < pagesize; ++i)
24265 *(data2 + i) = *(data2 + i) + 1;
24266 data3 = (char *) malloc (pagesize);
24267 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024268 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024269 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024270 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024271 for (i = 0; i < pagesize; ++i)
24272 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024273 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024274 close (fd);
24275 return 0;
24276}
24277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024278if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 ac_cv_func_mmap_fixed_mapped=yes
24280else
cristy8b350f62009-11-15 23:12:43 +000024281 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024282fi
cristy8b350f62009-11-15 23:12:43 +000024283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24284 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024285fi
24286
cristy3ed852e2009-09-05 21:47:34 +000024287fi
cristy8b350f62009-11-15 23:12:43 +000024288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024289$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24290if test $ac_cv_func_mmap_fixed_mapped = yes; then
24291
cristy8b350f62009-11-15 23:12:43 +000024292$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024293
24294fi
cristycd4c5312009-11-22 01:19:08 +000024295rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024296
cristy3ed852e2009-09-05 21:47:34 +000024297for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024298do :
24299 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024300if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024301 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024302#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024303_ACEOF
24304
24305fi
24306
24307done
24308
cristy3ed852e2009-09-05 21:47:34 +000024309for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024310do :
24311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24312ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024313if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024314 cat >>confdefs.h <<_ACEOF
24315#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24316_ACEOF
24317
24318fi
24319done
24320
24321if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024323$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024324if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024325 $as_echo_n "(cached) " >&6
24326else
cristy8b350f62009-11-15 23:12:43 +000024327 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024328 ac_cv_func_fork_works=cross
24329else
cristy8b350f62009-11-15 23:12:43 +000024330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024331/* end confdefs.h. */
24332$ac_includes_default
24333int
24334main ()
24335{
24336
24337 /* By Ruediger Kuhlmann. */
24338 return fork () < 0;
24339
24340 ;
24341 return 0;
24342}
24343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024344if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024345 ac_cv_func_fork_works=yes
24346else
cristy8b350f62009-11-15 23:12:43 +000024347 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024348fi
cristy8b350f62009-11-15 23:12:43 +000024349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24350 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024351fi
24352
cristy3ed852e2009-09-05 21:47:34 +000024353fi
cristy8b350f62009-11-15 23:12:43 +000024354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024355$as_echo "$ac_cv_func_fork_works" >&6; }
24356
24357else
24358 ac_cv_func_fork_works=$ac_cv_func_fork
24359fi
24360if test "x$ac_cv_func_fork_works" = xcross; then
24361 case $host in
24362 *-*-amigaos* | *-*-msdosdjgpp*)
24363 # Override, as these systems have only a dummy fork() stub
24364 ac_cv_func_fork_works=no
24365 ;;
24366 *)
24367 ac_cv_func_fork_works=yes
24368 ;;
24369 esac
cristy8b350f62009-11-15 23:12:43 +000024370 { $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 +000024371$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24372fi
24373ac_cv_func_vfork_works=$ac_cv_func_vfork
24374if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024376$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024377if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024378 $as_echo_n "(cached) " >&6
24379else
cristy8b350f62009-11-15 23:12:43 +000024380 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024381 ac_cv_func_vfork_works=cross
24382else
cristy8b350f62009-11-15 23:12:43 +000024383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024384/* end confdefs.h. */
24385/* Thanks to Paul Eggert for this test. */
24386$ac_includes_default
24387#include <sys/wait.h>
24388#ifdef HAVE_VFORK_H
24389# include <vfork.h>
24390#endif
24391/* On some sparc systems, changes by the child to local and incoming
24392 argument registers are propagated back to the parent. The compiler
24393 is told about this with #include <vfork.h>, but some compilers
24394 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24395 static variable whose address is put into a register that is
24396 clobbered by the vfork. */
24397static void
24398#ifdef __cplusplus
24399sparc_address_test (int arg)
24400# else
24401sparc_address_test (arg) int arg;
24402#endif
24403{
24404 static pid_t child;
24405 if (!child) {
24406 child = vfork ();
24407 if (child < 0) {
24408 perror ("vfork");
24409 _exit(2);
24410 }
24411 if (!child) {
24412 arg = getpid();
24413 write(-1, "", 0);
24414 _exit (arg);
24415 }
24416 }
24417}
24418
24419int
24420main ()
24421{
24422 pid_t parent = getpid ();
24423 pid_t child;
24424
24425 sparc_address_test (0);
24426
24427 child = vfork ();
24428
24429 if (child == 0) {
24430 /* Here is another test for sparc vfork register problems. This
24431 test uses lots of local variables, at least as many local
24432 variables as main has allocated so far including compiler
24433 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24434 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24435 reuse the register of parent for one of the local variables,
24436 since it will think that parent can't possibly be used any more
24437 in this routine. Assigning to the local variable will thus
24438 munge parent in the parent process. */
24439 pid_t
24440 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24441 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24442 /* Convince the compiler that p..p7 are live; otherwise, it might
24443 use the same hardware register for all 8 local variables. */
24444 if (p != p1 || p != p2 || p != p3 || p != p4
24445 || p != p5 || p != p6 || p != p7)
24446 _exit(1);
24447
24448 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24449 from child file descriptors. If the child closes a descriptor
24450 before it execs or exits, this munges the parent's descriptor
24451 as well. Test for this by closing stdout in the child. */
24452 _exit(close(fileno(stdout)) != 0);
24453 } else {
24454 int status;
24455 struct stat st;
24456
24457 while (wait(&status) != child)
24458 ;
24459 return (
24460 /* Was there some problem with vforking? */
24461 child < 0
24462
24463 /* Did the child fail? (This shouldn't happen.) */
24464 || status
24465
24466 /* Did the vfork/compiler bug occur? */
24467 || parent != getpid()
24468
24469 /* Did the file descriptor bug occur? */
24470 || fstat(fileno(stdout), &st) != 0
24471 );
24472 }
24473}
24474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024475if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024476 ac_cv_func_vfork_works=yes
24477else
cristy8b350f62009-11-15 23:12:43 +000024478 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024479fi
cristy8b350f62009-11-15 23:12:43 +000024480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24481 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024482fi
24483
cristy3ed852e2009-09-05 21:47:34 +000024484fi
cristy8b350f62009-11-15 23:12:43 +000024485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024486$as_echo "$ac_cv_func_vfork_works" >&6; }
24487
24488fi;
24489if test "x$ac_cv_func_fork_works" = xcross; then
24490 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024491 { $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 +000024492$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24493fi
24494
24495if test "x$ac_cv_func_vfork_works" = xyes; then
24496
cristy8b350f62009-11-15 23:12:43 +000024497$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024498
24499else
24500
cristy8b350f62009-11-15 23:12:43 +000024501$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024502
24503fi
24504if test "x$ac_cv_func_fork_works" = xyes; then
24505
cristy8b350f62009-11-15 23:12:43 +000024506$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024507
24508fi
24509
cristy8b350f62009-11-15 23:12:43 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024512if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 $as_echo_n "(cached) " >&6
24514else
cristy8b350f62009-11-15 23:12:43 +000024515 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 ac_cv_func_memcmp_working=no
24517else
cristy8b350f62009-11-15 23:12:43 +000024518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024519/* end confdefs.h. */
24520$ac_includes_default
24521int
24522main ()
24523{
24524
24525 /* Some versions of memcmp are not 8-bit clean. */
24526 char c0 = '\100', c1 = '\200', c2 = '\201';
24527 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24528 return 1;
24529
24530 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24531 or more and with at least one buffer not starting on a 4-byte boundary.
24532 William Lewis provided this test program. */
24533 {
24534 char foo[21];
24535 char bar[21];
24536 int i;
24537 for (i = 0; i < 4; i++)
24538 {
24539 char *a = foo + i;
24540 char *b = bar + i;
24541 strcpy (a, "--------01111111");
24542 strcpy (b, "--------10000000");
24543 if (memcmp (a, b, 16) >= 0)
24544 return 1;
24545 }
24546 return 0;
24547 }
24548
24549 ;
24550 return 0;
24551}
24552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024553if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024554 ac_cv_func_memcmp_working=yes
24555else
cristy8b350f62009-11-15 23:12:43 +000024556 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024557fi
cristy8b350f62009-11-15 23:12:43 +000024558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24559 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024560fi
24561
cristy3ed852e2009-09-05 21:47:34 +000024562fi
cristy8b350f62009-11-15 23:12:43 +000024563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo "$ac_cv_func_memcmp_working" >&6; }
24565test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24566 *" memcmp.$ac_objext "* ) ;;
24567 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24568 ;;
24569esac
24570
24571
cristy3ed852e2009-09-05 21:47:34 +000024572for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024573do :
24574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24575ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024577 cat >>confdefs.h <<_ACEOF
24578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24579_ACEOF
24580
24581fi
24582
24583done
24584
cristy8b350f62009-11-15 23:12:43 +000024585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024586$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024587if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024588 $as_echo_n "(cached) " >&6
24589else
24590 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24591 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24592 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024594/* end confdefs.h. */
24595$ac_includes_default
24596#ifdef HAVE_SYS_SELECT_H
24597# include <sys/select.h>
24598#endif
24599#ifdef HAVE_SYS_SOCKET_H
24600# include <sys/socket.h>
24601#endif
24602
24603int
24604main ()
24605{
24606extern int select ($ac_arg1,
24607 $ac_arg234, $ac_arg234, $ac_arg234,
24608 $ac_arg5);
24609 ;
24610 return 0;
24611}
24612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024613if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024614 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024615fi
cristy3ed852e2009-09-05 21:47:34 +000024616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24617 done
24618 done
24619done
24620# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024621: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024622
24623fi
cristy8b350f62009-11-15 23:12:43 +000024624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024625$as_echo "$ac_cv_func_select_args" >&6; }
24626ac_save_IFS=$IFS; IFS=','
24627set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24628IFS=$ac_save_IFS
24629shift
24630
24631cat >>confdefs.h <<_ACEOF
24632#define SELECT_TYPE_ARG1 $1
24633_ACEOF
24634
24635
24636cat >>confdefs.h <<_ACEOF
24637#define SELECT_TYPE_ARG234 ($2)
24638_ACEOF
24639
24640
24641cat >>confdefs.h <<_ACEOF
24642#define SELECT_TYPE_ARG5 ($3)
24643_ACEOF
24644
24645rm -f conftest*
24646
cristyda16f162011-02-19 23:52:17 +000024647if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024648 $as_echo_n "(cached) " >&6
24649else
24650 ac_cv_func_setvbuf_reversed=no
24651fi
24652
24653
cristy8b350f62009-11-15 23:12:43 +000024654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024655$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024656if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 $as_echo_n "(cached) " >&6
24658else
cristy8b350f62009-11-15 23:12:43 +000024659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024660/* end confdefs.h. */
24661#include <sys/types.h>
24662#include <signal.h>
24663
24664int
24665main ()
24666{
24667return *(signal (0, 0)) (0) == 1;
24668 ;
24669 return 0;
24670}
24671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024672if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024673 ac_cv_type_signal=int
24674else
cristy8b350f62009-11-15 23:12:43 +000024675 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024676fi
cristy3ed852e2009-09-05 21:47:34 +000024677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678fi
cristy8b350f62009-11-15 23:12:43 +000024679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024680$as_echo "$ac_cv_type_signal" >&6; }
24681
24682cat >>confdefs.h <<_ACEOF
24683#define RETSIGTYPE $ac_cv_type_signal
24684_ACEOF
24685
24686
cristy8b350f62009-11-15 23:12:43 +000024687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024688$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024689if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024690 $as_echo_n "(cached) " >&6
24691else
cristy8b350f62009-11-15 23:12:43 +000024692 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024693 ac_cv_func_strtod=no
24694else
cristy8b350f62009-11-15 23:12:43 +000024695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024696/* end confdefs.h. */
24697
24698$ac_includes_default
24699#ifndef strtod
24700double strtod ();
24701#endif
24702int
24703main()
24704{
24705 {
24706 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24707 char *string = " +69";
24708 char *term;
24709 double value;
24710 value = strtod (string, &term);
24711 if (value != 69 || term != (string + 4))
24712 return 1;
24713 }
24714
24715 {
24716 /* Under Solaris 2.4, strtod returns the wrong value for the
24717 terminating character under some conditions. */
24718 char *string = "NaN";
24719 char *term;
24720 strtod (string, &term);
24721 if (term != string && *(term - 1) == 0)
24722 return 1;
24723 }
24724 return 0;
24725}
24726
24727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024728if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024729 ac_cv_func_strtod=yes
24730else
cristy8b350f62009-11-15 23:12:43 +000024731 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024732fi
cristy8b350f62009-11-15 23:12:43 +000024733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24734 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024735fi
24736
cristy3ed852e2009-09-05 21:47:34 +000024737fi
cristy8b350f62009-11-15 23:12:43 +000024738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024739$as_echo "$ac_cv_func_strtod" >&6; }
24740if test $ac_cv_func_strtod = no; then
24741 case " $LIBOBJS " in
24742 *" strtod.$ac_objext "* ) ;;
24743 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24744 ;;
24745esac
24746
cristy8b350f62009-11-15 23:12:43 +000024747ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024748if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024749
cristy3ed852e2009-09-05 21:47:34 +000024750fi
24751
cristy3ed852e2009-09-05 21:47:34 +000024752if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024754$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024755if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024756 $as_echo_n "(cached) " >&6
24757else
24758 ac_check_lib_save_LIBS=$LIBS
24759LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024761/* end confdefs.h. */
24762
24763/* Override any GCC internal prototype to avoid an error.
24764 Use char because int might match the return type of a GCC
24765 builtin and then its argument prototype would still apply. */
24766#ifdef __cplusplus
24767extern "C"
24768#endif
24769char pow ();
24770int
24771main ()
24772{
24773return pow ();
24774 ;
24775 return 0;
24776}
24777_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024778if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024779 ac_cv_lib_m_pow=yes
24780else
cristy8b350f62009-11-15 23:12:43 +000024781 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024782fi
cristy8b350f62009-11-15 23:12:43 +000024783rm -f core conftest.err conftest.$ac_objext \
24784 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024785LIBS=$ac_check_lib_save_LIBS
24786fi
cristy8b350f62009-11-15 23:12:43 +000024787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024788$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024789if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024790 POW_LIB=-lm
24791else
cristy8b350f62009-11-15 23:12:43 +000024792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024793$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24794fi
24795
24796fi
24797
24798fi
24799
cristy7d4a1d62011-10-13 15:54:12 +000024800ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24801if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24802 ac_have_decl=1
24803else
24804 ac_have_decl=0
24805fi
24806
24807cat >>confdefs.h <<_ACEOF
24808#define HAVE_DECL_STRERROR_R $ac_have_decl
24809_ACEOF
24810
24811for ac_func in strerror_r
24812do :
24813 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24814if test "x$ac_cv_func_strerror_r" = xyes; then :
24815 cat >>confdefs.h <<_ACEOF
24816#define HAVE_STRERROR_R 1
24817_ACEOF
24818
24819fi
24820done
24821
24822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24823$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24824if ${ac_cv_func_strerror_r_char_p+:} false; then :
24825 $as_echo_n "(cached) " >&6
24826else
24827
24828 ac_cv_func_strerror_r_char_p=no
24829 if test $ac_cv_have_decl_strerror_r = yes; then
24830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24831/* end confdefs.h. */
24832$ac_includes_default
24833int
24834main ()
24835{
24836
24837 char buf[100];
24838 char x = *strerror_r (0, buf, sizeof buf);
24839 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024840 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024841
24842 ;
24843 return 0;
24844}
24845_ACEOF
24846if ac_fn_c_try_compile "$LINENO"; then :
24847 ac_cv_func_strerror_r_char_p=yes
24848fi
24849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24850 else
24851 # strerror_r is not declared. Choose between
24852 # systems that have relatively inaccessible declarations for the
24853 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24854 # former has a strerror_r that returns char*, while the latter
24855 # has a strerror_r that returns `int'.
24856 # This test should segfault on the DEC system.
24857 if test "$cross_compiling" = yes; then :
24858 :
24859else
24860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24861/* end confdefs.h. */
24862$ac_includes_default
24863 extern char *strerror_r ();
24864int
24865main ()
24866{
24867char buf[100];
24868 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024869 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024870 ;
24871 return 0;
24872}
24873_ACEOF
24874if ac_fn_c_try_run "$LINENO"; then :
24875 ac_cv_func_strerror_r_char_p=yes
24876fi
24877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24878 conftest.$ac_objext conftest.beam conftest.$ac_ext
24879fi
24880
24881 fi
24882
24883fi
24884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24885$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24886if test $ac_cv_func_strerror_r_char_p = yes; then
24887
24888$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24889
24890fi
24891
cristy3ed852e2009-09-05 21:47:34 +000024892for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024893do :
24894 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024895if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024896 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024897#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024898_ACEOF
24899
cristy8b350f62009-11-15 23:12:43 +000024900ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024901if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024902
cristy8b350f62009-11-15 23:12:43 +000024903$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024904
24905fi
24906
24907fi
24908done
24909
24910
24911
cristy161b9262010-03-20 19:34:32 +000024912#
24913# Find math library
24914#
24915MATH_LIBS=''
24916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24917$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024918if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024919 $as_echo_n "(cached) " >&6
24920else
24921 ac_check_lib_save_LIBS=$LIBS
24922LIBS="-lm $LIBS"
24923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924/* end confdefs.h. */
24925
24926/* Override any GCC internal prototype to avoid an error.
24927 Use char because int might match the return type of a GCC
24928 builtin and then its argument prototype would still apply. */
24929#ifdef __cplusplus
24930extern "C"
24931#endif
24932char sqrt ();
24933int
24934main ()
24935{
24936return sqrt ();
24937 ;
24938 return 0;
24939}
24940_ACEOF
24941if ac_fn_c_try_link "$LINENO"; then :
24942 ac_cv_lib_m_sqrt=yes
24943else
24944 ac_cv_lib_m_sqrt=no
24945fi
24946rm -f core conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24948LIBS=$ac_check_lib_save_LIBS
24949fi
24950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24951$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024952if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024953 MATH_LIBS="-lm"
24954fi
24955
24956LIBS="$MATH_LIBS $LIBS"
24957
24958
cristy7d4a1d62011-10-13 15:54:12 +000024959for 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 +000024960do :
24961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024964 cat >>confdefs.h <<_ACEOF
24965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24966_ACEOF
24967
24968fi
24969done
24970
24971
cristye43a45e2009-09-28 14:49:00 +000024972#
24973# Check for clock_gettime().
24974#
cristy8b350f62009-11-15 23:12:43 +000024975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024976$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024977if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024978 $as_echo_n "(cached) " >&6
24979else
24980 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024982/* end confdefs.h. */
24983
24984/* Override any GCC internal prototype to avoid an error.
24985 Use char because int might match the return type of a GCC
24986 builtin and then its argument prototype would still apply. */
24987#ifdef __cplusplus
24988extern "C"
24989#endif
24990char clock_gettime ();
24991int
24992main ()
24993{
24994return clock_gettime ();
24995 ;
24996 return 0;
24997}
24998_ACEOF
24999for ac_lib in '' rt; do
25000 if test -z "$ac_lib"; then
25001 ac_res="none required"
25002 else
25003 ac_res=-l$ac_lib
25004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25005 fi
cristy8b350f62009-11-15 23:12:43 +000025006 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025007 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025008fi
cristy8b350f62009-11-15 23:12:43 +000025009rm -f core conftest.err conftest.$ac_objext \
25010 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025011 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025012 break
25013fi
25014done
cristyda16f162011-02-19 23:52:17 +000025015if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025016
cristye43a45e2009-09-28 14:49:00 +000025017else
25018 ac_cv_search_clock_gettime=no
25019fi
25020rm conftest.$ac_ext
25021LIBS=$ac_func_search_save_LIBS
25022fi
cristy8b350f62009-11-15 23:12:43 +000025023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025024$as_echo "$ac_cv_search_clock_gettime" >&6; }
25025ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025026if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25028
25029
cristy8b350f62009-11-15 23:12:43 +000025030$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025031
cristy8b350f62009-11-15 23:12:43 +000025032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025033$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025035/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025036
25037 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025038int
25039main ()
25040{
25041clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025042 ;
25043 return 0;
25044}
25045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025046if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025047
cristy09b53e12011-10-14 12:47:22 +000025048 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25049$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025050
cristy8b350f62009-11-15 23:12:43 +000025051$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025052
25053
25054else
cristy09b53e12011-10-14 12:47:22 +000025055 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25056$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025057
25058fi
cristye43a45e2009-09-28 14:49:00 +000025059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060
25061else
25062
cristy8b350f62009-11-15 23:12:43 +000025063 for ac_func in gettimeofday ftime
25064do :
25065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025067if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025068 cat >>confdefs.h <<_ACEOF
25069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25070_ACEOF
25071 break
25072fi
25073done
25074
25075
25076
25077fi
25078
25079
cristy3ed852e2009-09-05 21:47:34 +000025080########
25081#
25082# Check for function prototypes
25083#
25084########
25085
cristy8b350f62009-11-15 23:12:43 +000025086ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025087#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025088"
cristyda16f162011-02-19 23:52:17 +000025089if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025090 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025091else
cristy8b350f62009-11-15 23:12:43 +000025092 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025093fi
25094
cristy3ed852e2009-09-05 21:47:34 +000025095cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025096#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025098ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025099#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025100"
cristyda16f162011-02-19 23:52:17 +000025101if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025102 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025103else
cristy8b350f62009-11-15 23:12:43 +000025104 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025105fi
25106
cristy3ed852e2009-09-05 21:47:34 +000025107cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025108#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025109_ACEOF
25110
25111
cristy8b350f62009-11-15 23:12:43 +000025112ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025113#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025114"
cristyda16f162011-02-19 23:52:17 +000025115if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025116 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025117else
cristy8b350f62009-11-15 23:12:43 +000025118 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025119fi
25120
cristy3ed852e2009-09-05 21:47:34 +000025121cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025122#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025123_ACEOF
25124
25125
cristy8b350f62009-11-15 23:12:43 +000025126ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025127#include <stdio.h>
25128#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025129"
cristyda16f162011-02-19 23:52:17 +000025130if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025131 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025132else
cristy8b350f62009-11-15 23:12:43 +000025133 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025134fi
25135
cristy3ed852e2009-09-05 21:47:34 +000025136cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025137#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025138_ACEOF
25139
25140
cristy3ed852e2009-09-05 21:47:34 +000025141########
25142#
25143# C++ Support Tests (For Magick++)
25144#
25145########
25146have_magick_plus_plus='no'
25147if test "$with_magick_plus_plus" = 'yes'; then
25148 OLIBS="$LIBS"
25149 LIBS=''
25150 ac_ext=cpp
25151ac_cpp='$CXXCPP $CPPFLAGS'
25152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25155
25156
25157 # Full set of headers used...
25158 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25159 # functional iomanip iosfwd iostream iterator list string strstream utility
25160 ac_ext=cpp
25161ac_cpp='$CXXCPP $CPPFLAGS'
25162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25165
25166 ac_ext=cpp
25167ac_cpp='$CXXCPP $CPPFLAGS'
25168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25171if test -z "$CXX"; then
25172 if test -n "$CCC"; then
25173 CXX=$CCC
25174 else
25175 if test -n "$ac_tool_prefix"; then
25176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25177 do
25178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025182if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025183 $as_echo_n "(cached) " >&6
25184else
25185 if test -n "$CXX"; then
25186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25187else
25188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25189for as_dir in $PATH
25190do
25191 IFS=$as_save_IFS
25192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25195 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025197 break 2
25198 fi
25199done
cristy8b350f62009-11-15 23:12:43 +000025200 done
cristy3ed852e2009-09-05 21:47:34 +000025201IFS=$as_save_IFS
25202
25203fi
25204fi
25205CXX=$ac_cv_prog_CXX
25206if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025208$as_echo "$CXX" >&6; }
25209else
cristy8b350f62009-11-15 23:12:43 +000025210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025211$as_echo "no" >&6; }
25212fi
25213
25214
25215 test -n "$CXX" && break
25216 done
25217fi
25218if test -z "$CXX"; then
25219 ac_ct_CXX=$CXX
25220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25221do
25222 # Extract the first word of "$ac_prog", so it can be a program name with args.
25223set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025226if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025227 $as_echo_n "(cached) " >&6
25228else
25229 if test -n "$ac_ct_CXX"; then
25230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25231else
25232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25233for as_dir in $PATH
25234do
25235 IFS=$as_save_IFS
25236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25239 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025241 break 2
25242 fi
25243done
cristy8b350f62009-11-15 23:12:43 +000025244 done
cristy3ed852e2009-09-05 21:47:34 +000025245IFS=$as_save_IFS
25246
25247fi
25248fi
25249ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25250if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025252$as_echo "$ac_ct_CXX" >&6; }
25253else
cristy8b350f62009-11-15 23:12:43 +000025254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025255$as_echo "no" >&6; }
25256fi
25257
25258
25259 test -n "$ac_ct_CXX" && break
25260done
25261
25262 if test "x$ac_ct_CXX" = x; then
25263 CXX="g++"
25264 else
25265 case $cross_compiling:$ac_tool_warned in
25266yes:)
cristy8b350f62009-11-15 23:12:43 +000025267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25269ac_tool_warned=yes ;;
25270esac
25271 CXX=$ac_ct_CXX
25272 fi
25273fi
25274
25275 fi
25276fi
25277# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025278$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025279set X $ac_compile
25280ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025281for ac_option in --version -v -V -qversion; do
25282 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025283case "(($ac_try" in
25284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285 *) ac_try_echo=$ac_try;;
25286esac
cristy8b350f62009-11-15 23:12:43 +000025287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25288$as_echo "$ac_try_echo"; } >&5
25289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025290 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025291 if test -s conftest.err; then
25292 sed '10a\
25293... rest of stderr output deleted ...
25294 10q' conftest.err >conftest.er1
25295 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025296 fi
cristycd4c5312009-11-22 01:19:08 +000025297 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25299 test $ac_status = 0; }
25300done
cristy3ed852e2009-09-05 21:47:34 +000025301
cristy8b350f62009-11-15 23:12:43 +000025302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025303$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025304if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025305 $as_echo_n "(cached) " >&6
25306else
cristy8b350f62009-11-15 23:12:43 +000025307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025308/* end confdefs.h. */
25309
25310int
25311main ()
25312{
25313#ifndef __GNUC__
25314 choke me
25315#endif
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_compiler_gnu=yes
25323else
cristy8b350f62009-11-15 23:12:43 +000025324 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025325fi
cristy3ed852e2009-09-05 21:47:34 +000025326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25328
25329fi
cristy8b350f62009-11-15 23:12:43 +000025330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025331$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25332if test $ac_compiler_gnu = yes; then
25333 GXX=yes
25334else
25335 GXX=
25336fi
25337ac_test_CXXFLAGS=${CXXFLAGS+set}
25338ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025340$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025341if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025342 $as_echo_n "(cached) " >&6
25343else
25344 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25345 ac_cxx_werror_flag=yes
25346 ac_cv_prog_cxx_g=no
25347 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025349/* end confdefs.h. */
25350
25351int
25352main ()
25353{
25354
25355 ;
25356 return 0;
25357}
25358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025359if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025360 ac_cv_prog_cxx_g=yes
25361else
cristy8b350f62009-11-15 23:12:43 +000025362 CXXFLAGS=""
25363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025364/* end confdefs.h. */
25365
25366int
25367main ()
25368{
25369
25370 ;
25371 return 0;
25372}
25373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025374if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025375
cristy8b350f62009-11-15 23:12:43 +000025376else
25377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025378 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025380/* end confdefs.h. */
25381
25382int
25383main ()
25384{
25385
25386 ;
25387 return 0;
25388}
25389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025390if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025391 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025392fi
cristy3ed852e2009-09-05 21:47:34 +000025393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394fi
cristy3ed852e2009-09-05 21:47:34 +000025395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396fi
cristy3ed852e2009-09-05 21:47:34 +000025397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25399fi
cristy8b350f62009-11-15 23:12:43 +000025400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025401$as_echo "$ac_cv_prog_cxx_g" >&6; }
25402if test "$ac_test_CXXFLAGS" = set; then
25403 CXXFLAGS=$ac_save_CXXFLAGS
25404elif test $ac_cv_prog_cxx_g = yes; then
25405 if test "$GXX" = yes; then
25406 CXXFLAGS="-g -O2"
25407 else
25408 CXXFLAGS="-g"
25409 fi
25410else
25411 if test "$GXX" = yes; then
25412 CXXFLAGS="-O2"
25413 else
25414 CXXFLAGS=
25415 fi
25416fi
25417ac_ext=cpp
25418ac_cpp='$CXXCPP $CPPFLAGS'
25419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25422
cristy73bd4a52010-10-05 11:24:23 +000025423depcc="$CXX" am_compiler_list=
25424
25425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25426$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025427if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025428 $as_echo_n "(cached) " >&6
25429else
25430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25431 # We make a subdir and do the tests there. Otherwise we can end up
25432 # making bogus files that we don't know about and never remove. For
25433 # instance it was reported that on HP-UX the gcc test will end up
25434 # making a dummy file named `D' -- because `-MD' means `put the output
25435 # in D'.
25436 mkdir conftest.dir
25437 # Copy depcomp to subdir because otherwise we won't find it if we're
25438 # using a relative directory.
25439 cp "$am_depcomp" conftest.dir
25440 cd conftest.dir
25441 # We will build objects and dependencies in a subdirectory because
25442 # it helps to detect inapplicable dependency modes. For instance
25443 # both Tru64's cc and ICC support -MD to output dependencies as a
25444 # side effect of compilation, but ICC will put the dependencies in
25445 # the current directory while Tru64 will put them in the object
25446 # directory.
25447 mkdir sub
25448
25449 am_cv_CXX_dependencies_compiler_type=none
25450 if test "$am_compiler_list" = ""; then
25451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25452 fi
25453 am__universal=false
25454 case " $depcc " in #(
25455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25456 esac
25457
25458 for depmode in $am_compiler_list; do
25459 # Setup a source with many dependencies, because some compilers
25460 # like to wrap large dependency lists on column 80 (with \), and
25461 # we should not choose a depcomp mode which is confused by this.
25462 #
25463 # We need to recreate these files for each test, as the compiler may
25464 # overwrite some of them when testing with obscure command lines.
25465 # This happens at least with the AIX C compiler.
25466 : > sub/conftest.c
25467 for i in 1 2 3 4 5 6; do
25468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25470 # Solaris 8's {/usr,}/bin/sh.
25471 touch sub/conftst$i.h
25472 done
25473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25474
25475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25476 # mode. It turns out that the SunPro C++ compiler does not properly
25477 # handle `-M -o', and we need to detect this. Also, some Intel
25478 # versions had trouble with output in subdirs
25479 am__obj=sub/conftest.${OBJEXT-o}
25480 am__minus_obj="-o $am__obj"
25481 case $depmode in
25482 gcc)
25483 # This depmode causes a compiler race in universal mode.
25484 test "$am__universal" = false || continue
25485 ;;
25486 nosideeffect)
25487 # after this tag, mechanisms are not by side-effect, so they'll
25488 # only be used when explicitly requested
25489 if test "x$enable_dependency_tracking" = xyes; then
25490 continue
25491 else
25492 break
25493 fi
25494 ;;
25495 msvisualcpp | msvcmsys)
25496 # This compiler won't grok `-c -o', but also, the minuso test has
25497 # not run yet. These depmodes are late enough in the game, and
25498 # so weak that their functioning should not be impacted.
25499 am__obj=conftest.${OBJEXT-o}
25500 am__minus_obj=
25501 ;;
25502 none) break ;;
25503 esac
25504 if depmode=$depmode \
25505 source=sub/conftest.c object=$am__obj \
25506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25508 >/dev/null 2>conftest.err &&
25509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25513 # icc doesn't choke on unknown options, it will just issue warnings
25514 # or remarks (even with -Werror). So we grep stderr for any message
25515 # that says an option was ignored or not supported.
25516 # When given -MP, icc 7.0 and 7.1 complain thusly:
25517 # icc: Command line warning: ignoring option '-M'; no argument required
25518 # The diagnosis changed in icc 8.0:
25519 # icc: Command line remark: option '-MP' not supported
25520 if (grep 'ignoring option' conftest.err ||
25521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25522 am_cv_CXX_dependencies_compiler_type=$depmode
25523 break
25524 fi
25525 fi
25526 done
25527
25528 cd ..
25529 rm -rf conftest.dir
25530else
25531 am_cv_CXX_dependencies_compiler_type=none
25532fi
25533
25534fi
25535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25536$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25537CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25538
25539 if
25540 test "x$enable_dependency_tracking" != xno \
25541 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25542 am__fastdepCXX_TRUE=
25543 am__fastdepCXX_FALSE='#'
25544else
25545 am__fastdepCXX_TRUE='#'
25546 am__fastdepCXX_FALSE=
25547fi
25548
25549
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25551$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025552if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025553 $as_echo_n "(cached) " >&6
25554else
25555
25556 ac_ext=cpp
25557ac_cpp='$CXXCPP $CPPFLAGS'
25558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25561
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563/* end confdefs.h. */
25564
25565int f(int x){return 1;}
25566int f(char x){return 1;}
25567int f(bool x){return 1;}
25568
25569int
25570main ()
25571{
25572bool b = true; return f(b);
25573 ;
25574 return 0;
25575}
25576_ACEOF
25577if ac_fn_cxx_try_compile "$LINENO"; then :
25578 ax_cv_cxx_bool=yes
25579else
25580 ax_cv_cxx_bool=no
25581fi
25582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25583 ac_ext=cpp
25584ac_cpp='$CXXCPP $CPPFLAGS'
25585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25588
25589
25590fi
25591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25592$as_echo "$ax_cv_cxx_bool" >&6; }
25593if test "$ax_cv_cxx_bool" = yes; then
25594
25595$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25596
25597fi
25598
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25600$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025601if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025602 $as_echo_n "(cached) " >&6
25603else
25604
25605 ac_ext=cpp
25606ac_cpp='$CXXCPP $CPPFLAGS'
25607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25610
25611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612/* end confdefs.h. */
25613namespace Outer { namespace Inner { int i = 0; }}
25614int
25615main ()
25616{
25617using namespace Outer::Inner; return i;
25618 ;
25619 return 0;
25620}
25621_ACEOF
25622if ac_fn_cxx_try_compile "$LINENO"; then :
25623 ax_cv_cxx_namespaces=yes
25624else
25625 ax_cv_cxx_namespaces=no
25626fi
25627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25628 ac_ext=cpp
25629ac_cpp='$CXXCPP $CPPFLAGS'
25630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25633
25634
25635fi
25636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25637$as_echo "$ax_cv_cxx_namespaces" >&6; }
25638if test "$ax_cv_cxx_namespaces" = yes; then
25639
25640$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25641
25642fi
25643
25644
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25646$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025647if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025648 $as_echo_n "(cached) " >&6
25649else
25650
25651 ac_ext=cpp
25652ac_cpp='$CXXCPP $CPPFLAGS'
25653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25656
25657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25658/* end confdefs.h. */
25659#include <iostream>
25660 std::istream& is = std::cin;
25661int
25662main ()
25663{
25664
25665 ;
25666 return 0;
25667}
25668_ACEOF
25669if ac_fn_cxx_try_compile "$LINENO"; then :
25670 ax_cv_cxx_have_std_namespace=yes
25671else
25672 ax_cv_cxx_have_std_namespace=no
25673fi
25674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25675 ac_ext=cpp
25676ac_cpp='$CXXCPP $CPPFLAGS'
25677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25680
25681
25682fi
25683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25684$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25685 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25686
25687$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25688
25689 fi
25690
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25692$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025693if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025694 $as_echo_n "(cached) " >&6
25695else
25696
25697
25698 ac_ext=cpp
25699ac_cpp='$CXXCPP $CPPFLAGS'
25700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25703
25704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705/* end confdefs.h. */
25706#include <iostream>
25707#include <map>
25708#include <iomanip>
25709#include <cmath>
25710#ifdef HAVE_NAMESPACES
25711using namespace std;
25712#endif
25713int
25714main ()
25715{
25716return 0;
25717 ;
25718 return 0;
25719}
25720_ACEOF
25721if ac_fn_cxx_try_compile "$LINENO"; then :
25722 ac_cv_cxx_have_std_libs=yes
25723else
25724 ac_cv_cxx_have_std_libs=no
25725fi
25726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727 ac_ext=cpp
25728ac_cpp='$CXXCPP $CPPFLAGS'
25729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25732
25733
25734fi
25735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25736$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25737if test "$ac_cv_cxx_have_std_libs" = yes; then
25738
25739$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25740
25741fi
25742
cristy3ed852e2009-09-05 21:47:34 +000025743
25744 OPENMP_CXXFLAGS=
25745 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025746if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025747 enableval=$enable_openmp;
25748fi
25749
25750 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25752$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025753if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025754 $as_echo_n "(cached) " >&6
25755else
cristy8b350f62009-11-15 23:12:43 +000025756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25757/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025758
25759#ifndef _OPENMP
25760 choke me
25761#endif
25762#include <omp.h>
25763int main () { return omp_get_num_threads (); }
25764
25765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025766if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 ac_cv_prog_cxx_openmp='none needed'
25768else
cristy8b350f62009-11-15 23:12:43 +000025769 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025770 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25771 ac_save_CXXFLAGS=$CXXFLAGS
25772 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25774/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025775
25776#ifndef _OPENMP
25777 choke me
25778#endif
25779#include <omp.h>
25780int main () { return omp_get_num_threads (); }
25781
25782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025783if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025784 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025785fi
cristy8b350f62009-11-15 23:12:43 +000025786rm -f core conftest.err conftest.$ac_objext \
25787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025788 CXXFLAGS=$ac_save_CXXFLAGS
25789 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25790 break
25791 fi
25792 done
25793fi
cristy8b350f62009-11-15 23:12:43 +000025794rm -f core conftest.err conftest.$ac_objext \
25795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025796fi
cristy8b350f62009-11-15 23:12:43 +000025797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025798$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25799 case $ac_cv_prog_cxx_openmp in #(
25800 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025801 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025802 *)
cristy8b350f62009-11-15 23:12:43 +000025803 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025804 esac
25805 fi
25806
25807
25808 ac_ext=c
25809ac_cpp='$CPP $CPPFLAGS'
25810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25812ac_compiler_gnu=$ac_cv_c_compiler_gnu
25813
25814
cristy8b350f62009-11-15 23:12:43 +000025815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025816$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25817 if \
cristy964cb7f2010-04-25 23:18:00 +000025818 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025819 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025820 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025821 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025822 have_magick_plus_plus='yes'
25823 else
25824 have_magick_plus_plus='no (failed tests)'
25825 fi
cristy09b53e12011-10-14 12:47:22 +000025826 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25827$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025828 LIBS="$OLIBS"
25829fi
cristy73bd4a52010-10-05 11:24:23 +000025830 if test "$have_magick_plus_plus" = 'yes'; then
25831 WITH_MAGICK_PLUS_PLUS_TRUE=
25832 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25833else
25834 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25835 WITH_MAGICK_PLUS_PLUS_FALSE=
25836fi
25837
cristy3ed852e2009-09-05 21:47:34 +000025838
25839# Only check for delegate libraries in subdirectories if requested.
25840if test "$enable_delegate_build" != 'no'; then
25841 # Check for delegate sub-directories and add -I & -L options as required.
25842 # This presumes that delegates are installed as detailed in the ImageMagick
25843 # README. If delegates are installed in a standard location where the
25844 # compiler will automatically find them then these options should not be
25845 # required.
25846
25847 #
25848 # Most delegates have includes in the same directory as the library, but not all...
25849 #
25850 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025851 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 +000025852 if test -d "$builddir/$dir"; then
25853 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25854 else
25855 if test -d "$srcdirfull/$dir"; then
25856 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25857 fi
25858 fi
25859 done
25860
25861 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025862 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 +000025863 if test -d "$builddir/$dir/.libs"; then
25864 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25865 else
25866 if test -d "$srcdirfull/$dir/.libs"; then
25867 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25868 fi
25869 fi
25870 if test -d "$builddir/$dir"; then
25871 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25872 else
25873 if test -d "$srcdirfull/$dir"; then
25874 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25875 fi
25876 fi
25877 done
25878fi
25879
25880# Assume that delegate headers reside under same directory as ImageMagick
25881# installation prefix.
25882MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25883
25884#
25885# Find the X11 RGB database
25886#
cristy8b350f62009-11-15 23:12:43 +000025887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025888$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025889if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025890 $as_echo_n "(cached) " >&6
25891else
25892 # Look for the header file in a standard set of common directories.
25893# Check X11 before X11Rn because it is often a symlink to the current release.
25894 for ac_dir in \
25895 /lib/usr/lib/X11 \
25896 /usr/X11/lib \
25897 /usr/X11R4/lib \
25898 /usr/X11R5/lib \
25899 /usr/X11R6/lib \
25900 /usr/X11R7/lib \
25901 /usr/X386/lib \
25902 /usr/XFree86/lib/X11 \
25903 /usr/athena/lib \
25904 /usr/lib \
25905 /usr/lib/X11 \
25906 /usr/lib/X11R4 \
25907 /usr/lib/X11R5 \
25908 /usr/lib/X11R6 \
25909 /usr/lib/X11R7 \
25910 /usr/local/X11/lib \
25911 /usr/local/X11R4/lib \
25912 /usr/local/X11R5/lib \
25913 /usr/local/X11R6/lib \
25914 /usr/local/lib \
25915 /usr/local/lib/X11 \
25916 /usr/local/lib/X11R4 \
25917 /usr/local/lib/X11R5 \
25918 /usr/local/lib/X11R6 \
25919 /usr/local/lib/X11R7 \
25920 /usr/local/x11r5/lib \
25921 /usr/lpp/Xamples/lib \
25922 /usr/openwin/lib \
25923 /usr/openwin/share/lib \
25924 /usr/unsupported/lib \
25925 /usr/x386/lib \
25926 ; do
25927 if test -f "$ac_dir/X11/rgb.txt"; then
25928 im_cv_x_configure="$ac_dir/X11/"
25929 break
25930 elif test -f "$ac_dir/rgb.txt"; then
25931 im_cv_x_configure="$ac_dir/"
25932 break
25933 fi
25934
25935 done
25936fi
cristy8b350f62009-11-15 23:12:43 +000025937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025938$as_echo "$im_cv_x_configure" >&6; }
25939X11_CONFIGURE_PATH="$im_cv_x_configure"
25940case "${build_os}" in
25941 mingw* )
25942 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25943 ;;
25944esac
25945
25946cat >>confdefs.h <<_ACEOF
25947#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25948_ACEOF
25949
25950
25951#
25952# Find OpenMP library
25953#
25954GOMP_LIBS=''
25955if test "$enable_openmp" != 'no'; then
25956 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025958$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025959if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025960 $as_echo_n "(cached) " >&6
25961else
25962 ac_check_lib_save_LIBS=$LIBS
25963LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025965/* end confdefs.h. */
25966
25967/* Override any GCC internal prototype to avoid an error.
25968 Use char because int might match the return type of a GCC
25969 builtin and then its argument prototype would still apply. */
25970#ifdef __cplusplus
25971extern "C"
25972#endif
25973char GOMP_parallel_start ();
25974int
25975main ()
25976{
25977return GOMP_parallel_start ();
25978 ;
25979 return 0;
25980}
25981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025982if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025983 ac_cv_lib_gomp_GOMP_parallel_start=yes
25984else
cristy8b350f62009-11-15 23:12:43 +000025985 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025986fi
cristy8b350f62009-11-15 23:12:43 +000025987rm -f core conftest.err conftest.$ac_objext \
25988 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025989LIBS=$ac_check_lib_save_LIBS
25990fi
cristy8b350f62009-11-15 23:12:43 +000025991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025992$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025993if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025994 GOMP_LIBS="-lgomp"
25995fi
25996 # gcc
25997 else
cristy8b350f62009-11-15 23:12:43 +000025998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025999$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026000if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026001 $as_echo_n "(cached) " >&6
26002else
26003 ac_check_lib_save_LIBS=$LIBS
26004LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026006/* end confdefs.h. */
26007
26008/* Override any GCC internal prototype to avoid an error.
26009 Use char because int might match the return type of a GCC
26010 builtin and then its argument prototype would still apply. */
26011#ifdef __cplusplus
26012extern "C"
26013#endif
26014char sunw_mp_register_warn ();
26015int
26016main ()
26017{
26018return sunw_mp_register_warn ();
26019 ;
26020 return 0;
26021}
26022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026023if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026024 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26025else
cristy8b350f62009-11-15 23:12:43 +000026026 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026027fi
cristy8b350f62009-11-15 23:12:43 +000026028rm -f core conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026030LIBS=$ac_check_lib_save_LIBS
26031fi
cristy8b350f62009-11-15 23:12:43 +000026032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026033$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026034if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026035 GOMP_LIBS="-lmtsk"
26036fi
26037 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026040if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 $as_echo_n "(cached) " >&6
26042else
26043 ac_check_lib_save_LIBS=$LIBS
26044LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026046/* end confdefs.h. */
26047
26048/* Override any GCC internal prototype to avoid an error.
26049 Use char because int might match the return type of a GCC
26050 builtin and then its argument prototype would still apply. */
26051#ifdef __cplusplus
26052extern "C"
26053#endif
26054char _xlsmpFlush ();
26055int
26056main ()
26057{
26058return _xlsmpFlush ();
26059 ;
26060 return 0;
26061}
26062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026063if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026064 ac_cv_lib_xlsmp__xlsmpFlush=yes
26065else
cristy8b350f62009-11-15 23:12:43 +000026066 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026067fi
cristy8b350f62009-11-15 23:12:43 +000026068rm -f core conftest.err conftest.$ac_objext \
26069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026070LIBS=$ac_check_lib_save_LIBS
26071fi
cristy8b350f62009-11-15 23:12:43 +000026072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026073$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026074if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026075 GOMP_LIBS="-lxlsmp"
26076fi
26077 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026079$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026080if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026081 $as_echo_n "(cached) " >&6
26082else
26083 ac_check_lib_save_LIBS=$LIBS
26084LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026086/* end confdefs.h. */
26087
26088/* Override any GCC internal prototype to avoid an error.
26089 Use char because int might match the return type of a GCC
26090 builtin and then its argument prototype would still apply. */
26091#ifdef __cplusplus
26092extern "C"
26093#endif
26094char mp_destroy ();
26095int
26096main ()
26097{
26098return mp_destroy ();
26099 ;
26100 return 0;
26101}
26102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026104 ac_cv_lib_mp_mp_destroy=yes
26105else
cristy8b350f62009-11-15 23:12:43 +000026106 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026107fi
cristy8b350f62009-11-15 23:12:43 +000026108rm -f core conftest.err conftest.$ac_objext \
26109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026110LIBS=$ac_check_lib_save_LIBS
26111fi
cristy8b350f62009-11-15 23:12:43 +000026112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026113$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026114if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026115 GOMP_LIBS="-lmp"
26116fi
26117 # SGI IRIX 6.5 MIPSpro C/C++
26118 fi
26119 LIBS="$GOMP_LIBS $LIBS"
26120fi
26121
26122
26123#
26124# Find Posix threads library
26125#
26126THREAD_LIBS=''
26127if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26128
26129 if test "x$PTHREAD_LIBS" = "x"; then
26130 case "${host_cpu}-${host_os}" in
26131 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026132
26133
26134
26135ac_ext=c
26136ac_cpp='$CPP $CPPFLAGS'
26137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26139ac_compiler_gnu=$ac_cv_c_compiler_gnu
26140
26141magick_pthread_lib_ok=no
26142
26143LIB=-lc_r
26144save_LIBS="$LIBS"
26145LIBS="$LIBS $LIB"
26146
26147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26148$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26150/* end confdefs.h. */
26151#include <pthread.h>
26152int
26153main ()
26154{
26155 pthread_t th;
26156 pthread_join(th, 0);
26157 pthread_attr_init(0);
26158 pthread_cleanup_push(0, 0);
26159 pthread_create(0,0,0,0);
26160 pthread_cleanup_pop(0);
26161 ;
26162 return 0;
26163}
26164_ACEOF
26165if ac_fn_c_try_link "$LINENO"; then :
26166 magick_pthread_lib_ok=yes
26167fi
26168rm -f core conftest.err conftest.$ac_objext \
26169 conftest$ac_exeext conftest.$ac_ext
26170
26171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26172$as_echo "${magick_pthread_lib_ok}" >&6; }
26173if test "$magick_pthread_lib_ok" = yes
26174then
26175 PTHREAD_LIBS=-lc_r
26176 :
26177else
26178
26179 :
26180fi
26181
26182LIBS="$save_LIBS"
26183
26184ac_ext=c
26185ac_cpp='$CPP $CPPFLAGS'
26186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26188ac_compiler_gnu=$ac_cv_c_compiler_gnu
26189
26190 ;;
cristy3ed852e2009-09-05 21:47:34 +000026191 esac
26192 fi
26193
26194 for lib in pthread pthreads; do
26195 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026196
26197
26198
26199ac_ext=c
26200ac_cpp='$CPP $CPPFLAGS'
26201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26203ac_compiler_gnu=$ac_cv_c_compiler_gnu
26204
26205magick_pthread_lib_ok=no
26206
26207LIB=-l$lib
26208save_LIBS="$LIBS"
26209LIBS="$LIBS $LIB"
26210
26211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26212$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214/* end confdefs.h. */
26215#include <pthread.h>
26216int
26217main ()
26218{
26219 pthread_t th;
26220 pthread_join(th, 0);
26221 pthread_attr_init(0);
26222 pthread_cleanup_push(0, 0);
26223 pthread_create(0,0,0,0);
26224 pthread_cleanup_pop(0);
26225 ;
26226 return 0;
26227}
26228_ACEOF
26229if ac_fn_c_try_link "$LINENO"; then :
26230 magick_pthread_lib_ok=yes
26231fi
26232rm -f core conftest.err conftest.$ac_objext \
26233 conftest$ac_exeext conftest.$ac_ext
26234
26235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26236$as_echo "${magick_pthread_lib_ok}" >&6; }
26237if test "$magick_pthread_lib_ok" = yes
26238then
26239 PTHREAD_LIBS=-l$lib
26240 :
26241else
26242
26243 :
26244fi
26245
26246LIBS="$save_LIBS"
26247
26248ac_ext=c
26249ac_cpp='$CPP $CPPFLAGS'
26250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26252ac_compiler_gnu=$ac_cv_c_compiler_gnu
26253
26254
cristy3ed852e2009-09-05 21:47:34 +000026255 fi
26256 done
26257
26258 THREAD_LIBS="$PTHREAD_LIBS"
26259 LIBS="$LIBS $THREAD_LIBS"
26260fi
26261
26262
26263#
26264# Check for umem.
26265#
26266have_umem='no'
26267UMEM_LIBS=''
26268if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026270$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026271 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26272$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026273 failed=0
26274 passed=0
cristy8b350f62009-11-15 23:12:43 +000026275 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026276if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026277 passed=`expr $passed + 1`
26278else
26279 failed=`expr $failed + 1`
26280fi
26281
26282
cristy8b350f62009-11-15 23:12:43 +000026283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026284$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026285if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026286 $as_echo_n "(cached) " >&6
26287else
26288 ac_check_lib_save_LIBS=$LIBS
26289LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026291/* end confdefs.h. */
26292
26293/* Override any GCC internal prototype to avoid an error.
26294 Use char because int might match the return type of a GCC
26295 builtin and then its argument prototype would still apply. */
26296#ifdef __cplusplus
26297extern "C"
26298#endif
26299char umem_alloc ();
26300int
26301main ()
26302{
26303return umem_alloc ();
26304 ;
26305 return 0;
26306}
26307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026308if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026309 ac_cv_lib_umem_umem_alloc=yes
26310else
cristy8b350f62009-11-15 23:12:43 +000026311 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026312fi
cristy8b350f62009-11-15 23:12:43 +000026313rm -f core conftest.err conftest.$ac_objext \
26314 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026315LIBS=$ac_check_lib_save_LIBS
26316fi
cristy8b350f62009-11-15 23:12:43 +000026317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026318$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026319if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026320 passed=`expr $passed + 1`
26321else
26322 failed=`expr $failed + 1`
26323fi
26324
cristy8b350f62009-11-15 23:12:43 +000026325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026326$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026327if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026328 $as_echo_n "(cached) " >&6
26329else
26330 ac_check_lib_save_LIBS=$LIBS
26331LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026333/* end confdefs.h. */
26334
26335/* Override any GCC internal prototype to avoid an error.
26336 Use char because int might match the return type of a GCC
26337 builtin and then its argument prototype would still apply. */
26338#ifdef __cplusplus
26339extern "C"
26340#endif
26341char umem_free ();
26342int
26343main ()
26344{
26345return umem_free ();
26346 ;
26347 return 0;
26348}
26349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026351 ac_cv_lib_umem_umem_free=yes
26352else
cristy8b350f62009-11-15 23:12:43 +000026353 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026354fi
cristy8b350f62009-11-15 23:12:43 +000026355rm -f core conftest.err conftest.$ac_objext \
26356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026357LIBS=$ac_check_lib_save_LIBS
26358fi
cristy8b350f62009-11-15 23:12:43 +000026359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026361if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026362 passed=`expr $passed + 1`
26363else
26364 failed=`expr $failed + 1`
26365fi
26366
cristy8b350f62009-11-15 23:12:43 +000026367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026368$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26369 if test $passed -gt 0; then
26370 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026371 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26372$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026373 have_umem='no (failed tests)'
26374 else
26375 UMEM_LIBS='-lumem'
26376 LIBS="$UMEM_LIBS $LIBS"
26377
cristy8b350f62009-11-15 23:12:43 +000026378$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026379
cristy09b53e12011-10-14 12:47:22 +000026380 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26381$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026382 have_umem='yes'
26383 fi
26384 else
cristy09b53e12011-10-14 12:47:22 +000026385 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26386$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026387 fi
26388fi
cristy73bd4a52010-10-05 11:24:23 +000026389 if test "$have_umem" = 'yes'; then
26390 HasUMEM_TRUE=
26391 HasUMEM_FALSE='#'
26392else
26393 HasUMEM_TRUE='#'
26394 HasUMEM_FALSE=
26395fi
26396
cristy3ed852e2009-09-05 21:47:34 +000026397
26398
26399#
26400# Add support for ccmalloc memory debugging library if requested
26401#
26402have_ccmalloc='no'
26403CCMALLOC_LIBS=''
26404if test "$enable_ccmalloc" = 'yes'; then
26405 # Extract the first word of "ccmalloc", so it can be a program name with args.
26406set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026409if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026410 $as_echo_n "(cached) " >&6
26411else
26412 case $CCMALLOCDelegate in
26413 [\\/]* | ?:[\\/]*)
26414 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26415 ;;
26416 *)
26417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26418for as_dir in $PATH
26419do
26420 IFS=$as_save_IFS
26421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26424 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026426 break 2
26427 fi
26428done
cristy8b350f62009-11-15 23:12:43 +000026429 done
cristy3ed852e2009-09-05 21:47:34 +000026430IFS=$as_save_IFS
26431
26432 ;;
26433esac
26434fi
26435CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26436if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026438$as_echo "$CCMALLOCDelegate" >&6; }
26439else
cristy8b350f62009-11-15 23:12:43 +000026440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026441$as_echo "no" >&6; }
26442fi
26443
26444
26445 if test -n "$CCMALLOCDelegate"; then
26446 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26447 OLIBS="$LIBS"
26448 # Assume that gcc is used with ccmalloc.
26449 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026451$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026452if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026453 $as_echo_n "(cached) " >&6
26454else
26455 ac_check_lib_save_LIBS=$LIBS
26456LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026458/* end confdefs.h. */
26459
26460/* Override any GCC internal prototype to avoid an error.
26461 Use char because int might match the return type of a GCC
26462 builtin and then its argument prototype would still apply. */
26463#ifdef __cplusplus
26464extern "C"
26465#endif
26466char ccmalloc_malloc ();
26467int
26468main ()
26469{
26470return ccmalloc_malloc ();
26471 ;
26472 return 0;
26473}
26474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026475if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026476 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26477else
cristy8b350f62009-11-15 23:12:43 +000026478 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026479fi
cristy8b350f62009-11-15 23:12:43 +000026480rm -f core conftest.err conftest.$ac_objext \
26481 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026482LIBS=$ac_check_lib_save_LIBS
26483fi
cristy8b350f62009-11-15 23:12:43 +000026484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026485$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026486if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026487 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26488fi
26489
26490 if test -n "$CCMALLOC_LIBS"; then
26491 LIBS="$OLIBS"
26492 LIBS="$LIBS $CCMALLOC_LIBS"
26493 have_ccmalloc='yes'
26494 else
26495 LIBS="$OLIBS"
26496 fi
26497 fi
26498fi
26499
26500#
26501# Add support for efence memory debugging library if requested
26502#
26503if test "$enable_efence" = 'yes'; then
26504 EFENCE_LIBS='-lefence'
26505 LIBS="$EFENCE_LIBS $LIBS"
26506fi
26507
cristy3ed852e2009-09-05 21:47:34 +000026508
26509#
26510# Check for BZLIB
26511#
26512
26513
26514# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026515if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026516 withval=$with_bzlib; with_bzlib=$withval
26517else
26518 with_bzlib='yes'
26519fi
26520
26521
26522if test "$with_bzlib" != 'yes'; then
26523 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26524fi
26525
26526have_bzlib='no'
26527if test "$with_bzlib" != 'no'; then
26528 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026529 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26530$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026532$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026533 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26534$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026535 failed=0
26536 passed=0
26537 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026538 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026539if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026540 passed=`expr $passed + 1`
26541else
26542 failed=`expr $failed + 1`
26543fi
26544
26545
cristy8b350f62009-11-15 23:12:43 +000026546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026547$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026548if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026549 $as_echo_n "(cached) " >&6
26550else
26551 ac_check_lib_save_LIBS=$LIBS
26552LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026554/* end confdefs.h. */
26555
26556/* Override any GCC internal prototype to avoid an error.
26557 Use char because int might match the return type of a GCC
26558 builtin and then its argument prototype would still apply. */
26559#ifdef __cplusplus
26560extern "C"
26561#endif
26562char BZ2_bzDecompress ();
26563int
26564main ()
26565{
26566return BZ2_bzDecompress ();
26567 ;
26568 return 0;
26569}
26570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026571if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026572 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26573else
cristy8b350f62009-11-15 23:12:43 +000026574 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026575fi
cristy8b350f62009-11-15 23:12:43 +000026576rm -f core conftest.err conftest.$ac_objext \
26577 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026578LIBS=$ac_check_lib_save_LIBS
26579fi
cristy8b350f62009-11-15 23:12:43 +000026580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026581$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026582if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026583 found_libbz=`expr $found_libbz + 1`
26584fi
26585
26586 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026588$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026589if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026590 $as_echo_n "(cached) " >&6
26591else
26592 ac_check_lib_save_LIBS=$LIBS
26593LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026595/* end confdefs.h. */
26596
26597/* Override any GCC internal prototype to avoid an error.
26598 Use char because int might match the return type of a GCC
26599 builtin and then its argument prototype would still apply. */
26600#ifdef __cplusplus
26601extern "C"
26602#endif
26603char _imp__BZ2_decompress ();
26604int
26605main ()
26606{
26607return _imp__BZ2_decompress ();
26608 ;
26609 return 0;
26610}
26611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026613 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26614else
cristy8b350f62009-11-15 23:12:43 +000026615 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026616fi
cristy8b350f62009-11-15 23:12:43 +000026617rm -f core conftest.err conftest.$ac_objext \
26618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026619LIBS=$ac_check_lib_save_LIBS
26620fi
cristy8b350f62009-11-15 23:12:43 +000026621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026622$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026623if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026624 found_libbz=`expr $found_libbz + 1`
26625fi
26626
26627 fi
26628 if test $found_libbz -gt 0; then
26629 passed=`expr $passed + 1`
26630 else
26631 failed=`expr $failed + 1`
26632 fi
cristy8b350f62009-11-15 23:12:43 +000026633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026634$as_echo_n "checking if BZLIB package is complete... " >&6; }
26635 if test $passed -gt 0; then
26636 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026637 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26638$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026639 have_bzlib='no (failed tests)'
26640 else
26641 BZLIB_LIBS='-lbz2'
26642 LIBS="$BZLIB_LIBS $LIBS"
26643
cristy8b350f62009-11-15 23:12:43 +000026644$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026645
cristy09b53e12011-10-14 12:47:22 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26647$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026648 have_bzlib='yes'
26649 fi
26650 else
cristy09b53e12011-10-14 12:47:22 +000026651 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26652$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026653 fi
26654fi
cristy73bd4a52010-10-05 11:24:23 +000026655 if test "$have_bzlib" = 'yes'; then
26656 BZLIB_DELEGATE_TRUE=
26657 BZLIB_DELEGATE_FALSE='#'
26658else
26659 BZLIB_DELEGATE_TRUE='#'
26660 BZLIB_DELEGATE_FALSE=
26661fi
26662
cristy3ed852e2009-09-05 21:47:34 +000026663
26664
26665#
26666# Find the X11 include and library directories.
26667#
26668IPC_LIBS=''
26669X11_LIBS=''
26670XEXT_LIBS=''
26671XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026673$as_echo_n "checking for X... " >&6; }
26674
26675
26676# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026677if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026678 withval=$with_x;
26679fi
26680
26681# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26682if test "x$with_x" = xno; then
26683 # The user explicitly disabled X.
26684 have_x=disabled
26685else
26686 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026687 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026688 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026689 $as_echo_n "(cached) " >&6
26690else
26691 # One or both of the vars are not set, and there is no cached value.
26692ac_x_includes=no ac_x_libraries=no
26693rm -f -r conftest.dir
26694if mkdir conftest.dir; then
26695 cd conftest.dir
26696 cat >Imakefile <<'_ACEOF'
26697incroot:
26698 @echo incroot='${INCROOT}'
26699usrlibdir:
26700 @echo usrlibdir='${USRLIBDIR}'
26701libdir:
26702 @echo libdir='${LIBDIR}'
26703_ACEOF
26704 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026705 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026706 for ac_var in incroot usrlibdir libdir; do
26707 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26708 done
26709 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26710 for ac_extension in a so sl dylib la dll; do
26711 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26712 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26713 ac_im_usrlibdir=$ac_im_libdir; break
26714 fi
26715 done
26716 # Screen out bogus values from the imake configuration. They are
26717 # bogus both because they are the default anyway, and because
26718 # using them would break gcc on systems where it needs fixed includes.
26719 case $ac_im_incroot in
26720 /usr/include) ac_x_includes= ;;
26721 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26722 esac
26723 case $ac_im_usrlibdir in
26724 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26725 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26726 esac
26727 fi
26728 cd ..
26729 rm -f -r conftest.dir
26730fi
26731
26732# Standard set of common directories for X headers.
26733# Check X11 before X11Rn because it is often a symlink to the current release.
26734ac_x_header_dirs='
26735/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026736/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026737/usr/X11R6/include
26738/usr/X11R5/include
26739/usr/X11R4/include
26740
26741/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026742/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026743/usr/include/X11R6
26744/usr/include/X11R5
26745/usr/include/X11R4
26746
26747/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026748/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026749/usr/local/X11R6/include
26750/usr/local/X11R5/include
26751/usr/local/X11R4/include
26752
26753/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026754/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026755/usr/local/include/X11R6
26756/usr/local/include/X11R5
26757/usr/local/include/X11R4
26758
26759/usr/X386/include
26760/usr/x386/include
26761/usr/XFree86/include/X11
26762
26763/usr/include
26764/usr/local/include
26765/usr/unsupported/include
26766/usr/athena/include
26767/usr/local/x11r5/include
26768/usr/lpp/Xamples/include
26769
26770/usr/openwin/include
26771/usr/openwin/share/include'
26772
26773if test "$ac_x_includes" = no; then
26774 # Guess where to find include files, by looking for Xlib.h.
26775 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026777/* end confdefs.h. */
26778#include <X11/Xlib.h>
26779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026780if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026781 # We can compile using X headers with no special include directory.
26782ac_x_includes=
26783else
cristyc7083c12009-10-14 03:16:55 +000026784 for ac_dir in $ac_x_header_dirs; do
26785 if test -r "$ac_dir/X11/Xlib.h"; then
26786 ac_x_includes=$ac_dir
26787 break
26788 fi
26789done
26790fi
cristyda16f162011-02-19 23:52:17 +000026791rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026792fi # $ac_x_includes = no
26793
26794if test "$ac_x_libraries" = no; then
26795 # Check for the libraries.
26796 # See if we find them without any special options.
26797 # Don't add to $LIBS permanently.
26798 ac_save_LIBS=$LIBS
26799 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026801/* end confdefs.h. */
26802#include <X11/Xlib.h>
26803int
26804main ()
26805{
26806XrmInitialize ()
26807 ;
26808 return 0;
26809}
26810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026811if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026812 LIBS=$ac_save_LIBS
26813# We can link X programs with no special library path.
26814ac_x_libraries=
26815else
cristy8b350f62009-11-15 23:12:43 +000026816 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026817for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26818do
26819 # Don't even attempt the hair of trying to link an X program!
26820 for ac_extension in a so sl dylib la dll; do
26821 if test -r "$ac_dir/libX11.$ac_extension"; then
26822 ac_x_libraries=$ac_dir
26823 break 2
26824 fi
26825 done
26826done
26827fi
cristy8b350f62009-11-15 23:12:43 +000026828rm -f core conftest.err conftest.$ac_objext \
26829 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026830fi # $ac_x_libraries = no
26831
26832case $ac_x_includes,$ac_x_libraries in #(
26833 no,* | *,no | *\'*)
26834 # Didn't find X, or a directory has "'" in its name.
26835 ac_cv_have_x="have_x=no";; #(
26836 *)
26837 # Record where we found X for the cache.
26838 ac_cv_have_x="have_x=yes\
26839 ac_x_includes='$ac_x_includes'\
26840 ac_x_libraries='$ac_x_libraries'"
26841esac
26842fi
26843;; #(
26844 *) have_x=yes;;
26845 esac
26846 eval "$ac_cv_have_x"
26847fi # $with_x != no
26848
26849if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026851$as_echo "$have_x" >&6; }
26852 no_x=yes
26853else
26854 # If each of the values was on the command line, it overrides each guess.
26855 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26856 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26857 # Update the cache value to reflect the command line values.
26858 ac_cv_have_x="have_x=yes\
26859 ac_x_includes='$x_includes'\
26860 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026862$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26863fi
26864
cristy3ed852e2009-09-05 21:47:34 +000026865if test "$no_x" = yes; then
26866 # Not all programs may use this symbol, but it does not hurt to define it.
26867
cristy8b350f62009-11-15 23:12:43 +000026868$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026869
26870 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26871else
26872 if test -n "$x_includes"; then
26873 X_CFLAGS="$X_CFLAGS -I$x_includes"
26874 fi
26875
26876 # It would also be nice to do this for all -L options, not just this one.
26877 if test -n "$x_libraries"; then
26878 X_LIBS="$X_LIBS -L$x_libraries"
26879 # For Solaris; some versions of Sun CC require a space after -R and
26880 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026882$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26883 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26884 ac_xsave_c_werror_flag=$ac_c_werror_flag
26885 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026887/* end confdefs.h. */
26888
26889int
26890main ()
26891{
26892
26893 ;
26894 return 0;
26895}
26896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026897if ac_fn_c_try_link "$LINENO"; then :
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026899$as_echo "no" >&6; }
26900 X_LIBS="$X_LIBS -R$x_libraries"
26901else
cristy8b350f62009-11-15 23:12:43 +000026902 LIBS="$ac_xsave_LIBS -R $x_libraries"
26903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026904/* end confdefs.h. */
26905
26906int
26907main ()
26908{
26909
26910 ;
26911 return 0;
26912}
26913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026914if ac_fn_c_try_link "$LINENO"; then :
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026916$as_echo "yes" >&6; }
26917 X_LIBS="$X_LIBS -R $x_libraries"
26918else
cristy8b350f62009-11-15 23:12:43 +000026919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026920$as_echo "neither works" >&6; }
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922rm -f core conftest.err conftest.$ac_objext \
26923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026924fi
cristy8b350f62009-11-15 23:12:43 +000026925rm -f core conftest.err conftest.$ac_objext \
26926 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026927 ac_c_werror_flag=$ac_xsave_c_werror_flag
26928 LIBS=$ac_xsave_LIBS
26929 fi
26930
26931 # Check for system-dependent libraries X programs must link with.
26932 # Do this before checking for the system-independent R6 libraries
26933 # (-lICE), since we may need -lsocket or whatever for X linking.
26934
26935 if test "$ISC" = yes; then
26936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26937 else
26938 # Martyn Johnson says this is needed for Ultrix, if the X
26939 # libraries were built with DECnet support. And Karl Berry says
26940 # the Alpha needs dnet_stub (dnet does not exist).
26941 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026943/* end confdefs.h. */
26944
26945/* Override any GCC internal prototype to avoid an error.
26946 Use char because int might match the return type of a GCC
26947 builtin and then its argument prototype would still apply. */
26948#ifdef __cplusplus
26949extern "C"
26950#endif
26951char XOpenDisplay ();
26952int
26953main ()
26954{
26955return XOpenDisplay ();
26956 ;
26957 return 0;
26958}
26959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026960if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026961
cristy8b350f62009-11-15 23:12:43 +000026962else
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026964$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026965if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026966 $as_echo_n "(cached) " >&6
26967else
26968 ac_check_lib_save_LIBS=$LIBS
26969LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026971/* end confdefs.h. */
26972
26973/* Override any GCC internal prototype to avoid an error.
26974 Use char because int might match the return type of a GCC
26975 builtin and then its argument prototype would still apply. */
26976#ifdef __cplusplus
26977extern "C"
26978#endif
26979char dnet_ntoa ();
26980int
26981main ()
26982{
26983return dnet_ntoa ();
26984 ;
26985 return 0;
26986}
26987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026989 ac_cv_lib_dnet_dnet_ntoa=yes
26990else
cristy8b350f62009-11-15 23:12:43 +000026991 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026992fi
cristy8b350f62009-11-15 23:12:43 +000026993rm -f core conftest.err conftest.$ac_objext \
26994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026995LIBS=$ac_check_lib_save_LIBS
26996fi
cristy8b350f62009-11-15 23:12:43 +000026997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026998$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026999if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027000 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27001fi
27002
27003 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027005$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027006if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027007 $as_echo_n "(cached) " >&6
27008else
27009 ac_check_lib_save_LIBS=$LIBS
27010LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027012/* end confdefs.h. */
27013
27014/* Override any GCC internal prototype to avoid an error.
27015 Use char because int might match the return type of a GCC
27016 builtin and then its argument prototype would still apply. */
27017#ifdef __cplusplus
27018extern "C"
27019#endif
27020char dnet_ntoa ();
27021int
27022main ()
27023{
27024return dnet_ntoa ();
27025 ;
27026 return 0;
27027}
27028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27031else
cristy8b350f62009-11-15 23:12:43 +000027032 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027033fi
cristy8b350f62009-11-15 23:12:43 +000027034rm -f core conftest.err conftest.$ac_objext \
27035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027036LIBS=$ac_check_lib_save_LIBS
27037fi
cristy8b350f62009-11-15 23:12:43 +000027038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027039$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027040if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027041 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27042fi
27043
27044 fi
27045fi
cristy8b350f62009-11-15 23:12:43 +000027046rm -f core conftest.err conftest.$ac_objext \
27047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027048 LIBS="$ac_xsave_LIBS"
27049
27050 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27051 # to get the SysV transport functions.
27052 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27053 # needs -lnsl.
27054 # The nsl library prevents programs from opening the X display
27055 # on Irix 5.2, according to T.E. Dickey.
27056 # The functions gethostbyname, getservbyname, and inet_addr are
27057 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027058 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027059if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027060
cristy3ed852e2009-09-05 21:47:34 +000027061fi
27062
cristy3ed852e2009-09-05 21:47:34 +000027063 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027065$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027066if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027067 $as_echo_n "(cached) " >&6
27068else
27069 ac_check_lib_save_LIBS=$LIBS
27070LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027072/* end confdefs.h. */
27073
27074/* Override any GCC internal prototype to avoid an error.
27075 Use char because int might match the return type of a GCC
27076 builtin and then its argument prototype would still apply. */
27077#ifdef __cplusplus
27078extern "C"
27079#endif
27080char gethostbyname ();
27081int
27082main ()
27083{
27084return gethostbyname ();
27085 ;
27086 return 0;
27087}
27088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027089if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027090 ac_cv_lib_nsl_gethostbyname=yes
27091else
cristy8b350f62009-11-15 23:12:43 +000027092 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027093fi
cristy8b350f62009-11-15 23:12:43 +000027094rm -f core conftest.err conftest.$ac_objext \
27095 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027096LIBS=$ac_check_lib_save_LIBS
27097fi
cristy8b350f62009-11-15 23:12:43 +000027098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027099$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027100if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027101 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27102fi
27103
27104 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027107if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 $as_echo_n "(cached) " >&6
27109else
27110 ac_check_lib_save_LIBS=$LIBS
27111LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027113/* end confdefs.h. */
27114
27115/* Override any GCC internal prototype to avoid an error.
27116 Use char because int might match the return type of a GCC
27117 builtin and then its argument prototype would still apply. */
27118#ifdef __cplusplus
27119extern "C"
27120#endif
27121char gethostbyname ();
27122int
27123main ()
27124{
27125return gethostbyname ();
27126 ;
27127 return 0;
27128}
27129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027131 ac_cv_lib_bsd_gethostbyname=yes
27132else
cristy8b350f62009-11-15 23:12:43 +000027133 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027134fi
cristy8b350f62009-11-15 23:12:43 +000027135rm -f core conftest.err conftest.$ac_objext \
27136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027137LIBS=$ac_check_lib_save_LIBS
27138fi
cristy8b350f62009-11-15 23:12:43 +000027139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027140$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027141if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27143fi
27144
27145 fi
27146 fi
27147
27148 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27149 # socket/setsockopt and other routines are undefined under SCO ODT
27150 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27151 # on later versions), says Simon Leinen: it contains gethostby*
27152 # variants that don't use the name server (or something). -lsocket
27153 # must be given before -lnsl if both are needed. We assume that
27154 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027155 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027156if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027157
cristy3ed852e2009-09-05 21:47:34 +000027158fi
27159
cristy3ed852e2009-09-05 21:47:34 +000027160 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027163if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 $as_echo_n "(cached) " >&6
27165else
27166 ac_check_lib_save_LIBS=$LIBS
27167LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027169/* end confdefs.h. */
27170
27171/* Override any GCC internal prototype to avoid an error.
27172 Use char because int might match the return type of a GCC
27173 builtin and then its argument prototype would still apply. */
27174#ifdef __cplusplus
27175extern "C"
27176#endif
27177char connect ();
27178int
27179main ()
27180{
27181return connect ();
27182 ;
27183 return 0;
27184}
27185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027187 ac_cv_lib_socket_connect=yes
27188else
cristy8b350f62009-11-15 23:12:43 +000027189 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027190fi
cristy8b350f62009-11-15 23:12:43 +000027191rm -f core conftest.err conftest.$ac_objext \
27192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027193LIBS=$ac_check_lib_save_LIBS
27194fi
cristy8b350f62009-11-15 23:12:43 +000027195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027196$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027197if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027198 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27199fi
27200
27201 fi
27202
27203 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027204 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027205if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027206
cristy3ed852e2009-09-05 21:47:34 +000027207fi
27208
cristy3ed852e2009-09-05 21:47:34 +000027209 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027211$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027212if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027213 $as_echo_n "(cached) " >&6
27214else
27215 ac_check_lib_save_LIBS=$LIBS
27216LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027218/* end confdefs.h. */
27219
27220/* Override any GCC internal prototype to avoid an error.
27221 Use char because int might match the return type of a GCC
27222 builtin and then its argument prototype would still apply. */
27223#ifdef __cplusplus
27224extern "C"
27225#endif
27226char remove ();
27227int
27228main ()
27229{
27230return remove ();
27231 ;
27232 return 0;
27233}
27234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027236 ac_cv_lib_posix_remove=yes
27237else
cristy8b350f62009-11-15 23:12:43 +000027238 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027239fi
cristy8b350f62009-11-15 23:12:43 +000027240rm -f core conftest.err conftest.$ac_objext \
27241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027242LIBS=$ac_check_lib_save_LIBS
27243fi
cristy8b350f62009-11-15 23:12:43 +000027244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027245$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027246if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27248fi
27249
27250 fi
27251
27252 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027253 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027254if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027255
cristy3ed852e2009-09-05 21:47:34 +000027256fi
27257
cristy3ed852e2009-09-05 21:47:34 +000027258 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027261if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 $as_echo_n "(cached) " >&6
27263else
27264 ac_check_lib_save_LIBS=$LIBS
27265LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027267/* end confdefs.h. */
27268
27269/* Override any GCC internal prototype to avoid an error.
27270 Use char because int might match the return type of a GCC
27271 builtin and then its argument prototype would still apply. */
27272#ifdef __cplusplus
27273extern "C"
27274#endif
27275char shmat ();
27276int
27277main ()
27278{
27279return shmat ();
27280 ;
27281 return 0;
27282}
27283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027285 ac_cv_lib_ipc_shmat=yes
27286else
cristy8b350f62009-11-15 23:12:43 +000027287 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027288fi
cristy8b350f62009-11-15 23:12:43 +000027289rm -f core conftest.err conftest.$ac_objext \
27290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027291LIBS=$ac_check_lib_save_LIBS
27292fi
cristy8b350f62009-11-15 23:12:43 +000027293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027295if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27297fi
27298
27299 fi
27300 fi
27301
27302 # Check for libraries that X11R6 Xt/Xaw programs need.
27303 ac_save_LDFLAGS=$LDFLAGS
27304 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27305 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27306 # check for ICE first), but we must link in the order -lSM -lICE or
27307 # we get undefined symbols. So assume we have SM if we have ICE.
27308 # These have to be linked with before -lX11, unlike the other
27309 # libraries we check for below, so use a different variable.
27310 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027313if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 $as_echo_n "(cached) " >&6
27315else
27316 ac_check_lib_save_LIBS=$LIBS
27317LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027319/* end confdefs.h. */
27320
27321/* Override any GCC internal prototype to avoid an error.
27322 Use char because int might match the return type of a GCC
27323 builtin and then its argument prototype would still apply. */
27324#ifdef __cplusplus
27325extern "C"
27326#endif
27327char IceConnectionNumber ();
27328int
27329main ()
27330{
27331return IceConnectionNumber ();
27332 ;
27333 return 0;
27334}
27335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027337 ac_cv_lib_ICE_IceConnectionNumber=yes
27338else
cristy8b350f62009-11-15 23:12:43 +000027339 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027340fi
cristy8b350f62009-11-15 23:12:43 +000027341rm -f core conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027343LIBS=$ac_check_lib_save_LIBS
27344fi
cristy8b350f62009-11-15 23:12:43 +000027345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027347if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027348 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27349fi
27350
27351 LDFLAGS=$ac_save_LDFLAGS
27352
27353fi
27354
27355if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27357$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27361$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027362 LDFLAGS="$LDFLAGS $X_LIBS"
27363 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27364 LIBS="$X11_LIBS $LIBS"
27365 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27366
27367
cristy8b350f62009-11-15 23:12:43 +000027368$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027369
27370 #
27371 # Check for X11 shared memory extension
27372 #
27373 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027374 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027375if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 have_shmctl='yes'
27377fi
27378
27379 if test "$have_shmctl" != 'yes'; then
27380 PERSIST_LIBS=$LIBS
27381 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027383/* end confdefs.h. */
27384
27385/* Override any GCC internal prototype to avoid an error.
27386 Use char because int might match the return type of a GCC
27387 builtin and then its argument prototype would still apply. */
27388#ifdef __cplusplus
27389extern "C"
27390#endif
27391char shmctl ();
27392int
27393main ()
27394{
27395return shmctl ();
27396 ;
27397 return 0;
27398}
27399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027401 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027402fi
cristy8b350f62009-11-15 23:12:43 +000027403rm -f core conftest.err conftest.$ac_objext \
27404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027405 LIBS=$PERSIST_LIBS
27406 fi
27407
27408 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027410$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027411if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027412 $as_echo_n "(cached) " >&6
27413else
27414 ac_check_lib_save_LIBS=$LIBS
27415LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027417/* end confdefs.h. */
27418
27419/* Override any GCC internal prototype to avoid an error.
27420 Use char because int might match the return type of a GCC
27421 builtin and then its argument prototype would still apply. */
27422#ifdef __cplusplus
27423extern "C"
27424#endif
27425char XShmAttach ();
27426int
27427main ()
27428{
27429return XShmAttach ();
27430 ;
27431 return 0;
27432}
27433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027434if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027435 ac_cv_lib_Xext_XShmAttach=yes
27436else
cristy8b350f62009-11-15 23:12:43 +000027437 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027438fi
cristy8b350f62009-11-15 23:12:43 +000027439rm -f core conftest.err conftest.$ac_objext \
27440 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027441LIBS=$ac_check_lib_save_LIBS
27442fi
cristy8b350f62009-11-15 23:12:43 +000027443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027444$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027445if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027446 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027447$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027448
27449fi
27450
27451 fi
27452
27453 #
27454 # Check for X11 shape extension
27455 #
cristy8b350f62009-11-15 23:12:43 +000027456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027457$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027458if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027459 $as_echo_n "(cached) " >&6
27460else
27461 ac_check_lib_save_LIBS=$LIBS
27462LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027464/* end confdefs.h. */
27465
27466/* Override any GCC internal prototype to avoid an error.
27467 Use char because int might match the return type of a GCC
27468 builtin and then its argument prototype would still apply. */
27469#ifdef __cplusplus
27470extern "C"
27471#endif
27472char XShapeCombineMask ();
27473int
27474main ()
27475{
27476return XShapeCombineMask ();
27477 ;
27478 return 0;
27479}
27480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027482 ac_cv_lib_Xext_XShapeCombineMask=yes
27483else
cristy8b350f62009-11-15 23:12:43 +000027484 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027485fi
cristy8b350f62009-11-15 23:12:43 +000027486rm -f core conftest.err conftest.$ac_objext \
27487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027488LIBS=$ac_check_lib_save_LIBS
27489fi
cristy8b350f62009-11-15 23:12:43 +000027490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027491$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027492if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027493 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027494$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027495
27496fi
27497
cristy8b350f62009-11-15 23:12:43 +000027498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027499$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027500if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027501 $as_echo_n "(cached) " >&6
27502else
27503 ac_check_lib_save_LIBS=$LIBS
27504LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027506/* end confdefs.h. */
27507
27508/* Override any GCC internal prototype to avoid an error.
27509 Use char because int might match the return type of a GCC
27510 builtin and then its argument prototype would still apply. */
27511#ifdef __cplusplus
27512extern "C"
27513#endif
27514char XtSetEventDispatcher ();
27515int
27516main ()
27517{
27518return XtSetEventDispatcher ();
27519 ;
27520 return 0;
27521}
27522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027523if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027524 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27525else
cristy8b350f62009-11-15 23:12:43 +000027526 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027527fi
cristy8b350f62009-11-15 23:12:43 +000027528rm -f core conftest.err conftest.$ac_objext \
27529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027530LIBS=$ac_check_lib_save_LIBS
27531fi
cristy8b350f62009-11-15 23:12:43 +000027532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027533$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027534if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027535 XT_LIBS='-lXt'
27536fi
27537
27538 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27539fi
27540if test "$no_x" != 'yes'; then
27541 have_x='yes'
27542else
27543 have_x='no'
27544fi
cristy73bd4a52010-10-05 11:24:23 +000027545 if test "$have_x" = 'yes'; then
27546 X11_DELEGATE_TRUE=
27547 X11_DELEGATE_FALSE='#'
27548else
27549 X11_DELEGATE_TRUE='#'
27550 X11_DELEGATE_FALSE=
27551fi
27552
cristy3ed852e2009-09-05 21:47:34 +000027553
27554
27555
27556
27557#
27558# Check for ZLIB
27559#
27560
27561# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027562if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 withval=$with_zlib; with_zlib=$withval
27564else
27565 with_zlib='yes'
27566fi
27567
27568
27569if test "$with_zlib" != 'yes'; then
27570 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27571fi
27572
27573have_zlib='no'
27574ZLIB_LIBS=''
27575if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027576 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27577$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027579$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027580 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27581$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027582 ZLIB_LIBS=''
27583 failed=0
27584 passed=0
cristy8b350f62009-11-15 23:12:43 +000027585 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027586if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027587 passed=`expr $passed + 1`
27588else
27589 failed=`expr $failed + 1`
27590fi
27591
27592
cristy8b350f62009-11-15 23:12:43 +000027593 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027594if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027595 passed=`expr $passed + 1`
27596else
27597 failed=`expr $failed + 1`
27598fi
27599
27600
cristy8b350f62009-11-15 23:12:43 +000027601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027602$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027603if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027604 $as_echo_n "(cached) " >&6
27605else
27606 ac_check_lib_save_LIBS=$LIBS
27607LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027609/* end confdefs.h. */
27610
27611/* Override any GCC internal prototype to avoid an error.
27612 Use char because int might match the return type of a GCC
27613 builtin and then its argument prototype would still apply. */
27614#ifdef __cplusplus
27615extern "C"
27616#endif
27617char compress ();
27618int
27619main ()
27620{
27621return compress ();
27622 ;
27623 return 0;
27624}
27625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027627 ac_cv_lib_z_compress=yes
27628else
cristy8b350f62009-11-15 23:12:43 +000027629 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027630fi
cristy8b350f62009-11-15 23:12:43 +000027631rm -f core conftest.err conftest.$ac_objext \
27632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027633LIBS=$ac_check_lib_save_LIBS
27634fi
cristy8b350f62009-11-15 23:12:43 +000027635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027636$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027637if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027638 passed=`expr $passed + 1`
27639else
27640 failed=`expr $failed + 1`
27641fi
27642
cristy8b350f62009-11-15 23:12:43 +000027643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027644$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027645if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027646 $as_echo_n "(cached) " >&6
27647else
27648 ac_check_lib_save_LIBS=$LIBS
27649LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651/* end confdefs.h. */
27652
27653/* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
27656#ifdef __cplusplus
27657extern "C"
27658#endif
27659char uncompress ();
27660int
27661main ()
27662{
27663return uncompress ();
27664 ;
27665 return 0;
27666}
27667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 ac_cv_lib_z_uncompress=yes
27670else
cristy8b350f62009-11-15 23:12:43 +000027671 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027672fi
cristy8b350f62009-11-15 23:12:43 +000027673rm -f core conftest.err conftest.$ac_objext \
27674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027675LIBS=$ac_check_lib_save_LIBS
27676fi
cristy8b350f62009-11-15 23:12:43 +000027677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027678$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027679if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027680 passed=`expr $passed + 1`
27681else
27682 failed=`expr $failed + 1`
27683fi
27684
cristy8b350f62009-11-15 23:12:43 +000027685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027686$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027687if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027688 $as_echo_n "(cached) " >&6
27689else
27690 ac_check_lib_save_LIBS=$LIBS
27691LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027693/* end confdefs.h. */
27694
27695/* Override any GCC internal prototype to avoid an error.
27696 Use char because int might match the return type of a GCC
27697 builtin and then its argument prototype would still apply. */
27698#ifdef __cplusplus
27699extern "C"
27700#endif
27701char deflate ();
27702int
27703main ()
27704{
27705return deflate ();
27706 ;
27707 return 0;
27708}
27709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027710if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027711 ac_cv_lib_z_deflate=yes
27712else
cristy8b350f62009-11-15 23:12:43 +000027713 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027714fi
cristy8b350f62009-11-15 23:12:43 +000027715rm -f core conftest.err conftest.$ac_objext \
27716 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027717LIBS=$ac_check_lib_save_LIBS
27718fi
cristy8b350f62009-11-15 23:12:43 +000027719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027721if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 passed=`expr $passed + 1`
27723else
27724 failed=`expr $failed + 1`
27725fi
27726
cristy8b350f62009-11-15 23:12:43 +000027727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027728$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027729if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027730 $as_echo_n "(cached) " >&6
27731else
27732 ac_check_lib_save_LIBS=$LIBS
27733LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027735/* end confdefs.h. */
27736
27737/* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
27740#ifdef __cplusplus
27741extern "C"
27742#endif
27743char inflate ();
27744int
27745main ()
27746{
27747return inflate ();
27748 ;
27749 return 0;
27750}
27751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 ac_cv_lib_z_inflate=yes
27754else
cristy8b350f62009-11-15 23:12:43 +000027755 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027756fi
cristy8b350f62009-11-15 23:12:43 +000027757rm -f core conftest.err conftest.$ac_objext \
27758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027759LIBS=$ac_check_lib_save_LIBS
27760fi
cristy8b350f62009-11-15 23:12:43 +000027761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027762$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027763if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 passed=`expr $passed + 1`
27765else
27766 failed=`expr $failed + 1`
27767fi
27768
cristy8b350f62009-11-15 23:12:43 +000027769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027770$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027771if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027772 $as_echo_n "(cached) " >&6
27773else
27774 ac_check_lib_save_LIBS=$LIBS
27775LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027777/* end confdefs.h. */
27778
27779/* Override any GCC internal prototype to avoid an error.
27780 Use char because int might match the return type of a GCC
27781 builtin and then its argument prototype would still apply. */
27782#ifdef __cplusplus
27783extern "C"
27784#endif
27785char gzseek ();
27786int
27787main ()
27788{
27789return gzseek ();
27790 ;
27791 return 0;
27792}
27793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 ac_cv_lib_z_gzseek=yes
27796else
cristy8b350f62009-11-15 23:12:43 +000027797 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027798fi
cristy8b350f62009-11-15 23:12:43 +000027799rm -f core conftest.err conftest.$ac_objext \
27800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027801LIBS=$ac_check_lib_save_LIBS
27802fi
cristy8b350f62009-11-15 23:12:43 +000027803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027804$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027805if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027806 passed=`expr $passed + 1`
27807else
27808 failed=`expr $failed + 1`
27809fi
27810
cristy8b350f62009-11-15 23:12:43 +000027811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027812$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027813if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027814 $as_echo_n "(cached) " >&6
27815else
27816 ac_check_lib_save_LIBS=$LIBS
27817LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027819/* end confdefs.h. */
27820
27821/* Override any GCC internal prototype to avoid an error.
27822 Use char because int might match the return type of a GCC
27823 builtin and then its argument prototype would still apply. */
27824#ifdef __cplusplus
27825extern "C"
27826#endif
27827char gztell ();
27828int
27829main ()
27830{
27831return gztell ();
27832 ;
27833 return 0;
27834}
27835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027836if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027837 ac_cv_lib_z_gztell=yes
27838else
cristy8b350f62009-11-15 23:12:43 +000027839 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027840fi
cristy8b350f62009-11-15 23:12:43 +000027841rm -f core conftest.err conftest.$ac_objext \
27842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027843LIBS=$ac_check_lib_save_LIBS
27844fi
cristy8b350f62009-11-15 23:12:43 +000027845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027846$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027847if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027848 passed=`expr $passed + 1`
27849else
27850 failed=`expr $failed + 1`
27851fi
27852
cristy8b350f62009-11-15 23:12:43 +000027853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo_n "checking if ZLIB package is complete... " >&6; }
27855 if test $passed -gt 0; then
27856 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027857 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27858$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027859 have_zlib='no (failed tests)'
27860 else
27861 ZLIB_LIBS='-lz'
27862 LIBS="$ZLIB_LIBS $LIBS"
27863
cristy8b350f62009-11-15 23:12:43 +000027864$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027865
cristy09b53e12011-10-14 12:47:22 +000027866 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27867$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027868 have_zlib='yes'
27869 fi
27870 else
cristy09b53e12011-10-14 12:47:22 +000027871 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27872$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027873 fi
27874fi
cristy73bd4a52010-10-05 11:24:23 +000027875 if test "$have_zlib" = 'yes'; then
27876 ZLIB_DELEGATE_TRUE=
27877 ZLIB_DELEGATE_FALSE='#'
27878else
27879 ZLIB_DELEGATE_TRUE='#'
27880 ZLIB_DELEGATE_FALSE=
27881fi
27882
cristy3ed852e2009-09-05 21:47:34 +000027883
27884
27885#
27886# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27887#
27888LIB_DL=''
27889if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027891$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027892if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027893 $as_echo_n "(cached) " >&6
27894else
27895 ac_check_lib_save_LIBS=$LIBS
27896LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027898/* end confdefs.h. */
27899
27900/* Override any GCC internal prototype to avoid an error.
27901 Use char because int might match the return type of a GCC
27902 builtin and then its argument prototype would still apply. */
27903#ifdef __cplusplus
27904extern "C"
27905#endif
27906char dlopen ();
27907int
27908main ()
27909{
27910return dlopen ();
27911 ;
27912 return 0;
27913}
27914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027916 ac_cv_lib_dl_dlopen=yes
27917else
cristy8b350f62009-11-15 23:12:43 +000027918 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027919fi
cristy8b350f62009-11-15 23:12:43 +000027920rm -f core conftest.err conftest.$ac_objext \
27921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027922LIBS=$ac_check_lib_save_LIBS
27923fi
cristy8b350f62009-11-15 23:12:43 +000027924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027926if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 LIB_DL='-ldl'
27928fi
27929
27930 LIBS="$LIB_DL $LIBS"
27931fi
27932
27933
27934
27935#
27936# Check for Autotrace delegate library.
27937#
27938
27939# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027940if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 withval=$with_autotrace; with_autotrace=$withval
27942else
27943 with_autotrace='no'
27944fi
27945
27946
27947if test "$with_autotrace" != 'yes'; then
27948 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27949fi
27950
27951have_autotrace='no'
27952AUTOTRACE_CFLAGS=""
27953AUTOTRACE_LIBS=""
27954AUTOTRACE_PKG=""
27955if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27957$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027958
27959pkg_failed=no
27960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27961$as_echo_n "checking for AUTOTRACE... " >&6; }
27962
27963if test -n "$AUTOTRACE_CFLAGS"; then
27964 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27965 elif test -n "$PKG_CONFIG"; then
27966 if test -n "$PKG_CONFIG" && \
27967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27968 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27969 ac_status=$?
27970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27971 test $ac_status = 0; }; then
27972 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27973else
27974 pkg_failed=yes
27975fi
27976 else
27977 pkg_failed=untried
27978fi
27979if test -n "$AUTOTRACE_LIBS"; then
27980 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27981 elif test -n "$PKG_CONFIG"; then
27982 if test -n "$PKG_CONFIG" && \
27983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27984 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27985 ac_status=$?
27986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27987 test $ac_status = 0; }; then
27988 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27989else
27990 pkg_failed=yes
27991fi
27992 else
27993 pkg_failed=untried
27994fi
27995
27996
27997
27998if test $pkg_failed = yes; then
27999
28000if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28001 _pkg_short_errors_supported=yes
28002else
28003 _pkg_short_errors_supported=no
28004fi
28005 if test $_pkg_short_errors_supported = yes; then
28006 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28007 else
28008 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28009 fi
28010 # Put the nasty error message in config.log where it belongs
28011 echo "$AUTOTRACE_PKG_ERRORS" >&5
28012
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28014$as_echo "no" >&6; }
28015 have_autotrace=no
28016elif test $pkg_failed = untried; then
28017 have_autotrace=no
28018else
28019 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28020 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28022$as_echo "yes" >&6; }
28023 have_autotrace=yes
28024fi
cristy09b53e12011-10-14 12:47:22 +000028025 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28026$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028027fi
28028
28029if test "$have_autotrace" = 'yes'; then
28030 failed=0
28031
cristy8b350f62009-11-15 23:12:43 +000028032$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028033
28034 if test "$with_modules" = 'no'; then
28035 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28036 fi
28037fi
28038
cristy73bd4a52010-10-05 11:24:23 +000028039 if test "$have_autotrace" = 'yes'; then
28040 AUTOTRACE_DELEGATE_TRUE=
28041 AUTOTRACE_DELEGATE_FALSE='#'
28042else
28043 AUTOTRACE_DELEGATE_TRUE='#'
28044 AUTOTRACE_DELEGATE_FALSE=
28045fi
28046
cristy3ed852e2009-09-05 21:47:34 +000028047
28048
28049
28050
28051#
28052# Check for Display Postscript delegate library.
28053#
28054
28055# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028056if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028057 withval=$with_dps; with_dps=$withval
28058else
28059 with_dps='yes'
28060fi
28061
28062
28063if test "$with_dps" != 'yes'; then
28064 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28065fi
28066
28067have_dps='no'
28068DPS_LIBS=''
28069if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028070 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28071$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028073$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28075$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028076 failed=0
28077 passed=0
28078 PERSIST_CPPFLAGS="$CPPFLAGS"
28079 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028080 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 +000028081if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028082 passed=`expr $passed + 1`
28083else
28084 failed=`expr $failed + 1`
28085fi
28086
28087
28088 # DPS issues:
28089 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28090 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28091 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28092 # ImageMagick itself doesn't use -lXt.
28093 have_libdps='no'
28094 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028096$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028097if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028098 $as_echo_n "(cached) " >&6
28099else
28100 ac_check_lib_save_LIBS=$LIBS
28101LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028103/* end confdefs.h. */
28104
28105/* Override any GCC internal prototype to avoid an error.
28106 Use char because int might match the return type of a GCC
28107 builtin and then its argument prototype would still apply. */
28108#ifdef __cplusplus
28109extern "C"
28110#endif
28111char DPSInitialize ();
28112int
28113main ()
28114{
28115return DPSInitialize ();
28116 ;
28117 return 0;
28118}
28119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028121 ac_cv_lib_dps_DPSInitialize=yes
28122else
cristy8b350f62009-11-15 23:12:43 +000028123 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028124fi
cristy8b350f62009-11-15 23:12:43 +000028125rm -f core conftest.err conftest.$ac_objext \
28126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028127LIBS=$ac_check_lib_save_LIBS
28128fi
cristy8b350f62009-11-15 23:12:43 +000028129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028130$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028131if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028132 have_libdps='yes'
28133else
28134 have_libdps='no'
28135fi
28136
28137 if test "$have_libdps" != 'yes'; then
28138 # Unset cache variable so we can try again.
28139 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028141$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028142if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028143 $as_echo_n "(cached) " >&6
28144else
28145 ac_check_lib_save_LIBS=$LIBS
28146LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028148/* end confdefs.h. */
28149
28150/* Override any GCC internal prototype to avoid an error.
28151 Use char because int might match the return type of a GCC
28152 builtin and then its argument prototype would still apply. */
28153#ifdef __cplusplus
28154extern "C"
28155#endif
28156char DPSInitialize ();
28157int
28158main ()
28159{
28160return DPSInitialize ();
28161 ;
28162 return 0;
28163}
28164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028165if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028166 ac_cv_lib_dps_DPSInitialize=yes
28167else
cristy8b350f62009-11-15 23:12:43 +000028168 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028169fi
cristy8b350f62009-11-15 23:12:43 +000028170rm -f core conftest.err conftest.$ac_objext \
28171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028172LIBS=$ac_check_lib_save_LIBS
28173fi
cristy8b350f62009-11-15 23:12:43 +000028174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028175$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028176if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028177 have_libdps='yes'
28178else
28179 have_libdps='no'
28180fi
28181
28182 if test "$have_libdps" = 'yes'; then
28183 LIBDPS_XT='-lXt'
28184 fi
28185 fi
28186 if test "$have_libdps" = 'yes'; then
28187 passed=`expr $passed + 1`
28188 else
28189 failed=`expr $failed + 1`
28190 fi
cristy8b350f62009-11-15 23:12:43 +000028191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028192$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028193if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028194 $as_echo_n "(cached) " >&6
28195else
28196 ac_check_lib_save_LIBS=$LIBS
28197LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028199/* end confdefs.h. */
28200
28201/* Override any GCC internal prototype to avoid an error.
28202 Use char because int might match the return type of a GCC
28203 builtin and then its argument prototype would still apply. */
28204#ifdef __cplusplus
28205extern "C"
28206#endif
28207char XDPSPixelsPerPoint ();
28208int
28209main ()
28210{
28211return XDPSPixelsPerPoint ();
28212 ;
28213 return 0;
28214}
28215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028217 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28218else
cristy8b350f62009-11-15 23:12:43 +000028219 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028220fi
cristy8b350f62009-11-15 23:12:43 +000028221rm -f core conftest.err conftest.$ac_objext \
28222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028223LIBS=$ac_check_lib_save_LIBS
28224fi
cristy8b350f62009-11-15 23:12:43 +000028225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028226$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028227if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 passed=`expr $passed + 1`
28229else
28230 failed=`expr $failed + 1`
28231fi
28232
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo_n "checking if DPS package is complete... " >&6; }
28235 if test $passed -gt 0; then
28236 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028237 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28238$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028239 have_dps='no (failed tests)'
28240 CPPFLAGS="$PERSIST_CPPFLAGS"
28241 else
28242 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28243 LIBS="$DPS_LIBS $LIBS"
28244
cristy8b350f62009-11-15 23:12:43 +000028245$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028246
cristy09b53e12011-10-14 12:47:22 +000028247 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28248$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028249 have_dps='yes'
28250 fi
28251 else
cristy09b53e12011-10-14 12:47:22 +000028252 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28253$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028254 CPPFLAGS=$PERSIST_CPPFLAGS
28255 fi
28256fi
cristy73bd4a52010-10-05 11:24:23 +000028257 if test "$have_dps" = 'yes'; then
28258 DPS_DELEGATE_TRUE=
28259 DPS_DELEGATE_FALSE='#'
28260else
28261 DPS_DELEGATE_TRUE='#'
28262 DPS_DELEGATE_FALSE=
28263fi
28264
cristy3ed852e2009-09-05 21:47:34 +000028265
28266
28267
28268#
28269# Check for DJVU delegate library.
28270#
28271
28272# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028273if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028274 withval=$with_djvu; with_djvu=$withval
28275else
28276 with_djvu='yes'
28277fi
28278
28279
28280if test "$with_djvu" != 'yes'; then
28281 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28282fi
28283
28284have_djvu='no'
28285DJVU_LIBS=''
28286if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028287 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28288$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028290$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028291 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28292$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028293 failed=0
28294 passed=0
cristy8b350f62009-11-15 23:12:43 +000028295 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 +000028296if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028297 passed=`expr $passed + 1`
28298else
28299 failed=`expr $failed + 1`
28300fi
28301
28302
cristy8b350f62009-11-15 23:12:43 +000028303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028304$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028305if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028306 $as_echo_n "(cached) " >&6
28307else
28308 ac_check_lib_save_LIBS=$LIBS
28309LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028311/* end confdefs.h. */
28312
28313/* Override any GCC internal prototype to avoid an error.
28314 Use char because int might match the return type of a GCC
28315 builtin and then its argument prototype would still apply. */
28316#ifdef __cplusplus
28317extern "C"
28318#endif
28319char ddjvu_context_create ();
28320int
28321main ()
28322{
28323return ddjvu_context_create ();
28324 ;
28325 return 0;
28326}
28327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028328if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028329 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28330else
cristy8b350f62009-11-15 23:12:43 +000028331 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028332fi
cristy8b350f62009-11-15 23:12:43 +000028333rm -f core conftest.err conftest.$ac_objext \
28334 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028335LIBS=$ac_check_lib_save_LIBS
28336fi
cristy8b350f62009-11-15 23:12:43 +000028337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028338$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028339if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028340 passed=`expr $passed + 1`
28341else
28342 failed=`expr $failed + 1`
28343fi
28344
cristy8b350f62009-11-15 23:12:43 +000028345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028346$as_echo_n "checking if DJVU package is complete... " >&6; }
28347 if test $passed -gt 0; then
28348 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28350$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028351 have_djvu='no (failed tests)'
28352 else
28353 DJVU_LIBS='-ldjvulibre'
28354 LIBS="$DJVU_LIBS $LIBS"
28355
cristy8b350f62009-11-15 23:12:43 +000028356$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028357
cristy09b53e12011-10-14 12:47:22 +000028358 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28359$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028360 have_djvu='yes'
28361 fi
28362 else
cristy09b53e12011-10-14 12:47:22 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28364$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028365 fi
28366fi
cristy73bd4a52010-10-05 11:24:23 +000028367 if test "$have_djvu" = 'yes'; then
28368 DJVU_DELEGATE_TRUE=
28369 DJVU_DELEGATE_FALSE='#'
28370else
28371 DJVU_DELEGATE_TRUE='#'
28372 DJVU_DELEGATE_FALSE=
28373fi
28374
cristy3ed852e2009-09-05 21:47:34 +000028375
28376
28377
28378#
cristy430a7312010-01-21 20:44:04 +000028379# Set DejaVu font directory.
28380#
28381
28382# Check whether --with-dejavu-font-dir was given.
28383if test "${with_dejavu_font_dir+set}" = set; then :
28384 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28385else
28386 with_dejavu_font_dir='default'
28387fi
28388
28389
28390if test "$with_dejavu_font_dir" != 'default'; then
28391 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28392fi
28393
28394
28395#
cristy3ed852e2009-09-05 21:47:34 +000028396# Check for FFTW delegate library.
28397#
28398
28399# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028400if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028401 withval=$with_fftw; with_fftw=$withval
28402else
28403 with_fftw='yes'
28404fi
28405
28406
28407if test "$with_fftw" != 'yes'; then
28408 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28409fi
28410
cristy81beccd2011-10-03 18:17:24 +000028411have_fftw='no'
28412FFTW_LIBS=''
28413if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028414 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28415$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28417$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028418 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28419$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028420 failed=0
28421 passed=0
28422 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28423if test "x$ac_cv_header_fftw3_h" = xyes; then :
28424 passed=`expr $passed + 1`
28425else
28426 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028427fi
28428
cristy81beccd2011-10-03 18:17:24 +000028429
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28431$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28432if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28433 $as_echo_n "(cached) " >&6
28434else
28435 ac_check_lib_save_LIBS=$LIBS
28436LIBS="-lfftw3 $LIBS"
28437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28438/* end confdefs.h. */
28439
28440/* Override any GCC internal prototype to avoid an error.
28441 Use char because int might match the return type of a GCC
28442 builtin and then its argument prototype would still apply. */
28443#ifdef __cplusplus
28444extern "C"
28445#endif
28446char fftw_execute ();
28447int
28448main ()
28449{
28450return fftw_execute ();
28451 ;
28452 return 0;
28453}
28454_ACEOF
28455if ac_fn_c_try_link "$LINENO"; then :
28456 ac_cv_lib_fftw3_fftw_execute=yes
28457else
28458 ac_cv_lib_fftw3_fftw_execute=no
28459fi
28460rm -f core conftest.err conftest.$ac_objext \
28461 conftest$ac_exeext conftest.$ac_ext
28462LIBS=$ac_check_lib_save_LIBS
28463fi
28464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28465$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28466if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28467 passed=`expr $passed + 1`
28468else
28469 failed=`expr $failed + 1`
28470fi
28471
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28473$as_echo_n "checking if FFTW package is complete... " >&6; }
28474 if test $passed -gt 0; then
28475 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028476 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28477$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028478 have_fftw='no (failed tests)'
28479 else
28480 FFTW_LIBS='-lfftw3'
28481 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028482
cristy8b350f62009-11-15 23:12:43 +000028483$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028484
cristy09b53e12011-10-14 12:47:22 +000028485 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28486$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028487 have_fftw='yes'
28488 fi
28489 else
cristy09b53e12011-10-14 12:47:22 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28491$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028492 fi
28493fi
cristy73bd4a52010-10-05 11:24:23 +000028494 if test "$have_fftw" = 'yes'; then
28495 FFTW_DELEGATE_TRUE=
28496 FFTW_DELEGATE_FALSE='#'
28497else
28498 FFTW_DELEGATE_TRUE='#'
28499 FFTW_DELEGATE_FALSE=
28500fi
28501
cristy3ed852e2009-09-05 21:47:34 +000028502
28503
28504
28505#
28506# Check for FlashPIX delegate library.
28507#
28508
28509# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028510if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028511 withval=$with_fpx; with_fpx=$withval
28512else
28513 with_fpx='yes'
28514fi
28515
28516
28517if test "$with_fpx" != 'yes'; then
28518 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28519fi
28520
28521have_fpx='no'
28522FPX_LIBS=''
28523if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028524 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28525$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028527$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28529$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028530 failed=0
28531 passed=0
28532 ac_ext=cpp
28533ac_cpp='$CXXCPP $CPPFLAGS'
28534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28537
28538
cristy8b350f62009-11-15 23:12:43 +000028539ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028540if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 passed=`expr $passed + 1`
28542else
28543 failed=`expr $failed + 1`
28544fi
28545
28546
cristy8b350f62009-11-15 23:12:43 +000028547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028548$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028549if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028550 $as_echo_n "(cached) " >&6
28551else
28552 ac_check_lib_save_LIBS=$LIBS
28553LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028555/* end confdefs.h. */
28556
28557/* Override any GCC internal prototype to avoid an error.
28558 Use char because int might match the return type of a GCC
28559 builtin and then its argument prototype would still apply. */
28560#ifdef __cplusplus
28561extern "C"
28562#endif
28563char FPX_OpenImageByFilename ();
28564int
28565main ()
28566{
28567return FPX_OpenImageByFilename ();
28568 ;
28569 return 0;
28570}
28571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028572if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028573 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28574else
cristy8b350f62009-11-15 23:12:43 +000028575 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028576fi
cristy8b350f62009-11-15 23:12:43 +000028577rm -f core conftest.err conftest.$ac_objext \
28578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028579LIBS=$ac_check_lib_save_LIBS
28580fi
cristy8b350f62009-11-15 23:12:43 +000028581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028582$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028583if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028584 passed=`expr $passed + 1`
28585else
28586 failed=`expr $failed + 1`
28587fi
28588
28589 ac_ext=c
28590ac_cpp='$CPP $CPPFLAGS'
28591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28593ac_compiler_gnu=$ac_cv_c_compiler_gnu
28594
cristy8b350f62009-11-15 23:12:43 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28597 if test $passed -gt 0; then
28598 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028599 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28600$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028601 have_fpx='no (failed tests)'
28602 else
28603 FPX_LIBS='-lfpx'
28604
cristy8b350f62009-11-15 23:12:43 +000028605$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028606
cristy09b53e12011-10-14 12:47:22 +000028607 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28608$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028609 have_fpx='yes'
28610 PERLMAINCC="$CXX"
28611 fi
28612 else
cristy09b53e12011-10-14 12:47:22 +000028613 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28614$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028615 fi
28616fi
cristy73bd4a52010-10-05 11:24:23 +000028617 if test "$have_fpx" = 'yes'; then
28618 FPX_DELEGATE_TRUE=
28619 FPX_DELEGATE_FALSE='#'
28620else
28621 FPX_DELEGATE_TRUE='#'
28622 FPX_DELEGATE_FALSE=
28623fi
28624
cristy3ed852e2009-09-05 21:47:34 +000028625
28626
28627
28628#
28629# Check for fontconfig delegate library.
28630#
28631
28632# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028633if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028634 withval=$with_fontconfig; with_fontconfig=$withval
28635else
28636 with_fontconfig=$have_x
28637fi
28638
28639
28640if test "$with_fontconfig" != 'yes'; then
28641 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28642fi
28643
28644have_fontconfig='no'
28645FONTCONFIG_CFLAGS=""
28646FONTCONFIG_LIBS=""
28647FONTCONFIG_PKG=""
28648if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028649 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28650$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028651
28652pkg_failed=no
28653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28654$as_echo_n "checking for FONTCONFIG... " >&6; }
28655
28656if test -n "$FONTCONFIG_CFLAGS"; then
28657 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28658 elif test -n "$PKG_CONFIG"; then
28659 if test -n "$PKG_CONFIG" && \
28660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28661 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28662 ac_status=$?
28663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28664 test $ac_status = 0; }; then
28665 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28666else
28667 pkg_failed=yes
28668fi
28669 else
28670 pkg_failed=untried
28671fi
28672if test -n "$FONTCONFIG_LIBS"; then
28673 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28674 elif test -n "$PKG_CONFIG"; then
28675 if test -n "$PKG_CONFIG" && \
28676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28677 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28678 ac_status=$?
28679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28680 test $ac_status = 0; }; then
28681 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28682else
28683 pkg_failed=yes
28684fi
28685 else
28686 pkg_failed=untried
28687fi
28688
28689
28690
28691if test $pkg_failed = yes; then
28692
28693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28694 _pkg_short_errors_supported=yes
28695else
28696 _pkg_short_errors_supported=no
28697fi
28698 if test $_pkg_short_errors_supported = yes; then
28699 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28700 else
28701 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28702 fi
28703 # Put the nasty error message in config.log where it belongs
28704 echo "$FONTCONFIG_PKG_ERRORS" >&5
28705
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28707$as_echo "no" >&6; }
28708 have_fontconfig=no
28709elif test $pkg_failed = untried; then
28710 have_fontconfig=no
28711else
28712 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28713 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28715$as_echo "yes" >&6; }
28716 have_fontconfig=yes
28717fi
cristy09b53e12011-10-14 12:47:22 +000028718 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28719$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028720fi
28721
28722if test "$have_fontconfig" = 'yes'; then
28723
cristy8b350f62009-11-15 23:12:43 +000028724$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028725
cristyd09bcf92010-03-25 03:04:45 +000028726 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028727 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028728 fi
cristy3ed852e2009-09-05 21:47:34 +000028729fi
28730
cristy73bd4a52010-10-05 11:24:23 +000028731 if test "$have_fontconfig" = 'yes'; then
28732 FONTCONFIG_DELEGATE_TRUE=
28733 FONTCONFIG_DELEGATE_FALSE='#'
28734else
28735 FONTCONFIG_DELEGATE_TRUE='#'
28736 FONTCONFIG_DELEGATE_FALSE=
28737fi
28738
cristy3ed852e2009-09-05 21:47:34 +000028739
28740
28741
28742
28743#
cristy81beccd2011-10-03 18:17:24 +000028744# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028745#
28746
28747# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028748if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028749 withval=$with_freetype; with_freetype=$withval
28750else
28751 with_freetype='yes'
28752fi
28753
28754
cristy81beccd2011-10-03 18:17:24 +000028755
cristy3ed852e2009-09-05 21:47:34 +000028756if test "$with_freetype" != 'yes'; then
28757 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28758fi
28759
cristy81beccd2011-10-03 18:17:24 +000028760have_freetype='no'
28761FREETYPE_LIBS=''
28762if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028763 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28764$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28766$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028767 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28768$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028769 failed=0
28770 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028771 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028772 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028773 freetype_config=''
28774 # Allow the user to specify the location of freetype.
28775 if test "$with_freetype" != 'yes'; then
28776 if test -x "${with_freetype}/bin/freetype-config"; then
28777 freetype_config="${with_freetype}/bin/freetype-config"
28778 elif test -x "${with_freetype}"; then
28779 freetype_config=${with_freetype}
28780 fi
28781 fi
28782 if test -z "$freetype_config"; then
28783 # Extract the first word of "freetype-config", so it can be a program name with args.
28784set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28786$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028787if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028788 $as_echo_n "(cached) " >&6
28789else
cristy98ca0f52011-10-08 23:19:10 +000028790 case $freetype_config in
28791 [\\/]* | ?:[\\/]*)
28792 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28793 ;;
28794 *)
28795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028796for as_dir in $PATH
28797do
28798 IFS=$as_save_IFS
28799 test -z "$as_dir" && as_dir=.
28800 for ac_exec_ext in '' $ac_executable_extensions; do
28801 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 +000028802 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28804 break 2
28805 fi
28806done
28807 done
28808IFS=$as_save_IFS
28809
cristy98ca0f52011-10-08 23:19:10 +000028810 ;;
28811esac
cristy81beccd2011-10-03 18:17:24 +000028812fi
cristy98ca0f52011-10-08 23:19:10 +000028813freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028814if test -n "$freetype_config"; then
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28816$as_echo "$freetype_config" >&6; }
28817else
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28819$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028820fi
28821
cristy98ca0f52011-10-08 23:19:10 +000028822 fi
28823 if test -n "$freetype_config"; then
28824 freetype_prefix=`${freetype_config} --prefix`
28825 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28826 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28827 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028828 fi
28829
28830 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028832$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28833if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28834 $as_echo_n "(cached) " >&6
28835else
28836 ac_check_lib_save_LIBS=$LIBS
28837LIBS="-lfreetype $LIBS"
28838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28839/* end confdefs.h. */
28840
28841/* Override any GCC internal prototype to avoid an error.
28842 Use char because int might match the return type of a GCC
28843 builtin and then its argument prototype would still apply. */
28844#ifdef __cplusplus
28845extern "C"
28846#endif
28847char FT_Init_FreeType ();
28848int
28849main ()
28850{
28851return FT_Init_FreeType ();
28852 ;
28853 return 0;
28854}
28855_ACEOF
28856if ac_fn_c_try_link "$LINENO"; then :
28857 ac_cv_lib_freetype_FT_Init_FreeType=yes
28858else
28859 ac_cv_lib_freetype_FT_Init_FreeType=no
28860fi
28861rm -f core conftest.err conftest.$ac_objext \
28862 conftest$ac_exeext conftest.$ac_ext
28863LIBS=$ac_check_lib_save_LIBS
28864fi
28865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28866$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28867if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28868 FREETYPE_LIBS='-lfreetype'
28869fi
28870
cristy98ca0f52011-10-08 23:19:10 +000028871 if test "$FREETYPE_LIBS" != ''; then
28872 passed=`expr $passed + 1`
28873 else
28874 failed=`expr $failed + 1`
28875 LDFLAGS="$PERSIST_LDFLAGS"
28876 fi
cristy81beccd2011-10-03 18:17:24 +000028877 fi
28878
28879 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28880if test "x$ac_cv_header_ft2build_h" = xyes; then :
28881 FT2BUILD_H='#include <ft2build.h>'
28882else
28883 ft2build=''
28884fi
28885
28886
28887 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28888"
28889if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28890 have_freetype_h='yes'
28891else
28892 have_freetype_h='no'
28893fi
28894
28895
cristy98ca0f52011-10-08 23:19:10 +000028896 if test "$have_freetype_h" = 'yes'; then
28897 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028898 else
cristy98ca0f52011-10-08 23:19:10 +000028899 failed=`expr $failed + 1`
28900 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028901 fi
28902
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28904$as_echo_n "checking if FreeType package is complete... " >&6; }
28905 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028906 if test $failed -gt 0; then
28907 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028908 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28909$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028910 have_freetype='no (failed tests)'
28911 else
28912 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028913
cristy8b350f62009-11-15 23:12:43 +000028914$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028915
cristy98ca0f52011-10-08 23:19:10 +000028916 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028917
28918$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28919
cristy81beccd2011-10-03 18:17:24 +000028920 fi
cristy09b53e12011-10-14 12:47:22 +000028921 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28922$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028923 have_freetype='yes'
28924 fi
cristy81beccd2011-10-03 18:17:24 +000028925 else
cristy09b53e12011-10-14 12:47:22 +000028926 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28927$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028928 fi
28929fi
cristy73bd4a52010-10-05 11:24:23 +000028930 if test "$have_freetype" = 'yes'; then
28931 FREETYPE_DELEGATE_TRUE=
28932 FREETYPE_DELEGATE_FALSE='#'
28933else
28934 FREETYPE_DELEGATE_TRUE='#'
28935 FREETYPE_DELEGATE_FALSE=
28936fi
28937
cristy3ed852e2009-09-05 21:47:34 +000028938
28939
28940
cristy3ed852e2009-09-05 21:47:34 +000028941#
28942# Check for Ghostscript library or framework.
28943#
28944# Test for iapi.h & test for gsapi_new_instance in -lgs
28945# or -framework Ghostscript
28946
28947
28948# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028949if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028950 withval=$with_gslib; with_gslib=$withval
28951else
28952 with_gslib='no'
28953fi
28954
28955
cristyb7931f12009-09-25 10:22:21 +000028956gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028957if test "$with_gslib" != 'yes'; then
28958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28959fi
28960
28961have_gslib='no'
28962GS_LIBS=''
28963if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028964 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28965$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028967$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028968 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28969$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028970 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028971 failed=0
28972 passed=0
cristy8b350f62009-11-15 23:12:43 +000028973 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 +000028974if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028975 passed=`expr $passed + 1`
28976else
28977 failed=`expr $failed + 1`
28978fi
28979
28980
cristy8b350f62009-11-15 23:12:43 +000028981 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 +000028982if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028983 passed=`expr $passed + 1`
28984else
28985 failed=`expr $failed + 1`
28986fi
28987
28988
cristy73bd4a52010-10-05 11:24:23 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28990$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028991if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028992 $as_echo_n "(cached) " >&6
28993else
28994 ac_check_framework_save_LIBS=$LIBS
28995LIBS="-framework Ghostscript $LIBS"
28996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28997/* end confdefs.h. */
28998
28999/* Override any GCC internal prototype to avoid an error.
29000 Use char because int might match the return type of a GCC
29001 builtin and then its argument prototype would still apply. */
29002#ifdef __cplusplus
29003extern "C"
29004#endif
29005char gsapi_new_instance ();
29006int
29007main ()
29008{
29009return gsapi_new_instance ();
29010 ;
29011 return 0;
29012}
29013_ACEOF
29014if ac_fn_c_try_link "$LINENO"; then :
29015 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29016else
29017 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29018fi
29019rm -f core conftest.err conftest.$ac_objext \
29020 conftest$ac_exeext conftest.$ac_ext
29021LIBS=$ac_check_framework_save_LIBS
29022fi
29023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29024$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29025if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29026 framework=`expr $framework + 1`
29027else
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029029$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029030if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029031 $as_echo_n "(cached) " >&6
29032else
29033 ac_check_lib_save_LIBS=$LIBS
29034LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029036/* end confdefs.h. */
29037
29038/* Override any GCC internal prototype to avoid an error.
29039 Use char because int might match the return type of a GCC
29040 builtin and then its argument prototype would still apply. */
29041#ifdef __cplusplus
29042extern "C"
29043#endif
29044char gsapi_new_instance ();
29045int
29046main ()
29047{
29048return gsapi_new_instance ();
29049 ;
29050 return 0;
29051}
29052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029054 ac_cv_lib_gs_gsapi_new_instance=yes
29055else
cristy8b350f62009-11-15 23:12:43 +000029056 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029057fi
cristy8b350f62009-11-15 23:12:43 +000029058rm -f core conftest.err conftest.$ac_objext \
29059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029060LIBS=$ac_check_lib_save_LIBS
29061fi
cristy8b350f62009-11-15 23:12:43 +000029062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029063$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029064if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029065 passed=`expr $passed + 1`
29066else
29067 failed=`expr $failed + 1`
29068fi
cristy73bd4a52010-10-05 11:24:23 +000029069
29070fi
cristy8b350f62009-11-15 23:12:43 +000029071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029072$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29073 if test $passed -gt 0; then
29074 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029075 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29076$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029077 have_gslib='no (failed tests)'
29078 else
29079 if test $framework -gt 0; then
29080 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029081 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029082 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29083$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029084 else
cristy09b53e12011-10-14 12:47:22 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29086$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029087 GS_LIBS='-lgs'
29088 fi
29089 LIBS="$GS_LIBS $LIBS"
29090
cristy8b350f62009-11-15 23:12:43 +000029091$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029092
29093 have_gslib='yes'
29094 fi
29095 else
cristy09b53e12011-10-14 12:47:22 +000029096 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29097$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029098 fi
29099fi
cristy73bd4a52010-10-05 11:24:23 +000029100 if test "$have_gslib" = 'yes'; then
29101 GS_DELEGATE_TRUE=
29102 GS_DELEGATE_FALSE='#'
29103else
29104 GS_DELEGATE_TRUE='#'
29105 GS_DELEGATE_FALSE=
29106fi
29107
cristy3ed852e2009-09-05 21:47:34 +000029108
29109
29110# Set default font search path
29111
29112# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029113if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029114 withval=$with_fontpath; with_fontpath=$withval
29115else
29116 with_fontpath=''
29117fi
29118
29119
29120if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29121 with_fontpath=''
29122else
29123
29124cat >>confdefs.h <<_ACEOF
29125#define MAGICK_FONT_PATH "$with_fontpath"
29126_ACEOF
29127
29128fi
29129if test "$with_fontpath=" != ''; then
29130 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29131fi
29132
29133# Set Ghostscript font directory
29134
29135# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029136if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029137 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29138else
29139 with_gs_font_dir='default'
29140fi
29141
29142
29143if test "$with_gs_font_dir" != 'default'; then
29144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29145fi
29146
29147
29148#
29149# Check for GVC delegate library.
29150#
29151
29152# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029153if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029154 withval=$with_gvc; with_gvc=$withval
29155else
29156 with_gvc='yes'
29157fi
29158
29159
29160if test "$with_gvc" != 'yes'; then
29161 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29162fi
29163
29164GVC_PKG=""
29165if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029166 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29167$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029168
29169pkg_failed=no
29170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29171$as_echo_n "checking for GVC... " >&6; }
29172
29173if test -n "$GVC_CFLAGS"; then
29174 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29175 elif test -n "$PKG_CONFIG"; then
29176 if test -n "$PKG_CONFIG" && \
29177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29178 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29179 ac_status=$?
29180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29181 test $ac_status = 0; }; then
29182 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29183else
29184 pkg_failed=yes
29185fi
29186 else
29187 pkg_failed=untried
29188fi
29189if test -n "$GVC_LIBS"; then
29190 pkg_cv_GVC_LIBS="$GVC_LIBS"
29191 elif test -n "$PKG_CONFIG"; then
29192 if test -n "$PKG_CONFIG" && \
29193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29194 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29195 ac_status=$?
29196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29197 test $ac_status = 0; }; then
29198 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29199else
29200 pkg_failed=yes
29201fi
29202 else
29203 pkg_failed=untried
29204fi
29205
29206
29207
29208if test $pkg_failed = yes; then
29209
29210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29211 _pkg_short_errors_supported=yes
29212else
29213 _pkg_short_errors_supported=no
29214fi
29215 if test $_pkg_short_errors_supported = yes; then
29216 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29217 else
29218 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29219 fi
29220 # Put the nasty error message in config.log where it belongs
29221 echo "$GVC_PKG_ERRORS" >&5
29222
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29224$as_echo "no" >&6; }
29225 have_gvc=no
29226elif test $pkg_failed = untried; then
29227 have_gvc=no
29228else
29229 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29230 GVC_LIBS=$pkg_cv_GVC_LIBS
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29232$as_echo "yes" >&6; }
29233 have_gvc=yes
29234fi
cristy09b53e12011-10-14 12:47:22 +000029235 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29236$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029237fi
29238
29239if test "$have_gvc" = 'yes'; then
29240
cristy8b350f62009-11-15 23:12:43 +000029241$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029242
29243 if test "$with_modules" = 'no'; then
29244 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29245 fi
29246fi
29247
cristy73bd4a52010-10-05 11:24:23 +000029248 if test "$have_gvc" = 'yes'; then
29249 GVC_DELEGATE_TRUE=
29250 GVC_DELEGATE_FALSE='#'
29251else
29252 GVC_DELEGATE_TRUE='#'
29253 GVC_DELEGATE_FALSE=
29254fi
29255
cristy3ed852e2009-09-05 21:47:34 +000029256
29257
29258
29259
29260#
29261# Check for JBIG delegate library.
29262#
29263
29264
29265# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029266if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029267 withval=$with_jbig; with_jbig=$withval
29268else
29269 with_jbig='yes'
29270fi
29271
29272
29273have_jbig='no'
29274JBIG_LIBS=''
29275if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029276 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29277$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029279$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29281$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029282 failed=0
29283 passed=0
cristy8b350f62009-11-15 23:12:43 +000029284 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029285if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029286 passed=`expr $passed + 1`
29287else
29288 failed=`expr $failed + 1`
29289fi
29290
29291
cristy8b350f62009-11-15 23:12:43 +000029292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029293$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029294if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029295 $as_echo_n "(cached) " >&6
29296else
29297 ac_check_lib_save_LIBS=$LIBS
29298LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029300/* end confdefs.h. */
29301
29302/* Override any GCC internal prototype to avoid an error.
29303 Use char because int might match the return type of a GCC
29304 builtin and then its argument prototype would still apply. */
29305#ifdef __cplusplus
29306extern "C"
29307#endif
29308char jbg_dec_init ();
29309int
29310main ()
29311{
29312return jbg_dec_init ();
29313 ;
29314 return 0;
29315}
29316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029318 ac_cv_lib_jbig_jbg_dec_init=yes
29319else
cristy8b350f62009-11-15 23:12:43 +000029320 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029321fi
cristy8b350f62009-11-15 23:12:43 +000029322rm -f core conftest.err conftest.$ac_objext \
29323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029324LIBS=$ac_check_lib_save_LIBS
29325fi
cristy8b350f62009-11-15 23:12:43 +000029326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029327$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029328if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029329 passed=`expr $passed + 1`
29330else
29331 failed=`expr $failed + 1`
29332fi
29333
cristy8b350f62009-11-15 23:12:43 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo_n "checking if JBIG package is complete... " >&6; }
29336 if test $passed -gt 0; then
29337 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029338 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29339$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029340 have_jbig='no (failed tests)'
29341 else
29342 JBIG_LIBS='-ljbig'
29343 LIBS="$JBIG_LIBS $LIBS"
29344
cristy8b350f62009-11-15 23:12:43 +000029345$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029346
cristy09b53e12011-10-14 12:47:22 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29348$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029349 have_jbig='yes'
29350 fi
29351 else
cristy09b53e12011-10-14 12:47:22 +000029352 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29353$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029354 fi
29355fi
cristy73bd4a52010-10-05 11:24:23 +000029356 if test "$have_jbig" = 'yes'; then
29357 JBIG_DELEGATE_TRUE=
29358 JBIG_DELEGATE_FALSE='#'
29359else
29360 JBIG_DELEGATE_TRUE='#'
29361 JBIG_DELEGATE_FALSE=
29362fi
29363
cristy3ed852e2009-09-05 21:47:34 +000029364
29365
29366
29367#
29368# Check for JPEG delegate library.
29369#
29370
29371# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029372if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029373 withval=$with_jpeg; with_jpeg=$withval
29374else
29375 with_jpeg='yes'
29376fi
29377
29378
29379if test "$with_jpeg" != 'yes'; then
29380 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29381fi
29382
29383have_jpeg='no'
29384JPEG_LIBS=''
29385if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029386 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29387$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29391$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029392 failed=0
29393 passed=0
cristy8b350f62009-11-15 23:12:43 +000029394 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029395if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029396 passed=`expr $passed + 1`
29397else
29398 failed=`expr $failed + 1`
29399fi
29400
29401
cristy8b350f62009-11-15 23:12:43 +000029402 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029403if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029404 passed=`expr $passed + 1`
29405else
29406 failed=`expr $failed + 1`
29407fi
29408
29409
cristy8b350f62009-11-15 23:12:43 +000029410 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029411if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029412 passed=`expr $passed + 1`
29413else
29414 failed=`expr $failed + 1`
29415fi
29416
29417
cristy8b350f62009-11-15 23:12:43 +000029418 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029419if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 passed=`expr $passed + 1`
29421else
29422 failed=`expr $failed + 1`
29423fi
29424
29425
cristy8b350f62009-11-15 23:12:43 +000029426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029427$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029428if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029429 $as_echo_n "(cached) " >&6
29430else
29431 ac_check_lib_save_LIBS=$LIBS
29432LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029434/* end confdefs.h. */
29435
29436/* Override any GCC internal prototype to avoid an error.
29437 Use char because int might match the return type of a GCC
29438 builtin and then its argument prototype would still apply. */
29439#ifdef __cplusplus
29440extern "C"
29441#endif
29442char jpeg_read_header ();
29443int
29444main ()
29445{
29446return jpeg_read_header ();
29447 ;
29448 return 0;
29449}
29450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029452 ac_cv_lib_jpeg_jpeg_read_header=yes
29453else
cristy8b350f62009-11-15 23:12:43 +000029454 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029455fi
cristy8b350f62009-11-15 23:12:43 +000029456rm -f core conftest.err conftest.$ac_objext \
29457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029458LIBS=$ac_check_lib_save_LIBS
29459fi
cristy8b350f62009-11-15 23:12:43 +000029460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029461$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029462if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029463 passed=`expr $passed + 1`
29464else
29465 failed=`expr $failed + 1`
29466fi
29467
29468
29469# Test for compatible JPEG library
29470if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029472$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029473if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029474 $as_echo_n "(cached) " >&6
29475else
cristy8b350f62009-11-15 23:12:43 +000029476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029477/* end confdefs.h. */
29478#include <stdio.h>
29479#include <stdlib.h>
29480#include <jpeglib.h>
29481
29482int
29483main ()
29484{
29485
29486#if JPEG_LIB_VERSION < 62
29487#error IJG JPEG library must be version 6b or newer!
29488#endif
29489return 0;
29490
29491 ;
29492 return 0;
29493}
29494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029495if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029496 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29497else
cristy8b350f62009-11-15 23:12:43 +000029498 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029499fi
cristy3ed852e2009-09-05 21:47:34 +000029500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29501fi
cristy8b350f62009-11-15 23:12:43 +000029502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029503$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29504fi
cristy8b350f62009-11-15 23:12:43 +000029505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029506$as_echo_n "checking if JPEG package is complete... " >&6; }
29507 if test $passed -gt 0; then
29508 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029509 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29510$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029511 have_jpeg='no (failed tests)'
29512 else
29513 JPEG_LIBS='-ljpeg'
29514 LIBS="$JPEG_LIBS $LIBS"
29515
cristy8b350f62009-11-15 23:12:43 +000029516$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029517
cristy09b53e12011-10-14 12:47:22 +000029518 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29519$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029520 have_jpeg='yes'
29521 fi
29522 else
cristy09b53e12011-10-14 12:47:22 +000029523 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29524$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029525 fi
29526fi
cristy73bd4a52010-10-05 11:24:23 +000029527 if test "$have_jpeg" = 'yes'; then
29528 JPEG_DELEGATE_TRUE=
29529 JPEG_DELEGATE_FALSE='#'
29530else
29531 JPEG_DELEGATE_TRUE='#'
29532 JPEG_DELEGATE_FALSE=
29533fi
29534
cristy3ed852e2009-09-05 21:47:34 +000029535
29536
29537
29538#
29539# Check for JPEG Version 2 delegate library.
29540#
29541
29542# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029543if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029544 withval=$with_jp2; with_jp2=$withval
29545else
29546 with_jp2='yes'
29547fi
29548
29549
29550if test "$with_jp2" != 'yes'; then
29551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29552fi
29553
29554have_jp2='no'
29555JP2_LIBS=''
29556if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029557 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29558$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029560$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29562$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029563 failed=0
29564 passed=0
cristy8b350f62009-11-15 23:12:43 +000029565 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 +000029566if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029567 passed=`expr $passed + 1`
29568else
29569 failed=`expr $failed + 1`
29570fi
29571
29572
cristy8b350f62009-11-15 23:12:43 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029574$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029575if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029576 $as_echo_n "(cached) " >&6
29577else
29578 ac_check_lib_save_LIBS=$LIBS
29579LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029581/* end confdefs.h. */
29582
29583/* Override any GCC internal prototype to avoid an error.
29584 Use char because int might match the return type of a GCC
29585 builtin and then its argument prototype would still apply. */
29586#ifdef __cplusplus
29587extern "C"
29588#endif
29589char jas_stream_fopen ();
29590int
29591main ()
29592{
29593return jas_stream_fopen ();
29594 ;
29595 return 0;
29596}
29597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029598if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029599 ac_cv_lib_jasper_jas_stream_fopen=yes
29600else
cristy8b350f62009-11-15 23:12:43 +000029601 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029602fi
cristy8b350f62009-11-15 23:12:43 +000029603rm -f core conftest.err conftest.$ac_objext \
29604 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029605LIBS=$ac_check_lib_save_LIBS
29606fi
cristy8b350f62009-11-15 23:12:43 +000029607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029608$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029609if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029610 passed=`expr $passed + 1`
29611else
29612 failed=`expr $failed + 1`
29613fi
29614
cristy8b350f62009-11-15 23:12:43 +000029615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029616$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29617 if test $passed -gt 0; then
29618 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29620$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029621 have_jp2='no (failed tests)'
29622 else
29623 JP2_LIBS='-ljasper'
29624 LIBS="$JP2_LIBS $LIBS"
29625
cristy8b350f62009-11-15 23:12:43 +000029626$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029627
cristy09b53e12011-10-14 12:47:22 +000029628 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29629$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029630 have_jp2='yes'
29631 fi
29632 else
cristy09b53e12011-10-14 12:47:22 +000029633 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29634$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029635 fi
29636fi
cristy73bd4a52010-10-05 11:24:23 +000029637 if test "$have_jp2" = 'yes'; then
29638 JP2_DELEGATE_TRUE=
29639 JP2_DELEGATE_FALSE='#'
29640else
29641 JP2_DELEGATE_TRUE='#'
29642 JP2_DELEGATE_FALSE=
29643fi
29644
cristy3ed852e2009-09-05 21:47:34 +000029645
29646
29647
29648#
29649# Check for LCMS delegate library.
29650#
cristy71203402010-06-18 13:12:03 +000029651# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029652
29653# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029654if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029655 withval=$with_lcms; with_lcms=$withval
29656else
29657 with_lcms='yes'
29658fi
29659
cristy71203402010-06-18 13:12:03 +000029660if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029661 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29662fi
29663
cristy71203402010-06-18 13:12:03 +000029664# Disable LCMS2.
29665
29666# Check whether --with-lcms2 was given.
29667if test "${with_lcms2+set}" = set; then :
29668 withval=$with_lcms2; with_lcms2=$withval
29669else
29670 with_lcms2='yes'
29671fi
29672
29673if test "$with_lcms2" != 'yes' ; then
29674 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29675fi
29676
29677have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029678LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029679if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29681$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29683$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29685$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029686 failed=0
29687 passed=0
29688 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029689
29690 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029691 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029692if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029693 have_lcms_header='yes'
29694fi
29695
29696
29697 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029698
29699$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29700
cristy71203402010-06-18 13:12:03 +000029701 passed=`expr $passed + 1`
29702 fi
29703
29704 # Check for <lcms2/lcms2.h)
29705 if test "$have_lcms_header" != 'yes'; then
29706 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 +000029707if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029708 have_lcms_header='yes'
29709fi
29710
29711
cristy71203402010-06-18 13:12:03 +000029712 if test "$have_lcms_header" = 'yes'; then
29713 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029714
cristy71203402010-06-18 13:12:03 +000029715$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029716
cristy71203402010-06-18 13:12:03 +000029717 fi
cristyd09bcf92010-03-25 03:04:45 +000029718 fi
cristy71203402010-06-18 13:12:03 +000029719
29720 # Failed to find lcms header?
29721 if test "$have_lcms_header" != 'yes'; then
29722 failed=`expr $failed + 1`
29723 fi
29724
29725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29726$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029727if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029728 $as_echo_n "(cached) " >&6
29729else
29730 ac_check_lib_save_LIBS=$LIBS
29731LIBS="-llcms2 $LIBS"
29732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29733/* end confdefs.h. */
29734
29735/* Override any GCC internal prototype to avoid an error.
29736 Use char because int might match the return type of a GCC
29737 builtin and then its argument prototype would still apply. */
29738#ifdef __cplusplus
29739extern "C"
29740#endif
cristy71203402010-06-18 13:12:03 +000029741char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029742int
29743main ()
29744{
cristy71203402010-06-18 13:12:03 +000029745return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029746 ;
29747 return 0;
29748}
29749_ACEOF
29750if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029751 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029752else
cristy71203402010-06-18 13:12:03 +000029753 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029754fi
29755rm -f core conftest.err conftest.$ac_objext \
29756 conftest$ac_exeext conftest.$ac_ext
29757LIBS=$ac_check_lib_save_LIBS
29758fi
cristy71203402010-06-18 13:12:03 +000029759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29760$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029761if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029762 passed=`expr $passed + 1`
29763else
29764 failed=`expr $failed + 1`
29765fi
29766
cristy71203402010-06-18 13:12:03 +000029767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29768$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029769 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029770 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029771 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29772$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029773 have_lcms2='no (failed tests)'
29774 else
29775 LCMS_LIBS='-llcms2'
29776 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029777 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29778$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029779 have_lcms2='yes'
29780 fi
cristyd09bcf92010-03-25 03:04:45 +000029781 else
cristy09b53e12011-10-14 12:47:22 +000029782 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29783$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029784 fi
29785fi
29786
cristy71203402010-06-18 13:12:03 +000029787#
29788# Check for LCMS v1 (1.11 or later)
29789#
29790if test $have_lcms2 = 'yes'; then
29791 with_lcms='no'
29792fi
29793
29794have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029795if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029796 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29797$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29799$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029800 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29801$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029802 failed=0
29803 passed=0
29804 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029805
29806 # Check for <lcms.h>
29807 if test "$have_lcms_header" != 'yes'; then
29808 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029809if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029810 have_lcms_header='yes'
29811fi
29812
29813
cristy71203402010-06-18 13:12:03 +000029814 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029815 passed=`expr $passed + 1`
29816
cristy8b350f62009-11-15 23:12:43 +000029817$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029818
cristy71203402010-06-18 13:12:03 +000029819 fi
29820 fi
29821
29822 # Check for <lcms/lcms.h>
29823 if test "$have_lcms_header" != 'yes'; then
29824 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 +000029825if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029826 have_lcms_header='yes'
29827fi
29828
29829
cristy71203402010-06-18 13:12:03 +000029830 if test "$have_lcms_header" = 'yes'; then
29831 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029832
cristy8b350f62009-11-15 23:12:43 +000029833$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029834
cristy71203402010-06-18 13:12:03 +000029835 fi
cristy3ed852e2009-09-05 21:47:34 +000029836 fi
cristy71203402010-06-18 13:12:03 +000029837
29838 # Failed to find lcms header?
29839 if test "$have_lcms_header" != 'yes'; then
29840 failed=`expr $failed + 1`
29841 fi
29842
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29844$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029845if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029846 $as_echo_n "(cached) " >&6
29847else
29848 ac_check_lib_save_LIBS=$LIBS
29849LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029851/* end confdefs.h. */
29852
29853/* Override any GCC internal prototype to avoid an error.
29854 Use char because int might match the return type of a GCC
29855 builtin and then its argument prototype would still apply. */
29856#ifdef __cplusplus
29857extern "C"
29858#endif
cristy71203402010-06-18 13:12:03 +000029859char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029860int
29861main ()
29862{
cristy71203402010-06-18 13:12:03 +000029863return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029864 ;
29865 return 0;
29866}
29867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029868if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029869 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029870else
cristy71203402010-06-18 13:12:03 +000029871 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029872fi
cristy8b350f62009-11-15 23:12:43 +000029873rm -f core conftest.err conftest.$ac_objext \
29874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029875LIBS=$ac_check_lib_save_LIBS
29876fi
cristy71203402010-06-18 13:12:03 +000029877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29878$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029879if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029880 passed=`expr $passed + 1`
29881else
29882 failed=`expr $failed + 1`
29883fi
29884
cristy8b350f62009-11-15 23:12:43 +000029885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029886$as_echo_n "checking if LCMS package is complete... " >&6; }
29887 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029888 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029889 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29890$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029891 have_lcms='no (failed tests)'
29892 else
29893 LCMS_LIBS='-llcms'
29894 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29896$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029897 have_lcms='yes'
29898 fi
cristy3ed852e2009-09-05 21:47:34 +000029899 else
cristy09b53e12011-10-14 12:47:22 +000029900 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29901$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029902 fi
29903fi
cristy71203402010-06-18 13:12:03 +000029904
cristy73bd4a52010-10-05 11:24:23 +000029905 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29906 LCMS_DELEGATE_TRUE=
29907 LCMS_DELEGATE_FALSE='#'
29908else
29909 LCMS_DELEGATE_TRUE='#'
29910 LCMS_DELEGATE_FALSE=
29911fi
29912
cristy71203402010-06-18 13:12:03 +000029913if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29914
29915$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29916
29917fi
29918
cristy3ed852e2009-09-05 21:47:34 +000029919
29920
29921
29922#
29923# Check for the LQR (Liquid Rescale) delegate library.
29924#
29925
29926# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029927if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029928 withval=$with_lqr; with_lqr=$withval
29929else
29930 with_lqr='yes'
29931fi
29932
29933
29934if test "$with_lqr" != 'yes'; then
29935 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29936fi
29937
29938have_lqr='no'
29939LQR_CFLAGS=""
29940LQR_LIBS=""
29941LQR_PKG=""
29942if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029943 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29944$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029945
29946pkg_failed=no
29947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29948$as_echo_n "checking for LQR... " >&6; }
29949
29950if test -n "$LQR_CFLAGS"; then
29951 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29952 elif test -n "$PKG_CONFIG"; then
29953 if test -n "$PKG_CONFIG" && \
29954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29955 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29956 ac_status=$?
29957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29958 test $ac_status = 0; }; then
29959 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29960else
29961 pkg_failed=yes
29962fi
29963 else
29964 pkg_failed=untried
29965fi
29966if test -n "$LQR_LIBS"; then
29967 pkg_cv_LQR_LIBS="$LQR_LIBS"
29968 elif test -n "$PKG_CONFIG"; then
29969 if test -n "$PKG_CONFIG" && \
29970 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29971 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29972 ac_status=$?
29973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29974 test $ac_status = 0; }; then
29975 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29976else
29977 pkg_failed=yes
29978fi
29979 else
29980 pkg_failed=untried
29981fi
29982
29983
29984
29985if test $pkg_failed = yes; then
29986
29987if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29988 _pkg_short_errors_supported=yes
29989else
29990 _pkg_short_errors_supported=no
29991fi
29992 if test $_pkg_short_errors_supported = yes; then
29993 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29994 else
29995 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29996 fi
29997 # Put the nasty error message in config.log where it belongs
29998 echo "$LQR_PKG_ERRORS" >&5
29999
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30001$as_echo "no" >&6; }
30002 have_lqr=no
30003elif test $pkg_failed = untried; then
30004 have_lqr=no
30005else
30006 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30007 LQR_LIBS=$pkg_cv_LQR_LIBS
30008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30009$as_echo "yes" >&6; }
30010 have_lqr=yes
30011fi
cristy09b53e12011-10-14 12:47:22 +000030012 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30013$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030014fi
30015
30016if test "$have_lqr" = 'yes'; then
30017
cristy8b350f62009-11-15 23:12:43 +000030018$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030019
30020 CFLAGS="$LQR_CFLAGS $CFLAGS"
30021fi
30022
cristy73bd4a52010-10-05 11:24:23 +000030023 if test "$have_lqr" = 'yes'; then
30024 LQR_DELEGATE_TRUE=
30025 LQR_DELEGATE_FALSE='#'
30026else
30027 LQR_DELEGATE_TRUE='#'
30028 LQR_DELEGATE_FALSE=
30029fi
30030
cristy3ed852e2009-09-05 21:47:34 +000030031
30032
30033
30034
cristy81beccd2011-10-03 18:17:24 +000030035# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030036
30037# Check whether --with-lzma was given.
30038if test "${with_lzma+set}" = set; then :
30039 withval=$with_lzma; with_lzma=$withval
30040else
30041 with_lzma='yes'
30042fi
30043
cristy81beccd2011-10-03 18:17:24 +000030044if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030045 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30046fi
30047
cristy81beccd2011-10-03 18:17:24 +000030048#
30049# Check for LZMA
30050#
30051have_lzma='no'
30052LZMA_LIBS=''
30053if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030054 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30055$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030057$as_echo_n "checking for LZMA... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030058 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30059$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030060 failed=0
30061 passed=0
30062 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30063if test "x$ac_cv_header_lzma_h" = xyes; then :
30064 passed=`expr $passed + 1`
30065else
30066 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000030067fi
30068
cristy81beccd2011-10-03 18:17:24 +000030069
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30071$as_echo_n "checking for lzma_code in -llzma... " >&6; }
30072if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30073 $as_echo_n "(cached) " >&6
30074else
30075 ac_check_lib_save_LIBS=$LIBS
30076LIBS="-llzma $LIBS"
30077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078/* end confdefs.h. */
30079
30080/* Override any GCC internal prototype to avoid an error.
30081 Use char because int might match the return type of a GCC
30082 builtin and then its argument prototype would still apply. */
30083#ifdef __cplusplus
30084extern "C"
30085#endif
30086char lzma_code ();
30087int
30088main ()
30089{
30090return lzma_code ();
30091 ;
30092 return 0;
30093}
30094_ACEOF
30095if ac_fn_c_try_link "$LINENO"; then :
30096 ac_cv_lib_lzma_lzma_code=yes
30097else
30098 ac_cv_lib_lzma_lzma_code=no
30099fi
30100rm -f core conftest.err conftest.$ac_objext \
30101 conftest$ac_exeext conftest.$ac_ext
30102LIBS=$ac_check_lib_save_LIBS
30103fi
30104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30105$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30106if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30107 passed=`expr $passed + 1`
30108else
30109 failed=`expr $failed + 1`
30110fi
30111
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30113$as_echo_n "checking if LZMA package is complete... " >&6; }
30114 if test $passed -gt 0; then
30115 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030116 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30117$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030118 have_lzma='no (failed tests)'
30119 else
30120 LZMA_LIBS='-llzma'
30121 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030122
30123$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30124
cristy09b53e12011-10-14 12:47:22 +000030125 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30126$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030127 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030128 fi
cristy81beccd2011-10-03 18:17:24 +000030129 else
cristy09b53e12011-10-14 12:47:22 +000030130 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30131$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030132 fi
cristyfbb0ef02010-12-19 02:32:11 +000030133fi
30134 if test "$have_lzma" = 'yes'; then
30135 LZMA_DELEGATE_TRUE=
30136 LZMA_DELEGATE_FALSE='#'
30137else
30138 LZMA_DELEGATE_TRUE='#'
30139 LZMA_DELEGATE_FALSE=
30140fi
30141
30142
30143
30144
cristy3ed852e2009-09-05 21:47:34 +000030145#
30146# Check for the OpenEXR delegate library.
30147#
30148
30149# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030150if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030151 withval=$with_openexr; with_openexr=$withval
30152else
30153 with_openexr='yes'
30154fi
30155
30156
30157if test "$with_openexr" != 'yes'; then
30158 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30159fi
30160
30161have_openexr='no'
30162OPENEXR_CFLAGS=""
30163OPENEXR_LIBS=""
30164OPENEXR_PKG=""
30165if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030166 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30167$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030168
30169pkg_failed=no
30170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30171$as_echo_n "checking for OPENEXR... " >&6; }
30172
30173if test -n "$OPENEXR_CFLAGS"; then
30174 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30175 elif test -n "$PKG_CONFIG"; then
30176 if test -n "$PKG_CONFIG" && \
30177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30178 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30179 ac_status=$?
30180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30181 test $ac_status = 0; }; then
30182 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30183else
30184 pkg_failed=yes
30185fi
30186 else
30187 pkg_failed=untried
30188fi
30189if test -n "$OPENEXR_LIBS"; then
30190 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30191 elif test -n "$PKG_CONFIG"; then
30192 if test -n "$PKG_CONFIG" && \
30193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30194 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30195 ac_status=$?
30196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30197 test $ac_status = 0; }; then
30198 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30199else
30200 pkg_failed=yes
30201fi
30202 else
30203 pkg_failed=untried
30204fi
30205
30206
30207
30208if test $pkg_failed = yes; then
30209
30210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30211 _pkg_short_errors_supported=yes
30212else
30213 _pkg_short_errors_supported=no
30214fi
30215 if test $_pkg_short_errors_supported = yes; then
30216 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30217 else
30218 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30219 fi
30220 # Put the nasty error message in config.log where it belongs
30221 echo "$OPENEXR_PKG_ERRORS" >&5
30222
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30224$as_echo "no" >&6; }
30225 have_openexr=no
30226elif test $pkg_failed = untried; then
30227 have_openexr=no
30228else
30229 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30230 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30232$as_echo "yes" >&6; }
30233 have_openexr=yes
30234fi
cristy09b53e12011-10-14 12:47:22 +000030235 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30236$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030237fi
30238
30239if test "$have_openexr" = 'yes'; then
30240
cristy8b350f62009-11-15 23:12:43 +000030241$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030242
30243 if test "$with_modules" = 'no'; then
30244 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30245 fi
30246fi
30247
cristy73bd4a52010-10-05 11:24:23 +000030248 if test "$have_openexr" = 'yes'; then
30249 OPENEXR_DELEGATE_TRUE=
30250 OPENEXR_DELEGATE_FALSE='#'
30251else
30252 OPENEXR_DELEGATE_TRUE='#'
30253 OPENEXR_DELEGATE_FALSE=
30254fi
30255
cristy3ed852e2009-09-05 21:47:34 +000030256
30257
30258
30259
30260#
cristy41cbe8a2011-10-27 01:35:18 +000030261# Check for PANGO delegate library.
30262#
30263
30264# Check whether --with-pango was given.
30265if test "${with_pango+set}" = set; then :
30266 withval=$with_pango; with_pango=$withval
30267else
30268 with_pango=$have_x
30269fi
30270
30271
30272if test "$with_pango" != 'yes'; then
30273 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30274fi
30275
30276have_pango='no'
30277have_pangoft2='no'
30278PANGO_CFLAGS=""
30279PANGO_LIBS=""
30280PANGO_PKG=""
30281if test "x$with_pango" = "xyes"; then
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30283$as_echo "-------------------------------------------------------------" >&6; }
30284
30285pkg_failed=no
30286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30287$as_echo_n "checking for PANGO... " >&6; }
30288
30289if test -n "$PANGO_CFLAGS"; then
30290 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30291 elif test -n "$PKG_CONFIG"; then
30292 if test -n "$PKG_CONFIG" && \
cristy41cbe8a2011-10-27 01:35:18 +000030293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30294 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30295 ac_status=$?
30296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30297 test $ac_status = 0; }; then
30298 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30299else
30300 pkg_failed=yes
30301fi
30302 else
30303 pkg_failed=untried
30304fi
30305if test -n "$PANGO_LIBS"; then
30306 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30307 elif test -n "$PKG_CONFIG"; then
30308 if test -n "$PKG_CONFIG" && \
30309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30310 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30311 ac_status=$?
30312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30313 test $ac_status = 0; }; then
30314 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30315else
30316 pkg_failed=yes
30317fi
30318 else
30319 pkg_failed=untried
30320fi
30321
30322
30323
30324if test $pkg_failed = yes; then
30325
30326if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30327 _pkg_short_errors_supported=yes
30328else
30329 _pkg_short_errors_supported=no
30330fi
30331 if test $_pkg_short_errors_supported = yes; then
30332 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2" 2>&1`
30333 else
30334 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2" 2>&1`
30335 fi
30336 # Put the nasty error message in config.log where it belongs
30337 echo "$PANGO_PKG_ERRORS" >&5
30338
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30340$as_echo "no" >&6; }
30341 have_pangoft2=no
30342elif test $pkg_failed = untried; then
30343 have_pangoft2=no
30344else
30345 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30346 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30348$as_echo "yes" >&6; }
30349 have_pangoft2=yes
30350fi
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30352$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030353
30354pkg_failed=no
30355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30356$as_echo_n "checking for PANGO... " >&6; }
30357
30358if test -n "$PANGO_CFLAGS"; then
30359 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30360 elif test -n "$PKG_CONFIG"; then
30361 if test -n "$PKG_CONFIG" && \
30362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30363 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30364 ac_status=$?
30365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30366 test $ac_status = 0; }; then
30367 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango" 2>/dev/null`
30368else
30369 pkg_failed=yes
30370fi
30371 else
30372 pkg_failed=untried
30373fi
30374if test -n "$PANGO_LIBS"; then
30375 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30376 elif test -n "$PKG_CONFIG"; then
30377 if test -n "$PKG_CONFIG" && \
30378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30379 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30380 ac_status=$?
30381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30382 test $ac_status = 0; }; then
30383 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango" 2>/dev/null`
30384else
30385 pkg_failed=yes
30386fi
30387 else
30388 pkg_failed=untried
30389fi
30390
30391
30392
30393if test $pkg_failed = yes; then
30394
30395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30396 _pkg_short_errors_supported=yes
30397else
30398 _pkg_short_errors_supported=no
30399fi
30400 if test $_pkg_short_errors_supported = yes; then
30401 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango" 2>&1`
30402 else
30403 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango" 2>&1`
30404 fi
30405 # Put the nasty error message in config.log where it belongs
30406 echo "$PANGO_PKG_ERRORS" >&5
30407
30408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30409$as_echo "no" >&6; }
30410 have_pango=no
30411elif test $pkg_failed = untried; then
30412 have_pango=no
30413else
30414 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30415 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30417$as_echo "yes" >&6; }
30418 have_pango=yes
30419fi
30420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30421$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030422fi
30423
30424if test "$have_pango" = 'yes'; then
30425
30426$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30427
30428 if test "$with_modules" = 'no'; then
30429 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30430 fi
30431fi
30432
30433if test "$have_pangoft2" = 'yes'; then
30434
30435$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30436
30437 if test "$with_modules" = 'no'; then
30438 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30439 fi
30440fi
30441
30442 if test "$have_pango" = 'yes'; then
30443 PANGO_DELEGATE_TRUE=
30444 PANGO_DELEGATE_FALSE='#'
30445else
30446 PANGO_DELEGATE_TRUE='#'
30447 PANGO_DELEGATE_FALSE=
30448fi
30449
30450 if test "$have_pangoft2" = 'yes'; then
30451 PANGOFT2_DELEGATE_TRUE=
30452 PANGOFT2_DELEGATE_FALSE='#'
30453else
30454 PANGOFT2_DELEGATE_TRUE='#'
30455 PANGOFT2_DELEGATE_FALSE=
30456fi
30457
30458
30459
30460
30461
30462#
cristy3ed852e2009-09-05 21:47:34 +000030463# Check for PNG delegate library.
30464#
30465
30466# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030467if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030468 withval=$with_png; with_png=$withval
30469else
30470 with_png='yes'
30471fi
30472
30473
30474if test "$with_png" != 'yes'; then
30475 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30476fi
30477
cristy81beccd2011-10-03 18:17:24 +000030478have_png='no'
30479PNG_LIBS=''
30480
30481if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030482 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30483$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30485$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030486 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30487$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030488 failed=0
30489 passed=0
30490 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30491if test "x$ac_cv_header_png_h" = xyes; then :
30492 passed=`expr $passed + 1`
30493else
30494 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030495fi
30496
cristy81beccd2011-10-03 18:17:24 +000030497
30498
30499 if test $passed -gt 0; then
30500 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030501 if test "$have_png" = 'no' ; then
30502 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030503 pnglib='png'
30504 else
30505 pnglib="png1${var}"
30506 fi
30507
30508# Test for compatible LIBPNG library
30509 failed=0
30510 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030511 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030512 if test "${pnglib}" != 'png' ; then
30513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30514$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30516/* end confdefs.h. */
30517#include <stdio.h>
30518#include <stdlib.h>
30519#include <png.h>
30520
30521int
30522main ()
30523{
30524
30525#if PNG_LIBPNG_VER_MINOR != ${var}
30526#error LIBPNG library must be version 1${var}!
30527Kaboom, Kaboom
30528#endif
30529return 0;
30530
30531 ;
30532 return 0;
30533}
30534_ACEOF
30535if ac_fn_c_try_compile "$LINENO"; then :
30536 ac_cv_libpng_ok='yes'
30537else
30538 ac_cv_libpng_ok='no'
30539fi
30540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30541 if test "$ac_cv_libpng_ok" = 'yes' ; then
30542 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030543 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30544$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030545 else
30546 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030547 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30548$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030549 fi
30550 else
30551 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30553$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030554 fi
30555 fi
30556
30557 if test $passed -gt 0 -a $failed -le 0; then
30558 if test "1${var}" = '15' ; then
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30560$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30561if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30562 $as_echo_n "(cached) " >&6
30563else
30564 ac_check_lib_save_LIBS=$LIBS
30565LIBS="-lpng15 $LIBS"
30566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30567/* end confdefs.h. */
30568
30569/* Override any GCC internal prototype to avoid an error.
30570 Use char because int might match the return type of a GCC
30571 builtin and then its argument prototype would still apply. */
30572#ifdef __cplusplus
30573extern "C"
30574#endif
30575char png_get_io_ptr ();
30576int
30577main ()
30578{
30579return png_get_io_ptr ();
30580 ;
30581 return 0;
30582}
30583_ACEOF
30584if ac_fn_c_try_link "$LINENO"; then :
30585 ac_cv_lib_png15_png_get_io_ptr=yes
30586else
30587 ac_cv_lib_png15_png_get_io_ptr=no
30588fi
30589rm -f core conftest.err conftest.$ac_objext \
30590 conftest$ac_exeext conftest.$ac_ext
30591LIBS=$ac_check_lib_save_LIBS
30592fi
30593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30594$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30595if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30596 passed=`expr $passed + 1`
30597else
30598 failed=`expr $failed + 1`
30599fi
30600
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30602$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30603if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30604 $as_echo_n "(cached) " >&6
30605else
30606 ac_check_lib_save_LIBS=$LIBS
30607LIBS="-lpng15 $LIBS"
30608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30609/* end confdefs.h. */
30610
30611/* Override any GCC internal prototype to avoid an error.
30612 Use char because int might match the return type of a GCC
30613 builtin and then its argument prototype would still apply. */
30614#ifdef __cplusplus
30615extern "C"
30616#endif
30617char png_longjmp ();
30618int
30619main ()
30620{
30621return png_longjmp ();
30622 ;
30623 return 0;
30624}
30625_ACEOF
30626if ac_fn_c_try_link "$LINENO"; then :
30627 ac_cv_lib_png15_png_longjmp=yes
30628else
30629 ac_cv_lib_png15_png_longjmp=no
30630fi
30631rm -f core conftest.err conftest.$ac_objext \
30632 conftest$ac_exeext conftest.$ac_ext
30633LIBS=$ac_check_lib_save_LIBS
30634fi
30635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30636$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30637if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30638 passed=`expr $passed + 1`
30639else
30640 failed=`expr $failed + 1`
30641fi
30642
30643 fi
30644 if test "1${var}" = '14' ; then
30645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30646$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30647if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30648 $as_echo_n "(cached) " >&6
30649else
30650 ac_check_lib_save_LIBS=$LIBS
30651LIBS="-lpng14 $LIBS"
30652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30653/* end confdefs.h. */
30654
30655/* Override any GCC internal prototype to avoid an error.
30656 Use char because int might match the return type of a GCC
30657 builtin and then its argument prototype would still apply. */
30658#ifdef __cplusplus
30659extern "C"
30660#endif
30661char png_get_io_ptr ();
30662int
30663main ()
30664{
30665return png_get_io_ptr ();
30666 ;
30667 return 0;
30668}
30669_ACEOF
30670if ac_fn_c_try_link "$LINENO"; then :
30671 ac_cv_lib_png14_png_get_io_ptr=yes
30672else
30673 ac_cv_lib_png14_png_get_io_ptr=no
30674fi
30675rm -f core conftest.err conftest.$ac_objext \
30676 conftest$ac_exeext conftest.$ac_ext
30677LIBS=$ac_check_lib_save_LIBS
30678fi
30679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30680$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30681if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30682 passed=`expr $passed + 1`
30683else
30684 failed=`expr $failed + 1`
30685fi
30686
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30688$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30689if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30690 $as_echo_n "(cached) " >&6
30691else
30692 ac_check_lib_save_LIBS=$LIBS
30693LIBS="-lpng14 $LIBS"
30694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30695/* end confdefs.h. */
30696
30697/* Override any GCC internal prototype to avoid an error.
30698 Use char because int might match the return type of a GCC
30699 builtin and then its argument prototype would still apply. */
30700#ifdef __cplusplus
30701extern "C"
30702#endif
30703char png_get_io_state ();
30704int
30705main ()
30706{
30707return png_get_io_state ();
30708 ;
30709 return 0;
30710}
30711_ACEOF
30712if ac_fn_c_try_link "$LINENO"; then :
30713 ac_cv_lib_png14_png_get_io_state=yes
30714else
30715 ac_cv_lib_png14_png_get_io_state=no
30716fi
30717rm -f core conftest.err conftest.$ac_objext \
30718 conftest$ac_exeext conftest.$ac_ext
30719LIBS=$ac_check_lib_save_LIBS
30720fi
30721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30722$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30723if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30724 passed=`expr $passed + 1`
30725else
30726 failed=`expr $failed + 1`
30727fi
30728
30729 fi
30730 if test "1${var}" = '12' ; then
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30732$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30733if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30734 $as_echo_n "(cached) " >&6
30735else
30736 ac_check_lib_save_LIBS=$LIBS
30737LIBS="-lpng12 $LIBS"
30738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30739/* end confdefs.h. */
30740
30741/* Override any GCC internal prototype to avoid an error.
30742 Use char because int might match the return type of a GCC
30743 builtin and then its argument prototype would still apply. */
30744#ifdef __cplusplus
30745extern "C"
30746#endif
30747char png_get_io_ptr ();
30748int
30749main ()
30750{
30751return png_get_io_ptr ();
30752 ;
30753 return 0;
30754}
30755_ACEOF
30756if ac_fn_c_try_link "$LINENO"; then :
30757 ac_cv_lib_png12_png_get_io_ptr=yes
30758else
30759 ac_cv_lib_png12_png_get_io_ptr=no
30760fi
30761rm -f core conftest.err conftest.$ac_objext \
30762 conftest$ac_exeext conftest.$ac_ext
30763LIBS=$ac_check_lib_save_LIBS
30764fi
30765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30766$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30767if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30768 passed=`expr $passed + 1`
30769else
30770 failed=`expr $failed + 1`
30771fi
30772
30773 fi
30774 if test "1${var}" = '1' ; then
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30776$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30777if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30778 $as_echo_n "(cached) " >&6
30779else
30780 ac_check_lib_save_LIBS=$LIBS
30781LIBS="-lpng $LIBS"
30782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30783/* end confdefs.h. */
30784
30785/* Override any GCC internal prototype to avoid an error.
30786 Use char because int might match the return type of a GCC
30787 builtin and then its argument prototype would still apply. */
30788#ifdef __cplusplus
30789extern "C"
30790#endif
30791char png_get_io_ptr ();
30792int
30793main ()
30794{
30795return png_get_io_ptr ();
30796 ;
30797 return 0;
30798}
30799_ACEOF
30800if ac_fn_c_try_link "$LINENO"; then :
30801 ac_cv_lib_png_png_get_io_ptr=yes
30802else
30803 ac_cv_lib_png_png_get_io_ptr=no
30804fi
30805rm -f core conftest.err conftest.$ac_objext \
30806 conftest$ac_exeext conftest.$ac_ext
30807LIBS=$ac_check_lib_save_LIBS
30808fi
30809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30810$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30811if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30812 passed=`expr $passed + 1`
30813else
30814 failed=`expr $failed + 1`
30815fi
30816
30817 fi
30818 if test $passed -gt 0 -a $failed -le 0 ; then
30819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30820$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30821 if test $passed -gt 0 ; then
30822 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030823 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30824$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030825 have_png='no (failed tests)'
30826 else
30827 PNG_LIBS="-l${pnglib}"
30828 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030829
cristy8b350f62009-11-15 23:12:43 +000030830$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030831
cristy09b53e12011-10-14 12:47:22 +000030832 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30833$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030834 have_png='yes'
30835 fi
30836 fi
30837 fi
30838 fi
30839 fi
30840 done
30841 fi
cristy3ed852e2009-09-05 21:47:34 +000030842fi
cristy64877302011-08-23 19:10:31 +000030843
cristy73bd4a52010-10-05 11:24:23 +000030844 if test "$have_png" = 'yes'; then
30845 PNG_DELEGATE_TRUE=
30846 PNG_DELEGATE_FALSE='#'
30847else
30848 PNG_DELEGATE_TRUE='#'
30849 PNG_DELEGATE_FALSE=
30850fi
30851
cristy3ed852e2009-09-05 21:47:34 +000030852
cristy50d3f5c2011-09-10 20:09:06 +000030853
cristy3ed852e2009-09-05 21:47:34 +000030854
30855
30856#
30857# Check for RSVG delegate library.
30858#
30859
30860# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030861if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030862 withval=$with_rsvg; with_rsvg=$withval
30863else
30864 with_rsvg=$have_x
30865fi
30866
30867
30868if test "$with_rsvg" != 'yes'; then
30869 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30870fi
30871
30872have_rsvg='no'
30873have_cairo='no'
30874RSVG_CFLAGS=""
30875RSVG_LIBS=""
30876RSVG_PKG=""
30877if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030878 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30879$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030880
30881pkg_failed=no
30882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30883$as_echo_n "checking for RSVG... " >&6; }
30884
30885if test -n "$RSVG_CFLAGS"; then
30886 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30887 elif test -n "$PKG_CONFIG"; then
30888 if test -n "$PKG_CONFIG" && \
30889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30890 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30891 ac_status=$?
30892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30893 test $ac_status = 0; }; then
30894 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30895else
30896 pkg_failed=yes
30897fi
30898 else
30899 pkg_failed=untried
30900fi
30901if test -n "$RSVG_LIBS"; then
30902 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30903 elif test -n "$PKG_CONFIG"; then
30904 if test -n "$PKG_CONFIG" && \
30905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30906 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30907 ac_status=$?
30908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30909 test $ac_status = 0; }; then
30910 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30911else
30912 pkg_failed=yes
30913fi
30914 else
30915 pkg_failed=untried
30916fi
30917
30918
30919
30920if test $pkg_failed = yes; then
30921
30922if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30923 _pkg_short_errors_supported=yes
30924else
30925 _pkg_short_errors_supported=no
30926fi
30927 if test $_pkg_short_errors_supported = yes; then
30928 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30929 else
30930 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30931 fi
30932 # Put the nasty error message in config.log where it belongs
30933 echo "$RSVG_PKG_ERRORS" >&5
30934
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30936$as_echo "no" >&6; }
30937 have_rsvg=no
30938elif test $pkg_failed = untried; then
30939 have_rsvg=no
30940else
30941 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30942 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30944$as_echo "yes" >&6; }
30945 have_rsvg=yes
30946fi
cristy09b53e12011-10-14 12:47:22 +000030947 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30948$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030949
30950pkg_failed=no
30951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30952$as_echo_n "checking for CAIRO_SVG... " >&6; }
30953
30954if test -n "$CAIRO_SVG_CFLAGS"; then
30955 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30956 elif test -n "$PKG_CONFIG"; then
30957 if test -n "$PKG_CONFIG" && \
30958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30959 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30960 ac_status=$?
30961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30962 test $ac_status = 0; }; then
30963 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30964else
30965 pkg_failed=yes
30966fi
30967 else
30968 pkg_failed=untried
30969fi
30970if test -n "$CAIRO_SVG_LIBS"; then
30971 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30972 elif test -n "$PKG_CONFIG"; then
30973 if test -n "$PKG_CONFIG" && \
30974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30975 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30976 ac_status=$?
30977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30978 test $ac_status = 0; }; then
30979 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30980else
30981 pkg_failed=yes
30982fi
30983 else
30984 pkg_failed=untried
30985fi
30986
30987
30988
30989if test $pkg_failed = yes; then
30990
30991if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30992 _pkg_short_errors_supported=yes
30993else
30994 _pkg_short_errors_supported=no
30995fi
30996 if test $_pkg_short_errors_supported = yes; then
30997 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30998 else
30999 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31000 fi
31001 # Put the nasty error message in config.log where it belongs
31002 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31003
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31005$as_echo "no" >&6; }
31006 have_cairo=no
31007elif test $pkg_failed = untried; then
31008 have_cairo=no
31009else
31010 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31011 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31013$as_echo "yes" >&6; }
31014 have_cairo=yes
31015fi
cristy09b53e12011-10-14 12:47:22 +000031016 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31017$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031018fi
31019
31020if test "$have_rsvg" = 'yes'; then
31021
cristy8b350f62009-11-15 23:12:43 +000031022$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031023
31024 if test "$with_modules" = 'no'; then
31025 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31026 fi
31027fi
31028
31029if test "$have_cairo" = 'yes'; then
31030
cristy8b350f62009-11-15 23:12:43 +000031031$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031032
31033 if test "$with_modules" = 'no'; then
31034 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31035 fi
31036fi
31037
cristy73bd4a52010-10-05 11:24:23 +000031038 if test "$have_rsvg" = 'yes'; then
31039 RSVG_DELEGATE_TRUE=
31040 RSVG_DELEGATE_FALSE='#'
31041else
31042 RSVG_DELEGATE_TRUE='#'
31043 RSVG_DELEGATE_FALSE=
31044fi
31045
31046 if test "$have_cairo" = 'yes'; then
31047 CAIRO_DELEGATE_TRUE=
31048 CAIRO_DELEGATE_FALSE='#'
31049else
31050 CAIRO_DELEGATE_TRUE='#'
31051 CAIRO_DELEGATE_FALSE=
31052fi
31053
cristy3ed852e2009-09-05 21:47:34 +000031054
31055
31056
31057
31058#
31059# Check for TIFF delegate library.
31060#
31061
31062# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031063if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031064 withval=$with_tiff; with_tiff=$withval
31065else
31066 with_tiff='yes'
31067fi
31068
31069
31070if test "$with_tiff" != 'yes'; then
31071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31072fi
31073
31074have_tiff='no'
31075TIFF_LIBS=''
31076if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031077 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31078$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031080$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031081 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31082$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031083 failed=0
31084 passed=0
cristy8b350f62009-11-15 23:12:43 +000031085 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031086if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031087 passed=`expr $passed + 1`
31088else
31089 failed=`expr $failed + 1`
31090fi
31091
31092
cristy8b350f62009-11-15 23:12:43 +000031093 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031094if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031095 passed=`expr $passed + 1`
31096else
31097 failed=`expr $failed + 1`
31098fi
31099
31100
cristy8b350f62009-11-15 23:12:43 +000031101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031102$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031103if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031104 $as_echo_n "(cached) " >&6
31105else
31106 ac_check_lib_save_LIBS=$LIBS
31107LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031109/* end confdefs.h. */
31110
31111/* Override any GCC internal prototype to avoid an error.
31112 Use char because int might match the return type of a GCC
31113 builtin and then its argument prototype would still apply. */
31114#ifdef __cplusplus
31115extern "C"
31116#endif
31117char TIFFOpen ();
31118int
31119main ()
31120{
31121return TIFFOpen ();
31122 ;
31123 return 0;
31124}
31125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031126if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031127 ac_cv_lib_tiff_TIFFOpen=yes
31128else
cristy8b350f62009-11-15 23:12:43 +000031129 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031130fi
cristy8b350f62009-11-15 23:12:43 +000031131rm -f core conftest.err conftest.$ac_objext \
31132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031133LIBS=$ac_check_lib_save_LIBS
31134fi
cristy8b350f62009-11-15 23:12:43 +000031135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031136$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031137if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031138 passed=`expr $passed + 1`
31139else
31140 failed=`expr $failed + 1`
31141fi
31142
cristy8b350f62009-11-15 23:12:43 +000031143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031144$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031145if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031146 $as_echo_n "(cached) " >&6
31147else
31148 ac_check_lib_save_LIBS=$LIBS
31149LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031151/* end confdefs.h. */
31152
31153/* Override any GCC internal prototype to avoid an error.
31154 Use char because int might match the return type of a GCC
31155 builtin and then its argument prototype would still apply. */
31156#ifdef __cplusplus
31157extern "C"
31158#endif
31159char TIFFClientOpen ();
31160int
31161main ()
31162{
31163return TIFFClientOpen ();
31164 ;
31165 return 0;
31166}
31167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031169 ac_cv_lib_tiff_TIFFClientOpen=yes
31170else
cristy8b350f62009-11-15 23:12:43 +000031171 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031172fi
cristy8b350f62009-11-15 23:12:43 +000031173rm -f core conftest.err conftest.$ac_objext \
31174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031175LIBS=$ac_check_lib_save_LIBS
31176fi
cristy8b350f62009-11-15 23:12:43 +000031177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031178$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031179if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031180 passed=`expr $passed + 1`
31181else
31182 failed=`expr $failed + 1`
31183fi
31184
cristyb97f1002010-07-26 14:02:57 +000031185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
31186$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031187if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000031188 $as_echo_n "(cached) " >&6
31189else
31190 ac_check_lib_save_LIBS=$LIBS
31191LIBS="-ltiff $LIBS"
31192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31193/* end confdefs.h. */
31194
31195/* Override any GCC internal prototype to avoid an error.
31196 Use char because int might match the return type of a GCC
31197 builtin and then its argument prototype would still apply. */
31198#ifdef __cplusplus
31199extern "C"
31200#endif
31201char TIFFIsBigEndian ();
31202int
31203main ()
31204{
31205return TIFFIsBigEndian ();
31206 ;
31207 return 0;
31208}
31209_ACEOF
31210if ac_fn_c_try_link "$LINENO"; then :
31211 ac_cv_lib_tiff_TIFFIsBigEndian=yes
31212else
31213 ac_cv_lib_tiff_TIFFIsBigEndian=no
31214fi
31215rm -f core conftest.err conftest.$ac_objext \
31216 conftest$ac_exeext conftest.$ac_ext
31217LIBS=$ac_check_lib_save_LIBS
31218fi
31219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
31220$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000031221if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000031222 passed=`expr $passed + 1`
31223else
31224 failed=`expr $failed + 1`
31225fi
31226
cristy8b350f62009-11-15 23:12:43 +000031227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031228$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031229if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031230 $as_echo_n "(cached) " >&6
31231else
31232 ac_check_lib_save_LIBS=$LIBS
31233LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031235/* end confdefs.h. */
31236
31237/* Override any GCC internal prototype to avoid an error.
31238 Use char because int might match the return type of a GCC
31239 builtin and then its argument prototype would still apply. */
31240#ifdef __cplusplus
31241extern "C"
31242#endif
31243char TIFFIsByteSwapped ();
31244int
31245main ()
31246{
31247return TIFFIsByteSwapped ();
31248 ;
31249 return 0;
31250}
31251_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031252if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031253 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31254else
cristy8b350f62009-11-15 23:12:43 +000031255 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031256fi
cristy8b350f62009-11-15 23:12:43 +000031257rm -f core conftest.err conftest.$ac_objext \
31258 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031259LIBS=$ac_check_lib_save_LIBS
31260fi
cristy8b350f62009-11-15 23:12:43 +000031261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031263if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031264 passed=`expr $passed + 1`
31265else
31266 failed=`expr $failed + 1`
31267fi
31268
cristy8b350f62009-11-15 23:12:43 +000031269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031270$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031271if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031272 $as_echo_n "(cached) " >&6
31273else
31274 ac_check_lib_save_LIBS=$LIBS
31275LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031277/* end confdefs.h. */
31278
31279/* Override any GCC internal prototype to avoid an error.
31280 Use char because int might match the return type of a GCC
31281 builtin and then its argument prototype would still apply. */
31282#ifdef __cplusplus
31283extern "C"
31284#endif
31285char TIFFReadRGBATile ();
31286int
31287main ()
31288{
31289return TIFFReadRGBATile ();
31290 ;
31291 return 0;
31292}
31293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031295 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31296else
cristy8b350f62009-11-15 23:12:43 +000031297 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031298fi
cristy8b350f62009-11-15 23:12:43 +000031299rm -f core conftest.err conftest.$ac_objext \
31300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031301LIBS=$ac_check_lib_save_LIBS
31302fi
cristy8b350f62009-11-15 23:12:43 +000031303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031304$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031305if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031306 passed=`expr $passed + 1`
31307else
31308 failed=`expr $failed + 1`
31309fi
31310
cristy8b350f62009-11-15 23:12:43 +000031311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031312$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031313if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031314 $as_echo_n "(cached) " >&6
31315else
31316 ac_check_lib_save_LIBS=$LIBS
31317LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031319/* end confdefs.h. */
31320
31321/* Override any GCC internal prototype to avoid an error.
31322 Use char because int might match the return type of a GCC
31323 builtin and then its argument prototype would still apply. */
31324#ifdef __cplusplus
31325extern "C"
31326#endif
31327char TIFFReadRGBAStrip ();
31328int
31329main ()
31330{
31331return TIFFReadRGBAStrip ();
31332 ;
31333 return 0;
31334}
31335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031337 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31338else
cristy8b350f62009-11-15 23:12:43 +000031339 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031340fi
cristy8b350f62009-11-15 23:12:43 +000031341rm -f core conftest.err conftest.$ac_objext \
31342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031343LIBS=$ac_check_lib_save_LIBS
31344fi
cristy8b350f62009-11-15 23:12:43 +000031345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031346$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031347if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031348 passed=`expr $passed + 1`
31349else
31350 failed=`expr $failed + 1`
31351fi
31352
cristy8b350f62009-11-15 23:12:43 +000031353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031354$as_echo_n "checking if TIFF package is complete... " >&6; }
31355 if test $passed -gt 0; then
31356 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031357 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31358$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031359 have_tiff='no (failed tests)'
31360 else
31361 TIFF_LIBS='-ltiff'
31362 LIBS="$TIFF_LIBS $LIBS"
31363
cristy8b350f62009-11-15 23:12:43 +000031364$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031365
cristy09b53e12011-10-14 12:47:22 +000031366 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31367$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031368 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031369 for ac_header in tiffconf.h
31370do :
31371 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031372if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031373 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031374#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031375_ACEOF
31376
31377fi
31378
31379done
31380
cristy8b350f62009-11-15 23:12:43 +000031381 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031382 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31383 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031384do :
31385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31386ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031387if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031388 cat >>confdefs.h <<_ACEOF
31389#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31390_ACEOF
31391
31392fi
31393done
31394
31395 fi
31396 else
cristy09b53e12011-10-14 12:47:22 +000031397 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31398$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031399 fi
31400fi
cristy73bd4a52010-10-05 11:24:23 +000031401 if test "$have_tiff" = 'yes'; then
31402 TIFF_DELEGATE_TRUE=
31403 TIFF_DELEGATE_FALSE='#'
31404else
31405 TIFF_DELEGATE_TRUE='#'
31406 TIFF_DELEGATE_FALSE=
31407fi
31408
cristy3ed852e2009-09-05 21:47:34 +000031409
31410
31411
31412#
cristyb1860752011-03-14 00:27:46 +000031413# Check for WEBP delegate library.
31414#
31415
31416# Check whether --with-webp was given.
31417if test "${with_webp+set}" = set; then :
31418 withval=$with_webp; with_webp=$withval
31419else
31420 with_webp='yes'
31421fi
31422
31423
31424if test "$with_webp" != 'yes'; then
31425 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31426fi
31427
31428have_webp='no'
31429WEBP_LIBS=''
31430if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031431 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31432$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31434$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031435 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31436$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031437 failed=0
31438 passed=0
31439 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31440if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31441 passed=`expr $passed + 1`
31442else
31443 failed=`expr $failed + 1`
31444fi
31445
31446
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31448$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31449if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31450 $as_echo_n "(cached) " >&6
31451else
31452 ac_check_lib_save_LIBS=$LIBS
31453LIBS="-lwebp $LIBS"
31454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31455/* end confdefs.h. */
31456
31457/* Override any GCC internal prototype to avoid an error.
31458 Use char because int might match the return type of a GCC
31459 builtin and then its argument prototype would still apply. */
31460#ifdef __cplusplus
31461extern "C"
31462#endif
31463char WebPDecodeRGB ();
31464int
31465main ()
31466{
31467return WebPDecodeRGB ();
31468 ;
31469 return 0;
31470}
31471_ACEOF
31472if ac_fn_c_try_link "$LINENO"; then :
31473 ac_cv_lib_webp_WebPDecodeRGB=yes
31474else
31475 ac_cv_lib_webp_WebPDecodeRGB=no
31476fi
31477rm -f core conftest.err conftest.$ac_objext \
31478 conftest$ac_exeext conftest.$ac_ext
31479LIBS=$ac_check_lib_save_LIBS
31480fi
31481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31482$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31483if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31484 passed=`expr $passed + 1`
31485else
31486 failed=`expr $failed + 1`
31487fi
31488
31489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31490$as_echo_n "checking if WEBP package is complete... " >&6; }
31491 if test $passed -gt 0; then
31492 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031493 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31494$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031495 have_webp='no (failed tests)'
31496 else
31497 WEBP_LIBS='-lwebp'
31498 LIBS="$WEBP_LIBS $LIBS"
31499
31500$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31501
cristy09b53e12011-10-14 12:47:22 +000031502 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31503$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031504 have_webp='yes'
31505 fi
31506 else
cristy09b53e12011-10-14 12:47:22 +000031507 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31508$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031509 fi
31510fi
31511 if test "$have_webp" = 'yes'; then
31512 WEBP_DELEGATE_TRUE=
31513 WEBP_DELEGATE_FALSE='#'
31514else
31515 WEBP_DELEGATE_TRUE='#'
31516 WEBP_DELEGATE_FALSE=
31517fi
31518
31519
31520
31521
31522#
cristy3ed852e2009-09-05 21:47:34 +000031523# Set Windows font directory.
31524#
31525
31526# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031527if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031528 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31529else
31530 with_windows_font_dir=''
31531fi
31532
31533if test "$with_windows_font_dir" != '' ; then
31534 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31535fi
31536
31537
31538#
31539# Check for WMF delegate library.
31540#
31541
31542# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031543if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031544 withval=$with_wmf; with_wmf=$withval
31545else
cristy8d63d1d2010-01-06 20:38:37 +000031546 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031547fi
31548
31549
31550if test "$with_wmf" != 'yes'; then
31551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31552fi
31553
31554have_wmf='no'
31555WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031556if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031557 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31558$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031560$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31562$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031563 failed=0
31564 passed=0
31565 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31566if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31567 passed=`expr $passed + 1`
31568else
31569 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031570fi
31571
31572
glennrp33e524b2011-08-24 17:41:57 +000031573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31574$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31575if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031576 $as_echo_n "(cached) " >&6
31577else
31578 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031579LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031581/* end confdefs.h. */
31582
31583/* Override any GCC internal prototype to avoid an error.
31584 Use char because int might match the return type of a GCC
31585 builtin and then its argument prototype would still apply. */
31586#ifdef __cplusplus
31587extern "C"
31588#endif
glennrp33e524b2011-08-24 17:41:57 +000031589char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031590int
31591main ()
31592{
glennrp33e524b2011-08-24 17:41:57 +000031593return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031594 ;
31595 return 0;
31596}
31597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031598if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031599 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031600else
glennrp33e524b2011-08-24 17:41:57 +000031601 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031602fi
cristy8b350f62009-11-15 23:12:43 +000031603rm -f core conftest.err conftest.$ac_objext \
31604 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031605LIBS=$ac_check_lib_save_LIBS
31606fi
glennrp33e524b2011-08-24 17:41:57 +000031607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31608$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31609if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31610 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031611else
glennrp33e524b2011-08-24 17:41:57 +000031612 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031613fi
31614
glennrp33e524b2011-08-24 17:41:57 +000031615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31616$as_echo_n "checking if WMF package is complete... " >&6; }
31617 if test $passed -gt 0; then
31618 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031619 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31620$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031621 have_wmf='no (failed tests)'
31622 else
31623 WMF_LIBS='-lwmf -lwmflite'
31624 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031625
cristy8b350f62009-11-15 23:12:43 +000031626$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031627
cristy09b53e12011-10-14 12:47:22 +000031628 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31629$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031630 have_wmf='yes'
31631 fi
31632 else
cristy09b53e12011-10-14 12:47:22 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31634$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031635 fi
cristy3ed852e2009-09-05 21:47:34 +000031636fi
cristy73bd4a52010-10-05 11:24:23 +000031637 if test "$have_wmf" = 'yes'; then
31638 WMF_DELEGATE_TRUE=
31639 WMF_DELEGATE_FALSE='#'
31640else
31641 WMF_DELEGATE_TRUE='#'
31642 WMF_DELEGATE_FALSE=
31643fi
31644
cristy3ed852e2009-09-05 21:47:34 +000031645
31646
31647
cristy81beccd2011-10-03 18:17:24 +000031648
31649
cristy3ed852e2009-09-05 21:47:34 +000031650#
31651# Check for XML delegate library.
31652#
31653
31654# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031655if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031656 withval=$with_xml; with_xml=$withval
31657else
cristy81beccd2011-10-03 18:17:24 +000031658 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031659fi
31660
31661
cristy81beccd2011-10-03 18:17:24 +000031662if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031663 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31664fi
31665
cristy81beccd2011-10-03 18:17:24 +000031666have_xml='no'
31667XML_LIBS=''
31668if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031669 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31670$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31672$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031673 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31674$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031675 PERSIST_LDFLAGS=$LDFLAGS
31676 PERSIST_CPPFLAGS=$CPPFLAGS
31677 xml2_config=''
31678 # Extract the first word of "xml2-config", so it can be a program name with args.
31679set dummy xml2-config; ac_word=$2
31680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31681$as_echo_n "checking for $ac_word... " >&6; }
31682if ${ac_cv_path_xml2_config+:} false; then :
31683 $as_echo_n "(cached) " >&6
31684else
31685 case $xml2_config in
31686 [\\/]* | ?:[\\/]*)
31687 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31688 ;;
31689 *)
31690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31691for as_dir in $PATH
31692do
31693 IFS=$as_save_IFS
31694 test -z "$as_dir" && as_dir=.
31695 for ac_exec_ext in '' $ac_executable_extensions; do
31696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31697 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31699 break 2
31700 fi
31701done
31702 done
31703IFS=$as_save_IFS
31704
31705 ;;
31706esac
31707fi
31708xml2_config=$ac_cv_path_xml2_config
31709if test -n "$xml2_config"; then
31710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31711$as_echo "$xml2_config" >&6; }
31712else
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031715fi
31716
cristy81beccd2011-10-03 18:17:24 +000031717 if test -n "$xml2_config"; then
31718 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31719 # the shared library installed under /usr/lib, whereas the package
31720 # installs itself under $prefix/libxml and $prefix/lib.
31721 xml2_prefix=`xml2-config --prefix`
31722 if test -d "${xml2_prefix}/include/libxml2"; then
31723 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31724 fi
31725 if test "${xml2_prefix}" != '/usr'; then
31726 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31727 fi
31728 fi
31729 failed=0
31730 passed=0
31731 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31732if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31733 passed=`expr $passed + 1`
31734else
31735 failed=`expr $failed + 1`
31736fi
31737
31738
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31740$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31741if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31742 $as_echo_n "(cached) " >&6
31743else
31744 ac_check_lib_save_LIBS=$LIBS
31745LIBS="-lxml2 $LIBS"
31746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31747/* end confdefs.h. */
31748
31749/* Override any GCC internal prototype to avoid an error.
31750 Use char because int might match the return type of a GCC
31751 builtin and then its argument prototype would still apply. */
31752#ifdef __cplusplus
31753extern "C"
31754#endif
31755char xmlSAXVersion ();
31756int
31757main ()
31758{
31759return xmlSAXVersion ();
31760 ;
31761 return 0;
31762}
31763_ACEOF
31764if ac_fn_c_try_link "$LINENO"; then :
31765 ac_cv_lib_xml2_xmlSAXVersion=yes
31766else
31767 ac_cv_lib_xml2_xmlSAXVersion=no
31768fi
31769rm -f core conftest.err conftest.$ac_objext \
31770 conftest$ac_exeext conftest.$ac_ext
31771LIBS=$ac_check_lib_save_LIBS
31772fi
31773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31774$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31775if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31776 passed=`expr $passed + 1`
31777else
31778 failed=`expr $failed + 1`
31779fi
31780
31781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31782$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31783if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31784 $as_echo_n "(cached) " >&6
31785else
31786 ac_check_lib_save_LIBS=$LIBS
31787LIBS="-lxml2 $LIBS"
31788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31789/* end confdefs.h. */
31790
31791/* Override any GCC internal prototype to avoid an error.
31792 Use char because int might match the return type of a GCC
31793 builtin and then its argument prototype would still apply. */
31794#ifdef __cplusplus
31795extern "C"
31796#endif
31797char xmlParseChunk ();
31798int
31799main ()
31800{
31801return xmlParseChunk ();
31802 ;
31803 return 0;
31804}
31805_ACEOF
31806if ac_fn_c_try_link "$LINENO"; then :
31807 ac_cv_lib_xml2_xmlParseChunk=yes
31808else
31809 ac_cv_lib_xml2_xmlParseChunk=no
31810fi
31811rm -f core conftest.err conftest.$ac_objext \
31812 conftest$ac_exeext conftest.$ac_ext
31813LIBS=$ac_check_lib_save_LIBS
31814fi
31815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31816$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31817if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31818 passed=`expr $passed + 1`
31819else
31820 failed=`expr $failed + 1`
31821fi
31822
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31824$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31825if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31826 $as_echo_n "(cached) " >&6
31827else
31828 ac_check_lib_save_LIBS=$LIBS
31829LIBS="-lxml2 $LIBS"
31830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31831/* end confdefs.h. */
31832
31833/* Override any GCC internal prototype to avoid an error.
31834 Use char because int might match the return type of a GCC
31835 builtin and then its argument prototype would still apply. */
31836#ifdef __cplusplus
31837extern "C"
31838#endif
31839char xmlCreatePushParserCtxt ();
31840int
31841main ()
31842{
31843return xmlCreatePushParserCtxt ();
31844 ;
31845 return 0;
31846}
31847_ACEOF
31848if ac_fn_c_try_link "$LINENO"; then :
31849 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31850else
31851 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31852fi
31853rm -f core conftest.err conftest.$ac_objext \
31854 conftest$ac_exeext conftest.$ac_ext
31855LIBS=$ac_check_lib_save_LIBS
31856fi
31857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31858$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31859if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31860 passed=`expr $passed + 1`
31861else
31862 failed=`expr $failed + 1`
31863fi
31864
31865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31866$as_echo_n "checking if XML package is complete... " >&6; }
31867 if test $passed -gt 0; then
31868 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031869 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31870$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031871 have_xml='no (failed tests)'
31872 LDFLAGS="$PERSIST_LDFLAGS"
31873 CPPFLAGS="$PERSIST_CPPFLAGS"
31874 else
31875 XML_LIBS='-lxml2'
31876 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031877
cristy8b350f62009-11-15 23:12:43 +000031878$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031879
cristy09b53e12011-10-14 12:47:22 +000031880 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31881$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031882 have_xml='yes'
31883 fi
31884 else
cristy09b53e12011-10-14 12:47:22 +000031885 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31886$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031887 fi
31888fi
cristy73bd4a52010-10-05 11:24:23 +000031889 if test "$have_xml" = 'yes'; then
31890 XML_DELEGATE_TRUE=
31891 XML_DELEGATE_FALSE='#'
31892else
31893 XML_DELEGATE_TRUE='#'
31894 XML_DELEGATE_FALSE=
31895fi
31896
cristy3ed852e2009-09-05 21:47:34 +000031897
31898
31899
31900# Substitute compiler name to build/link PerlMagick
31901#
31902
31903
31904#
31905# Configure install Paths
31906#
cristy7def36a2011-10-28 19:04:41 +000031907
cristy2a11bef2011-10-28 18:33:11 +000031908# Path to ImageMagick header files
31909INCLUDE_RELATIVE_PATH="ImageMagick"
31910INCLUDE_PATH="${INCLUDEDIR_ARCH}/${INCLUDE_RELATIVE_PATH}"
31911DEFINE_INCLUDE_PATH="${INCLUDEDIR_ARCH}/${INCLUDE_RELATIVE_PATH}/"
31912case "${build_os}" in
31913 mingw* )
31914 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31915 ;;
31916esac
31917
31918cat >>confdefs.h <<_ACEOF
31919#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31920_ACEOF
31921
31922
cristy3ed852e2009-09-05 21:47:34 +000031923
31924# Subdirectory under lib to place ImageMagick lib files
31925LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31926
31927cat >>confdefs.h <<_ACEOF
31928#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31929_ACEOF
31930
31931
31932# Path to ImageMagick bin directory
31933EXECUTABLE_PATH="${BIN_DIR}"
31934DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31935case "${build_os}" in
31936 mingw* )
31937 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31938 ;;
31939esac
31940
31941cat >>confdefs.h <<_ACEOF
31942#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31943_ACEOF
31944
31945
31946
31947# Path to ImageMagick lib
31948LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31949DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31950case "${build_os}" in
31951 mingw* )
31952 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31953 ;;
31954esac
31955
31956cat >>confdefs.h <<_ACEOF
31957#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31958_ACEOF
31959
31960
31961
cristy3ed852e2009-09-05 21:47:34 +000031962#
31963# Subdirectory under lib to place ImageMagick coder module files
31964CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31965
31966cat >>confdefs.h <<_ACEOF
31967#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31968_ACEOF
31969
31970CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31971DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31972case "${build_os}" in
31973 mingw* )
31974 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31975 ;;
31976esac
31977
31978cat >>confdefs.h <<_ACEOF
31979#define CODER_PATH "$DEFINE_CODER_PATH"
31980_ACEOF
31981
31982
31983
31984#
31985# Subdirectory under lib to place ImageMagick filter module files
31986FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31987
31988cat >>confdefs.h <<_ACEOF
31989#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31990_ACEOF
31991
31992FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31993DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31994case "${build_os}" in
31995 mingw* )
31996 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31997 ;;
31998esac
31999
32000cat >>confdefs.h <<_ACEOF
32001#define FILTER_PATH "$DEFINE_FILTER_PATH"
32002_ACEOF
32003
32004
32005
32006#
32007# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032008DOCUMENTATION_RELATIVE_PATH=""
32009DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32010DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032011case "${build_os}" in
32012 mingw* )
32013 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32014 ;;
32015esac
32016
32017cat >>confdefs.h <<_ACEOF
32018#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32019_ACEOF
32020
32021
32022
cristy2a11bef2011-10-28 18:33:11 +000032023# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032024CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032025
32026cat >>confdefs.h <<_ACEOF
32027#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32028_ACEOF
32029
cristy7def36a2011-10-28 19:04:41 +000032030CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032031DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32032case "${build_os}" in
32033 mingw* )
32034 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32035 ;;
32036esac
32037
32038cat >>confdefs.h <<_ACEOF
32039#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32040_ACEOF
32041
32042
32043
cristy2a11bef2011-10-28 18:33:11 +000032044# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032045SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032046
32047cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032048#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032049_ACEOF
32050
cristy7def36a2011-10-28 19:04:41 +000032051SHARE_PATH="${SHAREDIR-ARCH}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032052DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032053case "${build_os}" in
32054 mingw* )
cristy4f820712011-04-01 12:35:43 +000032055 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032056 ;;
32057esac
32058
32059cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032060#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032061_ACEOF
32062
32063
32064
32065#
32066# program_transform_name is formed for use in a Makefile, so create a
32067# modified version for use in a shell script.
32068configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32069
32070# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032071{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32072$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032074$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032075{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32076$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032077AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032078BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032079BZIPDelegateDefault='bzip2'
32080BrowseDelegateDefault='xdg-open'
32081CGMDecodeDelegateDefault='ralcgm'
32082CatDelegateDefault='cat'
32083DNGDecodeDelegateDefault='ufraw-batch'
32084GVCDecodeDelegateDefault='dot'
32085DVIDecodeDelegateDefault='dvips'
32086EchoDelegateDefault='echo'
32087EditorDelegateDefault='xterm'
32088FIGDecodeDelegateDefault='fig2dev'
32089ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32090DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32091MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32092GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032093HPGLDecodeDelegateDefault='hp2xx'
32094HTMLDecodeDelegateDefault='html2ps'
32095ILBMDecodeDelegateDefault='ilbmtoppm'
32096ILBMEncodeDelegateDefault='ppmtoilbm'
32097LPDelegateDefault='lp'
32098LPRDelegateDefault='lpr'
32099LZWDecodeDelegateDefault='uncompress'
32100LZWEncodeDelegateDefault='compress'
32101LaunchDelegateDefault='gimp'
32102MANDelegateDefault='groff'
32103MPEGDecodeDelegateDefault='ffmpeg'
32104MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032105MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032106MVDelegateDefault='mv'
32107PCLDelegateDefault='pcl6'
32108PGPDecodeDelegateDefault='pgpv'
32109POVDelegateDefault='povray'
32110if test "$native_win32_build" = 'yes'; then
32111 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032112elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032113 PSDelegateDefault='gsc'
32114else
32115 PSDelegateDefault='gs'
32116fi
32117RLEEncodeDelegateDefault='rawtorle'
32118RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032119RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032120SCANDecodeDelegateDefault='scanimage'
32121TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032122UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032123WMFDecodeDelegateDefault='wmf2eps'
32124WWWDecodeDelegateDefault='curl'
32125XPSDelegateDefault='gxps'
32126ZipDelegateDefault='gzip'
32127
32128# Search for delegates
32129# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32130set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032132$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032133if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032134 $as_echo_n "(cached) " >&6
32135else
32136 case $AutotraceDecodeDelegate in
32137 [\\/]* | ?:[\\/]*)
32138 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32139 ;;
32140 *)
32141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32142for as_dir in $PATH
32143do
32144 IFS=$as_save_IFS
32145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32148 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150 break 2
32151 fi
32152done
cristy8b350f62009-11-15 23:12:43 +000032153 done
cristy3ed852e2009-09-05 21:47:34 +000032154IFS=$as_save_IFS
32155
32156 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32157 ;;
32158esac
32159fi
32160AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32161if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032163$as_echo "$AutotraceDecodeDelegate" >&6; }
32164else
cristy8b350f62009-11-15 23:12:43 +000032165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032166$as_echo "no" >&6; }
32167fi
32168
32169
cristy3ed852e2009-09-05 21:47:34 +000032170# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32171set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032174if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032175 $as_echo_n "(cached) " >&6
32176else
32177 case $BlenderDecodeDelegate in
32178 [\\/]* | ?:[\\/]*)
32179 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32180 ;;
32181 *)
32182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32183for as_dir in $PATH
32184do
32185 IFS=$as_save_IFS
32186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32189 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191 break 2
32192 fi
32193done
cristy8b350f62009-11-15 23:12:43 +000032194 done
cristy3ed852e2009-09-05 21:47:34 +000032195IFS=$as_save_IFS
32196
32197 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32198 ;;
32199esac
32200fi
32201BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32202if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032204$as_echo "$BlenderDecodeDelegate" >&6; }
32205else
cristy8b350f62009-11-15 23:12:43 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032207$as_echo "no" >&6; }
32208fi
32209
32210
32211# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32212set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032215if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032216 $as_echo_n "(cached) " >&6
32217else
32218 case $BZIPDelegate in
32219 [\\/]* | ?:[\\/]*)
32220 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32221 ;;
32222 *)
32223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32224for as_dir in $PATH
32225do
32226 IFS=$as_save_IFS
32227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32230 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032232 break 2
32233 fi
32234done
cristy8b350f62009-11-15 23:12:43 +000032235 done
cristy3ed852e2009-09-05 21:47:34 +000032236IFS=$as_save_IFS
32237
32238 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32239 ;;
32240esac
32241fi
32242BZIPDelegate=$ac_cv_path_BZIPDelegate
32243if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032245$as_echo "$BZIPDelegate" >&6; }
32246else
cristy8b350f62009-11-15 23:12:43 +000032247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032248$as_echo "no" >&6; }
32249fi
32250
32251
32252# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32253set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032255$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032256if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032257 $as_echo_n "(cached) " >&6
32258else
32259 case $BrowseDelegate in
32260 [\\/]* | ?:[\\/]*)
32261 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32262 ;;
32263 *)
32264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32265for as_dir in $PATH
32266do
32267 IFS=$as_save_IFS
32268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32271 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032273 break 2
32274 fi
32275done
cristy8b350f62009-11-15 23:12:43 +000032276 done
cristy3ed852e2009-09-05 21:47:34 +000032277IFS=$as_save_IFS
32278
32279 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32280 ;;
32281esac
32282fi
32283BrowseDelegate=$ac_cv_path_BrowseDelegate
32284if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032286$as_echo "$BrowseDelegate" >&6; }
32287else
cristy8b350f62009-11-15 23:12:43 +000032288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032289$as_echo "no" >&6; }
32290fi
32291
32292
32293# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32294set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032297if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032298 $as_echo_n "(cached) " >&6
32299else
32300 case $CGMDecodeDelegate in
32301 [\\/]* | ?:[\\/]*)
32302 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32303 ;;
32304 *)
32305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32306for as_dir in $PATH
32307do
32308 IFS=$as_save_IFS
32309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32312 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032314 break 2
32315 fi
32316done
cristy8b350f62009-11-15 23:12:43 +000032317 done
cristy3ed852e2009-09-05 21:47:34 +000032318IFS=$as_save_IFS
32319
32320 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32321 ;;
32322esac
32323fi
32324CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32325if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032327$as_echo "$CGMDecodeDelegate" >&6; }
32328else
cristy8b350f62009-11-15 23:12:43 +000032329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032330$as_echo "no" >&6; }
32331fi
32332
32333
32334# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32335set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032337$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032338if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032339 $as_echo_n "(cached) " >&6
32340else
32341 case $CatDelegate in
32342 [\\/]* | ?:[\\/]*)
32343 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32344 ;;
32345 *)
32346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32347for as_dir in $PATH
32348do
32349 IFS=$as_save_IFS
32350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32353 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032355 break 2
32356 fi
32357done
cristy8b350f62009-11-15 23:12:43 +000032358 done
cristy3ed852e2009-09-05 21:47:34 +000032359IFS=$as_save_IFS
32360
32361 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32362 ;;
32363esac
32364fi
32365CatDelegate=$ac_cv_path_CatDelegate
32366if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032368$as_echo "$CatDelegate" >&6; }
32369else
cristy8b350f62009-11-15 23:12:43 +000032370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032371$as_echo "no" >&6; }
32372fi
32373
32374
32375# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32376set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032379if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032380 $as_echo_n "(cached) " >&6
32381else
32382 case $DNGDecodeDelegate in
32383 [\\/]* | ?:[\\/]*)
32384 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32385 ;;
32386 *)
32387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32388for as_dir in $PATH
32389do
32390 IFS=$as_save_IFS
32391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32394 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032396 break 2
32397 fi
32398done
cristy8b350f62009-11-15 23:12:43 +000032399 done
cristy3ed852e2009-09-05 21:47:34 +000032400IFS=$as_save_IFS
32401
32402 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32403 ;;
32404esac
32405fi
32406DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32407if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032409$as_echo "$DNGDecodeDelegate" >&6; }
32410else
cristy8b350f62009-11-15 23:12:43 +000032411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032412$as_echo "no" >&6; }
32413fi
32414
32415
32416# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32417set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032420if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032421 $as_echo_n "(cached) " >&6
32422else
32423 case $GVCDecodeDelegate in
32424 [\\/]* | ?:[\\/]*)
32425 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32426 ;;
32427 *)
32428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32429for as_dir in $PATH
32430do
32431 IFS=$as_save_IFS
32432 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32435 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032437 break 2
32438 fi
32439done
cristy8b350f62009-11-15 23:12:43 +000032440 done
cristy3ed852e2009-09-05 21:47:34 +000032441IFS=$as_save_IFS
32442
32443 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32444 ;;
32445esac
32446fi
32447GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32448if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032450$as_echo "$GVCDecodeDelegate" >&6; }
32451else
cristy8b350f62009-11-15 23:12:43 +000032452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032453$as_echo "no" >&6; }
32454fi
32455
32456
32457# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32458set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032461if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032462 $as_echo_n "(cached) " >&6
32463else
32464 case $DVIDecodeDelegate in
32465 [\\/]* | ?:[\\/]*)
32466 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32467 ;;
32468 *)
32469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32470for as_dir in $PATH
32471do
32472 IFS=$as_save_IFS
32473 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32476 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032478 break 2
32479 fi
32480done
cristy8b350f62009-11-15 23:12:43 +000032481 done
cristy3ed852e2009-09-05 21:47:34 +000032482IFS=$as_save_IFS
32483
32484 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32485 ;;
32486esac
32487fi
32488DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32489if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032491$as_echo "$DVIDecodeDelegate" >&6; }
32492else
cristy8b350f62009-11-15 23:12:43 +000032493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032494$as_echo "no" >&6; }
32495fi
32496
32497
32498# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32499set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032502if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032503 $as_echo_n "(cached) " >&6
32504else
32505 case $EchoDelegate in
32506 [\\/]* | ?:[\\/]*)
32507 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32508 ;;
32509 *)
32510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32511for as_dir in $PATH
32512do
32513 IFS=$as_save_IFS
32514 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32517 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032519 break 2
32520 fi
32521done
cristy8b350f62009-11-15 23:12:43 +000032522 done
cristy3ed852e2009-09-05 21:47:34 +000032523IFS=$as_save_IFS
32524
32525 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32526 ;;
32527esac
32528fi
32529EchoDelegate=$ac_cv_path_EchoDelegate
32530if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032532$as_echo "$EchoDelegate" >&6; }
32533else
cristy8b350f62009-11-15 23:12:43 +000032534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032535$as_echo "no" >&6; }
32536fi
32537
32538
32539# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32540set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032543if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032544 $as_echo_n "(cached) " >&6
32545else
32546 case $EditorDelegate in
32547 [\\/]* | ?:[\\/]*)
32548 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32549 ;;
32550 *)
32551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32552for as_dir in $PATH
32553do
32554 IFS=$as_save_IFS
32555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32558 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032560 break 2
32561 fi
32562done
cristy8b350f62009-11-15 23:12:43 +000032563 done
cristy3ed852e2009-09-05 21:47:34 +000032564IFS=$as_save_IFS
32565
32566 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32567 ;;
32568esac
32569fi
32570EditorDelegate=$ac_cv_path_EditorDelegate
32571if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032573$as_echo "$EditorDelegate" >&6; }
32574else
cristy8b350f62009-11-15 23:12:43 +000032575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032576$as_echo "no" >&6; }
32577fi
32578
32579
32580# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32581set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032584if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032585 $as_echo_n "(cached) " >&6
32586else
32587 case $FIGDecodeDelegate in
32588 [\\/]* | ?:[\\/]*)
32589 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32590 ;;
32591 *)
32592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32593for as_dir in $PATH
32594do
32595 IFS=$as_save_IFS
32596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32599 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032601 break 2
32602 fi
32603done
cristy8b350f62009-11-15 23:12:43 +000032604 done
cristy3ed852e2009-09-05 21:47:34 +000032605IFS=$as_save_IFS
32606
32607 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32608 ;;
32609esac
32610fi
32611FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32612if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032614$as_echo "$FIGDecodeDelegate" >&6; }
32615else
cristy8b350f62009-11-15 23:12:43 +000032616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617$as_echo "no" >&6; }
32618fi
32619
32620
32621# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32622set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032624$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032625if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032626 $as_echo_n "(cached) " >&6
32627else
32628 case $ConvertDelegate in
32629 [\\/]* | ?:[\\/]*)
32630 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32631 ;;
32632 *)
32633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32634for as_dir in $PATH
32635do
32636 IFS=$as_save_IFS
32637 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32640 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032642 break 2
32643 fi
32644done
cristy8b350f62009-11-15 23:12:43 +000032645 done
cristy3ed852e2009-09-05 21:47:34 +000032646IFS=$as_save_IFS
32647
32648 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32649 ;;
32650esac
32651fi
32652ConvertDelegate=$ac_cv_path_ConvertDelegate
32653if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032655$as_echo "$ConvertDelegate" >&6; }
32656else
cristy8b350f62009-11-15 23:12:43 +000032657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032658$as_echo "no" >&6; }
32659fi
32660
32661
32662# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32663set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032666if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032667 $as_echo_n "(cached) " >&6
32668else
32669 case $DisplayDelegate in
32670 [\\/]* | ?:[\\/]*)
32671 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32672 ;;
32673 *)
32674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32675for as_dir in $PATH
32676do
32677 IFS=$as_save_IFS
32678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32681 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032683 break 2
32684 fi
32685done
cristy8b350f62009-11-15 23:12:43 +000032686 done
cristy3ed852e2009-09-05 21:47:34 +000032687IFS=$as_save_IFS
32688
32689 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32690 ;;
32691esac
32692fi
32693DisplayDelegate=$ac_cv_path_DisplayDelegate
32694if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032696$as_echo "$DisplayDelegate" >&6; }
32697else
cristy8b350f62009-11-15 23:12:43 +000032698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032699$as_echo "no" >&6; }
32700fi
32701
32702
32703# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32704set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032707if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032708 $as_echo_n "(cached) " >&6
32709else
32710 case $MogrifyDelegate in
32711 [\\/]* | ?:[\\/]*)
32712 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32713 ;;
32714 *)
32715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32716for as_dir in $PATH
32717do
32718 IFS=$as_save_IFS
32719 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032720 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32722 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032724 break 2
32725 fi
32726done
cristy8b350f62009-11-15 23:12:43 +000032727 done
cristy3ed852e2009-09-05 21:47:34 +000032728IFS=$as_save_IFS
32729
32730 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32731 ;;
32732esac
32733fi
32734MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32735if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032737$as_echo "$MogrifyDelegate" >&6; }
32738else
cristy8b350f62009-11-15 23:12:43 +000032739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032740$as_echo "no" >&6; }
32741fi
32742
32743
32744# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32745set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032748if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032749 $as_echo_n "(cached) " >&6
32750else
32751 case $GnuplotDecodeDelegate in
32752 [\\/]* | ?:[\\/]*)
32753 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32754 ;;
32755 *)
32756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32757for as_dir in $PATH
32758do
32759 IFS=$as_save_IFS
32760 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32763 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032765 break 2
32766 fi
32767done
cristy8b350f62009-11-15 23:12:43 +000032768 done
cristy3ed852e2009-09-05 21:47:34 +000032769IFS=$as_save_IFS
32770
32771 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32772 ;;
32773esac
32774fi
32775GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32776if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032778$as_echo "$GnuplotDecodeDelegate" >&6; }
32779else
cristy8b350f62009-11-15 23:12:43 +000032780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781$as_echo "no" >&6; }
32782fi
32783
32784
cristy3ed852e2009-09-05 21:47:34 +000032785# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32786set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032789if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032790 $as_echo_n "(cached) " >&6
32791else
32792 case $HPGLDecodeDelegate in
32793 [\\/]* | ?:[\\/]*)
32794 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32795 ;;
32796 *)
32797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32798for as_dir in $PATH
32799do
32800 IFS=$as_save_IFS
32801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32804 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032806 break 2
32807 fi
32808done
cristy8b350f62009-11-15 23:12:43 +000032809 done
cristy3ed852e2009-09-05 21:47:34 +000032810IFS=$as_save_IFS
32811
32812 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32813 ;;
32814esac
32815fi
32816HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32817if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032819$as_echo "$HPGLDecodeDelegate" >&6; }
32820else
cristy8b350f62009-11-15 23:12:43 +000032821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032822$as_echo "no" >&6; }
32823fi
32824
32825
32826# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32827set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032830if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032831 $as_echo_n "(cached) " >&6
32832else
32833 case $HTMLDecodeDelegate in
32834 [\\/]* | ?:[\\/]*)
32835 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32836 ;;
32837 *)
32838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32839for as_dir in $PATH
32840do
32841 IFS=$as_save_IFS
32842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32845 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032847 break 2
32848 fi
32849done
cristy8b350f62009-11-15 23:12:43 +000032850 done
cristy3ed852e2009-09-05 21:47:34 +000032851IFS=$as_save_IFS
32852
32853 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32854 ;;
32855esac
32856fi
32857HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32858if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032860$as_echo "$HTMLDecodeDelegate" >&6; }
32861else
cristy8b350f62009-11-15 23:12:43 +000032862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032863$as_echo "no" >&6; }
32864fi
32865
32866
32867# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32868set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032871if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032872 $as_echo_n "(cached) " >&6
32873else
32874 case $ILBMDecodeDelegate in
32875 [\\/]* | ?:[\\/]*)
32876 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32877 ;;
32878 *)
32879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32880for as_dir in $PATH
32881do
32882 IFS=$as_save_IFS
32883 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32886 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032888 break 2
32889 fi
32890done
cristy8b350f62009-11-15 23:12:43 +000032891 done
cristy3ed852e2009-09-05 21:47:34 +000032892IFS=$as_save_IFS
32893
32894 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32895 ;;
32896esac
32897fi
32898ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32899if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032901$as_echo "$ILBMDecodeDelegate" >&6; }
32902else
cristy8b350f62009-11-15 23:12:43 +000032903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032904$as_echo "no" >&6; }
32905fi
32906
32907
32908# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32909set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032912if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032913 $as_echo_n "(cached) " >&6
32914else
32915 case $ILBMEncodeDelegate in
32916 [\\/]* | ?:[\\/]*)
32917 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32918 ;;
32919 *)
32920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32921for as_dir in $PATH
32922do
32923 IFS=$as_save_IFS
32924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32927 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929 break 2
32930 fi
32931done
cristy8b350f62009-11-15 23:12:43 +000032932 done
cristy3ed852e2009-09-05 21:47:34 +000032933IFS=$as_save_IFS
32934
32935 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32936 ;;
32937esac
32938fi
32939ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32940if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942$as_echo "$ILBMEncodeDelegate" >&6; }
32943else
cristy8b350f62009-11-15 23:12:43 +000032944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo "no" >&6; }
32946fi
32947
32948
32949# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32950set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032953if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032954 $as_echo_n "(cached) " >&6
32955else
32956 case $LPDelegate in
32957 [\\/]* | ?:[\\/]*)
32958 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32959 ;;
32960 *)
32961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32962for as_dir in $PATH
32963do
32964 IFS=$as_save_IFS
32965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32968 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970 break 2
32971 fi
32972done
cristy8b350f62009-11-15 23:12:43 +000032973 done
cristy3ed852e2009-09-05 21:47:34 +000032974IFS=$as_save_IFS
32975
32976 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32977 ;;
32978esac
32979fi
32980LPDelegate=$ac_cv_path_LPDelegate
32981if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo "$LPDelegate" >&6; }
32984else
cristy8b350f62009-11-15 23:12:43 +000032985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986$as_echo "no" >&6; }
32987fi
32988
32989
32990# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32991set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032994if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032995 $as_echo_n "(cached) " >&6
32996else
32997 case $LPRDelegate in
32998 [\\/]* | ?:[\\/]*)
32999 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33000 ;;
33001 *)
33002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33003for as_dir in $PATH
33004do
33005 IFS=$as_save_IFS
33006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33009 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011 break 2
33012 fi
33013done
cristy8b350f62009-11-15 23:12:43 +000033014 done
cristy3ed852e2009-09-05 21:47:34 +000033015IFS=$as_save_IFS
33016
33017 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33018 ;;
33019esac
33020fi
33021LPRDelegate=$ac_cv_path_LPRDelegate
33022if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024$as_echo "$LPRDelegate" >&6; }
33025else
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo "no" >&6; }
33028fi
33029
33030
33031# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33032set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033035if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033036 $as_echo_n "(cached) " >&6
33037else
33038 case $LZWDecodeDelegate in
33039 [\\/]* | ?:[\\/]*)
33040 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33041 ;;
33042 *)
33043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33044for as_dir in $PATH
33045do
33046 IFS=$as_save_IFS
33047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33050 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052 break 2
33053 fi
33054done
cristy8b350f62009-11-15 23:12:43 +000033055 done
cristy3ed852e2009-09-05 21:47:34 +000033056IFS=$as_save_IFS
33057
33058 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33059 ;;
33060esac
33061fi
33062LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33063if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033065$as_echo "$LZWDecodeDelegate" >&6; }
33066else
cristy8b350f62009-11-15 23:12:43 +000033067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033068$as_echo "no" >&6; }
33069fi
33070
33071
33072# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33073set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033076if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033077 $as_echo_n "(cached) " >&6
33078else
33079 case $LZWEncodeDelegate in
33080 [\\/]* | ?:[\\/]*)
33081 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33082 ;;
33083 *)
33084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33085for as_dir in $PATH
33086do
33087 IFS=$as_save_IFS
33088 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33091 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093 break 2
33094 fi
33095done
cristy8b350f62009-11-15 23:12:43 +000033096 done
cristy3ed852e2009-09-05 21:47:34 +000033097IFS=$as_save_IFS
33098
33099 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33100 ;;
33101esac
33102fi
33103LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33104if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033106$as_echo "$LZWEncodeDelegate" >&6; }
33107else
cristy8b350f62009-11-15 23:12:43 +000033108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033109$as_echo "no" >&6; }
33110fi
33111
33112
33113# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33114set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033117if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033118 $as_echo_n "(cached) " >&6
33119else
33120 case $LaunchDelegate in
33121 [\\/]* | ?:[\\/]*)
33122 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33123 ;;
33124 *)
33125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33126for as_dir in $PATH
33127do
33128 IFS=$as_save_IFS
33129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33132 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134 break 2
33135 fi
33136done
cristy8b350f62009-11-15 23:12:43 +000033137 done
cristy3ed852e2009-09-05 21:47:34 +000033138IFS=$as_save_IFS
33139
33140 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33141 ;;
33142esac
33143fi
33144LaunchDelegate=$ac_cv_path_LaunchDelegate
33145if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033147$as_echo "$LaunchDelegate" >&6; }
33148else
cristy8b350f62009-11-15 23:12:43 +000033149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033150$as_echo "no" >&6; }
33151fi
33152
33153
33154# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33155set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033158if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033159 $as_echo_n "(cached) " >&6
33160else
33161 case $MANDelegate in
33162 [\\/]* | ?:[\\/]*)
33163 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33164 ;;
33165 *)
33166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33167for as_dir in $PATH
33168do
33169 IFS=$as_save_IFS
33170 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033171 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33173 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175 break 2
33176 fi
33177done
cristy8b350f62009-11-15 23:12:43 +000033178 done
cristy3ed852e2009-09-05 21:47:34 +000033179IFS=$as_save_IFS
33180
33181 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33182 ;;
33183esac
33184fi
33185MANDelegate=$ac_cv_path_MANDelegate
33186if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033188$as_echo "$MANDelegate" >&6; }
33189else
cristy8b350f62009-11-15 23:12:43 +000033190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033191$as_echo "no" >&6; }
33192fi
33193
33194
33195# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33196set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033199if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033200 $as_echo_n "(cached) " >&6
33201else
33202 case $MPEGDecodeDelegate in
33203 [\\/]* | ?:[\\/]*)
33204 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33205 ;;
33206 *)
33207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33208for as_dir in $PATH
33209do
33210 IFS=$as_save_IFS
33211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33214 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216 break 2
33217 fi
33218done
cristy8b350f62009-11-15 23:12:43 +000033219 done
cristy3ed852e2009-09-05 21:47:34 +000033220IFS=$as_save_IFS
33221
33222 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33223 ;;
33224esac
33225fi
33226MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33227if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033229$as_echo "$MPEGDecodeDelegate" >&6; }
33230else
cristy8b350f62009-11-15 23:12:43 +000033231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033232$as_echo "no" >&6; }
33233fi
33234
33235
33236# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33237set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033240if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033241 $as_echo_n "(cached) " >&6
33242else
33243 case $MPEGEncodeDelegate in
33244 [\\/]* | ?:[\\/]*)
33245 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33246 ;;
33247 *)
33248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33249for as_dir in $PATH
33250do
33251 IFS=$as_save_IFS
33252 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33255 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257 break 2
33258 fi
33259done
cristy8b350f62009-11-15 23:12:43 +000033260 done
cristy3ed852e2009-09-05 21:47:34 +000033261IFS=$as_save_IFS
33262
33263 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33264 ;;
33265esac
33266fi
33267MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33268if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033270$as_echo "$MPEGEncodeDelegate" >&6; }
33271else
cristy8b350f62009-11-15 23:12:43 +000033272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033273$as_echo "no" >&6; }
33274fi
33275
33276
cristy935c86e2010-06-05 23:50:07 +000033277# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33278set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33280$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033281if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033282 $as_echo_n "(cached) " >&6
33283else
33284 case $MrSIDDecodeDelegate in
33285 [\\/]* | ?:[\\/]*)
33286 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33287 ;;
33288 *)
33289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33290for as_dir in $PATH
33291do
33292 IFS=$as_save_IFS
33293 test -z "$as_dir" && as_dir=.
33294 for ac_exec_ext in '' $ac_executable_extensions; do
33295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33296 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33298 break 2
33299 fi
33300done
33301 done
33302IFS=$as_save_IFS
33303
33304 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33305 ;;
33306esac
33307fi
33308MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33309if test -n "$MrSIDDecodeDelegate"; then
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33311$as_echo "$MrSIDDecodeDelegate" >&6; }
33312else
33313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33314$as_echo "no" >&6; }
33315fi
33316
33317
cristy3ed852e2009-09-05 21:47:34 +000033318# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33319set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033322if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033323 $as_echo_n "(cached) " >&6
33324else
33325 case $MVDelegate in
33326 [\\/]* | ?:[\\/]*)
33327 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33328 ;;
33329 *)
33330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33331for as_dir in $PATH
33332do
33333 IFS=$as_save_IFS
33334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33337 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339 break 2
33340 fi
33341done
cristy8b350f62009-11-15 23:12:43 +000033342 done
cristy3ed852e2009-09-05 21:47:34 +000033343IFS=$as_save_IFS
33344
33345 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33346 ;;
33347esac
33348fi
33349MVDelegate=$ac_cv_path_MVDelegate
33350if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033352$as_echo "$MVDelegate" >&6; }
33353else
cristy8b350f62009-11-15 23:12:43 +000033354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033355$as_echo "no" >&6; }
33356fi
33357
33358
33359# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33360set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033363if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033364 $as_echo_n "(cached) " >&6
33365else
33366 case $PCLDelegate in
33367 [\\/]* | ?:[\\/]*)
33368 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33369 ;;
33370 *)
33371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33372for as_dir in $PATH
33373do
33374 IFS=$as_save_IFS
33375 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33378 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380 break 2
33381 fi
33382done
cristy8b350f62009-11-15 23:12:43 +000033383 done
cristy3ed852e2009-09-05 21:47:34 +000033384IFS=$as_save_IFS
33385
33386 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33387 ;;
33388esac
33389fi
33390PCLDelegate=$ac_cv_path_PCLDelegate
33391if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033393$as_echo "$PCLDelegate" >&6; }
33394else
cristy8b350f62009-11-15 23:12:43 +000033395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033396$as_echo "no" >&6; }
33397fi
33398
33399
33400# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33401set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033404if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033405 $as_echo_n "(cached) " >&6
33406else
33407 case $PGPDecodeDelegate in
33408 [\\/]* | ?:[\\/]*)
33409 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33410 ;;
33411 *)
33412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33413for as_dir in $PATH
33414do
33415 IFS=$as_save_IFS
33416 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33419 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421 break 2
33422 fi
33423done
cristy8b350f62009-11-15 23:12:43 +000033424 done
cristy3ed852e2009-09-05 21:47:34 +000033425IFS=$as_save_IFS
33426
33427 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33428 ;;
33429esac
33430fi
33431PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33432if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033434$as_echo "$PGPDecodeDelegate" >&6; }
33435else
cristy8b350f62009-11-15 23:12:43 +000033436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033437$as_echo "no" >&6; }
33438fi
33439
33440
33441# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33442set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033444$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033445if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033446 $as_echo_n "(cached) " >&6
33447else
33448 case $POVDelegate in
33449 [\\/]* | ?:[\\/]*)
33450 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33451 ;;
33452 *)
33453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33454for as_dir in $PATH
33455do
33456 IFS=$as_save_IFS
33457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033458 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33460 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462 break 2
33463 fi
33464done
cristy8b350f62009-11-15 23:12:43 +000033465 done
cristy3ed852e2009-09-05 21:47:34 +000033466IFS=$as_save_IFS
33467
33468 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33469 ;;
33470esac
33471fi
33472POVDelegate=$ac_cv_path_POVDelegate
33473if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475$as_echo "$POVDelegate" >&6; }
33476else
cristy8b350f62009-11-15 23:12:43 +000033477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033478$as_echo "no" >&6; }
33479fi
33480
33481
33482for ac_prog in gsx gsc "$PSDelegateDefault"
33483do
33484 # Extract the first word of "$ac_prog", so it can be a program name with args.
33485set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033488if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033489 $as_echo_n "(cached) " >&6
33490else
33491 case $PSDelegate in
33492 [\\/]* | ?:[\\/]*)
33493 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33494 ;;
33495 *)
33496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33497for as_dir in $PATH
33498do
33499 IFS=$as_save_IFS
33500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33503 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033505 break 2
33506 fi
33507done
cristy8b350f62009-11-15 23:12:43 +000033508 done
cristy3ed852e2009-09-05 21:47:34 +000033509IFS=$as_save_IFS
33510
33511 ;;
33512esac
33513fi
33514PSDelegate=$ac_cv_path_PSDelegate
33515if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo "$PSDelegate" >&6; }
33518else
cristy8b350f62009-11-15 23:12:43 +000033519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033520$as_echo "no" >&6; }
33521fi
33522
33523
33524 test -n "$PSDelegate" && break
33525done
33526test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33527
33528# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33529set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033532if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033533 $as_echo_n "(cached) " >&6
33534else
33535 case $RLEEncodeDelegate in
33536 [\\/]* | ?:[\\/]*)
33537 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33538 ;;
33539 *)
33540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33541for as_dir in $PATH
33542do
33543 IFS=$as_save_IFS
33544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33547 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033549 break 2
33550 fi
33551done
cristy8b350f62009-11-15 23:12:43 +000033552 done
cristy3ed852e2009-09-05 21:47:34 +000033553IFS=$as_save_IFS
33554
33555 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33556 ;;
33557esac
33558fi
33559RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33560if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562$as_echo "$RLEEncodeDelegate" >&6; }
33563else
cristy8b350f62009-11-15 23:12:43 +000033564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565$as_echo "no" >&6; }
33566fi
33567
33568
33569# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33570set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033573if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033574 $as_echo_n "(cached) " >&6
33575else
33576 case $RMDelegate in
33577 [\\/]* | ?:[\\/]*)
33578 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33579 ;;
33580 *)
33581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33582for as_dir in $PATH
33583do
33584 IFS=$as_save_IFS
33585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33588 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033590 break 2
33591 fi
33592done
cristy8b350f62009-11-15 23:12:43 +000033593 done
cristy3ed852e2009-09-05 21:47:34 +000033594IFS=$as_save_IFS
33595
33596 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33597 ;;
33598esac
33599fi
33600RMDelegate=$ac_cv_path_RMDelegate
33601if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603$as_echo "$RMDelegate" >&6; }
33604else
cristy8b350f62009-11-15 23:12:43 +000033605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606$as_echo "no" >&6; }
33607fi
33608
33609
cristy4689cf02010-02-17 21:15:45 +000033610# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33611set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033614if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033615 $as_echo_n "(cached) " >&6
33616else
33617 case $RSVGDecodeDelegate in
33618 [\\/]* | ?:[\\/]*)
33619 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33620 ;;
33621 *)
33622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33623for as_dir in $PATH
33624do
33625 IFS=$as_save_IFS
33626 test -z "$as_dir" && as_dir=.
33627 for ac_exec_ext in '' $ac_executable_extensions; do
33628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33629 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33631 break 2
33632 fi
33633done
33634 done
33635IFS=$as_save_IFS
33636
33637 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33638 ;;
33639esac
33640fi
33641RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33642if test -n "$RSVGDecodeDelegate"; then
33643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33644$as_echo "$RSVGDecodeDelegate" >&6; }
33645else
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33647$as_echo "no" >&6; }
33648fi
33649
33650
cristy3ed852e2009-09-05 21:47:34 +000033651# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33652set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033655if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033656 $as_echo_n "(cached) " >&6
33657else
33658 case $SCANDecodeDelegate in
33659 [\\/]* | ?:[\\/]*)
33660 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33661 ;;
33662 *)
33663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33664for as_dir in $PATH
33665do
33666 IFS=$as_save_IFS
33667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33670 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672 break 2
33673 fi
33674done
cristy8b350f62009-11-15 23:12:43 +000033675 done
cristy3ed852e2009-09-05 21:47:34 +000033676IFS=$as_save_IFS
33677
33678 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33679 ;;
33680esac
33681fi
33682SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33683if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo "$SCANDecodeDelegate" >&6; }
33686else
cristy8b350f62009-11-15 23:12:43 +000033687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688$as_echo "no" >&6; }
33689fi
33690
33691
33692# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33693set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033696if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033697 $as_echo_n "(cached) " >&6
33698else
33699 case $TXTDelegate in
33700 [\\/]* | ?:[\\/]*)
33701 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33702 ;;
33703 *)
33704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33705for as_dir in $PATH
33706do
33707 IFS=$as_save_IFS
33708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33711 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033713 break 2
33714 fi
33715done
cristy8b350f62009-11-15 23:12:43 +000033716 done
cristy3ed852e2009-09-05 21:47:34 +000033717IFS=$as_save_IFS
33718
33719 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33720 ;;
33721esac
33722fi
33723TXTDelegate=$ac_cv_path_TXTDelegate
33724if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033726$as_echo "$TXTDelegate" >&6; }
33727else
cristy8b350f62009-11-15 23:12:43 +000033728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033729$as_echo "no" >&6; }
33730fi
33731
33732
cristy5ac9ac82010-07-29 13:24:24 +000033733# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33734set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033737if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033738 $as_echo_n "(cached) " >&6
33739else
33740 case $UniconvertorDelegate in
33741 [\\/]* | ?:[\\/]*)
33742 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33743 ;;
33744 *)
33745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33746for as_dir in $PATH
33747do
33748 IFS=$as_save_IFS
33749 test -z "$as_dir" && as_dir=.
33750 for ac_exec_ext in '' $ac_executable_extensions; do
33751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33752 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33754 break 2
33755 fi
33756done
33757 done
33758IFS=$as_save_IFS
33759
33760 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33761 ;;
33762esac
33763fi
33764UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33765if test -n "$UniconvertorDelegate"; then
33766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33767$as_echo "$UniconvertorDelegate" >&6; }
33768else
33769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33770$as_echo "no" >&6; }
33771fi
33772
33773
cristy3ed852e2009-09-05 21:47:34 +000033774# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33775set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033778if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033779 $as_echo_n "(cached) " >&6
33780else
33781 case $WMFDecodeDelegate in
33782 [\\/]* | ?:[\\/]*)
33783 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33784 ;;
33785 *)
33786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33787for as_dir in $PATH
33788do
33789 IFS=$as_save_IFS
33790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33793 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033795 break 2
33796 fi
33797done
cristy8b350f62009-11-15 23:12:43 +000033798 done
cristy3ed852e2009-09-05 21:47:34 +000033799IFS=$as_save_IFS
33800
33801 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33802 ;;
33803esac
33804fi
33805WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33806if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033808$as_echo "$WMFDecodeDelegate" >&6; }
33809else
cristy8b350f62009-11-15 23:12:43 +000033810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811$as_echo "no" >&6; }
33812fi
33813
33814
33815# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33816set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033819if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033820 $as_echo_n "(cached) " >&6
33821else
33822 case $WWWDecodeDelegate in
33823 [\\/]* | ?:[\\/]*)
33824 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33825 ;;
33826 *)
33827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33828for as_dir in $PATH
33829do
33830 IFS=$as_save_IFS
33831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33834 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836 break 2
33837 fi
33838done
cristy8b350f62009-11-15 23:12:43 +000033839 done
cristy3ed852e2009-09-05 21:47:34 +000033840IFS=$as_save_IFS
33841
33842 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33843 ;;
33844esac
33845fi
33846WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33847if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033849$as_echo "$WWWDecodeDelegate" >&6; }
33850else
cristy8b350f62009-11-15 23:12:43 +000033851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033852$as_echo "no" >&6; }
33853fi
33854
33855
33856# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33857set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033860if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033861 $as_echo_n "(cached) " >&6
33862else
33863 case $XPSDelegate in
33864 [\\/]* | ?:[\\/]*)
33865 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33866 ;;
33867 *)
33868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33869for as_dir in $PATH
33870do
33871 IFS=$as_save_IFS
33872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33875 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877 break 2
33878 fi
33879done
cristy8b350f62009-11-15 23:12:43 +000033880 done
cristy3ed852e2009-09-05 21:47:34 +000033881IFS=$as_save_IFS
33882
33883 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33884 ;;
33885esac
33886fi
33887XPSDelegate=$ac_cv_path_XPSDelegate
33888if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo "$XPSDelegate" >&6; }
33891else
cristy8b350f62009-11-15 23:12:43 +000033892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893$as_echo "no" >&6; }
33894fi
33895
33896
33897# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33898set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033901if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033902 $as_echo_n "(cached) " >&6
33903else
33904 case $ZipDelegate in
33905 [\\/]* | ?:[\\/]*)
33906 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33907 ;;
33908 *)
33909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33910for as_dir in $PATH
33911do
33912 IFS=$as_save_IFS
33913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33916 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918 break 2
33919 fi
33920done
cristy8b350f62009-11-15 23:12:43 +000033921 done
cristy3ed852e2009-09-05 21:47:34 +000033922IFS=$as_save_IFS
33923
33924 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33925 ;;
33926esac
33927fi
33928ZipDelegate=$ac_cv_path_ZipDelegate
33929if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo "$ZipDelegate" >&6; }
33932else
cristy8b350f62009-11-15 23:12:43 +000033933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033934$as_echo "no" >&6; }
33935fi
33936
33937
33938
33939# Prefer lpr to lp; lp needs options tacked on.
33940if test "$LPRDelegate" != no; then
33941 PrintDelegate="$LPRDelegate"
33942else
33943 PrintDelegate="$LPDelegate -c -s"
33944fi
33945
33946
33947# Installed ImageMagick utiltity paths
33948ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33949DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33950MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33951
33952# Set delegate booleans
33953have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33954have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33955have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33956have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33957have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033958have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033959have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33960have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033961have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33962have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33963
33964#
33965# Test for font directories
33966#
33967type_include_files=''
33968
cristy430a7312010-01-21 20:44:04 +000033969# Dejavu fonts.
33970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33971$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33972dejavu_font_dir=''
33973if test "${with_dejavu_font_dir}" != 'default'; then
33974 dejavu_font_dir="${with_dejavu_font_dir}/"
33975else
33976 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33977 if test -f "${font_dir}DejaVuSerif.ttf"; then
33978 dejavu_font_dir="${font_dir}"
33979 break 1
33980 fi
33981 done
33982fi
33983if test "${dejavu_font_dir}x" != 'x'; then
33984 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033985 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33986$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033987else
cristy09b53e12011-10-14 12:47:22 +000033988 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33989$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033990fi
33991
33992
cristy3ed852e2009-09-05 21:47:34 +000033993# Windows
33994windows_font_dir=''
33995if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33996 windows_font_dir="${with_windows_font_dir}/"
33997fi
cristy430a7312010-01-21 20:44:04 +000033998if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033999 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34000 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34001 fi
34002 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34003 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34004 fi
34005 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34006 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34007 fi
34008fi
cristy430a7312010-01-21 20:44:04 +000034009if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034010 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34011fi
34012
34013
34014# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034016$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34017ghostscript_font_dir=''
34018if test "${with_gs_font_dir}" != 'default'; then
34019 ghostscript_font_dir="${with_gs_font_dir}/"
34020else
34021 if test "${native_win32_build}" = 'yes'; then
34022 # Native Windows Build
34023 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34024 if test -f "${font_dir}a010013l.pfb"; then
34025 ghostscript_font_dir="$font_dir"
34026 break 1
34027 fi
34028 done
34029 if test "${PSDelegate}" != 'gswin32c'; then
34030 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34031 fi
34032 else
34033 # Linux / Mac OS X / Unix Build
34034 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
34035 if test -f "${font_dir}a010013l.pfb"; then
34036 ghostscript_font_dir="${font_dir}"
34037 break 1
34038 fi
34039 done
34040 if test "${ghostscript_font_dir}x" = 'x'; then
34041 if test "$PSDelegate" != 'gs'; then
34042 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34043 fi
34044 fi
34045 fi
34046fi
34047if test "${ghostscript_font_dir}x" != 'x'; then
34048 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034049 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34050$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034051else
cristy09b53e12011-10-14 12:47:22 +000034052 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34053$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034054fi
34055
34056case "${build_os}" in
34057 mingw* )
34058 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34059 ;;
34060esac
34061
34062
34063
34064#
34065# Handle case where user doesn't want frozen paths
34066#
34067if test "$with_frozenpaths" != 'yes'; then
34068 # Re-set delegate definitions to default (no paths)
34069 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034070 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34071 BZIPDelegate="$BZIPDelegateDefault"
34072 BrowseDelegate="$BrowseDelegateDefault"
34073 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34074 CatDelegate="$CatDelegateDefault"
34075 ConvertDelegate="$ConvertDelegateDefault"
34076 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34077 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34078 EchoDelegate="$EchoDelegateDefault"
34079 EditorDelegate="$EditorDelegateDefault"
34080 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34081 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34082 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34083 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34084 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34085 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34086 LPDelegate="$LPDelegateDefault"
34087 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34088 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34089 LaunchDelegate="$LaunchDelegateDefault"
34090 MANDelegate="$MANDelegateDefault"
34091 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34092 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034093 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034094 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34095 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034096 PCLDelegate="$PCLDelegateDefault"
34097 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34098 POVDelegate="$POVDelegateDefault"
34099 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034100 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34101 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034102 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034103 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34104 ShowImageDelegate="$ShowImageDelegateDefault"
34105 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034106 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034107 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34108 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34109 XPSDelegate="$XPSDelegateDefault"
34110 ZipDelegate="$ZipDelegateDefault"
34111fi
34112
34113# Delegate substitutions
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156#
34157# RPM support.
34158#
34159RPM=''
34160for ac_prog in gnutar gtar tar
34161do
34162 # Extract the first word of "$ac_prog", so it can be a program name with args.
34163set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034165$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034166if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034167 $as_echo_n "(cached) " >&6
34168else
34169 if test -n "$TAR"; then
34170 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34171else
34172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34173for as_dir in $PATH
34174do
34175 IFS=$as_save_IFS
34176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34179 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034181 break 2
34182 fi
34183done
cristy8b350f62009-11-15 23:12:43 +000034184 done
cristy3ed852e2009-09-05 21:47:34 +000034185IFS=$as_save_IFS
34186
34187fi
34188fi
34189TAR=$ac_cv_prog_TAR
34190if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192$as_echo "$TAR" >&6; }
34193else
cristy8b350f62009-11-15 23:12:43 +000034194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034195$as_echo "no" >&6; }
34196fi
34197
34198
34199 test -n "$TAR" && break
34200done
34201
34202for ac_prog in perl
34203do
34204 # Extract the first word of "$ac_prog", so it can be a program name with args.
34205set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034207$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034208if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034209 $as_echo_n "(cached) " >&6
34210else
34211 if test -n "$PERL"; then
34212 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34213else
34214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34215for as_dir in $PATH
34216do
34217 IFS=$as_save_IFS
34218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34221 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034223 break 2
34224 fi
34225done
cristy8b350f62009-11-15 23:12:43 +000034226 done
cristy3ed852e2009-09-05 21:47:34 +000034227IFS=$as_save_IFS
34228
34229fi
34230fi
34231PERL=$ac_cv_prog_PERL
34232if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034234$as_echo "$PERL" >&6; }
34235else
cristy8b350f62009-11-15 23:12:43 +000034236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034237$as_echo "no" >&6; }
34238fi
34239
34240
34241 test -n "$PERL" && break
34242done
34243
34244for ac_prog in rpmbuild rpm
34245do
34246 # Extract the first word of "$ac_prog", so it can be a program name with args.
34247set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034250if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034251 $as_echo_n "(cached) " >&6
34252else
34253 if test -n "$RPM"; then
34254 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34255else
34256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34257for as_dir in $PATH
34258do
34259 IFS=$as_save_IFS
34260 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34263 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034265 break 2
34266 fi
34267done
cristy8b350f62009-11-15 23:12:43 +000034268 done
cristy3ed852e2009-09-05 21:47:34 +000034269IFS=$as_save_IFS
34270
34271fi
34272fi
34273RPM=$ac_cv_prog_RPM
34274if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034276$as_echo "$RPM" >&6; }
34277else
cristy8b350f62009-11-15 23:12:43 +000034278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034279$as_echo "no" >&6; }
34280fi
34281
34282
34283 test -n "$RPM" && break
34284done
34285
34286
cristy73bd4a52010-10-05 11:24:23 +000034287ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34288
34289
34290AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34291
34292
34293AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34294
34295
34296AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34297
34298
34299 if test "x$RPM" != "x" ; then
34300 RPM_DELEGATE_TRUE=
34301 RPM_DELEGATE_FALSE='#'
34302else
34303 RPM_DELEGATE_TRUE='#'
34304 RPM_DELEGATE_FALSE=
34305fi
34306
cristy3ed852e2009-09-05 21:47:34 +000034307
34308#
34309# 7ZIP support (http://p7zip.sourceforge.net/)
34310#
34311P7ZIP=''
34312for ac_prog in 7za
34313do
34314 # Extract the first word of "$ac_prog", so it can be a program name with args.
34315set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034318if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034319 $as_echo_n "(cached) " >&6
34320else
34321 if test -n "$P7ZIP"; then
34322 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34323else
34324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34325for as_dir in $PATH
34326do
34327 IFS=$as_save_IFS
34328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34331 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034333 break 2
34334 fi
34335done
cristy8b350f62009-11-15 23:12:43 +000034336 done
cristy3ed852e2009-09-05 21:47:34 +000034337IFS=$as_save_IFS
34338
34339fi
34340fi
34341P7ZIP=$ac_cv_prog_P7ZIP
34342if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034344$as_echo "$P7ZIP" >&6; }
34345else
cristy8b350f62009-11-15 23:12:43 +000034346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034347$as_echo "no" >&6; }
34348fi
34349
34350
34351 test -n "$P7ZIP" && break
34352done
34353
34354
cristy73bd4a52010-10-05 11:24:23 +000034355 if test "x$P7ZIP" != "x" ; then
34356 P7ZIP_DELEGATE_TRUE=
34357 P7ZIP_DELEGATE_FALSE='#'
34358else
34359 P7ZIP_DELEGATE_TRUE='#'
34360 P7ZIP_DELEGATE_FALSE=
34361fi
34362
cristy3ed852e2009-09-05 21:47:34 +000034363
34364#
34365# ZIP support (http://www.info-zip.org/Zip.html)
34366#
34367ZIP=''
34368for ac_prog in zip
34369do
34370 # Extract the first word of "$ac_prog", so it can be a program name with args.
34371set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034374if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034375 $as_echo_n "(cached) " >&6
34376else
34377 if test -n "$ZIP"; then
34378 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34379else
34380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34381for as_dir in $PATH
34382do
34383 IFS=$as_save_IFS
34384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34387 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034389 break 2
34390 fi
34391done
cristy8b350f62009-11-15 23:12:43 +000034392 done
cristy3ed852e2009-09-05 21:47:34 +000034393IFS=$as_save_IFS
34394
34395fi
34396fi
34397ZIP=$ac_cv_prog_ZIP
34398if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034400$as_echo "$ZIP" >&6; }
34401else
cristy8b350f62009-11-15 23:12:43 +000034402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034403$as_echo "no" >&6; }
34404fi
34405
34406
34407 test -n "$ZIP" && break
34408done
34409
34410
cristy73bd4a52010-10-05 11:24:23 +000034411 if test "x$ZIP" != "x" ; then
34412 ZIP_DELEGATE_TRUE=
34413 ZIP_DELEGATE_FALSE='#'
34414else
34415 ZIP_DELEGATE_TRUE='#'
34416 ZIP_DELEGATE_FALSE=
34417fi
34418
cristy3ed852e2009-09-05 21:47:34 +000034419
34420#
34421# GhostPCL related configuration.
34422#
34423PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034424PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034425PCLMonoDevice=pbmraw
34426if test -z "$PCLVersion"; then
34427 PCLVersion='unknown'
34428fi
34429if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034430 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34431$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034433$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034434 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34435$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034436 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438$as_echo_n "checking for pcl color device... " >&6; }
34439 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34440 :
34441 else
34442 PCLColorDevice=ppmraw
34443 fi
cristy09b53e12011-10-14 12:47:22 +000034444 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34445$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034446
34447 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034449$as_echo_n "checking for pcl CMYK device... " >&6; }
34450 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34451 :
34452 else
34453 PCLCMYKDevice=$PCLColorDevice
34454 fi
cristy09b53e12011-10-14 12:47:22 +000034455 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34456$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034457
34458 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034460$as_echo_n "checking for pcl mono device... " >&6; }
34461 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34462 :
34463 else
34464 PCLMonoDevice=$PCLColorDevice
34465 fi
cristy09b53e12011-10-14 12:47:22 +000034466 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34467$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034468fi
34469
34470
34471
34472
34473
34474
34475#
34476# GhostXPS related configuration.
34477#
34478XPSColorDevice=ppmraw
34479XPSCMYKDevice=bmpsep8
34480XPSMonoDevice=pbmraw
34481if test -z "$XPSVersion"; then
34482 XPSVersion='unknown'
34483fi
34484if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034485 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34486$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034488$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034489 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34490$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034491 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034493$as_echo_n "checking for xps color device... " >&6; }
34494 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34495 :
34496 else
34497 XPSColorDevice=ppmraw
34498 fi
cristy09b53e12011-10-14 12:47:22 +000034499 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34500$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034501
34502 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034504$as_echo_n "checking for xps CMYK device... " >&6; }
34505 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34506 :
34507 else
34508 XPSCMYKDevice=$XPSColorDevice
34509 fi
cristy09b53e12011-10-14 12:47:22 +000034510 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34511$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034512
34513 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034515$as_echo_n "checking for xps mono device... " >&6; }
34516 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34517 :
34518 else
34519 XPSMonoDevice=$XPSColorDevice
34520 fi
cristy09b53e12011-10-14 12:47:22 +000034521 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34522$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034523fi
34524
34525
34526
34527
34528
34529
34530#
34531# Ghostscript related configuration.
34532#
cristya97426c2011-02-04 01:41:27 +000034533GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034534GSColorDevice=pnmraw
34535GSCMYKDevice=pam
34536GSMonoDevice=pbmraw
34537GSPDFDevice=pdfwrite
34538GSPSDevice=pswrite
34539GSEPSDevice=epswrite
34540GSVersion='unknown'
34541if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034542 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34543$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034545$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034546 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34547$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034549$as_echo_n "checking for Ghostscript version... " >&6; }
34550 if GSVersion=`$PSDelegate --version`; then
34551 :
34552 else
34553 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34554 fi
cristy09b53e12011-10-14 12:47:22 +000034555 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34556$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034557
34558 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034560$as_echo_n "checking for gs alpha device... " >&6; }
34561 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34562 :
34563 else
34564 GSAlphaDevice=pnmraw
34565 fi
cristy09b53e12011-10-14 12:47:22 +000034566 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34567$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034568
34569 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034571$as_echo_n "checking for gs color device... " >&6; }
34572 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34573 :
34574 else
34575 GSColorDevice=pnmraw
34576 fi
cristy09b53e12011-10-14 12:47:22 +000034577 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34578$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034579
34580 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034582$as_echo_n "checking for gs CMYK device... " >&6; }
34583 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34584 :
34585 else
34586 GSCMYKDevice=bmpsep8
34587 fi
cristy09b53e12011-10-14 12:47:22 +000034588 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34589$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034590
34591 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034593$as_echo_n "checking for gs mono device... " >&6; }
34594 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34595 :
34596 else
34597 GSMonoDevice=$GSColorDevice
34598 fi
cristy09b53e12011-10-14 12:47:22 +000034599 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34600$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034601
34602 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034604$as_echo_n "checking for gs PDF writing device... " >&6; }
34605 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34606 :
34607 else
34608 GSPDFDevice=nodevice
34609 fi
cristy09b53e12011-10-14 12:47:22 +000034610 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34611$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034612
34613 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo_n "checking for gs PS writing device... " >&6; }
34616 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34617 :
34618 else
34619 GSPSDevice=nodevice
34620 fi
cristy09b53e12011-10-14 12:47:22 +000034621 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34622$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034623
34624 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034626$as_echo_n "checking for gs EPS writing device... " >&6; }
34627 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34628 :
34629 else
34630 GSEPSDevice=nodevice
34631 fi
cristy09b53e12011-10-14 12:47:22 +000034632 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34633$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034634fi
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645#
34646# PerlMagick-related configuration
34647#
34648
34649# Look for PERL if PerlMagick requested
34650# If name/path of desired PERL interpreter is specified, look for that one first
34651have_perl='no'
34652if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034653 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34654$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034657 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34658$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034659 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034661$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034662if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034663 $as_echo_n "(cached) " >&6
34664else
34665 ac_cv_path_PERL="$with_perl"
34666fi
cristy8b350f62009-11-15 23:12:43 +000034667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034668$as_echo "$ac_cv_path_PERL" >&6; };
34669 PERL=$ac_cv_path_PERL
34670 have_perl="$ac_cv_path_PERL"
34671 else
34672 for ac_prog in perl perl5
34673do
34674 # Extract the first word of "$ac_prog", so it can be a program name with args.
34675set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034678if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034679 $as_echo_n "(cached) " >&6
34680else
34681 case $PERL in
34682 [\\/]* | ?:[\\/]*)
34683 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34684 ;;
34685 *)
34686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34687for as_dir in $PATH
34688do
34689 IFS=$as_save_IFS
34690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34693 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034695 break 2
34696 fi
34697done
cristy8b350f62009-11-15 23:12:43 +000034698 done
cristy3ed852e2009-09-05 21:47:34 +000034699IFS=$as_save_IFS
34700
34701 ;;
34702esac
34703fi
34704PERL=$ac_cv_path_PERL
34705if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034707$as_echo "$PERL" >&6; }
34708else
cristy8b350f62009-11-15 23:12:43 +000034709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034710$as_echo "no" >&6; }
34711fi
34712
34713
34714 test -n "$PERL" && break
34715done
34716 if test "$ac_cv_path_PERL"; then
34717 have_perl="$ac_cv_path_PERL"
34718 fi
34719 fi
34720fi
34721
cristy949301e2010-01-06 01:38:40 +000034722if test "$with_perl" != 'yes' ; then
34723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34724fi
34725
34726PERL_SUPPORTS_DESTDIR='no'
34727
cristy3ed852e2009-09-05 21:47:34 +000034728with_perl_static='no'
34729with_perl_dynamic='no'
34730if test "$have_perl" != 'no'; then
34731 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34732 with_perl_static='yes'
34733 fi
34734 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34735 with_perl_dynamic='yes'
34736 fi
34737 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034738
34739
34740
34741
34742 if test -n "$PERL"; then :
34743
34744 ax_perl_version="5.8.1"
34745
34746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34747$as_echo_n "checking for perl version... " >&6; }
34748
34749 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34750
34751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34752$as_echo "$perl_version" >&6; }
34753
34754 PERL_VERSION=$perl_version
34755
34756
34757
34758
34759
34760 # Used to indicate true or false condition
34761 ax_compare_version=false
34762
34763 # Convert the two version strings to be compared into a format that
34764 # allows a simple string comparison. The end result is that a version
34765 # string of the form 1.12.5-r617 will be converted to the form
34766 # 0001001200050617. In other words, each number is zero padded to four
34767 # digits, and non digits are removed.
34768
34769 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34770 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34771 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34772 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34773 -e 's/[^0-9]//g'`
34774
34775
34776 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34777 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34778 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34779 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34780 -e 's/[^0-9]//g'`
34781
34782
34783 ax_compare_version=`echo "x$ax_compare_version_A
34784x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34785
34786
34787
34788 if test "$ax_compare_version" = "true" ; then
34789
34790 :
34791 PERL_SUPPORTS_DESTDIR='yes'
34792
34793 else
34794 :
34795 PERL_SUPPORTS_DESTDIR='no'
34796
34797 fi
34798
34799
34800else
34801
34802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34803$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34804 PERL_SUPPORTS_DESTDIR='no'
34805
cristy3ed852e2009-09-05 21:47:34 +000034806fi
cristy73bd4a52010-10-05 11:24:23 +000034807
34808fi
34809 if test "$have_perl" != 'no'; then
34810 WITH_PERL_TRUE=
34811 WITH_PERL_FALSE='#'
34812else
34813 WITH_PERL_TRUE='#'
34814 WITH_PERL_FALSE=
34815fi
34816
34817 if test $with_perl_static = 'yes'; then
34818 WITH_PERL_STATIC_TRUE=
34819 WITH_PERL_STATIC_FALSE='#'
34820else
34821 WITH_PERL_STATIC_TRUE='#'
34822 WITH_PERL_STATIC_FALSE=
34823fi
34824
34825 if test $with_perl_dynamic = 'yes'; then
34826 WITH_PERL_DYNAMIC_TRUE=
34827 WITH_PERL_DYNAMIC_FALSE='#'
34828else
34829 WITH_PERL_DYNAMIC_TRUE='#'
34830 WITH_PERL_DYNAMIC_FALSE=
34831fi
34832
cristy3ed852e2009-09-05 21:47:34 +000034833
34834
34835# Determine path to pick up MagickCore library from for use with building PerlMagick
34836MAGICKCORE_PATH="${LIB_DIR}"
34837if test $with_perl_static = 'yes'; then
34838 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34839 libtool_objdir=$objdir
34840
34841 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034842 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034843fi
34844
34845
34846# Create a simple string containing format names for all delegate libraries
34847DELEGATES=''
34848if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34849if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34850if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34851if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34852if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34853if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34854if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34855if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34856if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34857if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34858if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34859if test "$have_jpeg" = 'yes'; then
34860 DELEGATES="$DELEGATES jpeg";
34861 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34862fi
34863if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034864if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034865if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34866if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034867if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034868if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34869if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34870if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34871if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34872if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34873if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34874if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34875if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34876if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34877
34878
34879
34880#
34881# Handle special compiler flags
34882#
34883
34884# Add '-p' if prof source profiling support enabled
34885if test "$enable_prof" = 'yes'; then
34886 CFLAGS="-p $CFLAGS"
34887 CXXFLAGS="-p $CXXFLAGS"
34888 LDFLAGS="-p $LDFLAGS"
34889fi
34890
34891# Add '-pg' if gprof source profiling support enabled
34892if test "$enable_gprof" = 'yes'; then
34893 CFLAGS="-pg $CFLAGS"
34894 CXXFLAGS="-pg $CXXFLAGS"
34895 LDFLAGS="-pg $LDFLAGS"
34896fi
34897
34898# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34899# This is a gcc-specific feature
34900if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034902$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034903if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034904 $as_echo_n "(cached) " >&6
34905else
34906 ac_check_lib_save_LIBS=$LIBS
34907LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034909/* end confdefs.h. */
34910
34911/* Override any GCC internal prototype to avoid an error.
34912 Use char because int might match the return type of a GCC
34913 builtin and then its argument prototype would still apply. */
34914#ifdef __cplusplus
34915extern "C"
34916#endif
34917char _gcov_init ();
34918int
34919main ()
34920{
34921return _gcov_init ();
34922 ;
34923 return 0;
34924}
34925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034926if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034927 ac_cv_lib_gcov__gcov_init=yes
34928else
cristy8b350f62009-11-15 23:12:43 +000034929 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034930fi
cristy8b350f62009-11-15 23:12:43 +000034931rm -f core conftest.err conftest.$ac_objext \
34932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034933LIBS=$ac_check_lib_save_LIBS
34934fi
cristy8b350f62009-11-15 23:12:43 +000034935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034936$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034937if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034938 cat >>confdefs.h <<_ACEOF
34939#define HAVE_LIBGCOV 1
34940_ACEOF
34941
34942 LIBS="-lgcov $LIBS"
34943
34944fi
34945
cristy8b350f62009-11-15 23:12:43 +000034946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034947$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034948if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034949 $as_echo_n "(cached) " >&6
34950else
34951 ac_check_lib_save_LIBS=$LIBS
34952LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034954/* end confdefs.h. */
34955
34956/* Override any GCC internal prototype to avoid an error.
34957 Use char because int might match the return type of a GCC
34958 builtin and then its argument prototype would still apply. */
34959#ifdef __cplusplus
34960extern "C"
34961#endif
34962char __gcov_init ();
34963int
34964main ()
34965{
34966return __gcov_init ();
34967 ;
34968 return 0;
34969}
34970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034971if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034972 ac_cv_lib_gcov___gcov_init=yes
34973else
cristy8b350f62009-11-15 23:12:43 +000034974 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034975fi
cristy8b350f62009-11-15 23:12:43 +000034976rm -f core conftest.err conftest.$ac_objext \
34977 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034978LIBS=$ac_check_lib_save_LIBS
34979fi
cristy8b350f62009-11-15 23:12:43 +000034980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034981$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034982if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034983 cat >>confdefs.h <<_ACEOF
34984#define HAVE_LIBGCOV 1
34985_ACEOF
34986
34987 LIBS="-lgcov $LIBS"
34988
34989fi
34990
34991 case "$target_os" in
34992 darwin*)
34993 OSX_GCOV_LDFLAG="-Wl,-single_module"
34994 ;;
34995 *)
34996 OSX_GCOV_LDFLAG=""
34997 ;;
34998 esac
34999
35000 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35001 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35002 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35003fi
35004
35005#
35006# Build library dependency list for libMagickCore
35007#
35008
35009MAGICK_LIBLTDL='' # Libltdl for build
35010MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35011MAGICK_LTDLDEPS='' # extra libltdl dependencies
35012if test "$with_ltdl" != 'no'
35013then
35014 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35015 MAGICK_API_LIBLTDL='-lltdl'
35016 fi
35017 MAGICK_LIBLTDL=${LIBLTDL}
35018 MAGICK_LTDLDEPS=${LTDLDEPS}
35019fi
35020
35021
35022
35023if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035024 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 +000035025else
cristy41cbe8a2011-10-27 01:35:18 +000035026 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 +000035027fi
35028
35029
35030#
35031# Remove extraneous spaces from output variables (asthetic)
35032#
35033X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35034X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35035X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35036X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35037
35038CC=`echo $CC | sed -e 's/ */ /g'`
35039CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35040CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35041CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35042DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35043DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35044LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35045TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35046MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35047#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35048
35049# Pass only user-provided LIBS as "global" libraries
35050LIBS=$USER_LIBS
35051
35052#AC_SUBST(CPPFLAGS)
35053
35054#AC_SUBST(LDFLAGS)
35055#AC_SUBST(X_PRE_LIBS)
35056#AC_SUBST(X_LIBS)
35057#AC_SUBST(X_EXTRA_LIBS)
35058
35059MAGICK_CFLAGS=$CFLAGS
35060MAGICK_CXXFLAGS="$CXXFLAGS"
35061MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35062MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35063MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35064MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35065
35066
35067
35068
35069
35070
35071
35072
cristyfd9dcd42010-08-08 18:07:02 +000035073
cristy3ed852e2009-09-05 21:47:34 +000035074# Set configured scripts to executable.
35075ac_config_commands="$ac_config_commands default"
35076
35077ac_config_commands="$ac_config_commands MagickCore-config.in"
35078
cristy3ed852e2009-09-05 21:47:34 +000035079ac_config_commands="$ac_config_commands MagickWand-config.in"
35080
cristy3ed852e2009-09-05 21:47:34 +000035081ac_config_commands="$ac_config_commands Magick++-config.in"
35082
35083ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35084
35085
cristy09b53e12011-10-14 12:47:22 +000035086{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35087$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35088{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35089$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035090cat >confcache <<\_ACEOF
35091# This file is a shell script that caches the results of configure
35092# tests run on this system so they can be shared between configure
35093# scripts and configure runs, see configure's option --config-cache.
35094# It is not useful on other systems. If it contains results you don't
35095# want to keep, you may remove or edit it.
35096#
35097# config.status only pays attention to the cache file if you give it
35098# the --recheck option to rerun configure.
35099#
35100# `ac_cv_env_foo' variables (set or unset) will be overridden when
35101# loading this file, other *unset* `ac_cv_foo' will be assigned the
35102# following values.
35103
35104_ACEOF
35105
35106# The following way of writing the cache mishandles newlines in values,
35107# but we know of no workaround that is simple, portable, and efficient.
35108# So, we kill variables containing newlines.
35109# Ultrix sh set writes to stderr and can't be redirected directly,
35110# and sets the high bit in the cache file unless we assign to the vars.
35111(
35112 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35113 eval ac_val=\$$ac_var
35114 case $ac_val in #(
35115 *${as_nl}*)
35116 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035118$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35119 esac
35120 case $ac_var in #(
35121 _ | IFS | as_nl) ;; #(
35122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035123 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035124 esac ;;
35125 esac
35126 done
35127
35128 (set) 2>&1 |
35129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35130 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035131 # `set' does not quote correctly, so add quotes: double-quote
35132 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035133 sed -n \
35134 "s/'/'\\\\''/g;
35135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35136 ;; #(
35137 *)
35138 # `set' quotes correctly as required by POSIX, so do not add quotes.
35139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35140 ;;
35141 esac |
35142 sort
35143) |
35144 sed '
35145 /^ac_cv_env_/b end
35146 t clear
35147 :clear
35148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35149 t end
35150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35151 :end' >>confcache
35152if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35153 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035154 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035155 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035156$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035157 if test ! -f "$cache_file" || test -h "$cache_file"; then
35158 cat confcache >"$cache_file"
35159 else
35160 case $cache_file in #(
35161 */* | ?:*)
35162 mv -f confcache "$cache_file"$$ &&
35163 mv -f "$cache_file"$$ "$cache_file" ;; #(
35164 *)
35165 mv -f confcache "$cache_file" ;;
35166 esac
35167 fi
35168 fi
cristy3ed852e2009-09-05 21:47:34 +000035169 else
cristy8b350f62009-11-15 23:12:43 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035171$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35172 fi
35173fi
35174rm -f confcache
35175
35176test "x$prefix" = xNONE && prefix=$ac_default_prefix
35177# Let make expand exec_prefix.
35178test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35179
35180DEFS=-DHAVE_CONFIG_H
35181
35182ac_libobjs=
35183ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035184U=
cristy3ed852e2009-09-05 21:47:34 +000035185for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35186 # 1. Remove the extension, and $U if already installed.
35187 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35188 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35189 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35190 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035191 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35192 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035193done
35194LIBOBJS=$ac_libobjs
35195
35196LTLIBOBJS=$ac_ltlibobjs
35197
35198
cristy73bd4a52010-10-05 11:24:23 +000035199 if test -n "$EXEEXT"; then
35200 am__EXEEXT_TRUE=
35201 am__EXEEXT_FALSE='#'
35202else
35203 am__EXEEXT_TRUE='#'
35204 am__EXEEXT_FALSE=
35205fi
cristy3ed852e2009-09-05 21:47:34 +000035206
cristy73bd4a52010-10-05 11:24:23 +000035207if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035208 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035209Usually this means the macro was only invoked conditionally." "$LINENO" 5
35210fi
35211if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035212 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035213Usually this means the macro was only invoked conditionally." "$LINENO" 5
35214fi
35215if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035216 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035217Usually this means the macro was only invoked conditionally." "$LINENO" 5
35218fi
35219if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035220 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035221Usually this means the macro was only invoked conditionally." "$LINENO" 5
35222fi
35223if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035224 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035225Usually this means the macro was only invoked conditionally." "$LINENO" 5
35226fi
35227if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035228 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035229Usually this means the macro was only invoked conditionally." "$LINENO" 5
35230fi
35231if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035232 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035233Usually this means the macro was only invoked conditionally." "$LINENO" 5
35234fi
35235if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035236 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035237Usually this means the macro was only invoked conditionally." "$LINENO" 5
35238fi
cristy73bd4a52010-10-05 11:24:23 +000035239if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035240 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035241Usually this means the macro was only invoked conditionally." "$LINENO" 5
35242fi
35243if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035244 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035245Usually this means the macro was only invoked conditionally." "$LINENO" 5
35246fi
35247LT_CONFIG_H=config/config.h
35248
35249 _ltdl_libobjs=
35250 _ltdl_ltlibobjs=
35251 if test -n "$_LT_LIBOBJS"; then
35252 # Remove the extension.
35253 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35254 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35255 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35256 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35257 done
35258 fi
35259 ltdl_LIBOBJS=$_ltdl_libobjs
35260
35261 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35262
35263
35264if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035265 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035266Usually this means the macro was only invoked conditionally." "$LINENO" 5
35267fi
35268if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035269 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035270Usually this means the macro was only invoked conditionally." "$LINENO" 5
35271fi
35272if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035273 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035274Usually this means the macro was only invoked conditionally." "$LINENO" 5
35275fi
35276if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035277 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035278Usually this means the macro was only invoked conditionally." "$LINENO" 5
35279fi
35280
35281if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035282 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035283Usually this means the macro was only invoked conditionally." "$LINENO" 5
35284fi
35285if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035286 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035287Usually this means the macro was only invoked conditionally." "$LINENO" 5
35288fi
35289if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035290 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035291Usually this means the macro was only invoked conditionally." "$LINENO" 5
35292fi
35293if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035294 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035295Usually this means the macro was only invoked conditionally." "$LINENO" 5
35296fi
35297if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035298 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035299Usually this means the macro was only invoked conditionally." "$LINENO" 5
35300fi
35301if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035302 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035303Usually this means the macro was only invoked conditionally." "$LINENO" 5
35304fi
35305if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035306 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035307Usually this means the macro was only invoked conditionally." "$LINENO" 5
35308fi
35309if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035310 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035311Usually this means the macro was only invoked conditionally." "$LINENO" 5
35312fi
35313if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035314 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035315Usually this means the macro was only invoked conditionally." "$LINENO" 5
35316fi
35317if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035318 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035319Usually this means the macro was only invoked conditionally." "$LINENO" 5
35320fi
35321if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035322 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035323Usually this means the macro was only invoked conditionally." "$LINENO" 5
35324fi
35325if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035326 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035327Usually this means the macro was only invoked conditionally." "$LINENO" 5
35328fi
35329if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035330 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035331Usually this means the macro was only invoked conditionally." "$LINENO" 5
35332fi
35333if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035334 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035335Usually this means the macro was only invoked conditionally." "$LINENO" 5
35336fi
35337if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035338 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035339Usually this means the macro was only invoked conditionally." "$LINENO" 5
35340fi
35341if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035342 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035343Usually this means the macro was only invoked conditionally." "$LINENO" 5
35344fi
35345if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035346 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035347Usually this means the macro was only invoked conditionally." "$LINENO" 5
35348fi
35349if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035350 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035351Usually this means the macro was only invoked conditionally." "$LINENO" 5
35352fi
35353if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035354 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035355Usually this means the macro was only invoked conditionally." "$LINENO" 5
35356fi
35357if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035358 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035359Usually this means the macro was only invoked conditionally." "$LINENO" 5
35360fi
cristyfbb0ef02010-12-19 02:32:11 +000035361if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35362 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35363Usually this means the macro was only invoked conditionally." "$LINENO" 5
35364fi
cristy73bd4a52010-10-05 11:24:23 +000035365if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035366 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035367Usually this means the macro was only invoked conditionally." "$LINENO" 5
35368fi
cristy41cbe8a2011-10-27 01:35:18 +000035369if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35370 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35371Usually this means the macro was only invoked conditionally." "$LINENO" 5
35372fi
35373if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35374 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35375Usually this means the macro was only invoked conditionally." "$LINENO" 5
35376fi
cristy73bd4a52010-10-05 11:24:23 +000035377if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035378 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035379Usually this means the macro was only invoked conditionally." "$LINENO" 5
35380fi
35381if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035382 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035383Usually this means the macro was only invoked conditionally." "$LINENO" 5
35384fi
35385if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035386 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035387Usually this means the macro was only invoked conditionally." "$LINENO" 5
35388fi
35389if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035390 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035391Usually this means the macro was only invoked conditionally." "$LINENO" 5
35392fi
cristyb1860752011-03-14 00:27:46 +000035393if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35394 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35395Usually this means the macro was only invoked conditionally." "$LINENO" 5
35396fi
cristy73bd4a52010-10-05 11:24:23 +000035397if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035398 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035399Usually this means the macro was only invoked conditionally." "$LINENO" 5
35400fi
35401if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035402 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035403Usually this means the macro was only invoked conditionally." "$LINENO" 5
35404fi
35405if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035406 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035407Usually this means the macro was only invoked conditionally." "$LINENO" 5
35408fi
35409if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035410 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035411Usually this means the macro was only invoked conditionally." "$LINENO" 5
35412fi
35413if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035414 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035415Usually this means the macro was only invoked conditionally." "$LINENO" 5
35416fi
35417if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035418 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035419Usually this means the macro was only invoked conditionally." "$LINENO" 5
35420fi
35421if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035422 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035423Usually this means the macro was only invoked conditionally." "$LINENO" 5
35424fi
35425if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035426 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035427Usually this means the macro was only invoked conditionally." "$LINENO" 5
35428fi
cristy3ed852e2009-09-05 21:47:34 +000035429
cristyda16f162011-02-19 23:52:17 +000035430: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035431ac_write_fail=0
35432ac_clean_files_save=$ac_clean_files
35433ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035434{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035435$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035436as_write_fail=0
35437cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035438#! $SHELL
35439# Generated by $as_me.
35440# Run this file to recreate the current configuration.
35441# Compiler output produced by configure, useful for debugging
35442# configure, is in config.log if it exists.
35443
35444debug=false
35445ac_cs_recheck=false
35446ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035447
cristy8b350f62009-11-15 23:12:43 +000035448SHELL=\${CONFIG_SHELL-$SHELL}
35449export SHELL
35450_ASEOF
35451cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35452## -------------------- ##
35453## M4sh Initialization. ##
35454## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035455
35456# Be more Bourne compatible
35457DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035458if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035459 emulate sh
35460 NULLCMD=:
35461 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35462 # is contrary to our usage. Disable this feature.
35463 alias -g '${1+"$@"}'='"$@"'
35464 setopt NO_GLOB_SUBST
35465else
cristy8b350f62009-11-15 23:12:43 +000035466 case `(set -o) 2>/dev/null` in #(
35467 *posix*) :
35468 set -o posix ;; #(
35469 *) :
35470 ;;
cristy3ed852e2009-09-05 21:47:34 +000035471esac
cristy3ed852e2009-09-05 21:47:34 +000035472fi
35473
35474
cristy3ed852e2009-09-05 21:47:34 +000035475as_nl='
35476'
35477export as_nl
35478# Printing a long string crashes Solaris 7 /usr/bin/printf.
35479as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35480as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35481as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035482# Prefer a ksh shell builtin over an external printf program on Solaris,
35483# but without wasting forks for bash or zsh.
35484if test -z "$BASH_VERSION$ZSH_VERSION" \
35485 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35486 as_echo='print -r --'
35487 as_echo_n='print -rn --'
35488elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035489 as_echo='printf %s\n'
35490 as_echo_n='printf %s'
35491else
35492 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35493 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35494 as_echo_n='/usr/ucb/echo -n'
35495 else
35496 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35497 as_echo_n_body='eval
35498 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035499 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035500 *"$as_nl"*)
35501 expr "X$arg" : "X\\(.*\\)$as_nl";
35502 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35503 esac;
35504 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35505 '
35506 export as_echo_n_body
35507 as_echo_n='sh -c $as_echo_n_body as_echo'
35508 fi
35509 export as_echo_body
35510 as_echo='sh -c $as_echo_body as_echo'
35511fi
35512
35513# The user is always right.
35514if test "${PATH_SEPARATOR+set}" != set; then
35515 PATH_SEPARATOR=:
35516 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35517 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35518 PATH_SEPARATOR=';'
35519 }
35520fi
35521
cristy3ed852e2009-09-05 21:47:34 +000035522
35523# IFS
35524# We need space, tab and new line, in precisely that order. Quoting is
35525# there to prevent editors from complaining about space-tab.
35526# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35527# splitting by setting IFS to empty value.)
35528IFS=" "" $as_nl"
35529
35530# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035531as_myself=
cristy8b350f62009-11-15 23:12:43 +000035532case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035533 *[\\/]* ) as_myself=$0 ;;
35534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35535for as_dir in $PATH
35536do
35537 IFS=$as_save_IFS
35538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35540 done
cristy3ed852e2009-09-05 21:47:34 +000035541IFS=$as_save_IFS
35542
35543 ;;
35544esac
35545# We did not find ourselves, most probably we were run as `sh COMMAND'
35546# in which case we are not to be found in the path.
35547if test "x$as_myself" = x; then
35548 as_myself=$0
35549fi
35550if test ! -f "$as_myself"; then
35551 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035552 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035553fi
35554
cristy8b350f62009-11-15 23:12:43 +000035555# Unset variables that we do not need and which cause bugs (e.g. in
35556# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35557# suppresses any "Segmentation fault" message there. '((' could
35558# trigger a bug in pdksh 5.2.14.
35559for as_var in BASH_ENV ENV MAIL MAILPATH
35560do eval test x\${$as_var+set} = xset \
35561 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035562done
35563PS1='$ '
35564PS2='> '
35565PS4='+ '
35566
35567# NLS nuisances.
35568LC_ALL=C
35569export LC_ALL
35570LANGUAGE=C
35571export LANGUAGE
35572
cristy8b350f62009-11-15 23:12:43 +000035573# CDPATH.
35574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35575
35576
cristy98dddb52010-11-04 00:30:15 +000035577# as_fn_error STATUS ERROR [LINENO LOG_FD]
35578# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035579# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35580# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035581# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035582as_fn_error ()
35583{
cristy98dddb52010-11-04 00:30:15 +000035584 as_status=$1; test $as_status -eq 0 && as_status=1
35585 if test "$4"; then
35586 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35587 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035588 fi
cristy98dddb52010-11-04 00:30:15 +000035589 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035590 as_fn_exit $as_status
35591} # as_fn_error
35592
35593
35594# as_fn_set_status STATUS
35595# -----------------------
35596# Set $? to STATUS, without forking.
35597as_fn_set_status ()
35598{
35599 return $1
35600} # as_fn_set_status
35601
35602# as_fn_exit STATUS
35603# -----------------
35604# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35605as_fn_exit ()
35606{
35607 set +e
35608 as_fn_set_status $1
35609 exit $1
35610} # as_fn_exit
35611
35612# as_fn_unset VAR
35613# ---------------
35614# Portably unset VAR.
35615as_fn_unset ()
35616{
35617 { eval $1=; unset $1;}
35618}
35619as_unset=as_fn_unset
35620# as_fn_append VAR VALUE
35621# ----------------------
35622# Append the text in VALUE to the end of the definition contained in VAR. Take
35623# advantage of any shell optimizations that allow amortized linear growth over
35624# repeated appends, instead of the typical quadratic growth present in naive
35625# implementations.
35626if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35627 eval 'as_fn_append ()
35628 {
35629 eval $1+=\$2
35630 }'
35631else
35632 as_fn_append ()
35633 {
35634 eval $1=\$$1\$2
35635 }
35636fi # as_fn_append
35637
35638# as_fn_arith ARG...
35639# ------------------
35640# Perform arithmetic evaluation on the ARGs, and store the result in the
35641# global $as_val. Take advantage of shells that can avoid forks. The arguments
35642# must be portable across $(()) and expr.
35643if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35644 eval 'as_fn_arith ()
35645 {
35646 as_val=$(( $* ))
35647 }'
35648else
35649 as_fn_arith ()
35650 {
35651 as_val=`expr "$@" || test $? -eq 1`
35652 }
35653fi # as_fn_arith
35654
35655
cristy3ed852e2009-09-05 21:47:34 +000035656if expr a : '\(a\)' >/dev/null 2>&1 &&
35657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35658 as_expr=expr
35659else
35660 as_expr=false
35661fi
35662
35663if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35664 as_basename=basename
35665else
35666 as_basename=false
35667fi
35668
cristy8b350f62009-11-15 23:12:43 +000035669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35670 as_dirname=dirname
35671else
35672 as_dirname=false
35673fi
cristy3ed852e2009-09-05 21:47:34 +000035674
cristy3ed852e2009-09-05 21:47:34 +000035675as_me=`$as_basename -- "$0" ||
35676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35677 X"$0" : 'X\(//\)$' \| \
35678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35679$as_echo X/"$0" |
35680 sed '/^.*\/\([^/][^/]*\)\/*$/{
35681 s//\1/
35682 q
35683 }
35684 /^X\/\(\/\/\)$/{
35685 s//\1/
35686 q
35687 }
35688 /^X\/\(\/\).*/{
35689 s//\1/
35690 q
35691 }
35692 s/.*/./; q'`
35693
cristy8b350f62009-11-15 23:12:43 +000035694# Avoid depending upon Character Ranges.
35695as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35696as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35697as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35698as_cr_digits='0123456789'
35699as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035700
35701ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035702case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035703-n*)
cristy8b350f62009-11-15 23:12:43 +000035704 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035705 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035706 xy) ECHO_C='\c';;
35707 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35708 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035709 esac;;
35710*)
35711 ECHO_N='-n';;
35712esac
cristy3ed852e2009-09-05 21:47:34 +000035713
35714rm -f conf$$ conf$$.exe conf$$.file
35715if test -d conf$$.dir; then
35716 rm -f conf$$.dir/conf$$.file
35717else
35718 rm -f conf$$.dir
35719 mkdir conf$$.dir 2>/dev/null
35720fi
35721if (echo >conf$$.file) 2>/dev/null; then
35722 if ln -s conf$$.file conf$$ 2>/dev/null; then
35723 as_ln_s='ln -s'
35724 # ... but there are two gotchas:
35725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35727 # In both cases, we have to default to `cp -p'.
35728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35729 as_ln_s='cp -p'
35730 elif ln conf$$.file conf$$ 2>/dev/null; then
35731 as_ln_s=ln
35732 else
35733 as_ln_s='cp -p'
35734 fi
35735else
35736 as_ln_s='cp -p'
35737fi
35738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35739rmdir conf$$.dir 2>/dev/null
35740
cristy8b350f62009-11-15 23:12:43 +000035741
35742# as_fn_mkdir_p
35743# -------------
35744# Create "$as_dir" as a directory, including parents if necessary.
35745as_fn_mkdir_p ()
35746{
35747
35748 case $as_dir in #(
35749 -*) as_dir=./$as_dir;;
35750 esac
35751 test -d "$as_dir" || eval $as_mkdir_p || {
35752 as_dirs=
35753 while :; do
35754 case $as_dir in #(
35755 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35756 *) as_qdir=$as_dir;;
35757 esac
35758 as_dirs="'$as_qdir' $as_dirs"
35759 as_dir=`$as_dirname -- "$as_dir" ||
35760$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35761 X"$as_dir" : 'X\(//\)[^/]' \| \
35762 X"$as_dir" : 'X\(//\)$' \| \
35763 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35764$as_echo X"$as_dir" |
35765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35766 s//\1/
35767 q
35768 }
35769 /^X\(\/\/\)[^/].*/{
35770 s//\1/
35771 q
35772 }
35773 /^X\(\/\/\)$/{
35774 s//\1/
35775 q
35776 }
35777 /^X\(\/\).*/{
35778 s//\1/
35779 q
35780 }
35781 s/.*/./; q'`
35782 test -d "$as_dir" && break
35783 done
35784 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035785 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035786
35787
35788} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035789if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035790 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035791else
35792 test -d ./-p && rmdir ./-p
35793 as_mkdir_p=false
35794fi
35795
35796if test -x / >/dev/null 2>&1; then
35797 as_test_x='test -x'
35798else
35799 if ls -dL / >/dev/null 2>&1; then
35800 as_ls_L_option=L
35801 else
35802 as_ls_L_option=
35803 fi
35804 as_test_x='
35805 eval sh -c '\''
35806 if test -d "$1"; then
35807 test -d "$1/.";
35808 else
cristy8b350f62009-11-15 23:12:43 +000035809 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035810 -*)set "./$1";;
35811 esac;
cristy8b350f62009-11-15 23:12:43 +000035812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035813 ???[sx]*):;;*)false;;esac;fi
35814 '\'' sh
35815 '
35816fi
35817as_executable_p=$as_test_x
35818
35819# Sed expression to map a string onto a valid CPP name.
35820as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35821
35822# Sed expression to map a string onto a valid variable name.
35823as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35824
35825
35826exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035827## ----------------------------------- ##
35828## Main body of $CONFIG_STATUS script. ##
35829## ----------------------------------- ##
35830_ASEOF
35831test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035832
cristy8b350f62009-11-15 23:12:43 +000035833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35834# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035835# report actual input values of CONFIG_FILES etc. instead of their
35836# values after options handling.
35837ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035838This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035839generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035840
35841 CONFIG_FILES = $CONFIG_FILES
35842 CONFIG_HEADERS = $CONFIG_HEADERS
35843 CONFIG_LINKS = $CONFIG_LINKS
35844 CONFIG_COMMANDS = $CONFIG_COMMANDS
35845 $ $0 $@
35846
35847on `(hostname || uname -n) 2>/dev/null | sed 1q`
35848"
35849
35850_ACEOF
35851
35852case $ac_config_files in *"
35853"*) set x $ac_config_files; shift; ac_config_files=$*;;
35854esac
35855
35856case $ac_config_headers in *"
35857"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35858esac
35859
35860
35861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35862# Files that config.status was made for.
35863config_files="$ac_config_files"
35864config_headers="$ac_config_headers"
35865config_commands="$ac_config_commands"
35866
35867_ACEOF
35868
35869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35870ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035871\`$as_me' instantiates files and other configuration actions
35872from templates according to the current configuration. Unless the files
35873and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035874
cristy8b350f62009-11-15 23:12:43 +000035875Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035876
35877 -h, --help print this help, then exit
35878 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035879 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035880 -q, --quiet, --silent
35881 do not print progress messages
35882 -d, --debug don't remove temporary files
35883 --recheck update $as_me by reconfiguring in the same conditions
35884 --file=FILE[:TEMPLATE]
35885 instantiate the configuration file FILE
35886 --header=FILE[:TEMPLATE]
35887 instantiate the configuration header FILE
35888
35889Configuration files:
35890$config_files
35891
35892Configuration headers:
35893$config_headers
35894
35895Configuration commands:
35896$config_commands
35897
cristy8b350f62009-11-15 23:12:43 +000035898Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035899
35900_ACEOF
35901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035902ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035903ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035904ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035905configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035906 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035907
cristy98dddb52010-11-04 00:30:15 +000035908Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035909This config.status script is free software; the Free Software Foundation
35910gives unlimited permission to copy, distribute and modify it."
35911
35912ac_pwd='$ac_pwd'
35913srcdir='$srcdir'
35914INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035915MKDIR_P='$MKDIR_P'
35916AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035917test -n "\$AWK" || AWK=awk
35918_ACEOF
35919
35920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35921# The default lists apply if the user does not specify any file.
35922ac_need_defaults=:
35923while test $# != 0
35924do
35925 case $1 in
cristyda16f162011-02-19 23:52:17 +000035926 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035927 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35929 ac_shift=:
35930 ;;
cristyda16f162011-02-19 23:52:17 +000035931 --*=)
35932 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35933 ac_optarg=
35934 ac_shift=:
35935 ;;
cristy3ed852e2009-09-05 21:47:34 +000035936 *)
35937 ac_option=$1
35938 ac_optarg=$2
35939 ac_shift=shift
35940 ;;
35941 esac
35942
35943 case $ac_option in
35944 # Handling of the options.
35945 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35946 ac_cs_recheck=: ;;
35947 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35948 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035949 --config | --confi | --conf | --con | --co | --c )
35950 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035951 --debug | --debu | --deb | --de | --d | -d )
35952 debug=: ;;
35953 --file | --fil | --fi | --f )
35954 $ac_shift
35955 case $ac_optarg in
35956 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035957 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035958 esac
cristy8b350f62009-11-15 23:12:43 +000035959 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035960 ac_need_defaults=false;;
35961 --header | --heade | --head | --hea )
35962 $ac_shift
35963 case $ac_optarg in
35964 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35965 esac
cristy8b350f62009-11-15 23:12:43 +000035966 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035967 ac_need_defaults=false;;
35968 --he | --h)
35969 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035970 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035971Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035972 --help | --hel | -h )
35973 $as_echo "$ac_cs_usage"; exit ;;
35974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35976 ac_cs_silent=: ;;
35977
35978 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035979 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035980Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035981
cristy8b350f62009-11-15 23:12:43 +000035982 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035983 ac_need_defaults=false ;;
35984
35985 esac
35986 shift
35987done
35988
35989ac_configure_extra_args=
35990
35991if $ac_cs_silent; then
35992 exec 6>/dev/null
35993 ac_configure_extra_args="$ac_configure_extra_args --silent"
35994fi
35995
35996_ACEOF
35997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35998if \$ac_cs_recheck; then
35999 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36000 shift
36001 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36002 CONFIG_SHELL='$SHELL'
36003 export CONFIG_SHELL
36004 exec "\$@"
36005fi
36006
36007_ACEOF
36008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36009exec 5>>config.log
36010{
36011 echo
36012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36013## Running $as_me. ##
36014_ASBOX
36015 $as_echo "$ac_log"
36016} >&5
36017
36018_ACEOF
36019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036020#
36021# INIT-COMMANDS
36022#
36023PACKAGE="$PACKAGE"
36024AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36025
36026
36027# The HP-UX ksh and POSIX shell print the target directory to stdout
36028# if CDPATH is set.
36029(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36030
36031sed_quote_subst='$sed_quote_subst'
36032double_quote_subst='$double_quote_subst'
36033delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036034SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36035Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36036GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36037EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36038FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36039SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36040ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36041LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36042macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36043macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36044AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36045DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36046OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36047enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36048enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36049pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36050enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36051host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36052host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36053host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36054build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36055build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36056build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36057NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36058LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36059max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36060ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36061exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36062lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36063lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36064lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036065lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36066lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036067reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36068reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36069deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36070file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036071file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36072want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36073sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036074AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36075AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036076archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036077STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36078RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36079old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36080old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36081old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36082lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36083CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36084CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36085compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36086GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36087lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36088lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36089lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36090lt_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 +000036091nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36092lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036093objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36094MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36095lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036096lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036097lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036098lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36099lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36100need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036101MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036102DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36103NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36104LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36105OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36106OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36107libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36108shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36109extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36110archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36111enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36112export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36113whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36114compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36115old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36116old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36117archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36118archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36119module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36120module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36121with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36122allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36123no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36124hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36125hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36126hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36127hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36128hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36129hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36130hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36131hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36132inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36133link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036134always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36135export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36136exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36137include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36138prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036139postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036140file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36141variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36142need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36143need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36144version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36145runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36146shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36147shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36148libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36149library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36150soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36151install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36152postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36153postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36154finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36155finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36156hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36157sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36158sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36159hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36160enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36161enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36162enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36163old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36164striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36165compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36166predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36167postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36168predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36169postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36170compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36171LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36172reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36173reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36174old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36175compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36176GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36177lt_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 +000036178lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036179lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036180lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36181lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36182archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36183enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36184export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36185whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36186compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36187old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36188old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36189archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36190archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36191module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36192module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36193with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36194allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36195no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36196hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36197hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36198hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36199hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36200hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36201hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36202hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36203hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36204inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36205link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036206always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36207export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36208exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36209include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36210prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036211postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036212file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36213hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36214compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36215predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36216postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36217predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36218postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36219compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036220
36221LTCC='$LTCC'
36222LTCFLAGS='$LTCFLAGS'
36223compiler='$compiler_DEFAULT'
36224
cristy0c60a692010-11-04 01:09:47 +000036225# A function that is used when there is no print builtin or printf.
36226func_fallback_echo ()
36227{
36228 eval 'cat <<_LTECHO_EOF
36229\$1
36230_LTECHO_EOF'
36231}
36232
cristy73bd4a52010-10-05 11:24:23 +000036233# Quote evaled strings.
36234for var in SED \
36235GREP \
36236EGREP \
36237FGREP \
cristy0c60a692010-11-04 01:09:47 +000036238SHELL \
36239ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036240LD \
cristy0c60a692010-11-04 01:09:47 +000036241AS \
36242DLLTOOL \
36243OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000036244NM \
36245LN_S \
36246lt_SP2NL \
36247lt_NL2SP \
36248reload_flag \
36249deplibs_check_method \
36250file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036251file_magic_glob \
36252want_nocaseglob \
36253sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036254AR \
36255AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036256archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036257STRIP \
36258RANLIB \
36259CC \
36260CFLAGS \
36261compiler \
36262lt_cv_sys_global_symbol_pipe \
36263lt_cv_sys_global_symbol_to_cdecl \
36264lt_cv_sys_global_symbol_to_c_name_address \
36265lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036266nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036267lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036268lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036269lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036270lt_prog_compiler_static \
36271lt_cv_prog_compiler_c_o \
36272need_locks \
cristyda16f162011-02-19 23:52:17 +000036273MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036274DSYMUTIL \
36275NMEDIT \
36276LIPO \
36277OTOOL \
36278OTOOL64 \
36279shrext_cmds \
36280export_dynamic_flag_spec \
36281whole_archive_flag_spec \
36282compiler_needs_object \
36283with_gnu_ld \
36284allow_undefined_flag \
36285no_undefined_flag \
36286hardcode_libdir_flag_spec \
36287hardcode_libdir_flag_spec_ld \
36288hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036289exclude_expsyms \
36290include_expsyms \
36291file_list_spec \
36292variables_saved_for_relink \
36293libname_spec \
36294library_names_spec \
36295soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036296install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036297finish_eval \
36298old_striplib \
36299striplib \
36300compiler_lib_search_dirs \
36301predep_objects \
36302postdep_objects \
36303predeps \
36304postdeps \
36305compiler_lib_search_path \
36306LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036307reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036308compiler_CXX \
36309lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036310lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036311lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036312lt_prog_compiler_static_CXX \
36313lt_cv_prog_compiler_c_o_CXX \
36314export_dynamic_flag_spec_CXX \
36315whole_archive_flag_spec_CXX \
36316compiler_needs_object_CXX \
36317with_gnu_ld_CXX \
36318allow_undefined_flag_CXX \
36319no_undefined_flag_CXX \
36320hardcode_libdir_flag_spec_CXX \
36321hardcode_libdir_flag_spec_ld_CXX \
36322hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036323exclude_expsyms_CXX \
36324include_expsyms_CXX \
36325file_list_spec_CXX \
36326compiler_lib_search_dirs_CXX \
36327predep_objects_CXX \
36328postdep_objects_CXX \
36329predeps_CXX \
36330postdeps_CXX \
36331compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036332 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036333 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036334 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036335 ;;
36336 *)
36337 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36338 ;;
36339 esac
36340done
36341
36342# Double-quote double-evaled strings.
36343for var in reload_cmds \
36344old_postinstall_cmds \
36345old_postuninstall_cmds \
36346old_archive_cmds \
36347extract_expsyms_cmds \
36348old_archive_from_new_cmds \
36349old_archive_from_expsyms_cmds \
36350archive_cmds \
36351archive_expsym_cmds \
36352module_cmds \
36353module_expsym_cmds \
36354export_symbols_cmds \
36355prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036356postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036357postinstall_cmds \
36358postuninstall_cmds \
36359finish_cmds \
36360sys_lib_search_path_spec \
36361sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036362reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036363old_archive_cmds_CXX \
36364old_archive_from_new_cmds_CXX \
36365old_archive_from_expsyms_cmds_CXX \
36366archive_cmds_CXX \
36367archive_expsym_cmds_CXX \
36368module_cmds_CXX \
36369module_expsym_cmds_CXX \
36370export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036371prelink_cmds_CXX \
36372postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036373 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036374 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036375 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036376 ;;
36377 *)
36378 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36379 ;;
36380 esac
36381done
36382
cristy73bd4a52010-10-05 11:24:23 +000036383ac_aux_dir='$ac_aux_dir'
36384xsi_shell='$xsi_shell'
36385lt_shell_append='$lt_shell_append'
36386
36387# See if we are running on zsh, and set the options which allow our
36388# commands through without removal of \ escapes INIT.
36389if test -n "\${ZSH_VERSION+set}" ; then
36390 setopt NO_GLOB_SUBST
36391fi
36392
36393
36394 PACKAGE='$PACKAGE'
36395 VERSION='$VERSION'
36396 TIMESTAMP='$TIMESTAMP'
36397 RM='$RM'
36398 ofile='$ofile'
36399
36400
36401
36402
36403
36404
cristy3ed852e2009-09-05 21:47:34 +000036405_ACEOF
36406
36407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36408
36409# Handling of arguments.
36410for ac_config_target in $ac_config_targets
36411do
36412 case $ac_config_target in
36413 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036414 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036415 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36416 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36417 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36418 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36419 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036420 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036421 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36422 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36423 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36424 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36425 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036426 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036427 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36428 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036429 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36430 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36431 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036432 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36433 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36434 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36435 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36436 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36437 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36438 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36439 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36440 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36441 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36442 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36443 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36444 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36445 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36446 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36447 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36448 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036449 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36450 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036451 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36452 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036453 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36454 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036455 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036456 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36457 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36458
cristy98dddb52010-11-04 00:30:15 +000036459 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036460 esac
36461done
36462
36463
36464# If the user did not use the arguments to specify the items to instantiate,
36465# then the envvar interface is used. Set only those that are not.
36466# We use the long form for the default assignment because of an extremely
36467# bizarre bug on SunOS 4.1.3.
36468if $ac_need_defaults; then
36469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36472fi
36473
36474# Have a temporary directory for convenience. Make it in the build tree
36475# simply because there is no reason against having it here, and in addition,
36476# creating and moving files from /tmp can sometimes cause problems.
36477# Hook for its removal unless debugging.
36478# Note that there is a small window in which the directory will not be cleaned:
36479# after its creation but before its name has been assigned to `$tmp'.
36480$debug ||
36481{
cristyda16f162011-02-19 23:52:17 +000036482 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036483 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036484 : "${ac_tmp:=$tmp}"
36485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036486' 0
cristy8b350f62009-11-15 23:12:43 +000036487 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036488}
36489# Create a (secure) tmp directory for tmp files.
36490
36491{
36492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036493 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036494} ||
36495{
36496 tmp=./conf$$-$RANDOM
36497 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036498} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036499ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036500
36501# Set up the scripts for CONFIG_FILES section.
36502# No need to generate them if there are no CONFIG_FILES.
36503# This happens for instance with `./config.status config.h'.
36504if test -n "$CONFIG_FILES"; then
36505
36506
cristy8b350f62009-11-15 23:12:43 +000036507ac_cr=`echo X | tr X '\015'`
36508# On cygwin, bash can eat \r inside `` if the user requested igncr.
36509# But we know of no other shell where ac_cr would be empty at this
36510# point, so we can use a bashism as a fallback.
36511if test "x$ac_cr" = x; then
36512 eval ac_cr=\$\'\\r\'
36513fi
cristy3ed852e2009-09-05 21:47:34 +000036514ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36515if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036516 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036517else
36518 ac_cs_awk_cr=$ac_cr
36519fi
36520
cristyda16f162011-02-19 23:52:17 +000036521echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036522_ACEOF
36523
36524
36525{
36526 echo "cat >conf$$subs.awk <<_ACEOF" &&
36527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36528 echo "_ACEOF"
36529} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36531ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036532ac_delim='%!_!# '
36533for ac_last_try in false false false false false :; do
36534 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036536
36537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36538 if test $ac_delim_n = $ac_delim_num; then
36539 break
36540 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036542 else
36543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36544 fi
36545done
36546rm -f conf$$subs.sh
36547
36548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036549cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036550_ACEOF
36551sed -n '
36552h
36553s/^/S["/; s/!.*/"]=/
36554p
36555g
36556s/^[^!]*!//
36557:repl
36558t repl
36559s/'"$ac_delim"'$//
36560t delim
36561:nl
36562h
cristycd4c5312009-11-22 01:19:08 +000036563s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036564t more1
36565s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36566p
36567n
36568b repl
36569:more1
36570s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36571p
36572g
36573s/.\{148\}//
36574t nl
36575:delim
36576h
cristycd4c5312009-11-22 01:19:08 +000036577s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036578t more2
36579s/["\\]/\\&/g; s/^/"/; s/$/"/
36580p
36581b
36582:more2
36583s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36584p
36585g
36586s/.\{148\}//
36587t delim
36588' <conf$$subs.awk | sed '
36589/^[^""]/{
36590 N
36591 s/\n//
36592}
36593' >>$CONFIG_STATUS || ac_write_fail=1
36594rm -f conf$$subs.awk
36595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36596_ACAWK
cristyda16f162011-02-19 23:52:17 +000036597cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036598 for (key in S) S_is_set[key] = 1
36599 FS = ""
36600
36601}
36602{
36603 line = $ 0
36604 nfields = split(line, field, "@")
36605 substed = 0
36606 len = length(field[1])
36607 for (i = 2; i < nfields; i++) {
36608 key = field[i]
36609 keylen = length(key)
36610 if (S_is_set[key]) {
36611 value = S[key]
36612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36613 len += length(value) + length(field[++i])
36614 substed = 1
36615 } else
36616 len += 1 + keylen
36617 }
36618
36619 print line
36620}
36621
36622_ACAWK
36623_ACEOF
36624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36625if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36627else
36628 cat
cristyda16f162011-02-19 23:52:17 +000036629fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036630 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036631_ACEOF
36632
cristy98dddb52010-11-04 00:30:15 +000036633# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36634# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036635# trailing colons and then remove the whole line if VPATH becomes empty
36636# (actually we leave an empty line to preserve line numbers).
36637if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36639h
36640s///
36641s/^/:/
36642s/[ ]*$/:/
36643s/:\$(srcdir):/:/g
36644s/:\${srcdir}:/:/g
36645s/:@srcdir@:/:/g
36646s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036647s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036648x
36649s/\(=[ ]*\).*/\1/
36650G
36651s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036652s/^[^=]*=[ ]*$//
36653}'
36654fi
36655
36656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36657fi # test -n "$CONFIG_FILES"
36658
36659# Set up the scripts for CONFIG_HEADERS section.
36660# No need to generate them if there are no CONFIG_HEADERS.
36661# This happens for instance with `./config.status Makefile'.
36662if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036663cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036664BEGIN {
36665_ACEOF
36666
36667# Transform confdefs.h into an awk script `defines.awk', embedded as
36668# here-document in config.status, that substitutes the proper values into
36669# config.h.in to produce config.h.
36670
36671# Create a delimiter string that does not exist in confdefs.h, to ease
36672# handling of long lines.
36673ac_delim='%!_!# '
36674for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036675 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36676 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036677 break
36678 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036679 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036680 else
36681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36682 fi
36683done
36684
36685# For the awk script, D is an array of macro values keyed by name,
36686# likewise P contains macro parameters if any. Preserve backslash
36687# newline sequences.
36688
36689ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36690sed -n '
36691s/.\{148\}/&'"$ac_delim"'/g
36692t rset
36693:rset
36694s/^[ ]*#[ ]*define[ ][ ]*/ /
36695t def
36696d
36697:def
36698s/\\$//
36699t bsnl
36700s/["\\]/\\&/g
36701s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36702D["\1"]=" \3"/p
36703s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36704d
36705:bsnl
36706s/["\\]/\\&/g
36707s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36708D["\1"]=" \3\\\\\\n"\\/p
36709t cont
36710s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36711t cont
36712d
36713:cont
36714n
36715s/.\{148\}/&'"$ac_delim"'/g
36716t clear
36717:clear
36718s/\\$//
36719t bsnlc
36720s/["\\]/\\&/g; s/^/"/; s/$/"/p
36721d
36722:bsnlc
36723s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36724b cont
36725' <confdefs.h | sed '
36726s/'"$ac_delim"'/"\\\
36727"/g' >>$CONFIG_STATUS || ac_write_fail=1
36728
36729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36730 for (key in D) D_is_set[key] = 1
36731 FS = ""
36732}
36733/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36734 line = \$ 0
36735 split(line, arg, " ")
36736 if (arg[1] == "#") {
36737 defundef = arg[2]
36738 mac1 = arg[3]
36739 } else {
36740 defundef = substr(arg[1], 2)
36741 mac1 = arg[2]
36742 }
36743 split(mac1, mac2, "(") #)
36744 macro = mac2[1]
36745 prefix = substr(line, 1, index(line, defundef) - 1)
36746 if (D_is_set[macro]) {
36747 # Preserve the white space surrounding the "#".
36748 print prefix "define", macro P[macro] D[macro]
36749 next
36750 } else {
36751 # Replace #undef with comments. This is necessary, for example,
36752 # in the case of _POSIX_SOURCE, which is predefined and required
36753 # on some systems where configure will not decide to define it.
36754 if (defundef == "undef") {
36755 print "/*", prefix defundef, macro, "*/"
36756 next
36757 }
36758 }
36759}
36760{ print }
36761_ACAWK
36762_ACEOF
36763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036764 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036765fi # test -n "$CONFIG_HEADERS"
36766
36767
36768eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36769shift
36770for ac_tag
36771do
36772 case $ac_tag in
36773 :[FHLC]) ac_mode=$ac_tag; continue;;
36774 esac
36775 case $ac_mode$ac_tag in
36776 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036778 :[FH]-) ac_tag=-:-;;
36779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36780 esac
36781 ac_save_IFS=$IFS
36782 IFS=:
36783 set x $ac_tag
36784 IFS=$ac_save_IFS
36785 shift
36786 ac_file=$1
36787 shift
36788
36789 case $ac_mode in
36790 :L) ac_source=$1;;
36791 :[FH])
36792 ac_file_inputs=
36793 for ac_f
36794 do
36795 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036796 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036797 *) # Look for the file first in the build tree, then in the source tree
36798 # (if the path is not absolute). The absolute path cannot be DOS-style,
36799 # because $ac_f cannot contain `:'.
36800 test -f "$ac_f" ||
36801 case $ac_f in
36802 [\\/$]*) false;;
36803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36804 esac ||
cristy98dddb52010-11-04 00:30:15 +000036805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036806 esac
36807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036808 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036809 done
36810
36811 # Let's still pretend it is `configure' which instantiates (i.e., don't
36812 # use $as_me), people would be surprised to read:
36813 # /* config.h. Generated by config.status. */
36814 configure_input='Generated from '`
36815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36816 `' by configure.'
36817 if test x"$ac_file" != x-; then
36818 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036820$as_echo "$as_me: creating $ac_file" >&6;}
36821 fi
36822 # Neutralize special characters interpreted by sed in replacement strings.
36823 case $configure_input in #(
36824 *\&* | *\|* | *\\* )
36825 ac_sed_conf_input=`$as_echo "$configure_input" |
36826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36827 *) ac_sed_conf_input=$configure_input;;
36828 esac
36829
36830 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036833 esac
36834 ;;
36835 esac
36836
36837 ac_dir=`$as_dirname -- "$ac_file" ||
36838$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36839 X"$ac_file" : 'X\(//\)[^/]' \| \
36840 X"$ac_file" : 'X\(//\)$' \| \
36841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36842$as_echo X"$ac_file" |
36843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36844 s//\1/
36845 q
36846 }
36847 /^X\(\/\/\)[^/].*/{
36848 s//\1/
36849 q
36850 }
36851 /^X\(\/\/\)$/{
36852 s//\1/
36853 q
36854 }
36855 /^X\(\/\).*/{
36856 s//\1/
36857 q
36858 }
36859 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036860 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036861 ac_builddir=.
36862
36863case "$ac_dir" in
36864.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36865*)
36866 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36867 # A ".." for each directory in $ac_dir_suffix.
36868 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36869 case $ac_top_builddir_sub in
36870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36872 esac ;;
36873esac
36874ac_abs_top_builddir=$ac_pwd
36875ac_abs_builddir=$ac_pwd$ac_dir_suffix
36876# for backward compatibility:
36877ac_top_builddir=$ac_top_build_prefix
36878
36879case $srcdir in
36880 .) # We are building in place.
36881 ac_srcdir=.
36882 ac_top_srcdir=$ac_top_builddir_sub
36883 ac_abs_top_srcdir=$ac_pwd ;;
36884 [\\/]* | ?:[\\/]* ) # Absolute name.
36885 ac_srcdir=$srcdir$ac_dir_suffix;
36886 ac_top_srcdir=$srcdir
36887 ac_abs_top_srcdir=$srcdir ;;
36888 *) # Relative name.
36889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36890 ac_top_srcdir=$ac_top_build_prefix$srcdir
36891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36892esac
36893ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36894
36895
36896 case $ac_mode in
36897 :F)
36898 #
36899 # CONFIG_FILE
36900 #
36901
36902 case $INSTALL in
36903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36904 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36905 esac
cristy73bd4a52010-10-05 11:24:23 +000036906 ac_MKDIR_P=$MKDIR_P
36907 case $MKDIR_P in
36908 [\\/$]* | ?:[\\/]* ) ;;
36909 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36910 esac
cristy3ed852e2009-09-05 21:47:34 +000036911_ACEOF
36912
36913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36914# If the template does not know about datarootdir, expand it.
36915# FIXME: This hack should be removed a few years after 2.60.
36916ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036917ac_sed_dataroot='
36918/datarootdir/ {
36919 p
36920 q
36921}
36922/@datadir@/p
36923/@docdir@/p
36924/@infodir@/p
36925/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036926/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036927case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36928*datarootdir*) ac_datarootdir_seen=yes;;
36929*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036931$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36932_ACEOF
36933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36934 ac_datarootdir_hack='
36935 s&@datadir@&$datadir&g
36936 s&@docdir@&$docdir&g
36937 s&@infodir@&$infodir&g
36938 s&@localedir@&$localedir&g
36939 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036940 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036941esac
36942_ACEOF
36943
36944# Neutralize VPATH when `$srcdir' = `.'.
36945# Shell code in configure.ac might set extrasub.
36946# FIXME: do we really want to maintain this feature?
36947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36948ac_sed_extra="$ac_vpsub
36949$extrasub
36950_ACEOF
36951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36952:t
36953/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36954s|@configure_input@|$ac_sed_conf_input|;t t
36955s&@top_builddir@&$ac_top_builddir_sub&;t t
36956s&@top_build_prefix@&$ac_top_build_prefix&;t t
36957s&@srcdir@&$ac_srcdir&;t t
36958s&@abs_srcdir@&$ac_abs_srcdir&;t t
36959s&@top_srcdir@&$ac_top_srcdir&;t t
36960s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36961s&@builddir@&$ac_builddir&;t t
36962s&@abs_builddir@&$ac_abs_builddir&;t t
36963s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36964s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036965s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036966$ac_datarootdir_hack
36967"
cristyda16f162011-02-19 23:52:17 +000036968eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36969 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036970
36971test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036972 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36974 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036976which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036977$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036978which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036979
cristyda16f162011-02-19 23:52:17 +000036980 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036981 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036982 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36983 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036984 esac \
cristy98dddb52010-11-04 00:30:15 +000036985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036986 ;;
36987 :H)
36988 #
36989 # CONFIG_HEADER
36990 #
36991 if test x"$ac_file" != x-; then
36992 {
36993 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36995 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036997 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036999$as_echo "$as_me: $ac_file is unchanged" >&6;}
37000 else
37001 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037002 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037004 fi
37005 else
37006 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037008 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037009 fi
cristy73bd4a52010-10-05 11:24:23 +000037010# Compute "$ac_file"'s index in $config_headers.
37011_am_arg="$ac_file"
37012_am_stamp_count=1
37013for _am_header in $config_headers :; do
37014 case $_am_header in
37015 $_am_arg | $_am_arg:* )
37016 break ;;
37017 * )
37018 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37019 esac
37020done
37021echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37022$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37023 X"$_am_arg" : 'X\(//\)[^/]' \| \
37024 X"$_am_arg" : 'X\(//\)$' \| \
37025 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37026$as_echo X"$_am_arg" |
37027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37028 s//\1/
37029 q
37030 }
37031 /^X\(\/\/\)[^/].*/{
37032 s//\1/
37033 q
37034 }
37035 /^X\(\/\/\)$/{
37036 s//\1/
37037 q
37038 }
37039 /^X\(\/\).*/{
37040 s//\1/
37041 q
37042 }
37043 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037044 ;;
37045
cristy8b350f62009-11-15 23:12:43 +000037046 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037047$as_echo "$as_me: executing $ac_file commands" >&6;}
37048 ;;
37049 esac
37050
37051
37052 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037053 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037054ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37055ac_prefix_conf_PKG=`echo MagickCore`
37056ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37057ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37058ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37059if test ".$ac_prefix_conf_INP" = "."; then
37060 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37061 case "$ac_file" in
37062 *.h) ac_prefix_conf_INP=$ac_file ;;
37063 *)
37064 esac
37065 test ".$ac_prefix_conf_INP" != "." && break
37066 done
37067fi
37068if test ".$ac_prefix_conf_INP" = "."; then
37069 case "$ac_prefix_conf_OUT" in
37070 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37071 ;;
37072 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37073 ;;
37074 *) ac_prefix_conf_INP=config.h
37075 ;;
37076 esac
37077fi
37078if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037079 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037080else
37081 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37082 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37083 fi fi
37084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37085$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37086 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037087 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37088 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37089 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37090 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37091 $as_echo "#endif/" >> conftest.prefix
37092 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37093 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37094 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037095 # now executing _script on _DEF input to create _OUT output file
37096 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37097 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37098 echo ' ' >>$tmp/pconfig.h
37099 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37100
37101 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37102 echo ' ' >>$tmp/pconfig.h
37103 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37104 echo "#endif" >>$tmp/pconfig.h
37105 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37106 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37107$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37108 else
37109 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37110$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37111 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37112 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37113 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37114$as_echo X"$ac_prefix_conf_OUT" |
37115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37116 s//\1/
37117 q
37118 }
37119 /^X\(\/\/\)[^/].*/{
37120 s//\1/
37121 q
37122 }
37123 /^X\(\/\/\)$/{
37124 s//\1/
37125 q
37126 }
37127 /^X\(\/\).*/{
37128 s//\1/
37129 q
37130 }
37131 s/.*/./; q'`
37132 as_dir="$ac_dir"; as_fn_mkdir_p
37133 rm -f "$ac_prefix_conf_OUT"
37134 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37135 fi
37136 cp conftest.prefix _configs.sed
37137 else
cristy98dddb52010-11-04 00:30:15 +000037138 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 +000037139 fi
37140 rm -f conftest.*
37141fi
37142 ;;
37143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37144 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37145 # are listed without --file. Let's play safe and only enable the eval
37146 # if we detect the quoting.
37147 case $CONFIG_FILES in
37148 *\'*) eval set x "$CONFIG_FILES" ;;
37149 *) set x $CONFIG_FILES ;;
37150 esac
37151 shift
37152 for mf
37153 do
37154 # Strip MF so we end up with the name of the file.
37155 mf=`echo "$mf" | sed -e 's/:.*$//'`
37156 # Check whether this is an Automake generated Makefile or not.
37157 # We used to match only the files named `Makefile.in', but
37158 # some people rename them; so instead we look at the file content.
37159 # Grep'ing the first line is not enough: some people post-process
37160 # each Makefile.in and add a new line on top of each file to say so.
37161 # Grep'ing the whole file is not good either: AIX grep has a line
37162 # limit of 2048, but all sed's we know have understand at least 4000.
37163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37164 dirpart=`$as_dirname -- "$mf" ||
37165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37166 X"$mf" : 'X\(//\)[^/]' \| \
37167 X"$mf" : 'X\(//\)$' \| \
37168 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37169$as_echo X"$mf" |
37170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37171 s//\1/
37172 q
37173 }
37174 /^X\(\/\/\)[^/].*/{
37175 s//\1/
37176 q
37177 }
37178 /^X\(\/\/\)$/{
37179 s//\1/
37180 q
37181 }
37182 /^X\(\/\).*/{
37183 s//\1/
37184 q
37185 }
37186 s/.*/./; q'`
37187 else
37188 continue
37189 fi
37190 # Extract the definition of DEPDIR, am__include, and am__quote
37191 # from the Makefile without running `make'.
37192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37193 test -z "$DEPDIR" && continue
37194 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37195 test -z "am__include" && continue
37196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37197 # When using ansi2knr, U may be empty or an underscore; expand it
37198 U=`sed -n 's/^U = //p' < "$mf"`
37199 # Find all dependency output files, they are included files with
37200 # $(DEPDIR) in their names. We invoke sed twice because it is the
37201 # simplest approach to changing $(DEPDIR) to its actual value in the
37202 # expansion.
37203 for file in `sed -n "
37204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37206 # Make sure the directory exists.
37207 test -f "$dirpart/$file" && continue
37208 fdir=`$as_dirname -- "$file" ||
37209$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37210 X"$file" : 'X\(//\)[^/]' \| \
37211 X"$file" : 'X\(//\)$' \| \
37212 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37213$as_echo X"$file" |
37214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37215 s//\1/
37216 q
37217 }
37218 /^X\(\/\/\)[^/].*/{
37219 s//\1/
37220 q
37221 }
37222 /^X\(\/\/\)$/{
37223 s//\1/
37224 q
37225 }
37226 /^X\(\/\).*/{
37227 s//\1/
37228 q
37229 }
37230 s/.*/./; q'`
37231 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37232 # echo "creating $dirpart/$file"
37233 echo '# dummy' > "$dirpart/$file"
37234 done
37235 done
37236}
37237 ;;
37238 "libtool":C)
37239
37240 # See if we are running on zsh, and set the options which allow our
37241 # commands through without removal of \ escapes.
37242 if test -n "${ZSH_VERSION+set}" ; then
37243 setopt NO_GLOB_SUBST
37244 fi
37245
37246 cfgfile="${ofile}T"
37247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37248 $RM "$cfgfile"
37249
37250 cat <<_LT_EOF >> "$cfgfile"
37251#! $SHELL
37252
37253# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37254# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37255# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37256# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37257#
37258# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000037259# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37260# Inc.
cristy73bd4a52010-10-05 11:24:23 +000037261# Written by Gordon Matzigkeit, 1996
37262#
37263# This file is part of GNU Libtool.
37264#
37265# GNU Libtool is free software; you can redistribute it and/or
37266# modify it under the terms of the GNU General Public License as
37267# published by the Free Software Foundation; either version 2 of
37268# the License, or (at your option) any later version.
37269#
37270# As a special exception to the GNU General Public License,
37271# if you distribute this file as part of a program or library that
37272# is built using GNU Libtool, you may include this file under the
37273# same distribution terms that you use for the rest of that program.
37274#
37275# GNU Libtool is distributed in the hope that it will be useful,
37276# but WITHOUT ANY WARRANTY; without even the implied warranty of
37277# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37278# GNU General Public License for more details.
37279#
37280# You should have received a copy of the GNU General Public License
37281# along with GNU Libtool; see the file COPYING. If not, a copy
37282# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37283# obtained by writing to the Free Software Foundation, Inc.,
37284# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37285
37286
37287# The names of the tagged configurations supported by this script.
37288available_tags="CXX "
37289
37290# ### BEGIN LIBTOOL CONFIG
37291
37292# A sed program that does not truncate output.
37293SED=$lt_SED
37294
37295# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37296Xsed="\$SED -e 1s/^X//"
37297
37298# A grep program that handles long lines.
37299GREP=$lt_GREP
37300
37301# An ERE matcher.
37302EGREP=$lt_EGREP
37303
37304# A literal string matcher.
37305FGREP=$lt_FGREP
37306
cristy0c60a692010-11-04 01:09:47 +000037307# Shell to use when invoking shell scripts.
37308SHELL=$lt_SHELL
37309
37310# An echo program that protects backslashes.
37311ECHO=$lt_ECHO
37312
cristy73bd4a52010-10-05 11:24:23 +000037313# Which release of libtool.m4 was used?
37314macro_version=$macro_version
37315macro_revision=$macro_revision
37316
37317# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037318AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037319
37320# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037321DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037322
37323# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037324OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037325
37326# Whether or not to build shared libraries.
37327build_libtool_libs=$enable_shared
37328
37329# Whether or not to build static libraries.
37330build_old_libs=$enable_static
37331
37332# What type of objects to build.
37333pic_mode=$pic_mode
37334
37335# Whether or not to optimize for fast installation.
37336fast_install=$enable_fast_install
37337
37338# The host system.
37339host_alias=$host_alias
37340host=$host
37341host_os=$host_os
37342
37343# The build system.
37344build_alias=$build_alias
37345build=$build
37346build_os=$build_os
37347
37348# A BSD- or MS-compatible name lister.
37349NM=$lt_NM
37350
37351# Whether we need soft or hard links.
37352LN_S=$lt_LN_S
37353
37354# What is the maximum length of a command?
37355max_cmd_len=$max_cmd_len
37356
37357# Object file suffix (normally "o").
37358objext=$ac_objext
37359
37360# Executable file suffix (normally "").
37361exeext=$exeext
37362
37363# whether the shell understands "unset".
37364lt_unset=$lt_unset
37365
37366# turn spaces into newlines.
37367SP2NL=$lt_lt_SP2NL
37368
37369# turn newlines into spaces.
37370NL2SP=$lt_lt_NL2SP
37371
cristyda16f162011-02-19 23:52:17 +000037372# convert \$build file names to \$host format.
37373to_host_file_cmd=$lt_cv_to_host_file_cmd
37374
37375# convert \$build files to toolchain format.
37376to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37377
cristy73bd4a52010-10-05 11:24:23 +000037378# Method to check whether dependent libraries are shared objects.
37379deplibs_check_method=$lt_deplibs_check_method
37380
cristyda16f162011-02-19 23:52:17 +000037381# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037382file_magic_cmd=$lt_file_magic_cmd
37383
cristyda16f162011-02-19 23:52:17 +000037384# How to find potential files when deplibs_check_method = "file_magic".
37385file_magic_glob=$lt_file_magic_glob
37386
37387# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37388want_nocaseglob=$lt_want_nocaseglob
37389
37390# Command to associate shared and link libraries.
37391sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37392
cristy73bd4a52010-10-05 11:24:23 +000037393# The archiver.
37394AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037395
37396# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037397AR_FLAGS=$lt_AR_FLAGS
37398
cristyda16f162011-02-19 23:52:17 +000037399# How to feed a file listing to the archiver.
37400archiver_list_spec=$lt_archiver_list_spec
37401
cristy73bd4a52010-10-05 11:24:23 +000037402# A symbol stripping program.
37403STRIP=$lt_STRIP
37404
37405# Commands used to install an old-style archive.
37406RANLIB=$lt_RANLIB
37407old_postinstall_cmds=$lt_old_postinstall_cmds
37408old_postuninstall_cmds=$lt_old_postuninstall_cmds
37409
cristy0c60a692010-11-04 01:09:47 +000037410# Whether to use a lock for old archive extraction.
37411lock_old_archive_extraction=$lock_old_archive_extraction
37412
cristy73bd4a52010-10-05 11:24:23 +000037413# A C compiler.
37414LTCC=$lt_CC
37415
37416# LTCC compiler flags.
37417LTCFLAGS=$lt_CFLAGS
37418
37419# Take the output of nm and produce a listing of raw symbols and C names.
37420global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37421
37422# Transform the output of nm in a proper C declaration.
37423global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37424
37425# Transform the output of nm in a C name address pair.
37426global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37427
37428# Transform the output of nm in a C name address pair when lib prefix is needed.
37429global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37430
cristyda16f162011-02-19 23:52:17 +000037431# Specify filename containing input files for \$NM.
37432nm_file_list_spec=$lt_nm_file_list_spec
37433
37434# The root where to search for dependent libraries,and in which our libraries should be installed.
37435lt_sysroot=$lt_sysroot
37436
cristy73bd4a52010-10-05 11:24:23 +000037437# The name of the directory that contains temporary libtool files.
37438objdir=$objdir
37439
cristy73bd4a52010-10-05 11:24:23 +000037440# Used to examine libraries when file_magic_cmd begins with "file".
37441MAGIC_CMD=$MAGIC_CMD
37442
37443# Must we lock files when doing compilation?
37444need_locks=$lt_need_locks
37445
cristyda16f162011-02-19 23:52:17 +000037446# Manifest tool.
37447MANIFEST_TOOL=$lt_MANIFEST_TOOL
37448
cristy73bd4a52010-10-05 11:24:23 +000037449# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37450DSYMUTIL=$lt_DSYMUTIL
37451
37452# Tool to change global to local symbols on Mac OS X.
37453NMEDIT=$lt_NMEDIT
37454
37455# Tool to manipulate fat objects and archives on Mac OS X.
37456LIPO=$lt_LIPO
37457
37458# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37459OTOOL=$lt_OTOOL
37460
37461# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37462OTOOL64=$lt_OTOOL64
37463
37464# Old archive suffix (normally "a").
37465libext=$libext
37466
37467# Shared library suffix (normally ".so").
37468shrext_cmds=$lt_shrext_cmds
37469
37470# The commands to extract the exported symbol list from a shared archive.
37471extract_expsyms_cmds=$lt_extract_expsyms_cmds
37472
37473# Variables whose values should be saved in libtool wrapper scripts and
37474# restored at link time.
37475variables_saved_for_relink=$lt_variables_saved_for_relink
37476
37477# Do we need the "lib" prefix for modules?
37478need_lib_prefix=$need_lib_prefix
37479
37480# Do we need a version for libraries?
37481need_version=$need_version
37482
37483# Library versioning type.
37484version_type=$version_type
37485
37486# Shared library runtime path variable.
37487runpath_var=$runpath_var
37488
37489# Shared library path variable.
37490shlibpath_var=$shlibpath_var
37491
37492# Is shlibpath searched before the hard-coded library search path?
37493shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37494
37495# Format of library name prefix.
37496libname_spec=$lt_libname_spec
37497
37498# List of archive names. First name is the real one, the rest are links.
37499# The last name is the one that the linker finds with -lNAME
37500library_names_spec=$lt_library_names_spec
37501
37502# The coded name of the library, if different from the real name.
37503soname_spec=$lt_soname_spec
37504
cristy0c60a692010-11-04 01:09:47 +000037505# Permission mode override for installation of shared libraries.
37506install_override_mode=$lt_install_override_mode
37507
cristy73bd4a52010-10-05 11:24:23 +000037508# Command to use after installation of a shared archive.
37509postinstall_cmds=$lt_postinstall_cmds
37510
37511# Command to use after uninstallation of a shared archive.
37512postuninstall_cmds=$lt_postuninstall_cmds
37513
37514# Commands used to finish a libtool library installation in a directory.
37515finish_cmds=$lt_finish_cmds
37516
37517# As "finish_cmds", except a single script fragment to be evaled but
37518# not shown.
37519finish_eval=$lt_finish_eval
37520
37521# Whether we should hardcode library paths into libraries.
37522hardcode_into_libs=$hardcode_into_libs
37523
37524# Compile-time system search path for libraries.
37525sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37526
37527# Run-time system search path for libraries.
37528sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37529
37530# Whether dlopen is supported.
37531dlopen_support=$enable_dlopen
37532
37533# Whether dlopen of programs is supported.
37534dlopen_self=$enable_dlopen_self
37535
37536# Whether dlopen of statically linked programs is supported.
37537dlopen_self_static=$enable_dlopen_self_static
37538
37539# Commands to strip libraries.
37540old_striplib=$lt_old_striplib
37541striplib=$lt_striplib
37542
37543
37544# The linker used to build libraries.
37545LD=$lt_LD
37546
cristy0c60a692010-11-04 01:09:47 +000037547# How to create reloadable object files.
37548reload_flag=$lt_reload_flag
37549reload_cmds=$lt_reload_cmds
37550
cristy73bd4a52010-10-05 11:24:23 +000037551# Commands used to build an old-style archive.
37552old_archive_cmds=$lt_old_archive_cmds
37553
37554# A language specific compiler.
37555CC=$lt_compiler
37556
37557# Is the compiler the GNU compiler?
37558with_gcc=$GCC
37559
37560# Compiler flag to turn off builtin functions.
37561no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37562
cristy73bd4a52010-10-05 11:24:23 +000037563# Additional compiler flags for building library objects.
37564pic_flag=$lt_lt_prog_compiler_pic
37565
cristyda16f162011-02-19 23:52:17 +000037566# How to pass a linker flag through the compiler.
37567wl=$lt_lt_prog_compiler_wl
37568
cristy73bd4a52010-10-05 11:24:23 +000037569# Compiler flag to prevent dynamic linking.
37570link_static_flag=$lt_lt_prog_compiler_static
37571
37572# Does compiler simultaneously support -c and -o options?
37573compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37574
37575# Whether or not to add -lc for building shared libraries.
37576build_libtool_need_lc=$archive_cmds_need_lc
37577
37578# Whether or not to disallow shared libs when runtime libs are static.
37579allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37580
37581# Compiler flag to allow reflexive dlopens.
37582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37583
37584# Compiler flag to generate shared objects directly from archives.
37585whole_archive_flag_spec=$lt_whole_archive_flag_spec
37586
37587# Whether the compiler copes with passing no objects directly.
37588compiler_needs_object=$lt_compiler_needs_object
37589
37590# Create an old-style archive from a shared archive.
37591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37592
37593# Create a temporary old-style archive to link instead of a shared archive.
37594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37595
37596# Commands used to build a shared archive.
37597archive_cmds=$lt_archive_cmds
37598archive_expsym_cmds=$lt_archive_expsym_cmds
37599
37600# Commands used to build a loadable module if different from building
37601# a shared archive.
37602module_cmds=$lt_module_cmds
37603module_expsym_cmds=$lt_module_expsym_cmds
37604
37605# Whether we are building with GNU ld or not.
37606with_gnu_ld=$lt_with_gnu_ld
37607
37608# Flag that allows shared libraries with undefined symbols to be built.
37609allow_undefined_flag=$lt_allow_undefined_flag
37610
37611# Flag that enforces no undefined symbols.
37612no_undefined_flag=$lt_no_undefined_flag
37613
37614# Flag to hardcode \$libdir into a binary during linking.
37615# This must work even if \$libdir does not exist
37616hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37617
37618# If ld is used when linking, flag to hardcode \$libdir into a binary
37619# during linking. This must work even if \$libdir does not exist.
37620hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37621
37622# Whether we need a single "-rpath" flag with a separated argument.
37623hardcode_libdir_separator=$lt_hardcode_libdir_separator
37624
37625# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37626# DIR into the resulting binary.
37627hardcode_direct=$hardcode_direct
37628
37629# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37630# DIR into the resulting binary and the resulting library dependency is
37631# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37632# library is relocated.
37633hardcode_direct_absolute=$hardcode_direct_absolute
37634
37635# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37636# into the resulting binary.
37637hardcode_minus_L=$hardcode_minus_L
37638
37639# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37640# into the resulting binary.
37641hardcode_shlibpath_var=$hardcode_shlibpath_var
37642
37643# Set to "yes" if building a shared library automatically hardcodes DIR
37644# into the library and all subsequent libraries and executables linked
37645# against it.
37646hardcode_automatic=$hardcode_automatic
37647
37648# Set to yes if linker adds runtime paths of dependent libraries
37649# to runtime path list.
37650inherit_rpath=$inherit_rpath
37651
37652# Whether libtool must link a program against all its dependency libraries.
37653link_all_deplibs=$link_all_deplibs
37654
cristy73bd4a52010-10-05 11:24:23 +000037655# Set to "yes" if exported symbols are required.
37656always_export_symbols=$always_export_symbols
37657
37658# The commands to list exported symbols.
37659export_symbols_cmds=$lt_export_symbols_cmds
37660
37661# Symbols that should not be listed in the preloaded symbols.
37662exclude_expsyms=$lt_exclude_expsyms
37663
37664# Symbols that must always be exported.
37665include_expsyms=$lt_include_expsyms
37666
37667# Commands necessary for linking programs (against libraries) with templates.
37668prelink_cmds=$lt_prelink_cmds
37669
cristyda16f162011-02-19 23:52:17 +000037670# Commands necessary for finishing linking programs.
37671postlink_cmds=$lt_postlink_cmds
37672
cristy73bd4a52010-10-05 11:24:23 +000037673# Specify filename containing input files.
37674file_list_spec=$lt_file_list_spec
37675
37676# How to hardcode a shared library path into an executable.
37677hardcode_action=$hardcode_action
37678
37679# The directories searched by this compiler when creating a shared library.
37680compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37681
37682# Dependencies to place before and after the objects being linked to
37683# create a shared library.
37684predep_objects=$lt_predep_objects
37685postdep_objects=$lt_postdep_objects
37686predeps=$lt_predeps
37687postdeps=$lt_postdeps
37688
37689# The library search path used internally by the compiler when linking
37690# a shared library.
37691compiler_lib_search_path=$lt_compiler_lib_search_path
37692
37693# ### END LIBTOOL CONFIG
37694
37695_LT_EOF
37696
37697 case $host_os in
37698 aix3*)
37699 cat <<\_LT_EOF >> "$cfgfile"
37700# AIX sometimes has problems with the GCC collect2 program. For some
37701# reason, if we set the COLLECT_NAMES environment variable, the problems
37702# vanish in a puff of smoke.
37703if test "X${COLLECT_NAMES+set}" != Xset; then
37704 COLLECT_NAMES=
37705 export COLLECT_NAMES
37706fi
37707_LT_EOF
37708 ;;
37709 esac
37710
37711
37712ltmain="$ac_aux_dir/ltmain.sh"
37713
37714
37715 # We use sed instead of cat because bash on DJGPP gets confused if
37716 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37717 # text mode, it properly converts lines to CR/LF. This bash problem
37718 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037719 sed '$q' "$ltmain" >> "$cfgfile" \
37720 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037721
cristyda16f162011-02-19 23:52:17 +000037722 if test x"$xsi_shell" = xyes; then
37723 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37724func_dirname ()\
37725{\
37726\ case ${1} in\
37727\ */*) func_dirname_result="${1%/*}${2}" ;;\
37728\ * ) func_dirname_result="${3}" ;;\
37729\ esac\
37730} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37731 && mv -f "$cfgfile.tmp" "$cfgfile" \
37732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37733test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037734
37735
cristyda16f162011-02-19 23:52:17 +000037736 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37737func_basename ()\
37738{\
37739\ func_basename_result="${1##*/}"\
37740} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37741 && mv -f "$cfgfile.tmp" "$cfgfile" \
37742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37743test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037744
37745
cristyda16f162011-02-19 23:52:17 +000037746 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37747func_dirname_and_basename ()\
37748{\
37749\ case ${1} in\
37750\ */*) func_dirname_result="${1%/*}${2}" ;;\
37751\ * ) func_dirname_result="${3}" ;;\
37752\ esac\
37753\ func_basename_result="${1##*/}"\
37754} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37755 && mv -f "$cfgfile.tmp" "$cfgfile" \
37756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37757test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037758
cristyda16f162011-02-19 23:52:17 +000037759
37760 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37761func_stripname ()\
37762{\
37763\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37764\ # positional parameters, so assign one to ordinary parameter first.\
37765\ func_stripname_result=${3}\
37766\ func_stripname_result=${func_stripname_result#"${1}"}\
37767\ func_stripname_result=${func_stripname_result%"${2}"}\
37768} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37769 && mv -f "$cfgfile.tmp" "$cfgfile" \
37770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37771test 0 -eq $? || _lt_function_replace_fail=:
37772
37773
37774 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37775func_split_long_opt ()\
37776{\
37777\ func_split_long_opt_name=${1%%=*}\
37778\ func_split_long_opt_arg=${1#*=}\
37779} # Extended-shell func_split_long_opt 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
37784
37785 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37786func_split_short_opt ()\
37787{\
37788\ func_split_short_opt_arg=${1#??}\
37789\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37790} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37791 && mv -f "$cfgfile.tmp" "$cfgfile" \
37792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37793test 0 -eq $? || _lt_function_replace_fail=:
37794
37795
37796 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37797func_lo2o ()\
37798{\
37799\ case ${1} in\
37800\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37801\ *) func_lo2o_result=${1} ;;\
37802\ esac\
37803} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37804 && mv -f "$cfgfile.tmp" "$cfgfile" \
37805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37806test 0 -eq $? || _lt_function_replace_fail=:
37807
37808
37809 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37810func_xform ()\
37811{\
37812 func_xform_result=${1%.*}.lo\
37813} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37814 && mv -f "$cfgfile.tmp" "$cfgfile" \
37815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37816test 0 -eq $? || _lt_function_replace_fail=:
37817
37818
37819 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37820func_arith ()\
37821{\
37822 func_arith_result=$(( $* ))\
37823} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37824 && mv -f "$cfgfile.tmp" "$cfgfile" \
37825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37826test 0 -eq $? || _lt_function_replace_fail=:
37827
37828
37829 sed -e '/^func_len ()$/,/^} # func_len /c\
37830func_len ()\
37831{\
37832 func_len_result=${#1}\
37833} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37834 && mv -f "$cfgfile.tmp" "$cfgfile" \
37835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37836test 0 -eq $? || _lt_function_replace_fail=:
37837
37838fi
37839
37840if test x"$lt_shell_append" = xyes; then
37841 sed -e '/^func_append ()$/,/^} # func_append /c\
37842func_append ()\
37843{\
37844 eval "${1}+=\\${2}"\
37845} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37846 && mv -f "$cfgfile.tmp" "$cfgfile" \
37847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37848test 0 -eq $? || _lt_function_replace_fail=:
37849
37850
37851 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37852func_append_quoted ()\
37853{\
37854\ func_quote_for_eval "${2}"\
37855\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37856} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37857 && mv -f "$cfgfile.tmp" "$cfgfile" \
37858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37859test 0 -eq $? || _lt_function_replace_fail=:
37860
37861
37862 # Save a `func_append' function call where possible by direct use of '+='
37863 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37864 && mv -f "$cfgfile.tmp" "$cfgfile" \
37865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37866 test 0 -eq $? || _lt_function_replace_fail=:
37867else
37868 # Save a `func_append' function call even when '+=' is not available
37869 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37870 && mv -f "$cfgfile.tmp" "$cfgfile" \
37871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37872 test 0 -eq $? || _lt_function_replace_fail=:
37873fi
37874
37875if test x"$_lt_function_replace_fail" = x":"; then
37876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37877$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37878fi
37879
37880
37881 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37883 chmod +x "$ofile"
37884
37885
37886 cat <<_LT_EOF >> "$ofile"
37887
37888# ### BEGIN LIBTOOL TAG CONFIG: CXX
37889
37890# The linker used to build libraries.
37891LD=$lt_LD_CXX
37892
cristy0c60a692010-11-04 01:09:47 +000037893# How to create reloadable object files.
37894reload_flag=$lt_reload_flag_CXX
37895reload_cmds=$lt_reload_cmds_CXX
37896
cristy73bd4a52010-10-05 11:24:23 +000037897# Commands used to build an old-style archive.
37898old_archive_cmds=$lt_old_archive_cmds_CXX
37899
37900# A language specific compiler.
37901CC=$lt_compiler_CXX
37902
37903# Is the compiler the GNU compiler?
37904with_gcc=$GCC_CXX
37905
37906# Compiler flag to turn off builtin functions.
37907no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37908
cristy73bd4a52010-10-05 11:24:23 +000037909# Additional compiler flags for building library objects.
37910pic_flag=$lt_lt_prog_compiler_pic_CXX
37911
cristyda16f162011-02-19 23:52:17 +000037912# How to pass a linker flag through the compiler.
37913wl=$lt_lt_prog_compiler_wl_CXX
37914
cristy73bd4a52010-10-05 11:24:23 +000037915# Compiler flag to prevent dynamic linking.
37916link_static_flag=$lt_lt_prog_compiler_static_CXX
37917
37918# Does compiler simultaneously support -c and -o options?
37919compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37920
37921# Whether or not to add -lc for building shared libraries.
37922build_libtool_need_lc=$archive_cmds_need_lc_CXX
37923
37924# Whether or not to disallow shared libs when runtime libs are static.
37925allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37926
37927# Compiler flag to allow reflexive dlopens.
37928export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37929
37930# Compiler flag to generate shared objects directly from archives.
37931whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37932
37933# Whether the compiler copes with passing no objects directly.
37934compiler_needs_object=$lt_compiler_needs_object_CXX
37935
37936# Create an old-style archive from a shared archive.
37937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37938
37939# Create a temporary old-style archive to link instead of a shared archive.
37940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37941
37942# Commands used to build a shared archive.
37943archive_cmds=$lt_archive_cmds_CXX
37944archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37945
37946# Commands used to build a loadable module if different from building
37947# a shared archive.
37948module_cmds=$lt_module_cmds_CXX
37949module_expsym_cmds=$lt_module_expsym_cmds_CXX
37950
37951# Whether we are building with GNU ld or not.
37952with_gnu_ld=$lt_with_gnu_ld_CXX
37953
37954# Flag that allows shared libraries with undefined symbols to be built.
37955allow_undefined_flag=$lt_allow_undefined_flag_CXX
37956
37957# Flag that enforces no undefined symbols.
37958no_undefined_flag=$lt_no_undefined_flag_CXX
37959
37960# Flag to hardcode \$libdir into a binary during linking.
37961# This must work even if \$libdir does not exist
37962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37963
37964# If ld is used when linking, flag to hardcode \$libdir into a binary
37965# during linking. This must work even if \$libdir does not exist.
37966hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37967
37968# Whether we need a single "-rpath" flag with a separated argument.
37969hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37970
37971# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37972# DIR into the resulting binary.
37973hardcode_direct=$hardcode_direct_CXX
37974
37975# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37976# DIR into the resulting binary and the resulting library dependency is
37977# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37978# library is relocated.
37979hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37980
37981# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37982# into the resulting binary.
37983hardcode_minus_L=$hardcode_minus_L_CXX
37984
37985# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37986# into the resulting binary.
37987hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37988
37989# Set to "yes" if building a shared library automatically hardcodes DIR
37990# into the library and all subsequent libraries and executables linked
37991# against it.
37992hardcode_automatic=$hardcode_automatic_CXX
37993
37994# Set to yes if linker adds runtime paths of dependent libraries
37995# to runtime path list.
37996inherit_rpath=$inherit_rpath_CXX
37997
37998# Whether libtool must link a program against all its dependency libraries.
37999link_all_deplibs=$link_all_deplibs_CXX
38000
cristy73bd4a52010-10-05 11:24:23 +000038001# Set to "yes" if exported symbols are required.
38002always_export_symbols=$always_export_symbols_CXX
38003
38004# The commands to list exported symbols.
38005export_symbols_cmds=$lt_export_symbols_cmds_CXX
38006
38007# Symbols that should not be listed in the preloaded symbols.
38008exclude_expsyms=$lt_exclude_expsyms_CXX
38009
38010# Symbols that must always be exported.
38011include_expsyms=$lt_include_expsyms_CXX
38012
38013# Commands necessary for linking programs (against libraries) with templates.
38014prelink_cmds=$lt_prelink_cmds_CXX
38015
cristyda16f162011-02-19 23:52:17 +000038016# Commands necessary for finishing linking programs.
38017postlink_cmds=$lt_postlink_cmds_CXX
38018
cristy73bd4a52010-10-05 11:24:23 +000038019# Specify filename containing input files.
38020file_list_spec=$lt_file_list_spec_CXX
38021
38022# How to hardcode a shared library path into an executable.
38023hardcode_action=$hardcode_action_CXX
38024
38025# The directories searched by this compiler when creating a shared library.
38026compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38027
38028# Dependencies to place before and after the objects being linked to
38029# create a shared library.
38030predep_objects=$lt_predep_objects_CXX
38031postdep_objects=$lt_postdep_objects_CXX
38032predeps=$lt_predeps_CXX
38033postdeps=$lt_postdeps_CXX
38034
38035# The library search path used internally by the compiler when linking
38036# a shared library.
38037compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38038
38039# ### END LIBTOOL TAG CONFIG: CXX
38040_LT_EOF
38041
38042 ;;
cristy4c08aed2011-07-01 19:47:50 +000038043 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038044 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038045 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38046 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38047
38048 esac
38049done # for ac_tag
38050
38051
cristy8b350f62009-11-15 23:12:43 +000038052as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038053_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038054ac_clean_files=$ac_clean_files_save
38055
38056test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038057 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038058
38059
38060# configure is writing to config.log, and then calls config.status.
38061# config.status does its own redirection, appending to config.log.
38062# Unfortunately, on DOS this fails, as config.log is still kept open
38063# by configure, so config.status won't be able to write to it; its
38064# output is simply discarded. So we exec the FD to /dev/null,
38065# effectively closing config.log, so it can be properly (re)opened and
38066# appended to by config.status. When coming back to configure, we
38067# need to make the FD available again.
38068if test "$no_create" != yes; then
38069 ac_cs_success=:
38070 ac_config_status_args=
38071 test "$silent" = yes &&
38072 ac_config_status_args="$ac_config_status_args --quiet"
38073 exec 5>/dev/null
38074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38075 exec 5>>config.log
38076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38077 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038078 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038079fi
38080if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038082$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38083fi
38084
38085
38086rm -f magick-version
38087
cristy430a7312010-01-21 20:44:04 +000038088result_dejavu_font_dir='none'
38089if test "${dejavu_font_dir}x" != 'x'; then
38090 result_dejavu_font_dir=$dejavu_font_dir
38091fi
38092
cristy3ed852e2009-09-05 21:47:34 +000038093result_ghostscript_font_dir='none'
38094if test "${ghostscript_font_dir}x" != 'x'; then
38095 result_ghostscript_font_dir=$ghostscript_font_dir
38096fi
38097
38098result_windows_font_dir='none'
38099if test "${windows_font_dir}x" != 'x'; then
38100 result_windows_font_dir=${windows_font_dir}
38101fi
38102
cristy09b53e12011-10-14 12:47:22 +000038103{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038104ImageMagick is configured as follows. Please verify that this configuration
38105matches your expectations.
38106
38107Host system type: $host
38108Build system type: $build
38109
38110 Option Value
38111-------------------------------------------------------------------------------
38112Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38113Static libraries --enable-static=$enable_static $libtool_build_static_libs
38114Module support --with-modules=$with_modules $with_modules
38115GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38116Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38117High Dynamic Range Imagery
38118 --enable-hdri=$enable_hdri $enable_hdri
38119
38120Delegate Configuration:
38121BZLIB --with-bzlib=$with_bzlib $have_bzlib
38122Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038123Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038124DJVU --with-djvu=$with_djvu $have_djvu
38125DPS --with-dps=$with_dps $have_dps
38126FFTW --with-fftw=$with_fftw $have_fftw
38127FlashPIX --with-fpx=$with_fpx $have_fpx
38128FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38129FreeType --with-freetype=$with_freetype $have_freetype
38130GhostPCL None $PCLDelegate ($PCLVersion)
38131GhostXPS None $XPSDelegate ($XPSVersion)
38132Ghostscript None $PSDelegate ($GSVersion)
38133Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38134Ghostscript lib --with-gslib=$with_gslib $have_gslib
38135Graphviz --with-gvc=$with_gvc $have_gvc
38136JBIG --with-jbig=$with_jbig $have_jbig
38137JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38138JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038139LCMS v1 --with-lcms=$with_lcms $have_lcms
38140LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038141LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038142LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038143Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38144OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038145PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038146PERL --with-perl=$with_perl $have_perl
38147PNG --with-png=$with_png $have_png
38148RSVG --with-rsvg=$with_rsvg $have_rsvg
38149TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038150WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038151Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38152WMF --with-wmf=$with_wmf $have_wmf
38153X11 --with-x=$with_x $have_x
38154XML --with-xml=$with_xml $have_xml
38155ZLIB --with-zlib=$with_zlib $have_zlib
38156
38157X11 Configuration:
38158 X_CFLAGS = $X_CFLAGS
38159 X_PRE_LIBS = $X_PRE_LIBS
38160 X_LIBS = $X_LIBS
38161 X_EXTRA_LIBS = $X_EXTRA_LIBS
38162
38163Options used to compile and link:
38164 PREFIX = $PREFIX_DIR
38165 EXEC-PREFIX = $EXEC_PREFIX_DIR
38166 VERSION = $PACKAGE_VERSION
38167 CC = $CC
38168 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038169 CPPFLAGS = $MAGICK_CPPFLAGS
38170 PCFLAGS = $MAGICK_PCFLAGS
38171 DEFS = $DEFS
38172 LDFLAGS = $LDFLAGS
38173 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38174 LIBS = $MAGICK_LIBS
38175 CXX = $CXX
38176 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038177 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038178" >&5
cristy09b53e12011-10-14 12:47:22 +000038179$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038180ImageMagick is configured as follows. Please verify that this configuration
38181matches your expectations.
38182
38183Host system type: $host
38184Build system type: $build
38185
38186 Option Value
38187-------------------------------------------------------------------------------
38188Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38189Static libraries --enable-static=$enable_static $libtool_build_static_libs
38190Module support --with-modules=$with_modules $with_modules
38191GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38192Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38193High Dynamic Range Imagery
38194 --enable-hdri=$enable_hdri $enable_hdri
38195
38196Delegate Configuration:
38197BZLIB --with-bzlib=$with_bzlib $have_bzlib
38198Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038199Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038200DJVU --with-djvu=$with_djvu $have_djvu
38201DPS --with-dps=$with_dps $have_dps
38202FFTW --with-fftw=$with_fftw $have_fftw
38203FlashPIX --with-fpx=$with_fpx $have_fpx
38204FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38205FreeType --with-freetype=$with_freetype $have_freetype
38206GhostPCL None $PCLDelegate ($PCLVersion)
38207GhostXPS None $XPSDelegate ($XPSVersion)
38208Ghostscript None $PSDelegate ($GSVersion)
38209Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38210Ghostscript lib --with-gslib=$with_gslib $have_gslib
38211Graphviz --with-gvc=$with_gvc $have_gvc
38212JBIG --with-jbig=$with_jbig $have_jbig
38213JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38214JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038215LCMS v1 --with-lcms=$with_lcms $have_lcms
38216LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038217LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038218LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038219Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38220OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038221PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038222PERL --with-perl=$with_perl $have_perl
38223PNG --with-png=$with_png $have_png
38224RSVG --with-rsvg=$with_rsvg $have_rsvg
38225TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038226WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038227Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38228WMF --with-wmf=$with_wmf $have_wmf
38229X11 --with-x=$with_x $have_x
38230XML --with-xml=$with_xml $have_xml
38231ZLIB --with-zlib=$with_zlib $have_zlib
38232
38233X11 Configuration:
38234 X_CFLAGS = $X_CFLAGS
38235 X_PRE_LIBS = $X_PRE_LIBS
38236 X_LIBS = $X_LIBS
38237 X_EXTRA_LIBS = $X_EXTRA_LIBS
38238
38239Options used to compile and link:
38240 PREFIX = $PREFIX_DIR
38241 EXEC-PREFIX = $EXEC_PREFIX_DIR
38242 VERSION = $PACKAGE_VERSION
38243 CC = $CC
38244 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038245 CPPFLAGS = $MAGICK_CPPFLAGS
38246 PCFLAGS = $MAGICK_PCFLAGS
38247 DEFS = $DEFS
38248 LDFLAGS = $LDFLAGS
38249 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38250 LIBS = $MAGICK_LIBS
38251 CXX = $CXX
38252 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038253 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038254" >&6;}